/* ----------------------------------------------------
   Design Tokens & Variables
   ---------------------------------------------------- */
:root {
    --color-cream: #D6B58B;
    --color-sand: #C6B49B;
    --color-brown: #3E2723;
    --color-white: #FFFFFF;
    --color-white-translucent: rgba(255, 255, 255, 0.5);
    --color-white-border: rgba(255, 255, 255, 0.7);
    --color-bg-card: rgba(255, 255, 255, 0.28);
    
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Cormorant Garamond', serif;
    
    --radius-large: 40px;
    --radius-medium: 20px;
    --radius-small: 10px;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ----------------------------------------------------
   Reset & Base Styles
   ---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-cream);
    color: var(--color-brown);
    font-family: var(--font-heading);
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body {
    position: relative;
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    line-height: 1.6;
    font-weight: 300;
}

/* Topographic Background Wavy Pattern */
.topographic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.48;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cpath d='M-50,150 C50,120 100,220 200,180 C250,160 300,250 350,220' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Cpath d='M-50,100 C50,70 120,180 220,130 C270,110 320,190 370,170' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Cpath d='M-50,200 C50,170 120,280 220,230 C270,210 320,290 370,270' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Cpath d='M50,-50 C120,50 180,-20 230,80 C280,180 200,250 350,350' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Cpath d='M100,-50 C170,30 230,-40 280,60 C330,160 250,230 400,330' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-brown);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ----------------------------------------------------
   Reusable Buttons (Magnetic Concept)
   ---------------------------------------------------- */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1;
    overflow: hidden;
    border: none;
}

.magnetic-btn .btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-brown);
    color: var(--color-white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.5s ease, height 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(62, 39, 35, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-brown);
    border: 1px solid var(--color-brown);
}

.btn-outline:hover {
    background-color: var(--color-brown);
    color: var(--color-cream);
    transform: scale(1.02);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ----------------------------------------------------
   Header & Navigation
   ---------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
    background-color: rgba(214, 181, 139, 0.88);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header.scrolled {
    padding: 16px 6%;
    box-shadow: 0 5px 20px rgba(62, 39, 35, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(62, 39, 35, 0.05));
    transition: var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.03);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-brown);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* ----------------------------------------------------
   Section 1: Hero Section
   ---------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    opacity: 0.52;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(245,232,199,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-brown);
    opacity: 0.8;
}

.hero-headline {
    font-family: var(--font-script);
    font-size: clamp(3.2rem, 8.5vw, 6.8rem);
    line-height: 1.1;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 25px;
    color: var(--color-brown);
}

.hero-subheadline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--color-brown);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    color: var(--color-brown);
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-brown);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-brown);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 18px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* ----------------------------------------------------
   Grid and Container Basics
   ---------------------------------------------------- */
.section-container {
    padding: 100px 6%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.section-desc {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 15px auto 0 auto;
    opacity: 0.85;
}

/* ----------------------------------------------------
   Section 2: Bento Grid Product Showcase
   ---------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.bento-item {
    background-color: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-white-border);
    border-radius: var(--radius-large);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.03);
}

.bento-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.07);
}

.bento-large {
    grid-column: span 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.bento-medium {
    grid-column: span 4;
    min-height: 450px;
    position: relative;
}

.bento-medium .bento-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bento-medium .bento-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 30px;
    background: linear-gradient(to top, rgba(62, 39, 35, 0.95) 0%, rgba(62, 39, 35, 0.70) 50%, rgba(62, 39, 35, 0) 100%);
    color: var(--color-white);
    transform: translateY(60px);
    transition: var(--transition-smooth);
}

.bento-medium:hover .bento-details {
    transform: translateY(0);
}

.bento-medium .product-title {
    color: var(--color-white);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.bento-medium .product-category {
    color: var(--color-sand);
}

.bento-medium .product-desc {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.bento-medium .note-tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}

.bento-medium .product-action-wrapper {
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.bento-medium:hover .product-action-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.bento-medium-2 {
    grid-column: span 7;
    padding: 50px;
    justify-content: center;
    min-height: 380px;
}

.bento-text-card {
    grid-column: span 5;
    padding: 50px;
    justify-content: center;
    align-items: center;
    background-color: var(--color-brown);
    color: var(--color-cream);
    border: none;
    min-height: 380px;
    text-align: center;
}

.bento-text-card:hover {
    background-color: #4b302a;
}

.bento-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.15);
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover .bento-img {
    transform: scale(1.05);
}

.bento-details {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0.01em;
}

.product-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.product-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.note-tag {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--color-brown);
}

.brand-statement-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
}

.statement-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-sand);
    font-weight: 600;
}

.statement-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.65rem;
    line-height: 1.4;
    color: var(--color-white);
}

.statement-author {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-transform: uppercase;
}

/* ----------------------------------------------------
   Section 3: Split-Screen Buhoor Section
   ---------------------------------------------------- */
.split-section {
    background-color: transparent;
}

.split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    background-color: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-white-border);
    border-radius: var(--radius-large);
    padding: 60px;
    align-items: center;
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.03);
}

.split-left {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.burner-image-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(62, 39, 35, 0.12);
}

.burner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.split-wrapper:hover .burner-image {
    transform: scale(1.03);
}

.split-right {
    display: flex;
    flex-direction: column;
}

.ritual-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    margin: 10px 0 35px 0;
    line-height: 1.2;
}

.ritual-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.ritual-step {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.step-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-brown);
    line-height: 1;
    opacity: 0.7;
    margin-top: 2px;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
}

.ritual-action {
    margin-top: 10px;
}

/* ----------------------------------------------------
   Section 4: Fragrance Layering (Horizontal Scroll)
   ---------------------------------------------------- */
.horizontal-scroll-section {
    position: relative;
}

.horizontal-scroll-container-outer {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0 40px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-behavior: smooth;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.layering-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background-color: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-white-border);
    border-radius: var(--radius-large);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.03);
}

.layering-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.06);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-step {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    opacity: 0.7;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 15px;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

.scroll-nav-buttons {
    position: absolute;
    top: -95px;
    right: 0;
    display: flex;
    gap: 15px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-brown);
    background-color: transparent;
    color: var(--color-brown);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.scroll-btn:hover {
    background-color: var(--color-brown);
    color: var(--color-cream);
}

.prev-btn {
    transform: rotate(180deg);
}

/* ----------------------------------------------------
   Section 5: Inquiry & Footer
   ---------------------------------------------------- */
.inquiry-section {
    background-color: transparent;
}

.inquiry-wrapper {
    background-color: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-white-border);
    border-radius: var(--radius-large);
    padding: 80px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.03);
}

.inquiry-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    margin: 10px 0 25px 0;
}

.inquiry-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.inquiry-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Footer styling */
.footer {
    border-top: 1px solid rgba(62, 39, 35, 0.08);
    background-color: rgba(214, 181, 139, 0.95);
    padding: 60px 6% 40px 6%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.footer-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 24px;
    margin-top: 10px;
    max-width: 100%;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 20px;
}

/* ----------------------------------------------------
   GSAP-style Entrance Animation System
   ---------------------------------------------------- */
.animate-trigger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-trigger.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-brown);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Staggered and Directional Entrance Animations */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

.animate-stagger-item {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax element styling */
.parallax-img {
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}


/* Custom Animation Classes for page loads */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.animate-fade-in-up-delay-more {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------
   Responsive Adjustments (Mobile Optimized)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
    .bento-large {
        grid-column: span 12;
        min-height: auto;
        grid-template-columns: 1fr;
    }
    
    .bento-medium {
        grid-column: span 6;
        min-height: 420px;
    }
    
    .bento-medium-2 {
        grid-column: span 6;
        min-height: auto;
        padding: 40px;
    }
    
    .bento-text-card {
        grid-column: span 12;
        min-height: 250px;
        padding: 40px;
    }

    .split-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }

    .split-left {
        order: 2;
    }

    .split-right {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    
    .nav {
        display: none; /* Hide top nav links for extreme mobile simplicity */
    }
    
    .header-cta {
        display: block;
    }

    .hero-section {
        padding: 0 16px;
        width: 100%;
        max-width: 100vw;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-actions .magnetic-btn {
        width: 100%;
    }

    .hero-headline {
        margin-bottom: 20px;
    }

    .hero-subheadline {
        margin-bottom: 30px;
    }

    .section-container {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .bento-grid {
        gap: 20px;
    }

    .bento-medium {
        grid-column: span 12;
    }

    .bento-medium-2 {
        grid-column: span 12;
        padding: 30px 20px;
    }

    .bento-large {
        grid-column: span 12;
    }

    .bento-details {
        padding: 30px 20px;
    }

    .bento-text-card {
        padding: 30px 20px;
    }

    .split-wrapper {
        padding: 30px 20px;
    }

    .horizontal-scroll-container-outer {
        margin-top: 20px;
    }

    .layering-card {
        flex: 0 0 85vw; /* Card width fits screen on mobile swiping */
        padding: 35px 25px;
        border-radius: 30px;
    }

    .scroll-nav-buttons {
        display: none; /* Hide scroll nav buttons, use touch swipe on mobile */
    }

    .inquiry-wrapper {
        padding: 50px 20px;
        border-radius: 30px;
    }

    .inquiry-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .inquiry-actions .magnetic-btn {
        width: 100%;
    }
}

/* ----------------------------------------------------
   WhatsApp settings widget
   ---------------------------------------------------- */
.wa-settings-widget {
    display: none !important;
}

.wa-settings-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-brown);
    color: var(--color-white);
    border: 1px solid var(--color-white-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.15);
    transition: var(--transition-fast);
}

.wa-settings-toggle:hover {
    transform: scale(1.05);
    background-color: #4b302a;
}

.wa-settings-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.wa-settings-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 280px;
    background-color: rgba(214, 181, 139, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-white-border);
    border-radius: var(--radius-medium);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.12);
    display: none;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-fast);
}

.wa-settings-panel.active {
    display: flex;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-settings-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-brown);
}

.wa-settings-desc {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.4;
    color: var(--color-brown);
}

.wa-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-input-group label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    color: var(--color-brown);
}

.wa-settings-input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(62, 39, 35, 0.15);
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--color-brown);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition-fast);
}

.wa-settings-input:focus {
    outline: none;
    border-color: var(--color-brown);
    background-color: rgba(255, 255, 255, 0.85);
}

.wa-settings-btn {
    padding: 10px;
    border-radius: 10px;
    background-color: var(--color-brown);
    color: var(--color-white);
    border: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.wa-settings-btn:hover {
    background-color: #4b302a;
}

/* ----------------------------------------------------
   Catalog Showcase Grid Layout
   ---------------------------------------------------- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.catalog-card {
    background-color: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-white-border);
    border-radius: var(--radius-large);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(62, 39, 35, 0.03);
}

.catalog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.07);
}

.catalog-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.15);
}

.catalog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.catalog-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    justify-content: space-between;
}

.catalog-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.8;
    color: var(--color-brown);
}

.catalog-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--color-brown);
    margin-top: 5px;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* ---- High-Visibility Price & Offer Tag ---- */
.offer-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #c0392b, #962d22);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
    z-index: 5;
    text-transform: uppercase;
}

.catalog-price-container {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-heading);
}

.offer-price-val {
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 800;
    color: #b32d00;
}

.original-price-val {
    text-decoration: line-through;
    opacity: 0.50;
    font-size: clamp(0.88rem, 2.5vw, 1.02rem);
    font-weight: 500;
    color: var(--color-brown);
}

.regular-price-val {
    font-size: clamp(1.10rem, 3.2vw, 1.30rem);
    font-weight: 700;
    color: var(--color-brown);
}

@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .catalog-card {
        border-radius: 18px;
    }

    .catalog-info {
        padding: 14px 10px;
        gap: 10px;
    }

    .catalog-category {
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    .catalog-name {
        font-size: clamp(1.05rem, 3.8vw, 1.35rem);
        margin-top: 2px;
        line-height: 1.2;
    }

    .catalog-info .magnetic-btn {
        padding: 8px 10px;
        font-size: 0.72rem;
        border-radius: 20px;
    }
}
/* ----------------------------------------------------
   Global Floating 3D Bottle Container & Page Shifting
   ---------------------------------------------------- */
.global-three-d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 36vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to standard elements */
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.global-three-d-container.active {
    opacity: 1;
}

.global-three-d-container canvas {
    outline: none;
    pointer-events: auto; /* Let users click/drag the bottle directly if desired */
}

/* Push all main content to the right on desktop to prevent bottle overlapping */
@media (min-width: 1025px) {
    #collection, 
    #catalog, 
    #buhoor-ritual, 
    #layering-guide, 
    #inquire {
        margin-left: 36vw;
        width: calc(100% - 36vw) !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 6% !important;
        transition: margin-left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Tablet view: Show 3D bottle on the right side */
@media (min-width: 769px) and (max-width: 1024px) {
    .global-three-d-container {
        left: auto;
        right: 0;
        width: 40vw;
        height: 100vh;
        z-index: 10;
        pointer-events: none;
        opacity: 0;
    }
    
    .global-three-d-container.active {
        opacity: 1;
    }

    #collection, 
    #catalog, 
    #buhoor-ritual, 
    #layering-guide, 
    #inquire {
        padding-right: 43vw !important; /* Push text content left to clear space for the bottle */
        transition: padding-right 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Mobile view (768px and down): Move bottle to background so text occupies 100% width and does not squash */
@media (max-width: 768px) {
    .global-three-d-container {
        left: 0;
        right: 0;
        width: 100% !important; /* use 100% instead of 100vw to eliminate horizontal scrollbar overflow */
        max-width: 100% !important;
        height: 100vh;
        z-index: -1; /* send behind text content */
        opacity: 0;
        overflow: hidden !important;
    }
    
    .global-three-d-container.active {
        opacity: 0.22; /* soft background watermark (highly legible text on top) */
    }

    #collection, 
    #catalog, 
    #buhoor-ritual, 
    #layering-guide, 
    #inquire {
        padding-left: 20px !important;
        padding-right: 20px !important; /* restore full width readable padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile Footer Layout */
    .footer {
        padding: 40px 16px 30px 16px !important;
        overflow: hidden !important;
    }
    .footer-content {
        gap: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .footer-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px 18px !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    .footer-links a {
        font-size: 0.82rem !important;
        text-align: center;
        white-space: nowrap;
    }
    .footer-contact-info {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 15px 0 5px !important;
    }
}

/* ---- Global Product Quick View Modal ---- */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 16, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.product-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.product-modal {
    background: #faf6f0;
    border-radius: 24px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: scale(0.94) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 35px 80px rgba(0,0,0,0.4);
    scrollbar-width: none;
    overflow: hidden;
}

.product-modal-overlay.open .product-modal {
    transform: scale(1) translateY(0);
}

.product-modal-img-side {
    position: relative;
    background: #ffffff;
    width: 100%;
    height: 100%;
    min-height: 380px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 24px 0 0 24px;
}

.product-modal-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 24px 0 0 24px;
    display: block;
}

.product-modal-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    background: #faf6f0;
}

.modal-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    opacity: 0.6;
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.25;
    color: var(--color-brown);
}

.modal-desc {
    font-size: 0.88rem;
    opacity: 0.8;
    line-height: 1.6;
    color: var(--color-brown);
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-brown);
}

.modal-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.modal-wa-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.modal-wa-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-close svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 700px) {
    .product-modal {
        grid-template-columns: 1fr;
        max-width: 92vw;
    }
    .product-modal-img-side {
        min-height: 240px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        border-radius: 24px 24px 0 0;
    }
    .product-modal-img {
        max-height: 240px !important;
        border-radius: 24px 24px 0 0 !important;
    }
    .product-modal-content {
        padding: 24px 20px;
        gap: 10px;
    }
}

/* ---- 1ST ANNIVERSARY TOP BANNER CARD ---- */
.anniversary-top-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f9f5ef, #f0e6d6, #f9f5ef);
    border-bottom: 1.5px solid #d4af37;
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.08);
    z-index: 999;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    max-height: 200px;
    opacity: 1;
}

.anniversary-top-banner.closed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-bottom: none;
    pointer-events: none;
}

#anniversaryCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.anniversary-banner-container {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.anniversary-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.anniversary-banner-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.anniversary-banner-badge {
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #856404;
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.anniversary-banner-center {
    flex-grow: 1;
    text-align: center;
}

.anniversary-banner-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #3e2723;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.anniversary-banner-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.anniversary-banner-btn {
    background: linear-gradient(135deg, #3e2723, #2a1a17);
    color: #fce8ad;
    border: 1px solid rgba(212, 175, 55, 0.4);
    font-weight: 700;
    font-size: 0.80rem;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(62, 39, 35, 0.2);
    transition: transform 0.25s ease, background-color 0.25s ease;
    white-space: nowrap;
}

.anniversary-banner-btn:hover {
    transform: translateY(-1px);
    background: #1e100c;
}

.anniversary-banner-close {
    background: rgba(62, 39, 35, 0.08);
    border: 1px solid rgba(62, 39, 35, 0.15);
    color: #3e2723;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.anniversary-banner-close:hover {
    background: rgba(62, 39, 35, 0.18);
    transform: scale(1.1);
}

@media (max-width: 860px) {
    .anniversary-banner-container {
        flex-direction: column;
        padding: 10px 14px;
        gap: 8px;
        text-align: center;
    }
    .anniversary-banner-left {
        justify-content: center;
    }
    .anniversary-banner-logo {
        height: 28px;
    }
    .anniversary-banner-text {
        font-size: 0.95rem;
    }
}

/* ---- PERFORMANCE & HARDWARE ACCELERATION OPTIMIZATIONS ---- */
.catalog-card,
.masonry-item,
.bento-item,
.parallax-img,
.header {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

img {
    content-visibility: auto;
}

