/* =========================================
   GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   NAVBAR STYLES
   ========================================= */
.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo img {
    height: 35px;
    width: auto;
}

/* Mobile Toggle Button (Hidden on Desktop) */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-nav {
    background-color: var(--accent);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* =========================================
   MEGA MENU (DROPDOWNS)
   ========================================= */
.nav-item-dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.nav-item-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: flex;
    gap: 3rem;
}

.mega-column {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.mega-column h4 {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.mega-column a {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.mega-column a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.mega-column a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.mega-column a:hover i {
    color: var(--accent);
}

.coming-soon-link {
    opacity: 0.4;
    cursor: default;
}

.coming-soon-link:hover {
    color: var(--text-main) !important;
    transform: none !important;
}

.coming-soon-link:hover i {
    color: var(--text-dim) !important;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.site-footer {
    background-color: #0b1120;
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
}

.social-links a {
    color: var(--text-dim);
    background: var(--bg-card);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.social-links a img {
    width: 20px;
    height: 20px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: var(--text-main);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.social-links a:hover img {
    filter: grayscale(0%) opacity(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE FIXES)
   ========================================= */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Show Hamburger Menu */
    .mobile-toggle {
        display: block;
    }

    /* Hide standard nav links and convert to mobile dropdown */
    .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* Class added by JavaScript when hamburger is clicked */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .btn-nav {
        display: inline-block;
        text-align: center;
        width: 100%;
    }

    /* Fix Mega Menu for Mobile */
    .mega-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 1rem 0 0 1rem;
        background: transparent;
        display: none; /* Hide nested menu by default */
        width: 100%;
    }

    /* Show mega menu ONLY when JS adds the class */
    .nav-item-dropdown.mobile-open .mega-menu {
        display: block;
    }

    /* Make the link flex so the icon can be pushed to the right */
    .nav-item-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Make the icon a larger tap target on mobile */
    .dropdown-icon {
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }

    /* Rotate and highlight the icon when the menu is open */
    .nav-item-dropdown.mobile-open .dropdown-icon {
        transform: rotate(180deg);
        background: rgba(59, 130, 246, 0.15);
        color: var(--accent);
    }

    .mega-menu-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Footer Mobile Fixes */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col p {
        margin: 0 auto 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}