/* ===== GLOBAL VARIABLES ===== */
:root {
    /* Advanced HSL Design System */
    --p-h: 161;
    --p-s: 94%;
    --p-l: 30%;
    --primary: #10b981;
    --primary-light: rgba(16, 185, 129, 0.15);
    --primary-muted: #059669;

    /* Color Aliases */
    --primary-green: #10b981;
    --primary-dark: #047857;
    --accent-teal: #14b8a6;

    --secondary: #f8fafc;
    /* Title Text */
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.4);

    /* Text Colors */
    --text-muted: #94a3b8;
    --text-dark: #e2e8f0;

    /* Backgrounds */
    --bg-main: #020617;
    /* Slate 950 Deep Dark */
    --bg-white: rgba(15, 23, 42, 0.85);
    /* Slate 900 Glass */
    --bg-gray: #0f172a;
    /* Slate 900 */
    --bg-glass: rgba(15, 23, 42, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Enhanced Shadow System for Deep Elevation */
    --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6);
    --shadow-premium: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 80px -15px rgba(0, 0, 0, 0.7);
    --shadow-3d: 0 30px 60px -12px rgba(16, 185, 129, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 40px rgba(16, 185, 129, 0.4);

    /* Advanced Color System */
    --grad-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --grad-mesh: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.15) 0, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.1) 0, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 1) 0, transparent 100%);
    --grad-glass: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.4));

    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Footer Variables */
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
}

/* Premium Image Styling */
.premium-img-large {
    border-radius: 32px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    width: 100%;
    display: block;
    object-fit: cover;
}

.premium-img-large:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 0 2px var(--primary);
}

/* Spectrum Sync: High-Fidelity Light Mode Overrides */
.light-mode {
    --bg-main: #f0f9f6;
    --bg-white: #ffffff;
    --bg-gray: #f8fafb;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --secondary: #0f172a;
    /* Deep Navy for headings */
    --text-muted: #475569;
    --text-dark: #0f172a;
    --border-glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.03);

    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.12);
    --shadow-premium: 0 20px 40px rgba(16, 185, 129, 0.15);

    /* Button Specifics for Light Mode */
    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #059669;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.light-mode body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.04), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(20, 184, 166, 0.04), transparent 40%),
        linear-gradient(180deg, #f0f9f6 0%, #ffffff 100%);
    color: #475569;
}

.light-mode .card,
.light-mode .glass,
.light-mode .stat-box,
.light-mode .ca-card,
.light-mode .video-card,
.light-mode .mock-card,
.light-mode .exam-cat-card,
.light-mode .course-card,
.light-mode .pdf-card,
.light-mode .lesson-card,
.light-mode .profile-card,
.light-mode .activity-card,
.light-mode .action-card,
.light-mode .testimonial-card,
.light-mode .feature-card,
.light-mode .plan-card,
.light-mode .bookmark-card,
.light-mode .pricing-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 40px -15px rgba(15, 23, 42, 0.08) !important;
}

.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode .hero-title,
.light-mode .section-header h2 {
    color: #0f172a !important;
}

.light-mode .btn-secondary {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .mock-start-btn {
    background: var(--grad-primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25) !important;
    opacity: 1 !important;
}

.light-mode .mock-start-btn span,
.light-mode .mock-start-btn i {
    color: white !important;
}

.light-mode .mock-meta .meta-item,
.light-mode .mock-meta i {
    color: #475569 !important;
}

.light-mode .mock-title {
    color: #0f172a !important;
}

.light-mode .btn-secondary:hover {
    background: #f0fdf4 !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.1) !important;
}

/* Theme Toggle Component Style */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    transform: scale(1.1) rotate(12deg);
    border-color: var(--primary-light);
}

.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

.light-mode .theme-toggle:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

/* Specific Component Overrides for Light Mode */
.light-mode .hero h1 span {
    -webkit-text-fill-color: #059669 !important;
    color: #059669 !important;
    filter: none !important;
}

.light-mode .nav-item,
.light-mode .logo-text,
.light-mode .ticker-wrap,
.light-mode .ticker-title {
    color: #0f172a !important;
}

.light-mode .nav-item i {
    color: #64748b !important;
}

.light-mode nav {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.light-mode nav.scrolled {
    background: #ffffff !important;
}

.light-mode .mobile-nav-panel {
    background: #f8fafc !important;
}

.light-mode .mobile-nav-content a {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.light-mode .badge {
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

/* Light Mode Modal & Form Refinements */
.light-mode .modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 25px 80px -20px rgba(15, 23, 42, 0.15) !important;
}

.light-mode .modal h2 {
    color: #0f172a !important;
    font-size: 2.2rem !important;
    letter-spacing: -1px !important;
}

.light-mode .form-group label {
    color: #1e293b !important;
}

.light-mode .form-group input {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

.light-mode .form-group input::placeholder {
    color: #94a3b8 !important;
}

.light-mode .form-group input:focus {
    background: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.light-mode .social-divider {
    color: #64748b !important;
}

.light-mode .social-divider::before,
.light-mode .social-divider::after {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.light-mode .google-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}

.light-mode .google-btn:hover {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.light-mode .modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.light-mode .modal-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

/* ===== BASE RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(20, 184, 166, 0.08), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(2, 6, 23, 1), transparent 100%);
    background-attachment: fixed;
    color: var(--secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease, background-image 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== GOVLEARN TYPOGRAPHY SYSTEM ===== */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
}

h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    margin-bottom: 24px;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Spacing Helpers */
.mt-16 {
    margin-top: 16px;
}

.mt-32 {
    margin-top: 32px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* ===== ADVANCED ANIMATIONS ===== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(100%) skewX(-15deg);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }

    80% {
        opacity: 1;
        transform: scale(0.89);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zoom-in {
    opacity: 0;
    animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

/* Glassmorphism Utility */
.glass {
    background: var(--grad-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-premium {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.card-premium:hover::after {
    left: 100%;
}

.hover-3d {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(5, 150, 105, 0.4);
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
    outline: none !important;
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3) !important;
    transform: none !important;
    filter: none !important;
}

@media (hover: none),
(pointer: coarse) {
    .btn-primary:hover {
        transform: none !important;
        box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3) !important;
    }
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

/* ===== TICKER ===== */
.ticker-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1002;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.ticker-title {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.70rem;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}

.ticker-title::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    height: 100%;
    width: 20px;
    background: inherit;
    transform: skewX(-20deg);
    z-index: -1;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
    padding-left: 20px;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.ticker-item span {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(52, 211, 153, 0.3);
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}


@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    display: none;
    justify-content: center;
    align-items: flex-start;
    /* Fix for top cut-off on small screens */
    z-index: 10000;
    padding: 60px 20px;
    /* Increased vertical padding for breathing room */
    overflow-y: auto;
}

.modal {
    background: var(--bg-white);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    /* Slightly reduced for better mobile fit */
    border-radius: 32px;
    margin: auto;
    /* This centers it when it fits, and respects padding when it doesn't */
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: modal-entry 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-entry {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    transform: scale(1.1) rotate(90deg);
}

/* ===== GLOBAL FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    color: var(--secondary);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-glass);
}

.social-divider::before {
    margin-right: 12px;
}

.social-divider::after {
    margin-left: 12px;
}

.google-btn {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
}

.google-btn::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/c/c1/Google_%22G%22_logo.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.4s ease;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(16, 185, 129, 0.1);
}

.google-btn:hover::before {
    transform: scale(1.1) rotate(5deg);
}

.google-btn:active {
    transform: translateY(0) scale(0.98);
}

.light-mode .google-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.light-mode .google-btn:hover {
    background: #f8fafc !important;
    border-color: #10b981 !important;
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.15) !important;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== GLOBAL RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===== PREMIUM GRID & CARD SYSTEM (2026) ===== */

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.25;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes border-glow-chase {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

@keyframes reveal-lead {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-glow-pulse {
    animation: pulse-glow 8s ease-in-out infinite;
}

#mock-test-container .grid-3,
#materials-container .grid-3,
#videos-container .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    justify-content: center;
    perspective: 1000px;
}

.mock-card {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: rgba(30, 41, 59, 0.45);
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.mock-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 41, 59, 0.65);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
}

.mock-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.mock-card:hover::before {
    animation: border-glow-chase 1.5s infinite;
}

.mock-card:hover .mock-icon-wrap i {
    animation: float-icon 2s ease-in-out infinite;
}

.mock-category-tag {
    position: absolute;
    top: 24px;
    right: 28px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    z-index: 2;
}

.mock-icon-wrap {
    width: 62px;
    height: 62px;
    background: var(--grad-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
    margin-bottom: 8px;
}

.mock-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.35;
    margin: 0;
}

.mock-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item i {
    color: var(--primary);
    font-size: 1rem;
}

.mock-start-btn {
    margin-top: auto;
    padding: 18px;
    border: none;
    border-radius: 18px;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.mock-start-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mock-start-btn span,
.mock-start-btn i {
    position: relative;
    z-index: 1;
}

.mock-card:hover .mock-start-btn {
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.mock-card:hover .mock-start-btn::before {
    opacity: 1;
}

/* --- Global Premium Filter Tabs --- */
.mat-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 100px;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mat-tab {
    padding: 12px 28px;
    background: transparent;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.mat-tab:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.mat-tab.active {
    background: var(--grad-primary);
    color: white !important;
    box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .mat-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        width: calc(100% + 48px) !important;
        margin-left: -24px !important;
        margin-right: -24px !important;
        padding: 8px 16px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        -ms-overflow-style: none;
        /* IE/Edge */
        scrollbar-width: none;
        /* Firefox */
        gap: 8px !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .mat-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .mat-tab {
        flex: 0 0 auto !important;
        width: auto !important;
        text-align: center;
        border-radius: 12px !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .mat-tab.active {
        background: var(--grad-primary) !important;
        border-color: transparent !important;
        color: white !important;
        box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.4) !important;
    }
}

/* ===== OTP VERIFICATION UI ===== */
.otp-input-wrapper {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    margin: 32px 0 !important;
    width: 100% !important;
}

.otp-digit {
    width: 50px !important;
    height: 60px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    line-height: 60px !important;
    display: inline-block !important;
}

.otp-digit:focus {
    border-color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) !important;
    outline: none !important;
    transform: scale(1.1);
}

.light-mode .otp-digit {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.light-mode .otp-digit:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
}

@media (max-width: 480px) {
    .otp-input-wrapper {
        gap: 8px !important;
    }

    .otp-digit {
        width: 42px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
        line-height: 52px !important;
    }
}