/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #1F263B;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('/assets/images/hero_banner/hero-bg-4-1.png'); 
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden; 
    background-color: #f9f9f9; 
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- DECORATIVE WRAPPERS --- */

.absolute-img {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

/* 1. Star Line (Left Top) */
.pos-star-left-top {
    top: 100px;
    left: 40px;
    width: 60px;
    animation: float-y 4s ease-in-out infinite;
}

/* 2. Dots (Inside Left Wrapper) */
.dots-icon {
    position: absolute;
    bottom: -115px;
    left: 0px;
    width: 60px;
    z-index: 2; 
}

/* 3. Rainbow (Down Left Side) */
.pos-rainbow-down-left {
    bottom: 15%;
    left: 28%;
    width: 100px;
    animation: float-y 5s ease-in-out infinite;
}

/* 4. Scroll (Down Right Side) */
.pos-scroll-down-right {
    bottom: 15%;
    right: 28%;
    width: 100px;
    animation: float-y 5s ease-in-out infinite 1.5s;
}

/* --- LEFT SIDE GROUP (Girl) --- */
.pos-left-center {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 2%;
    width: 300px;
    height: 400px;
    z-index: 5;
}

/* Yellow Blob */
.it-hero-3-shape-1 {
    position: absolute;
    bottom: -90px; 
    left: 0;
    width: 260px;
    height: 250px;
    background-color: #FDC638;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 250px;
    z-index: 1;
    transition: all 3s cubic-bezier(0.4, 0.2, 0.2, 1);
    animation: sway 3s infinite alternate ease-in-out;
    transform-origin: center 80%;
}

.girl-img {
    position: absolute;
    bottom: -87px;
    left: 9px;
    width: 241px;
    z-index: 2;
    border-bottom-right-radius: 1px;
    border-bottom-left-radius: 230px;
    animation: sway 3s infinite alternate ease-in-out;
}

/* Bee Beside Girl (Right Side) */
.bee-beside-girl {
    position: absolute;
    top: 30%; 
    right: -10px; 
    width: 75px;
    z-index: 3;
    animation: flap 0.3s infinite alternate ease-in-out; 
    transform-origin: center center;
}

/* --- RIGHT SIDE GROUP (Boy) --- */
.pos-right-top {
    position: absolute;
    top: 15%; 
    right: 3%;
    width: 300px;
    height: 400px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Green Shape */
.it-hero-3-shape-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 260px;
    height: 250px;
    background-color: #1AB69D;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 250px;
    z-index: 1;
    transition: all 3s cubic-bezier(0.4, 0.2, 0.2, 1);
    animation: sway 3s infinite alternate ease-in-out;
    transform-origin: center 120%;
}

.boy-img {
    position: absolute;
    bottom: 0;
    right: 9px;
    width: 241px;
    z-index: 2;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 230px;
    animation: sway 3s infinite alternate ease-in-out;
}

/* Bee Beside Boy (Left Side) */
.bee-beside-boy {
    position: absolute;
    top: 0%; 
    left: 0; 
    width: 75px;
    z-index: 3;
    animation: flap 0.3s infinite alternate ease-in-out;
    transform-origin: center center;
}

/* --- ANIMATIONS --- */

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes flap {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes sway {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

/* --- TYPOGRAPHY & SMILE LINE --- */

h1 {
    font-size: 4rem; 
    font-weight: 600;
    line-height: 1.2;
    color: #1F263B;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.smile-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.svg-underline {
    position: absolute;
    width: 110%; 
    left: -5%; 
    height: 0.55em; 
    bottom: 5px; 
    z-index: -1; 
    clip-path: inset(0 100% 0 0); 
    animation: loop-draw 3s infinite ease-in-out; 
}

@keyframes loop-draw {
    0% { clip-path: inset(0 100% 0 0); }
    40% { clip-path: inset(0 0 0 0); }
    80% { clip-path: inset(0 0 0 0); opacity: 1; }
    90% { opacity: 0; }
    100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}

.svg-underline svg {
    display: block;
    width: 100%;
    height: 100%;
}

p {
    font-size: 1.125rem;
    color: #4A4A4A;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* --- RESPONSIVE --- */

/* Large desktops (1400px and up) */
@media (min-width: 1400px) {
    h1 {
        font-size: 4.5rem;
    }
    
    .container {
        max-width: 1300px;
    }
}

/* Desktop to Laptop (1200px - 1399px) */
@media (max-width: 1399px) {
    .pos-left-center {
        left: 1%;
        width: 280px;
    }
    
    .pos-right-top {
        right: 1%;
        width: 280px;
    }
    
    .it-hero-3-shape-1,
    .it-hero-3-shape-2 {
        width: 240px;
        height: 230px;
    }
    
    .girl-img,
    .boy-img {
        width: 220px;
    }
    
    .pos-rainbow-down-left {
        left: 25%;
    }
    
    .pos-scroll-down-right {
        right: 25%;
    }
}

/* Tablet Landscape & Small Laptop (992px - 1199px) */
@media (max-width: 1199px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .pos-left-center,
    .pos-right-top {
        width: 240px;
        height: 360px;
    }
    
    .it-hero-3-shape-1,
    .it-hero-3-shape-2 {
        width: 220px;
        height: 210px;
    }
    
    .girl-img,
    .boy-img {
        width: 200px;
    }
    
    .bee-beside-girl,
    .bee-beside-boy {
        width: 60px;
    }
    
    .pos-star-left-top {
        width: 50px;
        top: 80px;
        left: 30px;
    }
    
    .dots-icon {
        width: 50px;
        bottom: -100px;
    }
    
    .pos-rainbow-down-left,
    .pos-scroll-down-right {
        width: 80px;
        bottom: 12%;
    }
    
    .pos-rainbow-down-left {
        left: 22%;
    }
    
    .pos-scroll-down-right {
        right: 22%;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .hero-section {
        background-size: cover;
        background-position: center center;
        padding: 30px 10px 30px;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
    }
    
    .container {
        padding: 0 30px;
        margin-top: 0;
        order: 2;
        z-index: 10;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    p {
        font-size: 1rem;
        margin-bottom: 45px;
    }
    
    /* Girl at Top */
    .pos-left-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 200px;
        height: 210px;
        margin: 0 auto 75px;
        order: 1;
    }
    
    .it-hero-3-shape-1 {
        width: 200px;
        height: 190px;
        bottom: -70px;
    }
    
    .girl-img {
        width: 185px;
        bottom: -68px;
        left: 8px;
    }
    
    .bee-beside-girl {
        width: 70px;
        top: 0%;
        right: -45px;
    }
    
    /* Dots stay with girl on left bottom */
    .dots-icon {
        width: 40px;
        bottom: -75px;
        left: 0;
    }
    
    /* Boy at Bottom */
    .pos-right-top {
        position: relative;
        top: auto;
        right: auto;
        width: 200px;
        height: 210px;
        margin: 75px auto 0;
        order: 3;
    }
    
    .it-hero-3-shape-2 {
        width: 200px;
        height: 190px;
        bottom: 0;
    }
    
    .boy-img {
        width: 185px;
        right: 8px;
        bottom: 0;
    }
    
    .bee-beside-boy {
        width: 70px;
        top: -50%;
        left: -35px;
    }
    
    /* Keep floating decorative elements */
    .pos-star-left-top {
        width: 85px;
        top: 50px;
        left: 50px;
    }
    
    .pos-rainbow-down-left {
        width: 90px;
        bottom: 10%;
        left: 6%;
    }
    
    .pos-scroll-down-right {
        width: 85px;
        bottom: 35%;
        right: 5%;
    }
}

/* Mobile Landscape & Small Tablet (600px - 767px) */
@media (max-width: 767px) {
    .hero-section {
        min-height: 100vh;
        padding: 25px 10px 25px;
        background-size: cover;
        background-position: center center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .container {
        padding: 0 25px;
        margin-top: 0;
        order: 2;
    }
    
    h1 {
        font-size: 2.3rem;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    
    h1 br {
        display: none;
    }
    
    p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .svg-underline {
        bottom: 3px;
    }
    
    /* Girl at Top */
    .pos-left-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 170px;
        height: 185px;
        margin: 0 auto 70px;
        order: 1;
    }
    
    .it-hero-3-shape-1 {
        width: 170px;
        height: 165px;
        bottom: -60px;
    }
    
    .girl-img {
        width: 158px;
        bottom: -58px;
        left: 6px;
    }
    
    .bee-beside-girl {
        width: 60px;
        top: -5%;
        right: -30px;
    }
    
    .dots-icon {
        width: 35px;
        bottom: -65px;
        left: 0;
    }
    
    /* Boy at Bottom */
    .pos-right-top {
        position: relative;
        top: auto;
        right: auto;
        width: 170px;
        height: 185px;
        margin: 70px auto 0;
        order: 3;
    }
    
    .it-hero-3-shape-2 {
        width: 170px;
        height: 165px;
    }
    
    .boy-img {
        width: 158px;
        right: 6px;
    }
    
    .bee-beside-boy {
        width: 60px;
        top: -40%;
        left: -20px;
    }
    
    /* Keep floating decorative elements visible */
    .pos-star-left-top {
        display: block;
        width: 60px;
        top: 60px;
        left: 40px;
    }
    
    .pos-rainbow-down-left {
        display: block;
        width: 80px;
        bottom: 5%;
        left: 10%;
    }
    
    .pos-scroll-down-right {
        display: block;
        width: 80px;
        bottom: 30%;
        right: 10%;
    }
}

/* Mobile Portrait (480px - 599px) */
@media (max-width: 599px) {
    .hero-section {
        padding: 20px 10px 20px;
        min-height: 100vh;
        background-size: cover;
        background-position: center center;
    }
    
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .svg-underline {
        bottom: 2px;
    }
    
    /* Girl at Top */
    .pos-left-center {
        width: 150px;
        height: 165px;
        margin: 0 auto 60px;
    }
    
    .it-hero-3-shape-1 {
        width: 150px;
        height: 145px;
        bottom: -52px;
    }
    
    .girl-img {
        width: 140px;
        bottom: -50px;
        left: 5px;
    }
    
    .bee-beside-girl {
        width: 60px;
        top: -20%;
        right: -40px;
    }
    
    .dots-icon {
        width: 30px;
        bottom: -55px;
        left: 0;
    }
    
    /* Boy at Bottom */
    .pos-right-top {
        width: 150px;
        height: 165px;
        margin: 60px auto 0;
    }
    
    .it-hero-3-shape-2 {
        width: 150px;
        height: 145px;
    }
    
    .boy-img {
        width: 140px;
        right: 5px;
    }
    
    .bee-beside-boy {
        width: 60px;
        top: -45%;
        left: -20px;
    }
    
    /* Keep floating decorative elements */
    .pos-star-left-top {
        display: block;
        width: 60px;
        top: 50px;
        left: 40px;
    }
    
    .pos-rainbow-down-left {
        display: block;
        width: 80px;
        bottom: 5%;
        left: 10%;
    }
    
    .pos-scroll-down-right {
        display: block;
        width: 80px;
        bottom: 30%;
        right: 5%;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .hero-section {
        padding: 18px 10px 18px;
        min-height: 100vh;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    .svg-underline {
        bottom: 1px;
    }
    
    /* Girl at Top */
    .pos-left-center {
        width: 130px;
        height: 145px;
        margin: 0 auto 60px;
    }
    
    .it-hero-3-shape-1 {
        width: 130px;
        height: 125px;
        bottom: -45px;
    }
    
    .girl-img {
        width: 122px;
        bottom: -43px;
        left: 4px;
    }
    
    .bee-beside-girl {
        width: 30px;
        top: 14%;
        right: -4px;
    }
    
    .dots-icon {
        width: 26px;
        bottom: -48px;
        left: 0;
    }
    
    /* Boy at Bottom */
    .pos-right-top {
        width: 130px;
        height: 145px;
        margin: 60px auto 0;
    }
    
    .it-hero-3-shape-2 {
        width: 130px;
        height: 125px;
    }
    
    .boy-img {
        width: 122px;
        right: 4px;
    }
    
    .bee-beside-boy {
        width: 30px;
        top: 0%;
        left: -3px;
    }
    
    /* Keep decorative elements smaller */
    .pos-star-left-top {
        width: 60px;
        top: 30px;
        left: 20px;
    }
    
    .pos-rainbow-down-left {
        width: 60px;
        bottom: 5%;
        left: 5%;
    }
    
    .pos-scroll-down-right {
        width: 60px;
        bottom: 33%;
        right: 5%;
    }
}

/* Extra Small Mobile (Below 375px) */
@media (max-width: 374px) {
    .hero-section {
        padding: 15px 8px 15px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    h1 {
        font-size: 1.55rem;
    }
    
    p {
        font-size: 0.78rem;
        margin-bottom: 15px;
    }
    
    /* Girl at Top */
    .pos-left-center {
        width: 115px;
        height: 130px;
        margin: 0 auto 50px;
    }
    
    .it-hero-3-shape-1 {
        width: 115px;
        height: 110px;
        bottom: -40px;
    }
    
    .girl-img {
        width: 108px;
        bottom: -38px;
        left: 3px;
    }
    
    .bee-beside-girl {
        width: 50px;
        top: -15%;
        right: -20px;
    }
    
    .dots-icon {
        width: 22px;
        bottom: -42px;
        left: 0;
    }
    
    /* Boy at Bottom */
    .pos-right-top {
        width: 115px;
        height: 130px;
        margin: 50px auto 0;
    }
    
    .it-hero-3-shape-2 {
        width: 115px;
        height: 110px;
    }
    
    .boy-img {
        width: 108px;
        right: 3px;
    }
    
    .bee-beside-boy {
        width: 50px;
        top: -45%;
        left: -20px;
    }
    
    /* Keep decorative elements even smaller */
    .pos-star-left-top {
        width: 45px;
        top: 40px;
        left: 15px;
    }
    
    .pos-rainbow-down-left {
        width: 60px;
        bottom: 5%;
        left: 5%;
    }
    
    .pos-scroll-down-right {
        width: 50px;
        bottom: 33%;
        right: 2%;
    }
}