* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Floating Elements Background */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-radius: 20px;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #6366f1, #3b82f6);
    border-radius: 50%;
    animation-delay: 4s;
}

.floating-shape:nth-child(4) {
    top: 40%;
    left: 60%;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ec4899, #f59e0b);
    border-radius: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Header - Smaller by default, BIGGER when scrolled */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    padding: 0.15rem 0;
    height: 70px; /* Fixed height prevents jumping */
    display: flex;
    align-items: center;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* ===== NAV CONTAINER ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;

}

.logo-img {
    height: 32px; /* Optimal logo size */
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}


/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Reduced from 3rem for better balance */
    align-items: center;
    margin: 0 auto; /* Centers the links */
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.25rem;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.nav-links a:hover::after {
    width: calc(100% - 2.5rem);
}

.cta-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    opacity: 0.9;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: #6366f1;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Phone Mockup with Placeholder Image */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.phone {
    position: relative;
    width: 300px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: phoneFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.phone:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.3);
}

.phone::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Features Section */
.features {
    padding: 120px 0;
    background: #f8fafc;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    width: 300px;
    height: 300px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* WHY Section - Interactive Learning Purpose for Kids */
.why-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.why-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.why-section h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.why-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.why-visual {
    position: relative;
}

.why-mockup {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.why-mockup:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.15);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.mockup-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mockup-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.why-questions {
    list-style: none;
}

.why-question {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 4px solid #6366f1;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.why-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.5s;
}

.why-question:hover::before {
    left: 100%;
}

.why-question:hover {
    background: #f1f5f9;
    transform: translateX(10px);
}

.question-text {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.question-answer {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

.why-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.why-feature {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.why-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.1);
}

.why-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.why-feature:hover .why-feature-icon {
    transform: scale(1.1) rotate(10deg);
}

.why-feature h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.why-feature p {
    color: #64748b;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Add this to your existing media queries section */

/* Tablet Breakpoints */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem; /* Reduced gap for tablets */
    }
    
    .nav-links a {
        font-size: 1.1rem; /* Slightly smaller font */
        padding: 0.6rem 1rem; /* Reduced padding */
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem; /* Smaller button on tablets */
        font-size: 0.95rem;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .hero-content {
        gap: 3rem; /* Reduced gap between hero sections */
    }
    
    .phone {
        width: 280px; /* Slightly smaller phone */
        height: 520px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 0.75rem; /* Even smaller gap */
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }
    
    .cta-button {
        padding: 0.675rem 1.25rem;
        font-size: 0.9rem;
        min-width: 120px; /* Ensure minimum size */
    }
    
    nav {
        padding: 0 1.5rem;
        position: relative; /* Reduced nav padding */
    }
}

/* Update your existing mobile breakpoint to be more specific */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Keep your mobile menu hidden */
    }
    
    /* Add mobile menu button if needed */
    .mobile-menu-button {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone {
        width: 240px;
        height: 480px;
    }
    
    /* Fix CTA button positioning */
    .cta-button {
        margin-left: auto; /* This pushes it to the right */
        margin-right: 1rem; /* Add spacing from hamburger */
        padding: 0.6rem 1.2rem; /* Adjusted padding */
        font-size: 0.9rem;
        white-space: nowrap;
        width: auto; /* Remove any fixed width */
        min-width: 120px; /* Minimum touch target */
        max-width: none; /* Remove max-width constraint */
    }
}

/* Large tablets and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem; /* Adjusted container padding */
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 */
        gap: 2rem;
    }
    
    .why-demo {
        gap: 2rem; /* Reduced gap for demo section */
    }
}

/* Very small tablets */
@media (max-width: 600px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
}



/* Ensure header doesn't break on tablets */
@media (max-width: 1024px) {
    header {
        padding: 0.15rem 0;
    }
    
    nav {
        padding: 0 1rem; /* Ensure consistent padding */
    }
    
    .logo-img {
        height: 28px; /* Slightly smaller logo on tablets */
    }
}

/* Fix CTA button in header specifically */
@media (max-width: 1024px) {
    .header-cta {
        margin-left: auto; /* Push to the right */
        margin-right: 1rem; /* Add spacing */
    }
    
    .cta-button {
        transform: scale(0.9); /* Slightly scale down */
        transform-origin: center;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}