:root{
    --bg-color: #FFF6E6;
    --primary-color: #7D2501;
    --text-color: #2C2C2C;
    --pink: #FF7286;
    --darkpink: #FD5F76;
    --green: #A7C042;
    --darkgreen: #99B527;
    --yellow: #FF9F23;
    --darkyellow: #F58F0B;
    --heading-font: "Pacifico", cursive;
    --body-font: "Poppins", sans-serif;
}

/* global properties */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}

/* header */

header{
    max-width: 1600px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2.5rem;
}

.logo{
    max-width: 152px;
}

nav{
    background-color: #fff;
    border-radius: 3rem;
    padding: 0.5rem;
    box-shadow: 0 4px 8px #7D250110;
}

nav ul{
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul a{
    color: var(--text-color);
    display: inline-block;
    border-radius: 2rem;
    text-decoration: none;
    padding: 0.5rem 1.4rem;
}

nav ul a:hover{
    background-color: #7D250110;
}

nav ul a.active{
    background-color: var(--primary-color);
    color: #fff;
}

.menu-icons{
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.menu-icons a:hover svg{
    fill: var(--primary-color);
}

.menu-icons a:hover svg path{
    stroke: #fff;
}

/* header end */

/* hero section */

.hero-wrapper{
    max-width: 1600px;
    margin: auto;
    min-height: calc(100vh - 100px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-wrapper h1{
    display: inline-flex;
    flex-direction: column;
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 0.75;
    margin-bottom: 20rem;
}

.hero-wrapper h1 .fill-text{
    color: var(--primary-color);
    font-size: clamp(5rem, 8.4vw, 10rem);
    display: inline-block;
    margin-left: 2.5rem;
}

.hero-wrapper h1 .strok-text{
    font-size: clamp(7rem, 10.4vw, 12.5rem);
    color: var(--bg-color);
    position: relative;
    text-shadow: 0 8px 0 var(--primary-color);
}

.hero-wrapper h1 .strok-text::before{
    content: 'Happiness';
    position: absolute;
    color: var(--primary-color);
    left: -2px;
    top: -2px;
    z-index: -1;
}

.hero-wrapper h1 .strok-text::after{
    content: 'Happiness';
    position: absolute;
    color: var(--primary-color);
    left: 3px;
    bottom: 2px;
    z-index: -1;
}

.hero-wrapper .scoops{
    max-width: 1000px;
    width: 100%;
    margin: auto;
    position: absolute;
    z-index: -1;
    bottom: 0;
}

.hero-wrapper .floating-img{
    position: absolute;
}

.hero-wrapper .img1 {
    max-width: 5.6vw;
    top: 15%;
    right: 28%;
}

.hero-wrapper .img2 {
    max-width: 9vw;
    left: 7%;
    top: 44%;
}

.hero-wrapper .img3 {
    max-width: 8vw;
    right: 8%;
    top: 54%;
}
.hero-dishes{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-dishes .dish{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 780px;
  width: 100%;
  opacity: 0;
}

/* product sections */

.product-wrapper{
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2.5rem;
    position: relative;
}

.strawberry-product{
    background-color: var(--pink);
}

.strawberry-product svg path{
    fill: var(--darkpink);
}

.pistachio-product{
    background-color: var(--green);
}

.pistachio-product svg path{
    fill: var(--darkgreen);
}

.caramel-product{
    background-color: var(--yellow);
}

.caramel-product svg path{
    fill: var(--darkyellow);
}

.product-wrapper .shape{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    display: flex;
    align-items: end;
}

.product-wrapper .content-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1600px;
    margin: auto;
    color: #fff;
    width: 100%;
    position: relative;
    z-index: 2;
}

.product-wrapper .img-wrapper{
    flex-basis: 65%;
    text-align: center;
    position: relative;
}

.product-wrapper .img-wrapper .product-img{
    transform: rotate(30deg);
    margin-right: 8rem;
    position: relative;
    z-index: 2;
    max-width: 21vw;
    width: 100%;
}

.product-wrapper .product-slices{
    position: absolute;
    left: 15%;
    bottom: 10%;
    z-index: 1;
    max-width: 28vw;
}

.product-wrapper .content{
    flex-basis: 35%;
    min-width: 400px;
}

.product-wrapper .content .title{
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 1.15;
}

.product-wrapper .content .desc{
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 1.5rem 0 2rem;
}

.product-wrapper .btn{
    background-color: #fff;
    color: var(--text-color);
    display: inline-block;
    border-radius: 3rem;
    font-weight: 500;
    font-size: 1.4rem;
    padding: 0.5rem 1.8rem;
    text-decoration: none;
}

.strawberry-product .btn:hover{
    box-shadow: 2px 4px var(--darkpink);
    color: var(--darkpink);
}

.pistachio-product .btn:hover{
    box-shadow: 2px 4px var(--darkgreen);
    color: var(--darkgreen);
}

.caramel-product .btn:hover{
    box-shadow: 2px 4px var(--darkyellow);
    color: var(--darkyellow);
}

/* text sectoin */

.text-wrapper{
    max-width: 1600px;
    margin: auto;
    padding: 8rem 2.5rem;
}

.text-wrapper .text{
    font-family: var(--heading-font);
    font-size: 4rem;
    line-height: 1.5;
    text-align: start;
    color: var(--primary-color);
    
    position: relative;
}

.text-wrapper .text::before{
    content: 'From creamy scoops to crunchy swirls, every bite of Creamio is crafted to turn simple moments into sweet memories — taste the joy, share the love.';
    position: absolute;
    color: var(--primary-color);
    left: -3px;
    top: -2px;
    z-index: -1;
}

.text-wrapper .text::after{
    content: 'From creamy scoops to crunchy swirls, every bite of Creamio is crafted to turn simple moments into sweet memories — taste the joy, share the love.';
    position: absolute;
    color: var(--primary-color);
    left: 4px;
    bottom: 2px;
    z-index: -1;
}

/* footer */

footer{
    color: #fff;
    position: relative;
}

footer .shape{
    display: flex;
    align-items: end;
    margin-bottom: -2px;
}

.main-row{
    background-color: var(--primary-color);
}

footer .row{
    max-width: 1600px;
    margin: auto;
    padding: 4rem 2.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.5fr;
}

footer .row .tagline{
    font-weight: 500;
    margin-top: 0.5rem;
}

footer .menu-title{
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

footer .row ul{
    list-style-type: none;
}

footer .row ul span{
    margin-right: 0.5rem;
}

footer .row ul a{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: 300;
    margin: 0.5rem 0;
}

footer .social-links{
    display: flex;
    gap: 1.2rem;
}

footer .social-links a{
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
}

footer a:hover{
    opacity: 0.7;
}

.copyright{
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    padding: 2rem;
    border-top: 1px solid #ffffff9b;
    max-width: 1600px;
    margin: auto;
}
/* Mobile Responsiveness - Header & Hero */
@media (max-width: 900px) {
    /* Header & Nav */
    header {
        padding: 1rem 1.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: none;
        border-radius: 0;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    nav ul a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 101;
        position: relative;
    }

    /* Hero */
    .hero-wrapper {
        min-height: 80vh;
    }

    .hero-wrapper h1 {
        margin-bottom: 15rem;
    }
    
    .hero-wrapper h1 .fill-text {
        font-size: clamp(3rem, 12vw, 5rem);
        margin-left: 0;
    }
    
    .hero-wrapper h1 .strok-text {
        font-size: clamp(4rem, 14vw, 6rem);
    }
    
    @media (max-width: 900px) {

    .hero-wrapper .floating-img {
        display: block;
        opacity: 0.6;
        filter: blur(0.3px);
    }

    .hero-wrapper .img1 {
        max-width: 40px;
        top: 10%;
        right: 12%;
    }

    .hero-wrapper .img2 {
        max-width: 60px;
        left: 6%;
        top: 46%;
    }

    .hero-wrapper .img3 {
        max-width: 55px;
        right: 6%;
        top: 62%;
    }
}


    .hero-wrapper .scoops {
        max-width: 80%;
        bottom: 10%;
    }
}

/* Mobile Responsiveness - Products & Footer */
@media (max-width: 900px) {
    /* Product Sections */
    .product-wrapper {
        min-height: auto;
        padding: 4rem 1.5rem;
    }

    .product-wrapper .content-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .product-wrapper .img-wrapper {
        flex-basis: auto;
        margin-right: 0;
    }
    
    .product-wrapper .img-wrapper .product-img {
        margin-right: 0;
        max-width: 60vw;
        transform: rotate(10deg); /* Reduce rotation */
    }

    .product-wrapper .product-slices {
        max-width: 50vw;
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: -20px;
    }

    .product-wrapper .content {
        flex-basis: auto;
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .product-wrapper .content .title {
        font-size: 2.5rem;
    }

    .product-wrapper .content .desc {
        font-size: 1.1rem;
    }

    /* Text Wrapper */
    .text-wrapper {
        padding: 4rem 1.5rem;
    }
    
    .text-wrapper .text {
        font-size: 2rem;
    }

    /* Footer */
    footer .row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    footer .social-links {
        justify-content: center;
    }

    footer .col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Improved Mobile Menu Overlay */
@media (max-width: 900px) {
    nav {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #FFF6E6; /* Match bg color */
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
    }

    .mobile-menu-overlay.active {
        right: 0;
    }

    .mobile-menu-overlay ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 0;
    }

    .mobile-menu-overlay ul a {
        font-size: 2rem;
        color: var(--primary-color);
        text-decoration: none;
        font-family: var(--heading-font);
    }

    .mobile-menu-overlay .close-btn {
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2.5rem;
        color: var(--primary-color);
        cursor: pointer;
    }
}
/* HERO DISHES FIX */
.hero-dishes{
  position: absolute;
  inset: 0;
  z-index: 3;              /* 🔥 IMPORTANT */
  pointer-events: none;
}

.hero-dishes .dish{
  position: absolute;
  left: 50%;
  top: 70%;                     /* ⬇️ moved down */
  transform: translate(-50%, -50%);
  max-width: 680px;
  width: 100%;
  opacity: 0;
}
.reveal-letter{
  display: inline-block;
  will-change: transform, opacity;
}
.text-wrapper .text::before,
.text-wrapper .text::after{
  content: none !important;
}

