.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #246277;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Subtle Noise Texture Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    z-index: 5;
}

/* Text Animations */
.hero-content h1 {
    font-family: 'Yellowtail', cursive;
    font-size: 8rem;
    line-height: 0.9;
    color: white;
    margin-bottom: 20px;
    transform: translateY(120px) rotate(5deg) scale(0.9);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin-bottom: 35px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.hero-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--accent-color, #E88D23);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-slide.active .hero-content h1 {
    transform: translateY(0) rotate(0) scale(1);
    opacity: 1;
}

.hero-slide.active .hero-content p,
.hero-slide.active .hero-content .cta-button {
    transform: translateY(0);
    opacity: 1;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--accent-color, #E88D23);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Visuals */
.hero-product {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-visual {
    position: relative;
    z-index: 3;
    transform: scale(0.8) rotate(5deg);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.hero-slide.active .product-visual {
    transform: scale(1) rotate(0);
    opacity: 1;
}

.main-product-img {
    width: 550px;
    height: 380px;
    object-fit: cover;
    border-radius: 40px;
    filter: drop-shadow(30px 50px 50px rgba(0, 0, 0, 0.3));
}

.product-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: -1;
    opacity: 0.3;
}

.spice-pile {
    position: absolute;
    bottom: 0px;
    left: -10px;
    width: 300px;
    z-index: 2;
    transform: scale(0.8);
    opacity: 0;
    transition: all 1s ease 0.6s;
}

.hero-slide.active .spice-pile {
    transform: scale(1);
    opacity: 1;
}

.hero-leaves {
    position: absolute;
    top: -30%;
    right: -100px;
    width: 300px;
    z-index: 1;
    transform: rotate(20deg) scale(0.5);
    opacity: 0;
    transition: all 1.5s ease 0.8s;
}

.hero-slide.active .hero-leaves {
    transform: rotate(0) scale(1);
    opacity: 1;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: white;
    color: var(--hero-bg);
}

/* Numbering Indicator */
.slider-numbering {
    position: absolute;
    bottom: 100px; /* Positioned clearly above the splatter edge */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 25;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    pointer-events: none;
}

.slider-numbering .number {
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition);
    pointer-events: auto;
    font-weight: 400;
}

.slider-numbering .number.active {
    opacity: 1;
    font-weight: 700;
    transform: scale(1.1);
}

.slider-numbering .separator {
    opacity: 0.2;
    font-weight: 300;
}

/* Torn Paper Effect */
.torn-paper-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 140px;
    background: white;
    /* Using project's original pattern image */
    -webkit-mask-image: url('../assets/pattern.webp');
    mask-image: url('../assets/pattern.webp');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    z-index: 15;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-product {
        order: 1;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .main-product-img {
        width: 100%;
        max-width: 350px;
        height: 250px;
        object-fit: cover;
    }

    .spice-pile {
        width: 200px;
    }

    .hero-leaves {
        width: 150px;
    }

    .slider-nav {
        padding: 0 10px;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    .slider-numbering{
        display: none !important;
    }
}