/* --- VARIABLES & CORE PRESETS --- */
:root {
    --primary: #d4af37;
    /* Elegant Gold */
    --primary-dark: #aa8c2c;
    --primary-light: #f3e5ab;
    --bg-dark: #070707;
    /* Deeper black for luxury feel */
    --bg-surface: #111111;
    --bg-surface-light: #181818;
    --border-color: rgba(212, 175, 55, 0.2);

    --text-pure: #ffffff;
    --text-main: #e6e6e6;
    --text-muted: #999999;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-slow: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* ==================================================
   Custom Scrollbar
================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--primary-light);
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: var(--text-pure);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-pure);
}

h4 {
    font-size: 1.2rem;
    color: var(--primary);
    font-family: var(--font-body);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

p {
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-main);
}

.subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.decorative-line {
    width: 60px;
    height: 1px;
    background-color: var(--primary);
    margin: 1.5rem 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- UI COMPONENTS --- */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition-fast);
    border-radius: 0;
    font-weight: 500;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-dark);
}

.btn-primary:hover::before {
    width: 100%;
}

.link-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
    padding: 0;
}

.link-btn::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--primary);
    margin-left: 15px;
    transition: width 0.3s ease;
}

.link-btn:hover {
    color: var(--text-pure);
}

.link-btn:hover::after {
    width: 50px;
    background-color: var(--text-pure);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.2rem 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-pure);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 1px;
    background-color: var(--text-pure);
    margin: 6px 0;
    transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero p:not(.subtitle) {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    max-width: 500px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    position: relative;
    margin-bottom: 10px;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 2px;
}

.scroll-indicator p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 0;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- MARQUEE --- */
.marquee-container {
    background-color: var(--primary-dark);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: fit-content;
}

.marquee-content span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0 2rem;
}

.marquee-content .dot {
    padding: 0;
    color: var(--bg-dark);
    opacity: 0.5;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- ABOUT SECTION --- */
.about {
    padding: 10rem 10%;
    background-color: var(--bg-surface);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-image-wrapper {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.parallax-bg {
    width: 85%;
    height: 90%;
    margin-left: auto;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 2px;
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.about-accent-frame {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 50%;
    height: 70%;
    border: 1px solid var(--primary-dark);
    z-index: 1;
}

.about-experience-badge {
    position: absolute;
    bottom: 10%;
    left: 5%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.about-experience-badge .years {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--primary);
    line-height: 1;
}

.about-experience-badge .text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-pure);
    line-height: 1.4;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* --- COLLECTION SECTION --- */
.collection {
    padding: 8rem 6%;
    background-color: var(--bg-dark);
}

.collection-header {
    text-align: center;
    margin-bottom: 5rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--bg-surface);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid transparent;
}

.card:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
}

.card-img-wrapper {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

/* Improved Readability: Moved text completely to a solid dark block below the image */
.card-content {
    padding: 2.5rem 2rem;
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-content .link-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --- CONTACT SECTION (Updated) --- */
.contact {
    padding: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--bg-surface-light);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('assets/images/perfume_contact_bg.png') center/cover no-repeat;
    opacity: 0.3;
    filter: grayscale(100%);
}

.contact-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 10%;
    z-index: 2;
}

.contact-box {
    background-color: var(--bg-dark);
    padding: 5rem 4rem;
    width: 100%;
    max-width: 600px;
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.detail-icon {
    color: var(--primary);
    padding-top: 5px;
}

.detail-item h4 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.detail-item p {
    color: var(--text-pure);
    margin: 0;
    line-height: 1.5;
}

.detail-item .muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* --- FOOTER --- */
footer {
    background-color: #030303;
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-logo span {
    color: var(--primary);
    font-style: italic;
}

footer p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}


/* --- MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: sticky;
    top: 20px;
    display: block;
    margin-left: auto;
    margin-right: 25px;
    margin-top: 20px;
    margin-bottom: -30px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 100;
    line-height: 1;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-pure);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 4fr 5fr;
}

.modal-image-col {
    width: 100%;
    height: 100%;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text-col {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
}

.modal-desc {
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.fragrance-notes {
    margin-bottom: 3rem;
    background: var(--bg-dark);
    padding: 1.5rem;
    border-left: 2px solid var(--primary);
}

.fragrance-notes h4 {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.fragrance-notes ul {
    list-style: none;
}

.fragrance-notes li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.fragrance-notes strong {
    color: var(--text-pure);
    font-weight: 400;
    display: inline-block;
    width: 120px;
}

.modal-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-light);
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.capacity {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
}


/* --- ANIMATIONS & REVEALS --- */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: var(--transition-slow);
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.5s;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-image-wrapper {
        height: 500px;
        margin-top: 2rem;
    }

    .parallax-bg {
        width: 100%;
        height: 100%;
    }

    .about-accent-frame {
        display: none;
    }

    .about-experience-badge {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        justify-content: center;
        padding: 1.5rem;
        animation: none;
    }

    .contact::before {
        display: none;
    }

    .contact {
        padding: 5rem 6%;
    }

    .contact-wrapper {
        padding-right: 0;
        justify-content: center;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-image-col {
        height: 300px;
    }

    .modal-text-col {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }

    .hamburger.toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    .hero {
        background-attachment: scroll;
    }

    /* Disable parallax on mobile for performance */
    h1 {
        font-size: 3rem;
    }

    .fragrance-notes strong {
        width: 100%;
        display: block;
        margin-bottom: 2px;
    }
}

/* --- MOBILE HORIZONTAL OUT OF BOUNDS SWIPE FIX --- */
html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
}

section,
footer,
.hero {
    max-width: 100%;
    overflow-x: hidden;
}