/* UI Redesign Global Styles & Variables */

:root {
    /* Light Mode Variables (Fallback/Base) */
    --clr-bg: #f8fafc;
    --clr-card: #ffffff;
    --clr-text: #334155;
    --clr-heading: #0f172a;
    --clr-border: #e2e8f0;
    --clr-primary: #8b5cf6;
    --grad-primary: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    --grad-title: linear-gradient(90deg, #ec4899, #8b5cf6, #0ea5e9);
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.05);
    --btn-hover-zoom: scale(1.05);
    --glass-border: rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] {
    /* Dark Mode Variables (Matching Reference) */
    --clr-bg: #090e17; /* Deep sleek dark */
    --clr-card: #111827; /* Slightly lighter dark for cards */
    --clr-card-hover: rgba(30, 41, 59, 0.7);
    --clr-text: #94a3b8;
    --clr-heading: #f8fafc;
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-primary: #8b5cf6;
    --grad-primary: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    --grad-title: linear-gradient(90deg, #ec4899, #8b5cf6, #0ea5e9);
    --navbar-bg: rgba(9, 14, 23, 0.75);
    --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,h2,h3,h4,h5,h6 {
    color: var(--clr-heading);
}

/* Glassmorphism Header */
.header-glass {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-nav);
    transition: all 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--clr-heading);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}
.theme-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
}

/* Login Button rounded */
.btn-login-rounded {
    background: var(--grad-primary) !important;
    border: none !important;
    border-radius: 100px !important;
    color: #fff !important;
    padding: 8px 24px !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}
.btn-login-rounded:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

.btn-login-outline {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 100px !important;
    padding: 8px 24px !important;
    transition: all 0.3s ease !important;
}
.btn-login-outline:hover {
    background: rgba(255,255,255,0.05) !important;
}

/* Gradient text heading */
.hero-gradient-text {
    background: var(--grad-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Animations */
.animate-from-left {
    animation: fadeSlideInLeft 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.animate-from-right {
    animation: fadeSlideInRight 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeSlideInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Preview Blocks on Homepage */
.preview-section-block {
    padding: 80px 0;
    position: relative;
    border-top: 1px solid var(--clr-border);
}

.preview-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.preview-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-primary);
}
.preview-icon {
    font-size: 48px;
    color: #0ea5e9;
    margin-bottom: 20px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Services Cards */
.modern-service-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    height: 100%;
}
.modern-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--clr-card-hover);
}

/* FAQ Accordion Modern */
.faq-modern {
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-modern .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}
.faq-modern .accordion-item:last-child {
    border-bottom: none;
}
.faq-modern .accordion-button {
    background: transparent;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 1.05rem;
    box-shadow: none;
    padding: 20px 24px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.faq-modern .accordion-button:focus {
    box-shadow: none;
    outline: none;
}
.faq-modern .accordion-button:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #f8fafc;
}
.faq-modern .accordion-button:not(.collapsed) {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    box-shadow: none;
}
.faq-modern .accordion-body {
    padding: 0 24px 24px 24px;
    color: #94a3b8;
    background: transparent;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}
.faq-modern .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.2s ease-in-out;
}
.faq-modern .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230ea5e9'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

/* Navbar active and hover colors */
.menu li a {
    color: var(--clr-heading) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}
.menu li a:hover, .menu li a.active {
    color: #0ea5e9 !important;
}

/* Footer layout fixes */
.footer-redesign {
    background: #05080f; /* darker than bg */
    border-top: 1px solid var(--clr-border);
    padding: 60px 0 20px 0;
}
.footer-widget-title {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-link-list li {
    margin-bottom: 12px;
}
.footer-link-list li a {
    color: var(--clr-text);
    transition: color 0.3s ease;
}
.footer-link-list li a:hover {
    color: #ec4899;
}
