/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-yellow: #ffe88e;
    --secondary-blue: #4ECDC4;
    --accent-red: #FF6B6B;
    --accent-pink: #FF6B9D;
    --accent-green: #6BCB77;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-dark: #2C2C2C;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



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

/* Visibility Utilities */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Professional Dark Grey / Charcoal */
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-screen.exit {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(10px);
    pointer-events: none;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Scroll Lock during loading */
body.loading-lock {
    overflow: hidden;
    height: 100vh;
}

.logo-animation {
    text-align: center;
}

.animated-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Notebook animation */
.notebook {
    animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lines appearing one by one */
.line-1 {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: drawLine 0.5s ease-out 0.8s forwards;
}

.line-2 {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: drawLine 0.5s ease-out 1.1s forwards;
}

.line-3 {
    stroke-dasharray: 75;
    stroke-dashoffset: 75;
    animation: drawLine 0.5s ease-out 1.4s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Pen writing animation */
.pen {
    animation: penWrite 2s ease-in-out 0.5s infinite;
    transform-origin: 160px 40px;
}

@keyframes penWrite {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-20px, 10px) rotate(-15deg);
    }

    50% {
        transform: translate(-10px, 30px) rotate(-10deg);
    }

    75% {
        transform: translate(-15px, 50px) rotate(-12deg);
    }
}

.writing-dot {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0;
        r: 3;
    }

    50% {
        opacity: 1;
        r: 5;
    }
}

/* Sparkles */
.sparkles {
    animation: fadeIn 0.5s ease-out 1.5s forwards;
    opacity: 0;
}

.sparkle-1,
.sparkle-2,
.sparkle-3 {
    animation: twinkle 1.5s ease-in-out infinite;
}

.sparkle-2 {
    animation-delay: 0.5s;
}

.sparkle-3 {
    animation-delay: 1s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Brand name with letter animation */
.brand-name {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    letter-spacing: 0.5rem;
    position: relative;
}

/* Typewriter Caret Effect */
.brand-name::after {
    content: '|';
    color: var(--primary-yellow);
    font-weight: 300;
    animation: caretBlink 0.8s step-end infinite;
    margin-left: 1rem;
}

/* Hide caret once text is typed */
.loading-screen.exit .brand-name::after {
    display: none;
}

@keyframes caretBlink {
    50% {
        opacity: 0;
    }
}

.brand-name .letter {
    display: inline-block;
    animation: typewriterLetter 0.1s forwards;
    opacity: 0;
}

.brand-name .letter:nth-child(1) {
    animation-delay: 0.2s;
}

.brand-name .letter:nth-child(2) {
    animation-delay: 0.35s;
}

.brand-name .letter:nth-child(3) {
    animation-delay: 0.5s;
}

.brand-name .letter:nth-child(4) {
    animation-delay: 0.65s;
}

.brand-name .letter:nth-child(5) {
    animation-delay: 0.8s;
}

.brand-name .letter:nth-child(6) {
    animation-delay: 0.95s;
}

.brand-name .letter:nth-child(7) {
    animation-delay: 1.1s;
}

.brand-name .letter:nth-child(8) {
    animation-delay: 1.25s;
}

@keyframes typewriterLetter {
    0% {
        opacity: 0;
        transform: translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-tagline {
    color: var(--primary-yellow);
    font-size: 0.85rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.8;
    /* Subtle for hierarchy */
}

.tag-letter {
    display: inline-block;
    opacity: 0;
    animation: typewriterLetter 0.05s forwards;
}

/* Sequential delays for tagline (Starting after NOTEPREP) */
.tag-letter:nth-child(1) {
    animation-delay: 1.6s;
}

.tag-letter:nth-child(2) {
    animation-delay: 1.65s;
}

.tag-letter:nth-child(3) {
    animation-delay: 1.7s;
}

.tag-letter:nth-child(4) {
    animation-delay: 1.75s;
}

.tag-letter:nth-child(5) {
    animation-delay: 1.8s;
}

.tag-letter:nth-child(6) {
    animation-delay: 1.85s;
}

.tag-letter:nth-child(7) {
    animation-delay: 1.9s;
}

.tag-letter:nth-child(8) {
    animation-delay: 1.95s;
}

.tag-letter:nth-child(9) {
    animation-delay: 2.0s;
}

.tag-letter:nth-child(10) {
    animation-delay: 2.05s;
}

.tag-letter:nth-child(11) {
    animation-delay: 2.1s;
}

.tag-letter:nth-child(12) {
    animation-delay: 2.15s;
}

.tag-letter:nth-child(13) {
    animation-delay: 2.2s;
}

.tag-letter:nth-child(14) {
    animation-delay: 2.25s;
}

.tag-letter:nth-child(15) {
    animation-delay: 2.3s;
}

.tag-letter:nth-child(16) {
    animation-delay: 2.35s;
}

.tag-letter:nth-child(17) {
    animation-delay: 2.4s;
}

.tag-letter:nth-child(18) {
    animation-delay: 2.45s;
}

.tag-letter:nth-child(19) {
    animation-delay: 2.5s;
}

.tag-letter:nth-child(20) {
    animation-delay: 2.55s;
}

.tag-letter:nth-child(21) {
    animation-delay: 2.6s;
}

.tag-letter:nth-child(22) {
    animation-delay: 2.65s;
}

.tag-letter:nth-child(23) {
    animation-delay: 2.7s;
}

.tag-letter:nth-child(24) {
    animation-delay: 2.75s;
}

.tag-letter:nth-child(25) {
    animation-delay: 2.8s;
}

.tag-letter:nth-child(26) {
    animation-delay: 2.85s;
}

.tag-letter:nth-child(27) {
    animation-delay: 2.9s;
}

.tag-letter:nth-child(28) {
    animation-delay: 2.95s;
}

/* Progress bar */
.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-yellow);
    width: 0;
    animation: loadProgress 4s ease-out forwards;
    border-radius: 10px;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}

/* ===== AUTH MODAL ===== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.auth-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.close-modal:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: rotate(90deg);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-form h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-container input {
    cursor: pointer;
}

.forgot-password {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: var(--accent-red);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-green));
    color: var(--white);
    margin-bottom: 1rem;
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.auth-btn.google {
    background: var(--white);
    border: 2px solid #E0E0E0;
    color: var(--text-dark);
}

.auth-btn.google:hover {
    border-color: var(--secondary-blue);
    background: var(--bg-light);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #E0E0E0;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.auth-switch a:hover {
    color: var(--accent-red);
}

/* ===== HEADER ===== */
.header {
    background: var(--primary-yellow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Paper Airplane Floating Logic */
.paper-airplane-float {
    animation: floatingAirplane 3s ease-in-out infinite;
}

@keyframes floatingAirplane {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Main Header Content - Grid for Perfect Centering */
.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem 0;
    width: 100%;
}

/* Center section - Logo with illustrations */
.header-center {
    grid-column: 2;
    display: flex;
    justify-content: center;
    /* Removed flex: 1 to prevent taking up extra space */
}

.logo-link {
    text-decoration: none;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.illustration-left,
.illustration-right {
    animation: float 3s ease-in-out infinite;
}

.illustration-right {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.brand {
    text-align: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: -2px;
    /* Compensate for letter-spacing on the last character */
}

.tagline {
    font-size: 0.9rem;
    font-style: normal;
    color: #000;
    /* Force tagline to black across all themes */
    margin-top: 0.25rem;
}

/* Right section */
.header-right {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: 2px solid var(--text-dark);
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-btn:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== NAVIGATION (Centered) ===== */
.nav {
    padding: 0.75rem 0;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.nav .container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1e3a8a;
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #1e3a8a;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-close-item {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #4B5563;
    /* Lighter grey for better visual balance */
    border-radius: 2px;
    transition: all var(--transition-fast);
}


/* ===== HERO SECTION ===== */
.hero {
    padding: 8rem 0 5.1rem;
    /* Reduced bottom padding by 15% */
    /* Top padding reduced by 20% from 10rem */
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: visible;
    margin-top: 140px;
    /* Account for fixed header */
}



.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    transform: translateY(-2%);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-left: 35%;
    /* Shifted right by an additional 10% */
}

.hero-subtitle {
    margin-bottom: 2rem;
    line-height: 1.6;
    margin-left: 20%;
}

.subtitle-line-1 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.subtitle-line-1::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -2%;
    width: 104%;
    height: 12px;
    background: rgba(255, 232, 142, 0.5);
    /* subtle primary-yellow highlight */
    z-index: -1;
    border-radius: 4px;
}

.subtitle-line-2 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.57rem;
    font-style: italic;
    font-weight: 700;
    display: inline-block;
    margin-left: -25%;
    white-space: nowrap;
    /* Faster typewriter animation, writes, waits 1s, erases to left, restarts */
    clip-path: inset(0 100% 0 0);
    animation: typeRevealInfinite 4s infinite;
}

@keyframes typeRevealInfinite {
    0% {
        clip-path: inset(0 100% 0 0);
        animation-timing-function: steps(37, end);
    }

    30% {
        /* Types out in ~1.2 seconds */
        clip-path: inset(0 0 0 0);
        animation-timing-function: linear;
    }

    55% {
        /* Stays on screen for ~1 second */
        clip-path: inset(0 0 0 0);
        animation-timing-function: steps(37, end);
    }

    85% {
        /* Erases backwards in ~1.2 seconds */
        clip-path: inset(0 100% 0 0);
        animation-timing-function: linear;
    }

    100% {
        /* Brief pause before restarting */
        clip-path: inset(0 100% 0 0);
    }
}

.highlight {
    color: var(--secondary-blue);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(78, 205, 196, 0.2);
    z-index: -1;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn.primary {
    background: var(--text-dark);
    color: var(--white);
    border: 2px solid var(--text-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn.primary:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(78, 205, 196, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid rgba(44, 62, 80, 0.2);
}

.cta-btn.secondary:hover {
    background: rgba(44, 62, 80, 0.05);
    border-color: var(--text-dark);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Stats Counter */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-blue);
    font-family: var(--font-heading);
}

.stat-number::after {
    content: '+';
    margin-left: 2px;
}

.stat-number.stat-no-plus::after {
    content: '+';
}

.stat-number.stat-percent::after {
    content: '%';
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.illustration-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.illustration-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.main-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 1;
}

/* Illustration animations */
.code-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    50.1%,
    100% {
        opacity: 0;
    }
}

.books-stack .book {
    animation: stackBounce 3s ease-in-out infinite;
}

.book-1 {
    animation-delay: 0s;
}

.book-2 {
    animation-delay: 0.2s;
}

.book-3 {
    animation-delay: 0.4s;
}

@keyframes stackBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.floating-element {
    animation: floatAround 6s ease-in-out infinite;
}

.float-1 {
    animation-delay: 0s;
}

.float-2 {
    animation-delay: 2s;
}

.float-3 {
    animation-delay: 4s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.25);
        /* Boosted travel and scale */
    }

    66% {
        transform: translate(-25px, 25px) scale(0.85);
    }
}

/* New Hero Raster Image */
.hero-raster-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    /* Clean, modern asymmetric polygon cutout */
    clip-path: polygon(5% 0%, 100% 5%, 95% 100%, 0% 95%);
    border-radius: 16px;
    mix-blend-mode: multiply;
    /* Removes white background from mp4 */
    transform: scale(1.55) translateY(-5%);
    /* Zoomed in by 30% and shifted up by 5% */
    animation: heroImageSmoothFloat 6s ease-in-out infinite;
    transition: clip-path 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-raster-image:hover {
    clip-path: polygon(2% 2%, 98% 2%, 98% 98%, 2% 98%);
    transform: scale(1.6) translateY(-5%);
}

@keyframes heroImageSmoothFloat {

    0%,
    100% {
        transform: scale(1.55) translateY(-5%);
    }

    50% {
        transform: scale(1.55) translateY(-8%);
    }
}

/* Maintain soft drop shadow on the wrapper so the clipped image casts a shadow */
.illustration-container {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}


/* ===== FEATURES SHOWCASE ===== */
.features-showcase {
    padding: 2rem 0 1.7rem;
    /* Reduced bottom padding by 15% contribution */
    margin-top: -0.5rem;
    /* Reduced gap between hero and features */
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 0;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 217, 61, 0.2);
    border: 1px solid rgba(255, 217, 61, 0.5);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.features-badge {
    font-size: 1.2rem !important;
    /* Even bigger */
    letter-spacing: 6px !important;
    /* Even broader */
    margin-top: -4rem !important;
    /* Shifted upwards by another 10% nudge */
    padding: 0.6rem 2.5rem !important;
}

.features-title {
    font-size: 3.5rem !important;
    /* Bigger */
    font-weight: 900 !important;
    /* Bolder */
    white-space: nowrap;
    /* One single line */
    text-transform: uppercase;
    /* All capitals */
    margin-top: 25px;
    /* 25px vertical gap from badge */
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 240px;
    margin: 1.5rem 0 0;
    /* Added 24px space above carousel */
    perspective: 1500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 180px;
    margin-top: -90px;
    margin-left: -210px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: curvedCarousel 25s linear infinite;
    transform-style: preserve-3d;
}

.carousel-container:hover .carousel-item {
    animation-play-state: paused;
}

.carousel-card {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    text-align: left;
    /* Changed to left for landscape feel */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    align-items: center;
    /* Side-by-side flex layout */
    gap: 1.5rem;
    backface-visibility: hidden;
}

.carousel-info {
    flex: 1;
}

.carousel-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.4s ease;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-icon svg {
    width: 32px;
    height: 32px;
}

/* Eye-catchy Icon Backgrounds & Glows */
.icon-notes {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.icon-resources {
    background: #f0fdf4 !important;
    border-color: #dcfce7 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.icon-students {
    background: #fef2f2 !important;
    border-color: #fee2e2 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.icon-clarity {
    background: #f0fdfa !important;
    border-color: #ccfbf1 !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.1);
}

.icon-confidence {
    background: #fffbeb !important;
    border-color: #fef3c7 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.carousel-card:hover .carousel-icon {
    transform: scale(1.1) rotate(5deg);
}

.carousel-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    /* Matching theme without bolding */
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.carousel-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
    font-weight: 400;
}

/* Staggered starts for 5 items in a 25s loop (5s interval) */
.item-1 {
    animation-delay: 0s;
}

.item-2 {
    animation-delay: -5s;
}

.item-3 {
    animation-delay: -10s;
}

.item-4 {
    animation-delay: -15s;
}

.item-5 {
    animation-delay: -20s;
}

/* 5-Stage Curved Motion: Center -> Left Front -> Left Back -> Right Back -> Right Front -> Center */
@keyframes curvedCarousel {
    0% {
        transform: translate3d(0, 0, 100px) scale(1.1);
        z-index: 10;
        opacity: 1;
    }

    20% {
        transform: translate3d(-350px, -20px, 0) scale(0.9);
        z-index: 5;
        opacity: 0.8;
    }

    40% {
        transform: translate3d(-500px, -40px, -200px) scale(0.7);
        z-index: 1;
        opacity: 0.4;
    }

    60% {
        transform: translate3d(500px, -40px, -200px) scale(0.7);
        z-index: 1;
        opacity: 0.4;
    }

    80% {
        transform: translate3d(350px, -20px, 0) scale(0.9);
        z-index: 5;
        opacity: 0.8;
    }

    100% {
        transform: translate3d(0, 0, 100px) scale(1.1);
        z-index: 10;
        opacity: 1;
    }
}

/* Removed grid fallback for carousel to preserve 3D effect on mobile */



/* ===== PROCESS FLOW (Fluid Journey Redesign) ===== */
.process-flow {
    padding: 6.8rem 0 0;
    background: #F8F9FA;
    position: relative;
}

.journey-wrapper {
    display: flex;
    flex-direction: column;
    gap: calc(8.5rem - 52px);
    /* Structural gap adjusted for tighter vertical rhythm */
    position: relative;
    z-index: 1;
}

/* Journey Graphic Row Layout */
.journey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    /* Safe clearance from text */
    width: 100%;
}

.journey-row.row-3 {
    margin-top: calc(8rem - 10px);
    position: relative;
    z-index: 2;
    transform: translateY(-10%);
}

.step-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: translateY(-95px);
    /* Shifted up by another 50px for ample Step 2 clearance */
}

.journey-row.row-3 .step-graphic {
    transform: translateY(-125px);
    /* Moved down by 10px from -135px */
}

/* Laptop Mockup Styling */
/* 3D Device Enhancement */
.laptop-mockup.pop-3d {
    width: 387px;
    /* Further increased 10% from 352px */
    position: relative;
    perspective: 1500px;
    transform: perspective(1500px) rotateY(-20deg) rotateX(10deg) scale(1.2);
    /* Bolder base scale */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-step:hover+.step-graphic .laptop-mockup.pop-3d {
    transform: perspective(1500px) rotateY(-14deg) rotateX(7deg) scale(1.35);
    /* Amplified hover scale */
}

.laptop-screen {
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    padding: 6px;
    position: relative;
    /* Soft, multi-layered 3D shadow */
    box-shadow:
        20px 30px 50px rgba(0, 0, 0, 0.15),
        -5px 0 15px rgba(0, 0, 0, 0.05);
}

.screen-header {
    background: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    border-radius: 3px 3px 0 0;
}

.screen-header h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.screen-content {
    background: #fff;
    height: 150px;
    /* Adjusted for header height */
    border-radius: 0 0 3px 3px;
    overflow: hidden;
    position: relative;
}

.laptop-base {
    height: 12px;
    background: #2a2a2a;
    border-radius: 0 0 20px 20px;
    position: relative;
    transform: translateZ(10px);
}

/* Scrolling List Refinement */
.subject-scroll {
    display: flex;
    flex-direction: column;
    animation: scrollVertical 25s linear infinite;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 0.5px solid #f0f0f0;
    font-size: 0.72rem;
    color: #444;
}

.view-btn {
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    border: 0.5px solid #eee;
    padding: 2px 6px;
    border-radius: 3px;
}

@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Essentials Preview (Step 2 Graphic) - Horizontal Refinement */
.essentials-preview.pop-3d {
    width: 387px;
    /* Further increased 10% from 352px */
    background: #fff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid #f0f0f0;
    perspective: 1500px;
    transform: perspective(1500px) rotateY(20deg) rotateX(8deg) scale(1.2);
    /* Bolder base scale */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        -30px 40px 70px rgba(0, 0, 0, 0.15),
        5px 0 15px rgba(0, 0, 0, 0.03);
}

.essentials-header {
    background: #1a1a1a;
    padding: 12px 15px;
    border-bottom: 2px solid #2d3436;
}

.essentials-header h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 2px;
    letter-spacing: 0.5px;
}

.essentials-sub {
    color: #999;
    font-size: 0.6rem;
    margin: 0;
    font-style: italic;
}

.essentials-slider {
    padding: 20px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.essentials-track {
    display: flex;
    gap: 12px;
    padding: 0 15px;
    animation: scrollHorizontal 25s linear infinite;
    width: max-content;
}

.essentials-card {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #2d3436;
    /* Deep Navy/Charcoal */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.essentials-card span {
    font-size: 0.6rem;
    font-weight: 600;
    color: #444;
    line-height: 1.1;
    display: block;
    height: 2.2em;
    overflow: hidden;
}

/* Professional Accent Colors (No Yellow) */
.essentials-card:nth-child(3n+1) .card-icon {
    color: #0984e3;
    background: #e1f5fe;
    border-color: #b3e5fc;
}

/* Soft Blue */
.essentials-card:nth-child(3n+2) .card-icon {
    color: #00b894;
    background: #e8f8f5;
    border-color: #c2f0e8;
}

/* Muted Teal */
.essentials-card:nth-child(3n+3) .card-icon {
    color: #2d3436;
    background: #f1f2f6;
    border-color: #dcdde1;
}

/* Charcoal Navy */

@keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 6px));
    }

    /* Infinite loop logic */
}

/* Essentials Footer & Stats */
.essentials-footer {
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    padding: 10px 15px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.stat-item:not(:last-child) {
    border-right: 1px solid #eee;
}

.stat-item strong {
    font-size: 0.75rem;
    color: #2d3436;
    font-weight: 700;
}

.stat-item span {
    font-size: 0.55rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Accent for Stats (matching slideshow) */
.stat-item:nth-child(1) strong {
    color: #0984e3;
}

.stat-item:nth-child(2) strong {
    color: #00b894;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    max-width: 700px;
    position: relative;
}

/* Asymmetrical alignment */
.journey-step.step-1 {
    align-self: flex-start;
}

.journey-step.step-2 {
    align-self: flex-end;
    flex-direction: row-reverse;
    text-align: right;
    padding-right: 2.5rem;
    /* Nudge heading/text left away from the number */
}

.journey-step.step-3 {
    align-self: flex-start;
    padding-left: 2.5rem;
    /* Nudge heading/text right away from the number */
}

.step-bg-number {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 11rem;
    font-weight: 800;
    color: #f87171;
    /* Pastel Red */
    opacity: 0.45;
    /* Matched to previous hover opacity */
    z-index: -1;
    user-select: none;
    line-height: 1;
    transition: all 0.4s ease;
}

.step-1 .step-bg-number {
    top: -80px;
    left: -100px;
    /* Moved further left to avoid overlap */
}

.step-2 .step-bg-number {
    top: -80px;
    right: -100px;
    /* Moved further right to avoid overlap */
}

.step-3 .step-bg-number {
    top: -80px;
    left: -100px;
    /* Moved further left to avoid overlap */
}

/* 3D Victory Moment Scene Redesign */
.victory-scene {
    position: relative;
    width: 340px;
    height: 440px;
    perspective: 2500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: sceneEntrance 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.victory-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s;
}

.exam-paper-landed .victory-glow {
    opacity: 1;
    transition-delay: 1.2s;
}


.victory-announcement {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    z-index: 10;
}

.passed-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 950;
    color: #ef4444;
    margin: 0;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.passed-text::after {
    content: '|';
    margin-left: 5px;
    color: #ef4444;
    animation: blinkCursor 0.8s step-end infinite;
}

.passed-text.hide-cursor::after {
    display: none;
}

.passed-text.bounce-pop {
    animation: textBouncePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.victory-subheading {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0.5rem;
    white-space: nowrap;
}

@keyframes blinkCursor {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes textBouncePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes subheaderFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.exam-paper {
    position: relative;
    width: 300px;
    height: 324px;
    background: #fff;
    border-radius: 8px;
    transform-style: preserve-3d;
    transform: rotateY(12deg) rotateX(6deg);
    padding: 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: floatInfinite 6s ease-in-out infinite 1.2s;
    overflow: hidden;
}

.paper-inner-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.8) 50%, transparent 55%);
    background-size: 300% 300%;
    animation: shimmerEffect 4s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.paper-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    opacity: 0.1;
}

.paper-lines .line {
    height: 4px;
    background: #1e3a8a;
    /* Deep Royal Blue */
    border-radius: 2px;
}

.paper-lines .line.short {
    width: 60%;
}

.victory-score {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateZ(40px);
}

.emoji-trophy-container {
    position: absolute;
    top: calc(55% + 10px);
    right: 5px;
    width: 50%;
    transform: translateY(-50%) translateZ(60px) rotateZ(8deg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.emoji-trophy {
    font-size: 7.5rem;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2)) saturate(0.9) brightness(0.95);
    position: relative;
    z-index: 2;
}

.trophy-shadow {
    position: absolute;
    bottom: -15px;
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    border-radius: 50%;
    z-index: 1;
    transform: rotateX(70deg);
}

.spark-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.spark {
    position: absolute;
    font-size: 1.5rem;
    color: #fcd34d;
    opacity: 0;
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.8);
}

.s1 {
    top: -5%;
    left: 20%;
}

.s2 {
    top: 30%;
    right: -5%;
    font-size: 1rem;
}

.s3 {
    bottom: 20%;
    left: -10%;
    font-size: 1.2rem;
}

.exam-paper-landed .spark {
    animation: sparkFloat 3s ease-in-out infinite 4.0s;
}

.grade-wrapper {
    position: relative;
    display: inline-block;
}

.score-grade {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    /* Emerald to Blue */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grade-shimmer {
    position: absolute;
    top: -20%;
    left: -150%;
    width: 100%;
    height: 140%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(25deg);
    animation: sweepEffect 4s ease-in-out infinite 3.5s;
    pointer-events: none;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #475569;
    margin-top: -0.25rem;
    letter-spacing: 1px;
}

.paper-shadow {
    position: absolute;
    bottom: -50px;
    width: 85%;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, transparent 80%);
    filter: blur(15px);
    border-radius: 50%;
    transform: rotateX(80deg);
    opacity: 0;
}

.exam-paper-landed .paper-shadow {
    animation: shadowPulse 6s ease-in-out infinite 1.2s, fadeIn 1s ease-out forwards 1.2s;
}



/* Enhanced Keyframes */
@keyframes sceneEntrance {
    0% {
        transform: translateY(100px) rotateY(0) scale(0.8);
        filter: blur(10px);
        opacity: 0;
    }

    60% {
        transform: translateY(-20px) rotateY(15deg) scale(1.05);
        filter: blur(0);
        opacity: 1;
    }

    100% {
        transform: translateY(0) rotateY(12deg) rotateX(6deg) scale(1);
        opacity: 1;
    }
}

@keyframes floatInfinite {

    0%,
    100% {
        transform: rotateY(12deg) rotateX(6deg) translateY(0);
    }

    50% {
        transform: rotateY(15deg) rotateX(8deg) translateY(-15px);
    }
}

@keyframes stampSlam {
    0% {
        opacity: 0;
        transform: translateZ(200px) scale(4);
    }

    70% {
        opacity: 1;
        transform: translateZ(10px) scale(1.1);
    }

    100% {
        opacity: 0.9;
        transform: translateZ(5px) scale(1) rotate(-15deg);
    }
}

@keyframes trophyScalePop {
    0% {
        transform: translateY(-50%) translateZ(60px) scale(0) rotateZ(0deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) translateZ(60px) scale(1.1) rotateZ(10deg);
        opacity: 1;
    }

    70% {
        transform: translateY(-50%) translateZ(60px) scale(0.95) rotateZ(6deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) translateZ(60px) scale(1) rotateZ(8deg);
        opacity: 1;
    }
}

@keyframes sparkFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes scorePopUp {
    from {
        transform: translateZ(40px) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateZ(40px) translateY(0);
        opacity: 1;
    }
}

@keyframes sweepEffect {
    0% {
        left: -150%;
    }

    20%,
    100% {
        left: 150%;
    }
}

@keyframes shimmerEffect {
    0% {
        background-position: -200% -200%;
    }

    100% {
        background-position: 200% 200%;
    }
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: rotateX(80deg) scale(1);
        opacity: 0.4;
        filter: blur(15px);
    }

    50% {
        transform: rotateX(80deg) scale(0.8);
        opacity: 0.2;
        filter: blur(25px);
    }
}

/* Hover Interactivity */
.journey-row.row-3:hover .exam-paper {
    transform: rotateY(0deg) rotateX(10deg) scale(1.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.journey-row.row-3:hover .victory-stamp {
    opacity: 1;
    transform: translateZ(20px) scale(1.1) rotate(-15deg);
}



/* Trigger class handled by JS for sequence timing */
.exam-paper-landed .victory-scene {
    pointer-events: auto;
}

.journey-step:hover .step-icon {
    transform: scale(1.55) rotate(15deg);
    /* Even bolder hover scale */
    color: #8b5e3c;
}

.journey-step:hover .step-bg-number {
    color: #991b1b;
    /* Wine Red */
    opacity: 0.7;
}

.step-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

.step-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-text p {
    font-size: 1.05rem;
    color: #4e5758;
    /* Darkened by 25% from #687475 */
    line-height: 1.7;
    max-width: 480px;
}

@media (max-width: 992px) {
    .journey-wrapper {
        gap: 6rem;
        /* Reduced gap for smaller screens */
    }

    .journey-row {
        flex-direction: row !important;
        /* Force side-by-side layout like desktop */
        align-items: center;
        gap: 1.5rem;
        /* Tighter gap for tablet/mobile crossover */
    }

    .journey-step,
    .journey-step.step-2 {
        flex-direction: row;
        align-self: flex-start;
        text-align: left;
        max-width: 50%;
        /* Each takes half */
    }

    .journey-step.step-2 {
        flex-direction: row-reverse;
        align-self: flex-end;
        text-align: right;
    }

    .step-bg-number {
        font-size: 5rem;
        top: -20px;
    }

    .journey-path-svg {
        display: none;
    }
}

/* ===== PRE-TESTIMONIALS ===== */
.pre-testimonials {
    padding: 3rem 0 2.4rem;
    background: #2a2a2a;
    color: var(--white);
    margin-top: -10%;
    position: relative;
    z-index: 10;
}

.pre-testimonials .section-header {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.pre-testimonials .section-title {
    align-self: flex-start;
    margin-left: 2rem;
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--white);
}

.pre-testimonials .section-subtitle {
    align-self: flex-end;
    margin-right: 4rem;
    margin-top: 0.8rem;
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--white);
}

.pre-testimonials .section-description {
    align-self: center;
    margin-top: 1.6rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 3rem 0 var(--spacing-xl);
    background: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
    color: var(--text-dark);
}

.italic-text {
    font-style: italic;
    color: var(--accent-red);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.7);
    /* Darker shade for light background */
}

/* Slider Container */
.testimonials-container {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0 2rem;
    /* Reduced top padding from 2rem to 0.5rem */
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 10 - 2rem * 10));
    }
}

.testimonial-card {
    flex: 0 0 350px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 1.4rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    /* Charcoal/Dark Grey */
    margin-bottom: 1.25rem;
    font-weight: 400;
    text-align: justify;
}

.testimonial-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    /* Deep Navy/Dark Blue */
    margin-bottom: 0.2rem;
    font-family: var(--font-body);
}

.testimonial-post {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    /* Muted Blue-Grey */
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 0.75rem 0 0.5rem;
    margin-top: auto;
}

.footer .container {
    max-width: 900px;
    /* Narrower footer */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    /* Move brand text somewhat lower vertically */
}

.footer-logo img {
    /* Set dimensions for the embedded image */
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.footer-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    /* Increased font size */
    margin-bottom: 0.25rem;
}

.footer-slogan {
    font-size: 1.1rem;
    /* Increased font size */
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--primary-yellow);
    white-space: nowrap;
}

/* Align Follow Us to the right edge and bottom-match nav links */
.footer-links .footer-column:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrally aligned with respect to heading */
    text-align: center;
}

.footer-links .footer-column:last-child .social-links {
    margin-top: 10px;
    /* Shifted downwards by 10px for precise alignment */
}

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

.footer-column ul li {
    margin-bottom: 0.25rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* Reduced vertical gap */
    margin-top: 0;
}

.social-link {
    width: 27px;
    /* Sized up by 5% */
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.social-link.linkedin:hover {
    background: #0077B5;
    transform: translateY(-3px);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-3px);
}

.social-link.youtube:hover {
    background: #FF0000;
    transform: translateY(-3px);
}

.social-link.facebook:hover {
    background: #1877F2;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* ===== ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translate(-30px, 20px);
    /* Slight left + downward start for upward sweep */
}

[data-aos="fade-right"].aos-animate {
    transform: translate(0, 0);
}

[data-aos="fade-left"] {
    transform: translate(30px, 20px);
    /* Slight right + downward start for upward sweep */
}

[data-aos="fade-left"].aos-animate {
    transform: translate(0, 0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero {
        padding: 6.4rem 0 3.4rem;
        /* Reduced bottom padding by 15% */
        /* Top padding reduced by 20% from 8rem */
        margin-top: 140px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        /* Keep stats horizontal but wrap safely */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
        /* remove dividers on mobile for cleaner wrap */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        /* Keep horizontal structure, just shrink gaps */
        gap: 1.5rem;
    }

    .footer-links {
        /* Keep horizontal */
        gap: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }

    .brand-section {
        gap: 1rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .illustration-left svg,
    .illustration-right svg {
        width: 40px;
        height: 40px;
    }

    .tagline {
        font-size: 0.86rem;
    }

    .user-btn {
        padding: 0.34rem 0.65rem;
        font-size: 0.61rem;
        transform: translateY(-35%);
    }

    .user-btn svg {
        width: 15px;
        height: 15px;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        gap: 2.5rem;
        transition: left var(--transition-normal);
        box-shadow: none;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-close-item {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .mobile-close-btn {
        background: none;
        border: none;
        font-size: 3rem;
        color: #555;
        cursor: pointer;
        padding: 0.5rem;
        line-height: 1;
    }

    .nav-link {
        font-size: 1.25rem;
        color: #555;
        font-weight: 500;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active,
    .nav-link:hover {
        color: #1a73e8;
        /* Clean blue from screenshot */
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: fixed;
        top: 2.05rem;
        left: 0.5rem;
        right: auto;
        z-index: 1000;
        background: transparent;
        border-radius: 0;
        padding: 0.5rem;
        box-shadow: none;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 4.8rem 0 2.55rem;
        /* Reduced bottom padding by 15% */
        /* Top padding reduced by 20% from 6rem */
        margin-top: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        /* Increased by ~15% for better proportion */
        margin-left: 0;
        text-align: center;
    }

    /* Force single line logic for text elements with increased sizing */
    .subtitle-line-1 {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .subtitle-line-2 {
        font-size: 1.1rem;
        margin-left: 0;
        white-space: nowrap;
    }

    .gradient-text {
        margin-left: 30%;
        /* Shifted right by 30% on mobile */
    }

    .hero-cta {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 1.8rem;
        /* Scaled down proportionally for mobile */
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .auth-container {
        padding: 2rem;
    }

    .features-showcase {
        padding: 4rem 0 3.4rem;
        margin-top: -20%;
        /* Shift entire section upwards by 20% on mobile */
    }

    .features-title {
        white-space: normal !important;
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        padding: 0 1rem;
        margin-top: 15px !important;
    }

    .features-badge {
        font-size: 0.8rem !important;
        letter-spacing: 3px !important;
        margin-top: 0 !important;
        padding: 0.4rem 1.5rem !important;
    }

    .carousel-container {
        height: 200px;
        perspective: 1000px;
        overflow: visible;
        /* Allow 3D cards to swing slightly out if needed */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-item {
        width: 260px;
        /* Slimmer for better mobile fit */
        height: 140px;
        margin-left: -130px;
        margin-top: -70px;
    }

    .carousel-card {
        padding: 1rem;
        gap: 0.8rem;
    }

    .carousel-icon {
        width: 35px;
        height: 35px;
    }

    .carousel-card h3 {
        font-size: 0.95rem;
    }

    .carousel-card p {
        font-size: 0.75rem;
    }

    @keyframes curvedCarousel {
        0% {
            transform: translate3d(0, 0, 100px) scale(1.1);
            z-index: 10;
            opacity: 1;
        }

        16.66% {
            transform: translate3d(-170px, -15px, -60px) scale(0.85);
            z-index: 5;
            opacity: 0.75;
        }

        33.33% {
            transform: translate3d(-100px, -30px, -180px) scale(0.7);
            z-index: 1;
            opacity: 0.4;
        }

        50% {
            transform: translate3d(0, -45px, -250px) scale(0.5);
            z-index: 0;
            opacity: 0;
        }

        66.66% {
            transform: translate3d(100px, -30px, -180px) scale(0.7);
            z-index: 1;
            opacity: 0.4;
        }

        83.33% {
            transform: translate3d(170px, -15px, -60px) scale(0.85);
            z-index: 5;
            opacity: 0.75;
        }

        100% {
            transform: translate3d(0, 0, 100px) scale(1.1);
            z-index: 10;
            opacity: 1;
        }
    }

    /* Proportional Scaling for Fluid Journey (Steps 1, 2, 3) */
    .process-flow {
        padding: 4rem 0 2rem;
        transform: translateY(-8%);
        position: relative;
        z-index: 10;
    }

    .journey-wrapper {
        gap: 4.5rem;
    }

    .journey-row {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .journey-row.row-3 {
        margin-top: 1rem;
        transform: none;
        /* Scale based on contents */
    }

    .journey-step {
        gap: 1rem;
        max-width: 45%;
    }

    .journey-step.step-1,
    .journey-step.step-3 {
        align-self: flex-start;
        padding-left: 0.5rem;
    }

    .journey-step.step-2 {
        align-self: flex-end;
        padding-right: 0.5rem;
        transform: translateY(-7%);
    }

    .step-bg-number {
        font-size: 4.5rem;
        /* Proportionally scaled large numbers */
    }

    .step-1 .step-bg-number,
    .step-3 .step-bg-number {
        top: -30px;
        left: -20px;
    }

    .step-2 .step-bg-number {
        top: -30px;
        right: -20px;
    }

    .step-text h3 {
        font-size: 1.15rem;
        /* Reduced from 2.2rem */
        margin-bottom: 0.4rem;
    }

    .step-text p {
        font-size: 0.72rem;
        /* Reduced from 1.05rem for side-by-side fit */
        line-height: 1.4;
        max-width: 100%;
    }

    .step-text .mobile-only {
        margin-top: 15px;
    }

    .step-graphic {
        transform: translateY(-20px) !important;
        /* Scale down vertical shift */
    }

    .journey-row.row-3 .step-graphic {
        transform: translateY(-30px) !important;
    }

    /* Scaling Device Mockups */
    .laptop-mockup.pop-3d,
    .essentials-preview.pop-3d {
        width: 175px !important;
        /* Scaled down ~50% from 387px */
    }

    .laptop-mockup.pop-3d {
        transform: perspective(1000px) rotateY(-20deg) rotateX(10deg) scale(1);
    }

    .essentials-preview.pop-3d {
        transform: perspective(1000px) rotateY(20deg) rotateX(8deg) scale(1);
    }

    .screen-content {
        height: 70px;
        /* Scaled from 150px */
    }

    .subject-row {
        padding: 5px 8px;
        font-size: 0.45rem;
    }

    .view-btn {
        font-size: 0.35rem;
        padding: 1px 4px;
    }

    .essentials-header {
        padding: 6px 10px;
    }

    .essentials-header h4 {
        font-size: 0.55rem;
    }

    .essentials-sub {
        font-size: 0.35rem;
    }

    .essentials-slider {
        padding: 10px 0;
    }

    .essentials-card {
        width: 45px;
        gap: 4px;
    }

    .card-icon {
        width: 25px;
        height: 25px;
        border-radius: 4px;
    }

    .card-icon svg {
        width: 14px;
        height: 14px;
    }

    .essentials-card span {
        font-size: 0.35rem;
    }

    .essentials-footer {
        padding: 6px 10px;
    }

    .stat-item strong {
        font-size: 0.45rem;
    }

    .stat-item span {
        font-size: 0.35rem;
    }

    /* Victory Scene Scaling */
    .victory-scene {
        width: 160px;
        height: 220px;
        transform: scale(0.8);
    }

    .exam-paper {
        width: 140px;
        height: 160px;
        padding: 1rem 0.8rem;
    }

    .passed-text {
        font-size: 1.1rem;
    }

    .victory-subheading {
        font-size: 0.55rem;
        margin-top: 0.2rem;
    }

    .score-grade {
        font-size: 2.5rem;
    }

    .score-value {
        font-size: 0.7rem;
    }

    .emoji-trophy {
        font-size: 3.5rem;
    }


    /* Pre-Testimonials: Exact Desktop Proportional Scaling */
    .pre-testimonials {
        padding: 2.25rem 0 1.8rem;
        margin-top: -22%;
        background: #2a2a2a;
    }

    .pre-testimonials .section-header {
        max-width: 100%;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .pre-testimonials .section-title {
        align-self: flex-start;
        margin-left: 1rem;
        font-size: 1.5rem;
        margin-bottom: 0;
        line-height: 1.1;
    }

    .pre-testimonials .section-subtitle {
        align-self: flex-end;
        margin-right: 2rem;
        margin-top: 0.6rem;
        font-size: 1.5rem;
        margin-bottom: 0;
        line-height: 1.1;
    }

    .pre-testimonials .section-description {
        align-self: center;
        margin-top: 1.25rem;
        text-align: center;
        font-size: 0.95rem;
        padding: 0 1.2rem;
        line-height: 1.35;
    }

    .testimonials {
        padding-bottom: 5.4rem !important;
        /* Reduced from 6rem (var(--spacing-xl)) by 10% */
    }

    /* 768px: Mobile Footer - Compact Vertical Layout */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .footer-brand {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }

    .footer-text {
        text-align: left;
    }

    .footer-logo img {
        width: 92px;
        height: 92px;
    }

    .footer-text h3 {
        font-size: 1.6rem;
        margin-bottom: 0px;
        letter-spacing: 1px;
    }

    .footer-slogan {
        font-size: 0.92rem;
        margin-top: -2px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        /* Ensure columns have equal height */
        width: 100%;
        gap: 3rem;
        transform: translateX(15%);
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column h4 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        color: var(--primary-yellow);
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        /* Spread links to fill height */
        gap: 0.6rem;
        padding: 0;
        flex: 1;
    }

    .footer-column ul li {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .footer-links .footer-column:last-child {
        align-items: center;
        width: 100%;
    }

    .footer-links .footer-column:last-child .social-links {
        margin-top: 0;
        /* Sync start line with links */
    }

    .social-links {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
        justify-content: space-between;
        /* Spread icons to fill height */
        flex: 1;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .brand-section {
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .illustration-left svg,
    .illustration-right svg {
        width: 35px;
        height: 35px;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .brand-name {
        font-size: 2.5rem;
    }

    /* 480px: Mobile Footer Tweaks */
    .footer-brand {
        gap: 0.6rem;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .footer-logo img {
        width: 77px;
        height: 77px;
    }

    .footer-text h3 {
        font-size: 1.45rem;
    }

    .footer-slogan {
        font-size: 0.85rem;
    }

    .footer-column h4 {
        font-size: 0.9rem;
    }

    .footer-column ul li {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.65rem;
    }

    .loading-tagline {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .section-badge {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .floating-shape {
        display: none;
        /* Hide decorative elements on small screens */
    }

    /* ===== UTILITY CLASSES ===== */
    .hidden {
        display: none !important;
    }

    .fade-in {
        animation: fadeIn 0.5s ease;
    }

    .slide-up {
        animation: slideUp 0.5s ease;
    }
}