        :root {
            --bg-primary: #0a0a0a;
            --bg-secondary: #111111;
            --bg-card: #1a1a1a;
            --text-primary: #ffffff;
            --text-secondary: #a0a0a0;
            --accent: #4f46e5;
            --accent-hover: #3730a3;
            --success: #10b981;
            --warning: #f59e0b;
            --border: #333333;
            --shadow: rgba(79, 70, 229, 0.1);
            --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
            scroll-behavior: smooth;
            line-height: 1.6;
        }

        .hidden {
            display: none !important;
        }

        /* Animated Background */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
            animation: gradientShift 20s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.1); }
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 2rem;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 700;
            color: var(--accent);
            text-decoration: none;
            transition: all 0.3s ease;
            letter-spacing: -0.02em;
            cursor: pointer;
        }

        .logo:hover {
            text-shadow: 0 0 20px var(--accent);
            transform: scale(1.05);
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: clamp(1rem, 3vw, 2rem);
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: clamp(0.9rem, 2vw, 1rem);
            transition: all 0.3s ease;
            position: relative;
            cursor: pointer;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .nav-links a:hover, .nav-links a.active {
            color: var(--text-primary);
        }

        .nav-links a:hover::after, .nav-links a.active::after {
            width: 100%;
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 0.5rem;
        }

        .mobile-menu-btn span {
            width: 25px;
            height: 3px;
            background: var(--text-primary);
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        .mobile-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: rgba(10, 10, 10, 0.98);
            backdrop-filter: blur(20px);
            border-top: 1px solid var(--border);
            padding: 2rem;
        }

        .mobile-menu.active {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            list-style: none;
        }

        .mobile-nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            padding: 0.5rem 0;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .mobile-nav-links a:hover {
            color: var(--accent);
        }

        /* Sections */
        .section {
            min-height: 100vh;
            padding: clamp(6rem, 15vw, 8rem) clamp(1rem, 5vw, 2rem) clamp(2rem, 8vw, 4rem);
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Hero Section */
        .hero {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            min-height: 100vh;
        }

        .hero-content h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(2.5rem, 8vw, 6rem);
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: textGlow 3s ease-in-out infinite alternate;
            letter-spacing: -0.02em;
        }

        @keyframes textGlow {
            from { filter: drop-shadow(0 0 20px rgba(79, 70, 229, 0.3)); }
            to { filter: drop-shadow(0 0 40px rgba(79, 70, 229, 0.6)); }
        }

        .hero-content .subtitle {
            font-size: clamp(1.2rem, 4vw, 1.8rem);
            color: var(--text-secondary);
            margin-bottom: 2rem;
            animation: slideUp 1s ease 0.5s both;
            font-weight: 500;
        }
        
        .hero-content .subtitle1 {
            font-size: clamp(1rem, 2vw, 1.2rem);
            color: var(--text-secondary);
            margin-bottom: 2rem;
            animation: slideUp 1s ease 0.5s both;
            font-weight: 400;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero-content .description {
            font-size: clamp(1rem, 3vw, 1.2rem);
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto 3rem;
            line-height: 1.7;
            animation: slideUp 1s ease 0.7s both;
        }

        /* CTA Buttons */
        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            animation: slideUp 1s ease 0.9s both;
        }

        .btn {
            padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
            border: none;
            border-radius: 50px;
            font-size: clamp(0.9rem, 2vw, 1rem);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
        }

        .btn-primary {
            background: var(--accent);
            color: var(--bg-primary);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text-primary);
            border: 2px solid var(--border);
        }

        .btn-secondary:hover {
            border-color: var(--accent);
            box-shadow: 0 0 20px var(--shadow);
            transform: translateY(-2px);
        }

        /* Stats Section */
        .stats-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: clamp(1rem, 3vw, 2rem);
            margin-top: 4rem;
            animation: slideUp 1s ease 0.9s both;
        }

        .stat-card {
            background: var(--bg-card);
            padding: clamp(1.5rem, 4vw, 2rem);
            border-radius: 20px;
            border: 1px solid var(--border);
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--accent), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
        }

        .stat-card:hover::before {
            opacity: 0.1;
        }

        .stat-number {
            font-size: clamp(2rem, 6vw, 3rem);
            font-weight: 700;
            color: var(--accent);
            position: relative;
            z-index: 1;
            font-family: 'Space Grotesk', sans-serif;
        }

        .stat-label {
            font-size: clamp(0.9rem, 2vw, 1rem);
            color: var(--text-secondary);
            margin-top: 0.5rem;
            position: relative;
            z-index: 1;
        }

        /* Classes Section & Other Main Sections */
        #classes, #solutions, #resources {
            background: var(--bg-secondary);
        }

        .section-title {
            text-align: center;
            font-size: clamp(2rem, 6vw, 2.5rem);
            margin-bottom: 3rem;
            color: var(--accent);
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
        }

        .classes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: clamp(1.5rem, 4vw, 2rem);
            margin-top: 3rem;
        }

        .class-card {
            background: var(--bg-card);
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .class-card:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);
        }

        .class-header {
            padding: 2rem;
            background: var(--gradient);
            text-align: center;
            position: relative;
        }

        .class-header::before {
            content: '🎓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 4rem;
            opacity: 0.1;
        }

        .class-title {
            font-size: clamp(1.5rem, 4vw, 1.8rem);
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .class-subtitle {
            color: rgba(255, 255, 255, 0.8);
            font-size: clamp(0.9rem, 2vw, 1rem);
            position: relative;
            z-index: 1;
        }

        .class-content {
            padding: clamp(1.5rem, 4vw, 2rem);
        }

        .subjects-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 0.8rem;
            margin-bottom: 2rem;
        }

        .subject-tag {
            background: rgba(79, 70, 229, 0.1);
            color: var(--accent);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            border: 1px solid rgba(79, 70, 229, 0.3);
            text-align: center;
            transition: all 0.3s ease;
        }

        .subject-tag:hover {
            background: rgba(79, 70, 229, 0.2);
            transform: scale(1.05);
        }

        .features-list {
            list-style: none;
            margin-bottom: 2rem;
        }

        .features-list li {
            padding: 0.5rem 0;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: clamp(0.9rem, 2vw, 1rem);
        }

        .features-list li::before {
            content: '✓';
            color: var(--success);
            font-weight: bold;
        }

        /* Solutions and Resources Grid */
        .solutions-grid, .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: clamp(1.5rem, 4vw, 2rem);
            margin-top: 3rem;
        }

        .solution-card, .resource-card {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid var(--border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .solution-card:hover, .resource-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
        }

        .solution-card::before, .resource-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--accent), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .solution-card:hover::before, .resource-card:hover::before {
            opacity: 0.05;
        }

        .solution-icon, .resource-icon {
            font-size: 3rem;
            color: var(--accent);
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .solution-title, .resource-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-primary);
            position: relative;
            z-index: 1;
        }

        .solution-description, .resource-description {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
        }

        /* Contact Form */
        .contact-form {
            max-width: 600px;
            margin: 3rem auto;
            background: var(--bg-card);
            padding: 3rem;
            border-radius: 20px;
            border: 1px solid var(--border);
        }

        .form-group {
            margin-bottom: 2rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border);
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-radius: 10px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--shadow);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .submit-btn {
            width: 100%;
            padding: 1rem 2rem;
            background: var(--accent);
            color: var(--bg-primary);
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

        .submit-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
        }

        /* WhatsApp Options */
        .whatsapp-options {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .whatsapp-btn {
            background: #25d366;
            color: white;
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .whatsapp-btn:hover {
            background: #128c7e;
            transform: translateY(-2px);
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--border);
            z-index: 1001;
        }

        .scroll-progress {
            height: 100%;
            background: var(--accent);
            width: 0%;
            transition: width 0.1s ease;
        }

        /* Footer */
        .footer {
            background: var(--bg-secondary);
            padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem) clamp(1.5rem, 4vw, 2rem);
            text-align: center;
            border-top: 1px solid var(--border);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: clamp(1rem, 4vw, 2rem);
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .social-links a {
            color: var(--text-secondary);
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            transition: all 0.3s ease;
            padding: 1rem;
            border-radius: 50%;
            border: 1px solid var(--border);
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .social-links a:hover {
            color: var(--accent);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px var(--shadow);
        }

        /* Loading Animation */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-primary);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        .loader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 3px solid var(--border);
            border-top: 3px solid var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Inner Page Styles */
        .inner-page {
            min-height: 100vh;
            padding-top: 100px;
            display: none;
        }

        .inner-page.active {
            display: block;
        }

        .page-hero {
            text-align: center;
            padding: 4rem 0;
            background: var(--gradient);
            border-radius: 20px;
            margin-bottom: 4rem;
        }

        .page-hero h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(2.5rem, 6vw, 4rem);
            font-weight: 800;
            color: white;
            margin-bottom: 1rem;
        }

        .page-hero p {
            font-size: clamp(1rem, 3vw, 1.2rem);
            color: rgba(255, 255, 255, 0.8);
        }

        /* Search Controls */
        .search-controls {
            max-width: 900px;
            margin: 0 auto 3rem;
        }

        .search-controls label {
            display: block;
            margin-bottom: 0.4rem;
            color: var(--accent);
            font-weight: 600;
        }

        .search-controls select {
            width: 100%;
            padding: 0.8rem;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 1rem;
            font-family: 'Poppins', sans-serif;
        }

        .search-controls select:disabled {
            color: var(--text-secondary);
            cursor: not-allowed;
        }

        .search-btn {
            background: var(--accent);
            color: var(--bg-primary);
            border: none;
            border-radius: 50%;
            width: 42px;
            height: 42px;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .search-btn:hover:not(:disabled) {
            background: var(--accent-hover);
            transform: scale(1.1);
        }

        .search-btn:disabled {
            background: var(--border);
            cursor: not-allowed;
        }

        .content-container {
            max-width: 900px;
            margin: 0 auto 3rem;
            display: none;
        }

        .content-container h2 {
            border-bottom: 1px solid var(--border);
            padding-bottom: 0.5rem;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .content-list {
            list-style: none;
            color: var(--text-primary);
            max-height: 300px;
            overflow-y: auto;
            padding-left: 0;
            margin-top: 1rem;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--bg-card);
        }

        .content-list li {
            padding: 0.8rem 1rem;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .content-list li:hover {
            background: var(--bg-secondary);
        }

        .content-list li.active {
            background: var(--accent);
            color: var(--bg-primary);
            font-weight: bold;
        }

        .content-list li:last-child {
            border-bottom: none;
        }

        .download-btn {
            background: var(--success);
            color: white;
            border: none;
            border-radius: 15px;
            padding: 0.3rem 0.8rem;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .download-btn:hover {
            background: #059669;
            transform: scale(1.05);
        }

        .viewer-container {
            max-width: 900px;
            margin: 0 auto;
            display: none;
        }

        .viewer-container h2 {
            border-bottom: 1px solid var(--border);
            padding-bottom: 0.5rem;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .content-viewer {
            width: 100%;
            height: 600px;
            border: none;
            border-radius: 10px;
            background: var(--bg-card);
        }

        /* Class Detail Pages */
        .subjects-detail {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .subject-card {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .subject-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(79, 70, 229, 0.2);
        }

        .subject-card h3 {
            color: var(--accent);
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .chapter-list {
            list-style: none;
        }

        .chapter-list li {
            padding: 0.5rem 0;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border);
        }

        .chapter-list li:last-child {
            border-bottom: none;
        }

        /* Stream Selection */
        .stream-selection {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .stream-card {
            background: var(--bg-card);
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            cursor: pointer;
        }

        .stream-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
        }

        .stream-header {
            padding: 2rem;
            background: var(--gradient);
            text-align: center;
            position: relative;
        }

        .stream-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.9;
        }

        .stream-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
        }

        .stream-subtitle {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }

        .stream-content {
            padding: 2rem;
        }

        .stream-subjects {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .stream-subject-tag {
            background: rgba(79, 70, 229, 0.1);
            color: var(--accent);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            border: 1px solid rgba(79, 70, 229, 0.3);
        }

        /* Back Button */
        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.8rem 1.5rem;
            background: var(--bg-card);
            color: var(--text-primary);
            border: 1px solid var(--border);
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            margin-bottom: 2rem;
            cursor: pointer;
        }

        .back-btn:hover {
            background: var(--accent);
            color: var(--bg-primary);
            transform: translateY(-2px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links { display: none; }
            .mobile-menu-btn { display: flex; }
            .hero { min-height: 100vh; padding-top: 2rem; }
            .cta-buttons { flex-direction: column; align-items: center; gap: 1rem; }
            .btn { width: 100%; max-width: 280px; justify-content: center; }
            .stats-section { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
            .classes-grid, .solutions-grid, .resources-grid, .stream-selection { grid-template-columns: 1fr; gap: 1.5rem; }
            .subjects-list { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.5rem; }
            .contact-form { padding: 2rem; margin: 2rem 1rem; }
            .whatsapp-options { flex-direction: column; align-items: center; }
            
            /* Fixed spacing for search controls */
            .search-controls > div {
                flex-direction: column !important;
                gap: 0.8rem !important;
            }
            
            .search-controls > div > div:last-child > div {
                flex-direction: column !important;
                gap: 0.5rem !important;
            }
        }

        @media (max-width: 480px) {
            .navbar { padding: 1rem; }
            .section { padding: 5rem 1rem 2rem; }
            .stats-section { grid-template-columns: 1fr; }
            .social-links { gap: 1rem; }
            .social-links a { width: 50px; height: 50px; font-size: 1.2rem; }
            
            /* Additional mobile optimization for search controls */
            .search-controls {
                padding: 0 1rem;
            }
            
            .search-controls > div {
                flex-direction: column !important;
                gap: 0.6rem !important;
                align-items: stretch !important;
            }
            
            .search-controls > div > div {
                width: 100% !important;
                margin-bottom: 0.3rem !important;
            }
            
            .search-controls > div > div:last-child > div {
                flex-direction: row !important;
                gap: 0.3rem !important;
                align-items: flex-end !important;
            }
            
            .search-controls select {
                font-size: 0.9rem;
                padding: 0.7rem;
            }
            
            .search-btn {
                min-width: 42px;
                height: 42px;
                flex-shrink: 0;
            }
        }

        /* High Resolution Displays */
        @media (min-width: 1400px) {
            .container { max-width: 1600px; }
            .classes-grid, .solutions-grid, .resources-grid, .stream-selection { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
        }

        /* Landscape Mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .hero, .section { min-height: auto; padding: 2rem 1rem; }
        }

        /* About Us Section Styles */
#about .about-intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

#about .about-intro h3 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

#about .about-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Team Section */
#about .team-section {
    margin-bottom: 4rem;
}

#about .team-section h3 {
    text-align: center;
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);
}

.team-card-header {
    padding: 2rem;
    background: var(--gradient);
    text-align: center;
    position: relative;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.team-role {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-card-content {
    padding: 2rem;
}

.team-name {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.portfolio-link, .join-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-card:hover .portfolio-link,
.team-card:hover .join-team {
    transform: translateY(-2px);
}

.staff-card {
    cursor: default;
}

.staff-card:hover {
    transform: translateY(-5px) scale(1.01);
}

/* Company Values Section */
#about .company-values {
    margin-bottom: 4rem;
}

#about .company-values h3 {
    text-align: center;
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.2);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.value-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for About Us */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    #about .about-intro {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .team-card-content {
        padding: 1.5rem;
    }
    
    #about .about-intro h3 {
        font-size: 1.6rem;
    }
    
    #about .team-section h3,
    #about .company-values h3 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card-header {
        padding: 1.5rem;
    }
    
    .team-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .team-card-content {
        padding: 1.2rem;
    }
    
    #about .about-intro {
        padding: 1.2rem;
    }
    
    #about .about-intro h3 {
        font-size: 1.4rem;
    }
    
    #about .team-section h3,
    #about .company-values h3 {
        font-size: 1.4rem;
    }
}

/* Smooth scrolling for About Us navigation */
.nav-link[onclick*="about"] {
    cursor: pointer;
}

/* Fixed About Us Profile Photo Styles - Keep All Text */
.team-avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Keep your existing card header layout */
.team-card-header {
    padding: 2rem;
    background: var(--gradient);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-role {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Keep all your text content styling */
.team-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-name {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    /* Keep all your bio text exactly as is */
}

.portfolio-link, .join-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
    /* Keep all your link text */
}

/* Improve spacing and hover effects */
.team-card:hover .team-avatar-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.team-card:hover .avatar-fallback {
    transform: scale(1.1);
}

/* Fix the grid to make cards more uniform */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start; /* This keeps your text layout natural */
}

/* Enhanced mobile typography */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
  
  .hero-content .subtitle {
    font-size: clamp(1rem, 4vw, 1.3rem);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  
  .hero-content .description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: 0 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch; /* Changed from center */
    gap: 1rem;
    padding: 0 2rem;
  }
  
  .btn {
    width: 100%;
    max-width: none; /* Remove max-width restriction */
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .class-card, .solution-card, .resource-card {
    margin: 0 1rem;
    border-radius: 15px;
  }
  
  .class-header {
    padding: 1.5rem 1rem;
  }
  
  .class-content {
    padding: 1.5rem 1rem;
  }
  
  .subjects-list {
    grid-template-columns: repeat(2, 1fr); /* Better than auto-fit */
    gap: 0.5rem;
  }
  
  .subject-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    text-align: center;
  }
}

/* Improved mobile navigation */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
    backdrop-filter: blur(25px);
  }
  
  .mobile-menu {
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
    margin: 0 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  
  .mobile-nav-links a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .search-controls {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .search-controls > div {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
  }
  
  .search-controls label {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  
  .search-controls select {
    font-size: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .search-btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .content-list {
    max-height: 400px;
    border-radius: 15px;
  }
  
  .content-list li {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .download-btn {
    align-self: flex-end;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .team-card {
    margin: 0 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .team-avatar-image {
    width: 80px;
    height: 80px;
  }
  
  .team-name {
    font-size: 1.3rem;
  }
  
  .team-bio {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 1rem 2rem;
  }
  
  .social-links {
    justify-content: space-around;
    max-width: 300px;
    margin: 0 auto 2rem;
  }
  
  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .contact-form {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  .submit-btn {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .whatsapp-options {
    flex-direction: row;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .whatsapp-btn {
    flex: 1;
    min-width: 140px;
    max-width: 160px;
    justify-content: center;
    font-size: 0.9rem;
  }
}

/* Better touch targets */
@media (max-width: 768px) {
  .class-card, .solution-card, .resource-card {
    min-height: 48px; /* Minimum touch target */
  }
  
  .nav-links a, .mobile-nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Professional loading */
@media (max-width: 768px) {
  .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
}

