* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-dark: #0a0e27;
            --secondary-dark: #1a1f3a;
            --accent-blue: #6366f1;
            --accent-purple: #8b5cf6;
            --text-light: #ffffff;
            --text-gray: #94a3b8;
            --card-bg: #ffffff;
            --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--primary-dark);
            color: var(--text-light);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Header Styles */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem; /* Slightly reduced vertical padding for a tighter look */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically centers the wide logo and your nav links */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02); /* Subtle scale so a wide logo doesn't distort awkwardly */
}

.logo-icon {
    /* FIXED FOR TEKART-WEB.PNG: Wide width, controlled height */
    width: 220px; 
    height: 45px; 
    background: transparent; /* Blends seamlessly since header background is already dark */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Keeps it locked to the left side */
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents stretching */
    object-position: left center; /* Ensures text inside image stays crisp and left-aligned */
}

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-gray);
            text-decoration: none;
            transition: color 0.3s;
            font-weight: 500;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--text-light);
        }

        /* Update your existing nav-buttons class to keep things inline */
.nav-buttons {
    display: flex;
    align-items: center; /* Vertically aligns the search bar and buttons perfectly */
    gap: 1rem; /* Even spacing between search bar and buttons */
}

/* Search Bar Container inside the button group */
.nav-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.35rem 0.8rem;
    width: 160px; /* Compact width so it doesn't clutter the button area */
    transition: all 0.3s ease;
}

/* Expands smoothly when clicked so users have room to type */
.nav-search-container:focus-within {
    width: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue, #6366f1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* The Input Field */
.nav-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light, #fff);
    font-size: 0.85rem;
    width: 100%;
}

.nav-search-input::placeholder {
    color: var(--text-gray, #9ca3af);
    opacity: 0.6;
}

/* The Search Icon Button */
.nav-search-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 0.4rem;
}

.nav-search-btn i {
    color: var(--text-gray, #9ca3af);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-search-container:hover .nav-search-btn i,
.nav-search-container:focus-within .nav-search-btn i {
    color: var(--accent-blue, #6366f1);
}

        .btn {
            padding: 0.6rem 1.5rem;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-outline {
            background: transparent;
            color: var(--text-light);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .btn-outline:hover {
            border-color: var(--accent-blue);
            color: var(--accent-blue);
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
        }

        .mobile-menu {
            display: none;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
        }

        .mobile-menu span {
            width: 25px;
            height: 3px;
            background: var(--text-light);
            transition: 0.3s;
        }

        /* Hero Section */
        .hero {
            margin-top: 80px;
            padding: 4rem 2rem;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #fff 0%, #8b5cf6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-content p {
            font-size: 1.1rem;
            color: var(--text-gray);
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .btn-large {
            padding: 1rem 2rem;
            font-size: 1.1rem;
        }

        .stats {
            display: flex;
            gap: 3rem;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            background: rgba(99, 102, 241, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--accent-blue);
        }

        .stat-text h3 {
            font-size: 1.5rem;
            color: var(--text-light);
        }

        .stat-text p {
            color: var(--text-gray);
            font-size: 0.9rem;
            margin: 0;
        }

        .hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 350px;
    height: 350px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
    animation: float 6s ease-in-out infinite;
}

.hero-logo::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

/* NEW: Style for your custom brand mark */
/* UPDATED: Style for your custom brand mark with background transparency removal */
.hero-mark {
    width: 55%; /* Keeps it perfectly proportioned inside the 350px gradient circle */
    height: auto;
    object-fit: contain;
    z-index: 2; /* Ensures it sits cleanly above the pulse animations */
    
    /* MAGIC FIX: This knocks out the solid black background, making it transparent */
    mix-blend-mode: screen; 
}


/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 968px) {
    /* ... your other responsive rules ... */

    .hero-logo {
        width: 250px;
        height: 250px;
    }

    /* FIXED: Adjusted sizing wrapper for the image at tablet size */
    .hero-logo::before {
        width: 290px;
        height: 290px;
    }
    
    /* REMOVED the old '.hero-logo i' property from here */
}

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.5; }
        }

        /* Resources Section */
        .resources-section {
            background: var(--card-bg);
            color: var(--primary-dark);
            padding: 4rem 2rem;
            margin: 2rem auto;
            max-width: 1200px;
            border-radius: 20px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
        }

        .resource-card {
            text-align: center;
            padding: 2rem 1rem;
            border-radius: 12px;
            transition: all 0.3s;
            cursor: pointer;
        }

        .resource-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .resource-icon {
            width: 70px;
            height: 70px;
            margin: 0 auto 1rem;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
        }

        .resource-card:nth-child(1) .resource-icon { background: #dbeafe; color: #3b82f6; }
        .resource-card:nth-child(2) .resource-icon { background: #e9d5ff; color: #a855f7; }
        .resource-card:nth-child(3) .resource-icon { background: #a7f3d0; color: #10b981; }
        .resource-card:nth-child(4) .resource-icon { background: #6ee7b7; color: #059669; }
        .resource-card:nth-child(5) .resource-icon { background: #fda4af; color: #ec4899; }
        .resource-card:nth-child(6) .resource-icon { background: #bfdbfe; color: #3b82f6; }
        .resource-card:nth-child(7) .resource-icon { background: #ddd6fe; color: #8b5cf6; }
        .resource-card:nth-child(8) .resource-icon { background: #a7f3d0; color: #14b8a6; }

        .resource-card h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .resource-card p {
            color: var(--text-gray);
            font-size: 0.9rem;
        }

        /* Subjects Section */
        .subjects-section {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .subjects-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 3rem;
        }

        .subjects-header h2 {
            font-size: 2rem;
        }

        .view-all {
            color: var(--accent-blue);
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .subjects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
        }

        .subject-card {
            background: var(--secondary-dark);
            padding: 2rem 1rem;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .subject-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-blue);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
        }

        .subject-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .subject-card h3 {
            font-size: 1rem;
        }

        /* Premium Section */
        .premium-section {
            max-width: 1200px;
            margin: 4rem auto;
            padding: 0 2rem;
        }

        .premium-card {
            background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
            border-radius: 20px;
            padding: 3rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .premium-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
            border-radius: 50%;
        }

        .premium-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .premium-content p {
            color: var(--text-gray);
            margin-bottom: 2rem;
        }

        .premium-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .premium-image {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .crown {
            font-size: 150px;
            color: #fbbf24;
            filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.6));
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4)); }
            to { filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.8)); }
        }

        /* Popular Resources */
        .popular-section {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .popular-section h2 {
            font-size: 2rem;
            margin-bottom: 3rem;
        }

        .popular-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .popular-card {
            background: var(--secondary-dark);
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .popular-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-blue);
        }

        .popular-icon {
            width: 100px;
            height: 100px;
            margin: 0 auto 1.5rem;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
        }

        .popular-card:nth-child(1) .popular-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
        .popular-card:nth-child(2) .popular-icon { background: linear-gradient(135deg, #fdba74, #fb923c); }
        .popular-card:nth-child(3) .popular-icon { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); }
        .popular-card:nth-child(4) .popular-icon { background: linear-gradient(135deg, #fde68a, #fcd34d); }
        .popular-card:nth-child(5) .popular-icon { background: linear-gradient(135deg, #fbcfe8, #f9a8d4); }
        .popular-card:nth-child(6) .popular-icon { background: linear-gradient(135deg, #fecaca, #fca5a5); }

        .popular-card h3 {
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }

        .popular-card p {
            color: var(--text-gray);
            font-size: 0.9rem;
        }
/* ==========================================
   FOOTER BASE STYLES (Desktop - 5 Columns)
   ========================================== */
footer {
    background: var(--secondary-dark);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Forces exactly 5 equal columns on desktop screens */
    grid-template-columns: repeat(5, minmax(0, 1fr)); 
    gap: 1.5rem; 
}

/* Container for your wide logo image */
.footer-logo {
    display: inline-block;
    max-width: 100%; 
    width: 180px; 
    height: auto; 
    margin-bottom: 1.5rem; 
    transition: opacity 0.3s ease;
}

.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-logo:hover {
    opacity: 0.85;
}

.footer-brand p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem; 
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap; 
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}


/* ==========================================
   RESPONSIVE DESIGN (Combined Breakpoints)
   ========================================== */

@media (max-width: 1024px) {
    /* Drops to 3 columns neatly on small laptops/tablets */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

   .premium-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* REMOVED: The old conflicting footer rule that was breaking your layout here */
}

@media (max-width: 768px) {
    /* Stacks into a clean 2-column layout on normal mobile screens */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title h2,
    .subjects-header h2,
    .popular-section h2 {
        font-size: 1.5rem;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* FIXED: Stacks beautifully into 1 vertical column for tight screens */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .premium-content h2 {
        font-size: 1.8rem;
    }
}


/* ==========================================
   MOBILE MENU OVERLAY
   ========================================== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--secondary-dark);
    padding: 2rem;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}
/* Dropdowns */
        .dropdown { position: relative; }
        .dropdown > a { display: flex; align-items: center; gap: 5px; }
        .dropdown > a i { font-size: 0.75rem; transition: transform 0.3s ease; }
        .dropdown-menu { 
            position: absolute; 
            top: 100%; 
            left: 0; 
            background: var(--secondary-dark);
            min-width: 220px; 
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
            border-radius: 8px; 
            padding: 8px 0; 
            opacity: 0; 
            visibility: hidden; 
            transform: translateY(10px); 
            transition: all 0.3s ease; 
            z-index: 1000; 
            list-style: none; 
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .dropdown:hover .dropdown-menu { 
            opacity: 1; 
            visibility: visible; 
            transform: translateY(0); 
        }
        .dropdown:hover > a i { transform: rotate(180deg); }
        .dropdown-menu li { list-style: none; }
        .dropdown-menu li a { 
            display: block; 
            padding: 10px 20px; 
            color: var(--text-gray); 
            text-decoration: none; 
            transition: all 0.3s ease; 
            font-size: 0.9rem; 
        }
        .dropdown-menu li a:hover { 
            background: rgba(99, 102, 241, 0.2);
            color: var(--accent-blue);
            padding-left: 25px; 
        }

        /* Mobile Dropdown */
        .mobile-dropdown { position: relative; }
        .mobile-dropdown > a { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
        .mobile-dropdown-menu { 
            max-height: 0; 
            overflow: hidden; 
            transition: max-height 0.3s ease; 
            list-style: none; 
            padding-left: 20px; 
        }
        .mobile-dropdown.active .mobile-dropdown-menu { max-height: 500px; }
        .mobile-dropdown.active > a i { transform: rotate(180deg); }
        .mobile-dropdown-menu li a { 
            padding: 8px 15px; 
            font-size: 0.85rem; 
            color: var(--text-light);
        }