@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --purple: #6c4cc5;
    --purple-dark: #4c348e;
    --purple-light: #eee8ff;
    --orange: #f59a3d;
    --orange-light: #fff0df;
    --green: #43a879;
    --green-light: #e4f7ed;
    --pink: #e8668e;
    --cream: #fffaf3;
    --text: #303044;
    --muted: #77758a;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(55, 42, 95, .13);
    --radius: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.30) 0 7px, transparent 8px),
        radial-gradient(circle at 85% 30%, rgba(255,255,255,.24) 0 9px, transparent 10px),
        linear-gradient(135deg, #6545b8 0%, #8b64d8 48%, #a578df 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 150px;
    left: 0;
    bottom: -75px;
    background: var(--cream);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero::after {
    bottom: -100px;
    height: 125px;
    background: rgba(255,255,255,.18);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(900px, 92%);
    text-align: center;
    color: white;
    padding: 50px 20px 100px;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .5px;
    margin-bottom: 24px;
    animation: float 4s ease-in-out infinite;
}

h1 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: .88;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 8px 25px rgba(47, 31, 91, .2);
}

h1 span {
    color: #ffe48b;
}

.year {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-top: 5px;
    color: #fff;
}

.school {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 15px auto 30px;
    opacity: .95;
}

.main-button,
.watch-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.main-button {
    padding: 15px 27px;
    border-radius: 50px;
    background: #fff;
    color: var(--purple-dark);
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(34, 19, 74, .22);
}

.main-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 38px rgba(34, 19, 74, .3);
}

.main-button:active,
.watch-button:active {
    transform: translateY(2px) scale(.97);
}

.hero-shapes {
    position: absolute;
    border-radius: 50%;
    opacity: .2;
    z-index: 1;
}

.shape-one {
    width: 220px;
    height: 220px;
    background: #ffe48b;
    left: -60px;
    top: 70px;
}

.shape-two {
    width: 170px;
    height: 170px;
    background: #fff;
    right: 7%;
    top: 80px;
}

.shape-three {
    width: 90px;
    height: 90px;
    background: #ff8eae;
    left: 12%;
    bottom: 100px;
}

.intro {
    max-width: 1220px;
    margin: 0 auto;
    padding: 70px 24px 80px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.title-decoration {
    font-size: 2rem;
    animation: float 3.5s ease-in-out infinite;
}

.eyebrow {
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .76rem;
    font-weight: 800;
    margin-bottom: 7px;
}

h2 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: .98;
    color: var(--text);
}

h2 span {
    color: var(--purple);
}

.intro-text {
    max-width: 700px;
    text-align: center;
    margin: 20px auto 45px;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid rgba(50, 40, 80, .05);
}

.video-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 25px 55px rgba(55, 42, 95, .2);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.card-purple .card-top {
    background: var(--purple-light);
}
.card-orange .card-top {
    background: var(--orange-light);
}
.card-green .card-top {
    background: var(--green-light);
}

.age-icon {
    font-size: 1.5rem;
}

.category {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e9e6ef;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.card-content {
    padding: 22px 22px 24px;
}

.age-label {
    display: inline-block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    padding: 6px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.card-purple .age-label {
    background: var(--purple-light);
    color: var(--purple-dark);
}
.card-orange .age-label {
    background: var(--orange-light);
    color: #b35d00;
}
.card-green .age-label {
    background: var(--green-light);
    color: #217650;
}

h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.65rem;
    line-height: 1;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    min-height: 44px;
    margin-bottom: 18px;
}

.watch-button {
    width: 100%;
    padding: 12px 17px;
    border-radius: 15px;
    color: white;
    font-weight: 800;
    font-size: .9rem;
}

.card-purple .watch-button {
    background: var(--purple);
}
.card-orange .watch-button {
    background: var(--orange);
}
.card-green .watch-button {
    background: var(--green);
}

.watch-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.07);
    box-shadow: 0 10px 20px rgba(50,40,80,.15);
}

.watch-button span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
}

.message {
    padding: 0 24px 80px;
}

.message-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 35px 42px;
    background: linear-gradient(135deg, #fff 0%, #fff4dc 100%);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.message-icon {
    min-width: 85px;
    height: 85px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    background: #fff;
    font-size: 2.8rem;
    box-shadow: 0 8px 20px rgba(60,45,90,.1);
}

.message h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 8px;
}

.message p:last-child {
    color: var(--muted);
    line-height: 1.6;
}

footer {
    background: #30274c;
    color: white;
    min-height: 120px;
    padding: 28px 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.footer-logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.12);
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.1rem;
}

footer strong {
    font-size: .95rem;
}

footer p {
    margin-top: 3px;
    opacity: .65;
    font-size: .78rem;
}

.footer-heart {
    color: #ff91af;
    font-size: 1.2rem;
}

.top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(50,35,90,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s ease;
    z-index: 20;
}

.top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-button:hover {
    transform: translateY(-3px);
    background: var(--purple-dark);
}

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

@media (max-width: 900px) {
    .hero {
        min-height: 590px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: auto;
    }

    .video-card {
        display: grid;
        grid-template-columns: 42% 58%;
        grid-template-rows: auto 1fr;
    }

    .card-top {
        grid-column: 1 / -1;
    }

    .video-wrapper {
        grid-column: 1;
        grid-row: 2;
        height: 100%;
        aspect-ratio: auto;
    }

    .card-content {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .card-content p {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .hero {
        min-height: 570px;
    }

    .hero-content {
        padding-bottom: 90px;
    }

    h1 {
        letter-spacing: -1px;
    }

    .section-title {
        gap: 10px;
    }

    .title-decoration {
        font-size: 1.5rem;
    }

    .video-card {
        display: block;
    }

    .video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .message-inner {
        flex-direction: column;
        text-align: center;
        padding: 30px 22px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        padding: 30px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
