/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --primary: #6366f1;       /* Indigo */
    --primary-dark: #4f46e5;
    --secondary: #d946ef;     /* Fuchsia */
    --accent: #06b6d4;        /* Cyan */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #1e293b;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --blur-strength: 20px;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* Fallback */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* =========================================
   2. ANIMATED BACKGROUND
   ========================================= */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #0f172a;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float-shape 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    animation-duration: 25s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation-duration: 20s;
    opacity: 0.3;
}

@keyframes float-shape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* =========================================
   3. UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Default Glass Card (Base Style) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: white;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Specific style for Hero floating card (Kept from your code) */
.hero-image .glass-card {
    width: 250px;
    margin: 0 auto;
    text-align: center;
}

.hero-image .glass-card.floating {
    animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #818cf8 0%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    border: 1px solid transparent;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* =========================================
   6. FEATURES GRID & PAGE SECTIONS
   ========================================= */
.features, .test-preview, .resources-section, .test-overview, .test-sections, .scoring-system, .prep-tips {
    padding: 100px 0;
}

/* Shared Page Header Style */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ---- FIXED ALIGNMENTS BEGIN HERE ---- */

/* 1. Test Overview (4 Columns) */
.overview-card h2 {
    text-align: center;
    margin-bottom: 40px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Equal Columns */
    gap: 24px;
    text-align: center;
}

.overview-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.overview-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.overview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* 2. Test Sections (Vertical Stack) */
.sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-card {
    /* Remove the fixed width 250px from general glass-card */
    width: 100% !important; 
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    text-align: left; /* Override center align */
    align-items: start;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto;
}

.section-body h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: white;
}

.section-meta {
    display: flex;
    gap: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 3. Scoring System (3 Columns) */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Equal Columns */
    gap: 30px;
}

.scoring-card {
    width: 100% !important; /* Override 250px limit */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.score-range {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.score-list {
    list-style: none;
    text-align: left;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--radius-md);
}

.score-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* 4. Prep Tips (Grid) */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tip-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-fast);
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

/* =========================================
   7. FORMS (Booking & Contact)
   ========================================= */
.booking-section, .contact-section {
    padding: 120px 0;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control, input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

select option {
    background-color: #0f172a;
    color: white;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px auto;
    max-width: var(--container-width);
    text-align: center;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-actions {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Alignment fixes for tablet */
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .scoring-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0f172a;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
        z-index: 999;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .mobile-toggle { display: flex; }

    .hero-title { font-size: 2.5rem; }
    
    /* Alignment fixes for mobile */
    .form-row, .footer-grid, .overview-grid, .scoring-grid {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .section-meta {
        flex-direction: column;
        align-items: center;
    }
.logo {
    display: flex;
    align-items: center; /* Vertically centers icon with text */
    text-decoration: none;
    color: white;
    font-weight: 800;
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-accent {
    color: var(--primary); /* Keeps the 'Guru' blue/indigo */
}
/* Style for the Login link in nav */
.btn-login-nav {
    background: rgba(99, 102, 241, 0.2); /* Subtle Indigo background */
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #fff !important; /* Force white text */
    padding: 6px 16px !important; /* Override default padding */
    border-radius: 8px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-login-nav:hover {
    background: #6366f1; /* Solid Indigo on hover */
    border-color: #6366f1;
    transform: translateY(-1px);
}


}
