@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Work+Sans:wght@400;700;800&display=swap');

@keyframes imageCarousel {
    0% {
        background-image: url(/assets/hp-landing1.png);
        transform: scale(1);
    }
    24.99% {
        background-image: url(/assets/hp-landing1.png);
        transform: scale(1.1);
    }

    25% {
        background-image: url(/assets/hp-landing2.jpg);
        transform: scale(1);
    }
    49.99% {
        background-image: url(/assets/hp-landing2.jpg);
        transform: scale(1.1);
    }

    50% {
        background-image: url(/assets/hp-landing3.jpg);
        transform: scale(1);
    }
    74.99% {
        background-image: url(/assets/hp-landing3.jpg);
        transform: scale(1.1);
    }

    75% {
        background-image: url(/assets/hp-landing4.jpg);
        transform: scale(1);
    }
    100% {
        background-image: url(/assets/hp-landing4.jpg);
        transform: scale(1.1);
    }
}

@keyframes textFillZoom {
    0%, 25%, 50%, 75% { background-size: 150%; }
    24.99%, 49.99%, 74.99%, 100% { background-size: 165%; }
}

@keyframes textImageSwitch {
    0% { background-image: url(/assets/hp-landing1.png); }
    25% { background-image: url(/assets/hp-landing2.jpg); }
    50% { background-image: url(/assets/hp-landing3.jpg); }
    75% { background-image: url(/assets/hp-landing4.jpg); }
    100% { background-image: url(/assets/hp-landing1.png); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    padding: 0;
    margin: 0;
    background-color: #FAF9F6;
    font-family: 'Work Sans', sans-serif;
    color: #43371D; 
    position: relative;
    overflow-x: hidden;
}

.home-navbar {
    background-color: transparent; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 5%;
    position: fixed;
    top: 0;
    left: 0; 
    width: 100%; 
    box-sizing: border-box; 
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.home-navbar.scrolled {
    background-color: #F6E9CD;
    box-shadow: 0 0.5vw 2vw #43371d4d;
}

.navbar-logo {
    height: auto;
    width: clamp(100px, 20vw, 180px); 
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.5rem);
}

.nav-links a {
    text-decoration: none;
    color: #F6E9CD;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    white-space: nowrap;
    transition: color 0.4s ease;
}

.home-navbar.scrolled .nav-links a {
    color: #43371D;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #F6E9CD;
    transition: all 0.3s ease-in-out;
}

.home-navbar.scrolled .bar {
    background-color: #43371D;
}

.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8% 5%;
    color: #FAF9F6; 
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 100vh;
}

.landing-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: imageCarousel 20s linear infinite;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.landing-page-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-page-textgroup {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.2;
}

.landing-page-textgroup span {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(4.5rem, 11vw, 8rem);
    line-height: 1;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: textImageSwitch 20s steps(1, end) infinite,
               textFillZoom 20s linear infinite;
}

.landing-separator {
    height: 2px;
    width: 60%; 
    background-color: #FAF9F6;
    margin: 1.5rem 0;
}

.learn-more-button a {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #F6E9CD;
    color: #43371D;
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s ease-in-out;
    text-decoration: none;
}

.learn-more-button a:hover {
    transform: scale(1.05);
}

.animated-section {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
.animated-section.visible {
    opacity: 1;
}
.anim-fade-in-up, .anim-fade-in-left, .anim-fade-in-right {
    opacity: 0;
}
.animated-section.visible .anim-fade-in-up {
    animation: fadeInUp 1s ease forwards;
}
.animated-section.visible .anim-fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}
.animated-section.visible .anim-fade-in-right {
    animation: fadeInRight 1s ease forwards;
}
.animated-section.visible .delay-1 { animation-delay: 0.2s; }
.animated-section.visible .delay-2 { animation-delay: 0.4s; }
.animated-section.visible .delay-3 { animation-delay: 0.6s; }

.about-rasamurni {
    background-color: #F6E9CD;
    padding: 8% 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    overflow: hidden;
}

.about-rasamurni-content {
    flex: 1;
    max-width: 55%;
}

.about-rasamurni-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #5E5E4E;
    line-height: 1.2;
}

.about-rasamurni-title span {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3.5rem, 7.5vw, 6rem);
    color:#43371D;
}

.about-rasamurni-text {
    margin-top: 1.5rem;
    color: #5E5E4E;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}

.about-rasamurni-text span {
    font-weight: 700;
}

.about-rasamurni img {
    flex: 1;
    max-width: 40%;
    height: auto;
}

.why-rasamurni-header {
    text-align: center;
    padding: 8% 5% 5%;
}

.why-rasamurni-header span {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(4rem, 8vw, 7rem);
  color: #43371D;
  padding: 0;
  line-height: 1;
}

.why-rasamurni-separator {
    height: 2px;
    background-color:#43371D;
    margin: 1.5rem auto;
    width: 50%;
}

.why-rasamurni-header-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.why-cards {
    margin: 3% 5%;
    background-color: #F6E9CD;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
}

.why-cards.reverse {
    flex-direction: row-reverse;
}

.why-cards img {
    width: 45%;
    flex-shrink: 0;
}

.why-cards-text {
    flex-grow: 1;
}

.why-cards-heading1 {
    font-family: 'DM Serif Display', serif;
    color: #43371D;
    line-height: 0.5;
}

.why-cards-heading2, .why-cards-heading3 {
    font-family: 'DM Serif Display', serif;
    color: #43371D;
    line-height: 1;
}

.why-cards-heading1 { font-size: clamp(3rem, 7vw, 5rem); }
.why-cards-heading1 span { font-size: clamp(1.5rem, 3.5vw, 3rem); font-family: 'Work Sans', sans-serif; color: #6A5830; }

.why-cards-heading2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.why-cards-heading2 span { font-size: clamp(1.2rem, 2.5vw, 2.5rem); font-family: 'Work Sans', sans-serif; color: #6A5830; }

.why-cards-heading3 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-family: 'Work Sans', sans-serif; color: #6A5830; }
.why-cards-heading3 span { font-size: clamp(3.5rem, 8vw, 6rem); font-family: 'DM Serif Display', serif; color: #43371D; }

.why-cards-description {
    font-family: 'Work Sans', sans-serif;
    color: #6A5830;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    margin-top: 1rem;
}

.best-sellers-section {
    padding: 5%;
}
.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #43371D;
    margin-top: 0;
    margin-bottom: 3rem;
    line-height: 1;
    font-weight: 800;
    text-align: center;
}
.title-subheading {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: #6A5830;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}
.product-container {
    border-radius: 1rem;
    transition: all 0.3s ease-out;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    padding-bottom: 1rem;
}
.product-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-container img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.brand {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin: 1rem 0 0.25rem;
}
.product-name {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin: 0;
    font-weight: 700;
    text-transform: capitalize;
}
.price {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: gray;
    margin: 0.5rem 0 0;
}

.contact-us-section {
    padding: 5% 5%;
    background-color: #F6E9CD;
}
.contact-us-section .section-title {
    margin: 0 auto 3rem auto;
    background-color: transparent;
}
.contact-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-card {
    background-color: #2a2211;
    padding: 2rem;
    border-radius: 1.5rem;
}

.contact-card-2 {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
}

.contact-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 0;
    text-align: center;
    color: #F6E9CD;
}

.contact-card-2 h3 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 0;
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color:#F6E9CD;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    transition: color 0.2s;
}
.contact-link:hover {
    color: #6A5830;
}
.contact-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.marketplace-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 5vw;
    margin-top: -12vw;
}
.marketplace-logos a {
    transition: transform 0.2s;
}
.marketplace-logos a:hover {
    transform: scale(1.1);
}
.marketplace-logos img {
    width: clamp(60px, 10vw, 80px);
    height: auto;
}

.main-footer {
    background-color: #43371D;
    color: #F6E9CD;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

.floating-shop-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #6A5830;
    color: #F6E9CD;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease-out;
}

.floating-shop-button:hover {
    background-color: #43371D;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

@media (max-width: 992px) {
    .about-rasamurni img {
        display: none;
    }
    .about-rasamurni-content {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        z-index: 1001;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: 100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: #2a2211;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        color: #F6E9CD;
        font-size: 1.5rem;
        padding: 1.5rem 0;
    }

    .home-navbar.scrolled .nav-links a {
        color: #F6E9CD;
    }

    .why-cards, .why-cards.reverse {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .why-cards img {
        max-width: 80%;
        width: 100%;
        margin-bottom: 0;
    }

    .why-cards.reverse {
        flex-direction: column;
    }
    
    .why-cards-text {
        text-align: center;
    }
    
    .contact-us-grid {
        grid-template-columns: 1fr;
    }

    .floating-shop-button {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.8rem 1.2rem;
    }

    .why-rasamurni-header {
        padding: 15% 5% 10%;
    }
    .why-rasamurni-header span {
        font-size: 12vw;
    }
}