/* CSS FOR SPELLING APP LANDING PAGE */

:root {
    --primary-blue: #004fb6;
    --light-blue: #eef6ff;
    --primary-yellow: #ffdb14;
    --text-dark: #163a6e;
    --text-light: #52749f;
    --btn-blue: #005bc5;
    --btn-hover: #004596;
    --bg-gradient-top: linear-gradient(180deg, #81cffd 0%, #e1f6ff 60%, rgba(255,255,255,1) 100%);
    --bg-gradient-footer: linear-gradient(135deg, #1bd2ff 0%, #0095ff 100%);
    
    /* Card Colors */
    --card-blue: #ebf4ff;
    --card-green: #e9faef;
    --card-pink: #fdeded;
    
    /* Icon Colors */
    --icon-yellow: #ffc400;
    --icon-blue: #0d73f1;
    --icon-dark: #2b3951;
    --check-green: #40ba40;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ================= HEADER & NAV ================= */
.hero {
    background: url('hero.png') no-repeat right bottom;
    background-size: cover;
    position: relative;
    padding-bottom: 120px; /* Space for the bottom cloud curve */
    overflow: hidden;
}

/* Gradient overlay to make text readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 160, 255, 0.9) 0%, rgba(90, 200, 255, 0.4) 60%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 140px; /* Increased size for the logo */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    margin-top: -10px; /* Slight adjustment to balance navbar space */
    margin-bottom: -10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.lang-switch option {
    color: var(--text-dark);
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.4);
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-yellow);
}

/* ================= HERO CONTENT ================= */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto 80px auto;
    padding: 0 8%;
    position: relative;
    z-index: 2;
    min-height: 500px;
}

.hero-text {
    max-width: 50%;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--primary-yellow);
}

.hero-text p {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--btn-blue);
    color: white;
    box-shadow: 0 6px 0px #00377a, 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px #00377a, 0 5px 10px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    box-shadow: 0 6px 0px #e0e0e0, 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary i {
    color: var(--text-dark);
}



/* Float Animations */
.cloud-divider {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,80 C300,150 600,0 900,80 C1050,120 1200,60 1200,60 L1200,120 L0,120 Z" fill="white"/></svg>') no-repeat center bottom;
    background-size: cover;
    z-index: 3;
}

/* ================= WHY USE SECTION ================= */
.why-use {
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-use h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 50px;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-blue { background-color: var(--card-blue); }
.card-green { background-color: var(--card-green); }
.card-pink { background-color: var(--card-pink); }

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    /* Simulated 3D icon */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.1);
}

.icon-blue { background-color: #8ce1fa; color: white; }
.card-blue i { color: #ffe600; text-shadow: 2px 2px 0 rgba(0,0,0,0.1); } /* Lightbulb */
.icon-green { background-color: #4cd964; color: white; }
.card-green i { color: #0050b3; } /* Gamepad */
.icon-pink { background-color: #ff9a9e; color: white; }
.card-pink i { color: #435165; } /* Mic */

.card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.arrow-divider {
    font-size: 1.5rem;
    color: #c9dff5;
}

/* ================= CONTENT & FEATURES SECTION ================= */
.details-section {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 8%;
    gap: 60px;
}

.how-it-works, .features-list {
    flex: 1;
}

.how-it-works h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.phones-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.phone-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

/* CSS Phone Mockups */
.phone-mockup {
    width: 120px;
    height: 240px;
    background: #222;
    border-radius: 20px;
    border: 4px solid #333;
    padding: 6px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.15), inset 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    margin-bottom: 15px;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 40px;
    height: 10px;
    background: #333;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #99ebff 0%, #1c52b5 100%);
}

.screen-1-new {
    background: linear-gradient(180deg, #f0f4ff 0%, #d9e5ff 100%);
    justify-content: flex-start;
    padding-top: 20px;
}
.screen-1-new .app-header {
    background: var(--primary-blue);
    color: white;
    width: 90%;
    text-align: center;
    padding: 5px 0;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.screen-1-new .word-input {
    background: white;
    width: 80%;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.7rem;
    color: #999;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
.screen-1-new .word-list {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.screen-1-new .list-item {
    background: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.screen-2-new {
    background: linear-gradient(180deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    justify-content: center;
}
.screen-2-new .gears-icon {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 10px;
    animation: spin 4s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.screen-2-new h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.screen-2-new .btn-process {
    background: #ffb100;
    border: none;
    color: white;
    border-radius: 15px;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 3px 0 #d06d00;
}

.screen-3-new {
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    justify-content: center;
}
.screen-3-new .exam-title {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.screen-3-new .mic-circle {
    background: #ff3c3c;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(255, 60, 60, 0.4);
    margin-bottom: 20px;
}
.screen-3-new .recording-waves {
    display: flex;
    gap: 5px;
    align-items: center;
}
.screen-3-new .recording-waves span {
    width: 6px;
    height: 15px;
    background: white;
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite alternate;
}
.screen-3-new .recording-waves span:nth-child(2) { animation-delay: 0.2s; height: 25px; }
.screen-3-new .recording-waves span:nth-child(3) { animation-delay: 0.4s; height: 10px; }
@keyframes wave { 0% { transform: scaleY(0.5); } 100% { transform: scaleY(1.5); } }

.step-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
}

.step-text i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.phone-arrow {
    margin-top: 100px;
    color: #c9dff5;
    font-size: 1.2rem;
}

/* Features Lists */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.list-group h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.list-group ul {
    list-style: none;
}

.list-group li {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-group li i {
    color: var(--check-green);
    font-size: 1.2rem;
}

/* ================= FOOTER CTA ================= */
.footer-cta {
    background: var(--bg-gradient-footer);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: relative;
    padding: 60px 8% 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 60px auto 0 auto;
    overflow: hidden;
}

/* Wavy overlay */
.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 40" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 C300,40 600,-20 900,20 C1050,40 1200,0 1200,0 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.2)"/></svg>') no-repeat center top;
    background-size: cover;
}

.cta-content {
    color: white;
    flex: 1;
    z-index: 2;
    padding-bottom: 60px;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.store-buttons {
    display: flex;
    gap: 15px;
}

.store-btn {
    background: #111;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s;
}

.store-btn:hover {
    background: #333;
}

.cta-image {
    flex: 1;
    position: relative;
    height: 300px;
}

.big-phone {
    width: 200px;
    height: 400px;
    position: absolute;
    right: 10%;
    bottom: -150px;
    transform: rotate(-5deg);
    border: 8px solid #333;
    border-radius: 30px;
}

.big-phone::before {
    left: 70px;
    width: 60px;
}

.screen-cta {
    background: #191c30; /* Dark blue background from the example */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.cta-logo {
    width: 140px; /* Size to fit perfectly inside the phone mockup */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    margin-top: -50px; /* Moves the logo higher up the screen */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .details-section {
        flex-direction: column;
        align-items: center;
    }
    
    .phones-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .phone-arrow {
        transform: rotate(90deg);
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .footer-cta {
        flex-direction: column;
        text-align: center;
        padding-bottom: 0;
    }
    
    .cta-content {
        padding-bottom: 30px;
    }
    
    .store-buttons {
        justify-content: center;
    }
    
    .cta-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .big-phone {
        position: relative;
        right: auto;
        bottom: -30px;
        margin: 0 auto;
        transform: rotate(0);
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 15px 5%;
    }
    
    /* Hide some nav links on very small screens, keep only the language switcher */
    .nav-links li:not(:last-child) {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .arrow-divider {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .store-buttons {
        flex-direction: column;
    }
}
