/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f4f8fb; }

/* =========================================
   2. NAVIGATION (Fixed & Aligned)
   ========================================= */

.navbar { 
    position: fixed; /* CHANGED: Keeps it stuck to the top */
    top: 0; 
    left: 0;
    width: 100%; 
    padding: 20px 0; 
    z-index: 1000; 
    background: #f0f9ff; /* Keeps transparent overlay look */

    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);

    transition: 0.3s ease;

    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

/* Force the Container to use Flexbox */
.navbar .container { 
    display: flex !important; 
    justify-content: space-between; /* Logo Left, Nav Right */
    align-items: center; 
    width: 100%;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #0f172a; 
    text-decoration: none;
    z-index: 1001; /* Stays above mobile menu */
}

/* Desktop Menu Layout */
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    list-style: none;
    margin-left: auto; /* Pushes menu to the right */
    margin-right: 30px; /* Space before button */
}

.nav-links a { 
    color: #64748b; 
    font-weight: 600; 
    font-size: 0.95rem; 
    text-decoration: none;
}
.nav-links a:hover { color: #0284c7; }

/* --- MODERN SOLUTIONS DROPDOWN --- */

.dropdown {
    position: relative;
    display: inline-block;
}

/* The Dropdown Container */
.dropdown-content {
    display: block;
    position: absolute;
    top: 120%; /* Space from navbar */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    
    /* Modern Glassmorphism Look */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Hide by default for transition */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding: 12px;
    z-index: 1000;
}

/* Hover State - Smooth Entrance */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Individual Link Styling */
.dropdown-content li {
    list-style: none;
    margin: 4px 0;
}

.dropdown-content li a {
    color: #0f172a;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

/* Link Hover Effect */
.dropdown-content li a:hover {
    background: rgba(56, 189, 248, 0.1); /* Light blue tint */
    color: #38bdf8;
    transform: scale(1.02);
}

/* Optional: Subtle Arrow Indicator */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Desktop Button */
.desktop-cta { display: block; }

.btn-primary {
    background: #0f172a; 
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    display: inline-block; /* Add this to ensure the link acts like a button */
    text-decoration: none;
}

.btn-primary:hover { 
    background: #38bdf8; 
    color: #fff;
}

/* Hide Mobile Elements on Desktop */
.mobile-menu-btn, .mobile-close, .mobile-cta-item { 
    display: none !important; 
}

/* 5. FIXED / STICKY STATE (For Scrolling) */
/* If you use JS to add this class on scroll */
.navbar-glass {
    position: fixed !important; /* Forces it to stick */
    top: 0; left: 0; width: 100%;
    background: rgba(240, 249, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #0284c7;
}

.btn-nav-action {
    background: #0f172a;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600 !important;
}

.btn-nav-action:hover {
    background: #0284c7;
}

/* --- FOOTER --- */
.footer { background: #1a252f; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { margin-bottom: 20px; color: #fff; }
.footer-col p { color: #bdc3c7; font-size: 0.9rem; margin-bottom: 10px; }
.social-icons a { color: #fff; margin-right: 15px; font-size: 1.2rem; }
.mini-form { display: flex; gap: 5px; margin-top: 10px; }
.mini-form input { padding: 8px; border: none; border-radius: 3px; }
.mini-form button { padding: 8px 15px; background: #3498db; border: none; color: #fff; border-radius: 3px; cursor: pointer; }
.copyright { border-top: 1px solid #34495e; padding-top: 20px; color: #7f8c8d; font-size: 0.8rem; }

.btn-text {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-text:hover {
    color: #1a252f;
}

/* --- PROFESSIONAL MEGA FOOTER --- */
.footer-pro {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Brand Column */
.footer-logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-decoration: none;
    letter-spacing: -1px;
}

.brand-col p {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-icons-pro {
    display: flex;
    gap: 15px;
}

.social-icons-pro a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons-pro a:hover {
    background: #38bdf8;
    transform: translateY(-3px);
}

/* Link Columns */
.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 5px;
}

/* Contact Column */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-list i {
    color: #38bdf8;
    margin-top: 5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* =========================================
   COOKIE CONSENT BANNER (Restored)
   ========================================= */

.cookie-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    background: #0f172a; /* Dark Navy */
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 9999;
    border: 1px solid #1e293b;
    
    /* Animation States */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Can't click when invisible */
}

/* Visible State (Added by JS) */
.cookie-card.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Completely Hidden State */
.cookie-card.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-icon {
    font-size: 1.5rem;
    color: #fbbf24; /* Cookie Gold Color */
    margin-top: 2px;
}

.cookie-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #94a3b8; /* Slate Grey */
    line-height: 1.5;
}

.cookie-text a {
    color: #38bdf8;
    text-decoration: underline;
}

/* Buttons */
.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-accept {
    flex: 1;
    background: #fff;
    color: #0f172a;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}
.btn-accept:hover {
    background: #f1f5f9;
}

.btn-decline {
    flex: 1;
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}
.btn-decline:hover {
    border-color: #fff;
    color: #fff;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .cookie-card {
        bottom: 0; 
        right: 0; 
        left: 0;
        width: 100%;
        border-radius: 16px 16px 0 0; /* Only round top corners */
        padding: 20px;
    }
}
/* =========================================
   RESPONSIVE MEDIA QUERY (Mobile Fixes)
   ========================================= */
@media (max-width: 900px) {

    /* 1. Global Containers */
    .container { width: 90%; padding: 0 15px; }
    h1 { font-size: 2.5rem !important; }

    /* 2. Show Mobile Menu Icon, Hide Desktop Button */
    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: #0f172a;
        cursor: pointer;
        z-index: 1002;
    }
    
    .desktop-cta { display: none !important; }

    /* 3. The Drawer (Slide-out Menu) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        height: 100vh;
        width: 300px; /* Drawer width */
        background-color: #0f172a; /* Dark background */
        
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 30px;
        
        transition: right 0.4s ease;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        margin: 0; /* Reset margins */
    }

    /* 4. Active State (Added by JS) */
    .nav-links.active {
        right: 0; /* Slide in */
    }

    /* 5. Mobile Links */
    .nav-links li { width: 100%; margin-bottom: 20px; }
    .nav-links a {
        color: #fff !important; /* Force White Text */
        font-size: 1.3rem;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }

    /* 6. Close Button */
    .mobile-close {
        display: block !important;
        position: absolute;
        top: 25px;
        left: 25px;
        font-size: 1.8rem;
        color: #fff;
        cursor: pointer;
    }

    /* 7. Mobile CTA Button */
    .mobile-cta-item { display: block !important; width: 100%; margin-top: 20px; }
    .mobile-cta-item .btn-primary { width: 100%; text-align: center; }
    
    /* 8. Fix Cookie Banner on Mobile */
    .cookie-card { width: 100%; bottom: 0; right: 0; left: 0; border-radius: 16px 16px 0 0; }
    
    /* 9. Fix Footer on Mobile */
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .hero-bright, 
    .hero-interactive, 
    .services-hero, 
    .contact-hero, 
    .legal-hero, 
    .course-hero,
    .blog-hero {
        padding-top: 100px !important; 
    }
    
    .navbar {
        background-color: #f0f9ff !important;
    }
}
/* =========================================
   MOBILE FOOTER FIX (Clean & Centered)
   ========================================= */

@media (max-width: 900px) {
    
    .footer-pro {
        padding: 60px 0 30px; /* Reduce padding slightly */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Force 1 Column Stack */
        gap: 50px; /* More space between sections */
        text-align: center; /* Center align everything */
    }

    /* Fix Brand Column */
    .brand-col {
        max-width: 100%;
    }
    
    .brand-col p {
        margin: 0 auto 25px; /* Center the description text */
        max-width: 400px;
    }

    /* Center Social Icons */
    .social-icons-pro {
        justify-content: center;
    }

    /* Fix Contact List Alignment */
    .contact-list li {
        justify-content: center; /* Center icon and text */
        text-align: left; /* Keep the address text left-aligned relative to itself */
    }

    /* Footer Bottom Section */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap; /* Allow links to wrap if needed */
        gap: 20px;
    }
}
/* =========================================
   COMPACT FOOTER FOR MOBILE (Smart Grid)
   ========================================= */

@media (max-width: 900px) {

    /* 1. Change Grid to 2 Columns (Side-by-Side) */
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Two equal columns */
        gap: 30px 15px; /* Tighter spacing */
        text-align: left;
        padding-bottom: 20px;
    }

    /* 2. Brand Section: Span Full Width & Center */
    .brand-col {
        grid-column: 1 / -1; /* Stretch across both columns */
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
        margin-bottom: 10px;
    }

    .brand-col p {
        margin: 15px auto;
        max-width: 400px;
        font-size: 0.9rem;
    }

    .social-icons-pro {
        justify-content: center;
    }

    /* 3. Link Columns (Solutions & Learning) */
    /* They naturally fall into the 2-column grid side-by-side */
    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #fff;
    }

    .footer-links li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    /* 4. Contact Section: Span Full Width & Center */
    .contact-col {
        grid-column: 1 / -1; /* Stretch across both columns */
        text-align: center;
        background: rgba(255,255,255,0.03); /* Subtle highlight */
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
    }

    .contact-col h4 {
        margin-bottom: 15px;
    }

    .contact-list li {
        justify-content: center; /* Center the icons and text */
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    /* 5. Compact Legal Bottom */
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }
}