/* =========================================
   GLOBAL TYPOGRAPHY & VARIABLES
========================================= */
@font-face {
    font-family: 'JUST Sans';
    src: url('assets/fonts/JUST Sans ExBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lato Bold';
    src: url('assets/fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-blue: #18489A;
    --primary-yellow: #F7ED22;
}

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

body {
    background-color: #ffffff;
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
}

h1,
h2,
h3 {
    font-family: 'JUST Sans', sans-serif;
}

/* =========================================
   SHARED: TOP NAVIGATION
========================================= */
.topnav {
    background-color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.topnav .logo {
    color: var(--primary-yellow);
    text-decoration: none;
    font-family: 'JUST Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    transform: scaleX(1.3);
    transform-origin: left center;
}

.logo-white {
    color: #ffffff;
}

.topnav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 60px;
}

.topnav ul li a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-family: 'JUST Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    display: inline-block;
    transform: scaleX(1.2);
    transition: color 0.2s ease;
}

.topnav ul li a:hover,
.topnav ul li a.active {
    color: #ffffff;
}

.topnav ul li button {
    color: var(--primary-yellow);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s ease;
}

.topnav ul li button:hover {
    color: #ffffff;
}

/* =========================================
   PAGE: BERANDA (INDEX)
========================================= */
.hero {
    width: 100%;
    position: relative;
}

.hero img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #e4e4e4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.hero-slider-btn i {
    color: var(--primary-blue);
    font-size: 28px;
    margin-left: 4px;
}

.hero-slider-btn:hover {
    background-color: #d1d1d1;
    transform: translateY(-50%) scale(1.05);
}

.infobanner {
    background-color: var(--primary-blue);
    padding: 18px 50px;
}

.infobanner ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.infobanner ul li {
    color: var(--primary-yellow);
    font-size: 16px;
    font-family: 'JUST Sans', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 30px;
    transform: scaleX(1.15);
}

.asterisk-img {
    width: 22px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.content {
    position: relative;
    padding: 100px 20px 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-text {
    max-width: 850px;
    z-index: 2;
    position: relative;
}

.main-text h1 {
    color: var(--primary-blue);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    transform: scaleX(1.25);
}

.main-paragraph {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--primary-blue);
}

.deco {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: flex-end;
}

.left-deco {
    left: 0;
    bottom: 5px;
}

.ellipse-img {
    position: absolute;
    left: -90px;
    bottom: -150px;
    height: 520px;
    width: auto;
    z-index: -1;
}

.left-bottle {
    position: relative;
    width: 250px;
    height: auto;
    margin-left: 60px;
    z-index: 2;
}

.right-deco {
    right: 40px;
    bottom: 5px;
}

.right-bottle {
    width: 250px;
    height: auto;
}

/* =========================================
   PAGE: TENTANG KAMI (ABOUT US)
========================================= */
.about-hero {
    width: 100%;
    position: relative;
    z-index: 1;
}

.about-hero img {
    width: 100%;
    display: block;
}

.about-title-section {
    position: relative;
    width: 100%;
    margin-top: -150px;
    /* Pulled up drastically to cover the right glass bottle */
    z-index: 10;
    display: flex;
    justify-content: flex-end;
}

.title-card {
    background: white;
    padding: 25px 120px 80px 80px;
    border-radius: 100px 0 0 100px;
    /* Removed the box-shadow as requested */
}

.title-card h1 {
    color: var(--primary-blue);
    font-size: 48px;
    margin: 0;
    transform: scaleX(1.15);
    transform-origin: left;
    text-align: end;
}

.story {
    position: relative;
    background: white;
    margin-top: -85px;
    /* Overlaps the bottom of the hero image exactly up to the left glass bottle */
    padding: 80px 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    z-index: 2;/
}

.story-left {
    padding-left: 60px;
    display: flex;
    align-items: center;
}

.story-bottle {
    width: 180px;
    /* Increased bottle size */
    height: auto;
    position: relative;
    z-index: 2;
}

.story-text {
    flex: 1;
    max-width: 800px;
    margin: 0 50px;
}

.story-text p {
    color: var(--primary-blue);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: left;
    font-weight: 400;
}

.story-right {
    position: relative;
    padding-right: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring {
    position: absolute;
    width: 450px;
    /* Made the ellipse slightly larger to match proportions */
    right: -150px;
    bottom: -240px;
    /* Lowered the ellipse significantly */
    z-index: 1;
}

.history-footer-wrapper {
    background-color: var(--primary-blue);
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding-top: 80px;
}

.history {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px 80px;
    gap: 60px;
}

.history-text {
    flex: 1;
}

.history-text h2 {
    color: var(--primary-yellow);
    font-size: 2.8rem;
    margin-bottom: 25px;
    transform: scaleX(1.15);
    transform-origin: left;
}

.history-text p {
    color: white;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: left;
}

.history-image {
    width: 450px;
    flex-shrink: 0;
}

.history-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.about-footer {
    margin-top: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding-top: 0 !important;
}

/* =========================================
   PAGE: PRODUK (PRODUCT)
========================================= */
.product-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: 700px;
    width: 100%;
    padding: 0 80px;
    /* Adjust this URL to point to the correct product hero background if different */
    background-image: url('../assets/img/Heroimg4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-title {
    color: white;
    transform: scaleX(1.15);
    transform-origin: left;
    margin-top: 100px;
}

.product-title h3 {
    color: var(--primary-blue);
    font-size: 28px;
    margin-bottom: 10px;
}

.product-title h1 {
    font-size: 64px;
    line-height: 1;
}

.white-text {
    color: white;
}

.blue-text {
    color: var(--primary-blue);
}

.aroma-gallery-header {
    position: relative;
    z-index: 10;
    background: var(--primary-blue);
    border-radius: 40px 40px 0 0;
    padding: 40px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -50px;
    /* Overlaps hero */
    transition: all 0.3s ease;
}

.gallery-title h1 {
    color: var(--primary-yellow);
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.2;
    transform: scaleX(1.15);
    transform-origin: left;
}

.gallery-subtitle {
    color: white;
    font-size: 20px;
    font-weight: 400;
    margin-top: 5px;
}

.selengkapnya-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    font-family: 'JUST Sans', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    transition: opacity 0.3s ease;
}

.selengkapnya-link:hover {
    opacity: 0.8;
}

.arrow-icon {
    width: 35px;
    height: 35px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    font-size: 16px;
}

/* HIDDEN STATES FOR EXPANDED VIEW */
.aroma-gallery-header.expanded .gallery-subtitle,
.aroma-gallery-header.expanded .selengkapnya-link {
    display: none;
}

.perfume-gallery {
    padding: 60px 80px 100px;
    background-color: var(--primary-yellow);
    position: relative;
    transition: all 0.3s ease;
}

.perfume-carousel {
    display: flex;
    gap: 40px;
    overflow-x: hidden;
    /* Hide scrollbar, use arrow to scroll */
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

/* EXPANDED GRID VIEW */
.perfume-gallery.expanded .perfume-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 60px;
    column-gap: 40px;
    overflow-x: visible;
}

.perfume-card {
    flex: 0 0 calc((100% - 80px) / 3);
    /* Shows exactly 3 items considering 2 gaps of 40px */
    display: flex;
    flex-direction: column;
}

.perfume-card-img {
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
}

.perfume-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.perfume-card-img:hover img {
    transform: scale(1.05);
}

.card-label {
    display: none;
    text-align: center;
    color: var(--primary-blue);
    font-size: 32px;
    margin-top: 20px;
    text-transform: uppercase;
}

/* Display labels ONLY when expanded */
.perfume-gallery.expanded .card-label {
    display: block;
}

/* Gallery Scroll Arrow */
.gallery-arrow-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gallery-arrow-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow-btn i {
    color: var(--primary-blue);
    font-size: 30px;
    margin-left: 4px;
}

/* Hide arrow when expanded */
.perfume-gallery.expanded .gallery-arrow-btn {
    display: none;
}

/* =========================================
   PAGE: KONTAK KAMI (CONTACT)
========================================= */
.contact-bg {
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* THE BOTTOM CARD */
.contact-wrapper {
    background: linear-gradient(to right, var(--primary-blue), #18407B);
    border-radius: 60px 60px 0 0;
    margin-top: 40px;
    width: 100%;
    position: relative;
    /* Gives space behind the overlapping top card */
}

.featured-section {
    width: 100%;
}

.featured-heading {
    padding: 60px 80px 40px;
    color: var(--primary-yellow);
    font-family: 'JUST Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    transform: scaleX(1.15);
    transform-origin: left;
}

.featured-card {
    position: relative;
    width: 100%;
    height: 550px;
    /* Transparent blue tint overlay applied directly on top of the image */
    background-image: linear-gradient(rgba(24, 72, 154, 0.5), rgba(24, 72, 154, 0.5)), url('../assets/img/hand.jpg');
    background-size: cover;
    background-position: center;
}

.featured-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 80px;
    width: 450px;
    background-color: rgba(247, 237, 34, 0.35);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.featured-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    transform: scaleX(1.15);
    transform-origin: left;
}

.featured-content p {
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
}

.read-more {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-family: 'Lato Bold', sans-serif;
    font-size: 20px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.8;
}

.contact-arrow-btn {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.contact-arrow-btn i {
    color: var(--primary-blue);
    font-size: 40px;
    margin-left: 4px;
}

.contact-arrow-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

/* THE TOP CARD */
.contact-footer-card {
    background-color: var(--primary-blue) !important;
    /* Solid blue */
    border-radius: 60px 60px 0 0 !important;
    margin-top: 50px !important;
    /* Pulls it up slightly to overlap the gradient card */
    position: relative;
    z-index: 20;
    /* Ensures it sits on top */
}

/* =========================================
   SHARED: FOOTER
========================================= */
.footer {
    color: var(--primary-yellow);
}

.footer-img {
    width: 100%;
    height: 600px;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.footer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.footer-card {
    position: relative;
    margin-top: -36px;
    z-index: 6;
    width: 100%;
    background: var(--primary-blue);
    border-radius: 36px 36px 0 0;
    padding: 45px 0 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    align-items: center;
    padding-bottom: 30px;
}

.footer-left {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
    text-align: right;
}

.footer-left .logo {
    font-family: 'JUST Sans', sans-serif;
    font-weight: 800;
    font-size: 46px;
    line-height: .9;
    text-decoration: none;
    color: var(--primary-yellow);
    transform: scaleX(1.15);
}

.footer-left .logo span {
    color: white;
}

.footer-divider {
    width: 2px;
    height: 190px;
    background: var(--primary-yellow);
}

.footer-right {
    padding-left: 60px;
}

.footer-right ul {
    list-style: none;
}

.footer-right li {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    font-size: 16px;
}

.footer-right li a {
    color: var(--primary-yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: opacity 0.2s ease;
}

.footer-right li a:hover {
    opacity: 0.7;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-bottom {
    font-weight: 400;
    text-align: center;
    color: var(--primary-yellow);
    padding: 25px 0 20px;
    line-height: 1.5;
    font-size: 14px;
}

.footer-bottom i {
    font-size: 16px;
    margin-right: 8px;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 768px) {

    .topnav,
    .history,
    .aroma-gallery-header {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .topnav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .hero-slider-btn {
        width: 45px;
        height: 45px;
        right: 20px;
    }

    .main-text h1,
    .history-text h2,
    .featured-heading {
        font-size: 3rem;
    }

    .deco {
        display: none;
    }

    .about-title-section {
        margin-top: -60px;
    }

    .title-card {
        padding: 15px 30px;
    }

    .story {
        margin-top: 0;
        flex-direction: column;
        gap: 40px;
    }

    .story-ring {
        display: none;
    }

    .story-bottle {
        display: none;
    }

    .history-image {
        width: 100%;
    }

    .perfume-gallery.expanded .perfume-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .perfume-card {
        flex: 0 0 calc(50% - 20px);
    }

    .contact-wrapper {
        margin-top: 20px;
        border-radius: 40px 40px 0 0;
    }

    .featured-heading {
        padding: 40px 20px 20px;
        text-align: center;
        transform: scaleX(1);
    }

    .featured-content {
        left: 0;
        width: 100%;
        background-color: rgba(247, 237, 34, 0.6);
        padding: 40px 20px;
        text-align: center;
    }

    .featured-content h1 {
        transform: scaleX(1);
    }

    .contact-arrow-btn {
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .contact-arrow-btn i {
        font-size: 24px;
    }


    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-divider {
        display: none;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
        text-align: center;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .perfume-gallery.expanded .perfume-carousel {
        grid-template-columns: 1fr;
    }

    .perfume-card {
        flex: 0 0 100%;
    }
}