@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-color: #ffffff;
    --primary-color: #c9a84c;
    --text-color: #111111;
    --accent-color: #f5f5f5;
    --border-color: #e5e5e5;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8873a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 5px;
    font-weight: 700;
    color: var(--text-color);
}

.logo img {
    height: 60px;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav ul li a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: var(--transition-slow);
    color: #444;
    font-weight: 400;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.icon-link {
    position: relative;
    display: flex;
    align-items: center;
    transition: var(--transition-slow);
    color: #444;
}

.icon-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.icon-link:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    border-radius: 2px;
}

.btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Fast Delivery Banner */
.delivery-banner {
    background: #111;
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.delivery-text {
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.delivery-icon {
    display: inline-flex;
    align-items: center;
    animation: driveTruck 3.5s infinite ease-in-out;
}

.delivery-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes driveTruck {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateX(-10px);
    }

    80% {
        opacity: 1;
        transform: translateX(10px);
    }

    100% {
        transform: translateX(30px);
        opacity: 0;
    }
}

.delivery-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.12), transparent);
    transform: translateX(-100%);
    animation: shimmerBanner 3s infinite;
}

@keyframes shimmerBanner {
    100% {
        transform: translateX(100%);
    }
}

/* Featured Products */
.featured {
    padding: 100px 10%;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.section-title span {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(40px);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--accent-color);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.price {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Brand Story */
.story {
    padding: 100px 10%;
    display: flex;
    align-items: center;
    gap: 80px;
    background: var(--accent-color);
}

.story-content {
    flex: 1;
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition-slow);
}

.story-image {
    flex: 1;
    height: 500px;
    background: url('assets/perfume1.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(-40px);
    transition: var(--transition-slow);
}

.reveal-active {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.story h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* E-commerce Styles */
.cart-section,
.checkout-section {
    padding: 140px 10% 100px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

th,
td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

th {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--accent-color);
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 2px;
    font-weight: 700;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.cart-summary {
    max-width: 400px;
    margin-left: auto;
    background: var(--accent-color);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-color);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 40px;
}

form {
    background: var(--accent-color);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-color);
    outline: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Product Detail Page */
.product-detail-section {
    padding: 130px 10% 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.detail-image-container {
    background: var(--accent-color);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.detail-image {
    width: 100%;
    border-radius: 2px;
    transition: var(--transition-slow);
}

.detail-info span {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
}

.detail-info h1 {
    font-size: 3rem;
    margin: 15px 0;
    color: var(--text-color);
    line-height: 1.2;
}

.detail-info .price {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.shipping-note {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 25px;
    border: 1.5px solid var(--border-color);
    border-radius: 2px;
    width: fit-content;
}

.quantity-selector label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.quantity-selector-wrapper {
    margin-bottom: 30px;
}

.qty-minus,
.qty-plus {
    background: transparent;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: 0.2s;
    font-weight: 300;
}

.qty-minus:hover,
.qty-plus:hover {
    color: var(--primary-color);
}

.qty-display {
    padding: 12px 20px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-width: 50px;
    text-align: center;
    font-weight: 700;
}

.detail-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.perfume-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.note-card {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.note-card h4 {
    color: var(--primary-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 700;
}

.note-card p {
    font-size: 0.85rem;
    color: #555;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-actions .btn {
    width: 100%;
    text-align: center;
    border-radius: 40px;
    padding: 16px 40px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-color);
    border-color: #ccc;
}

.detail-actions .btn:hover {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

.btn-buy-now {
    display: block;
    width: 100%;
    padding: 16px 40px;
    background: var(--text-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 40px;
}

.btn-buy-now:hover {
    background: #333;
}

/* Footer */
footer {
    padding: 60px 10% 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: var(--text-color);
}

.footer-logo img {
    height: 50px;
    object-fit: contain;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.socials a {
    color: #888;
    transition: var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials a svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    header {
        padding: 0 5%;
    }

    .hero {
        padding: 0 5%;
    }

    .featured,
    .story,
    .cart-section,
    .checkout-section,
    .product-detail-section {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 2000;
    }

    .mobile-menu-btn svg {
        width: 28px;
        height: 28px;
        stroke: var(--text-color);
        stroke-width: 2;
        fill: none;
        transition: 0.3s ease;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1500;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
    }

    body.nav-open nav {
        right: 0;
    }

    body.nav-open {
        overflow: hidden;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    nav ul li a {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 3px;
        color: #111;
    }

    .icon-link {
        font-size: 1.2rem;
    }

    .icon-link svg {
        width: 28px;
        height: 28px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .story {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .story-image {
        width: 100%;
        height: 350px;
    }

    .story h2 {
        font-size: 2.2rem;
    }

    .product-detail-section {
        grid-template-columns: 1fr;
        padding: 120px 20px 60px;
        gap: 40px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-summary {
        margin-left: 0;
        max-width: 100%;
    }

    /* Make tables horizontally scrollable */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
    }

    table {
        min-width: 600px;
        border: none;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .stat-counter-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .detail-info h1 {
        font-size: 2.2rem;
    }

    .perfume-notes {
        grid-template-columns: 1fr;
    }

    .stat-counter-wrap {
        grid-template-columns: 1fr;
    }

    /* Add bottom padding so content doesn't hide behind the bar */
    body {
        padding-bottom: 72px;
    }
}

/* ─────────────────────────────────────
   MOBILE BOTTOM NAVIGATION BAR
──────────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #999;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active {
    color: #111;
}

.mobile-bottom-nav a.active svg {
    transform: translateY(-2px) scale(1.1);
    stroke-width: 2.2;
}

.mobile-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #111;
    border-radius: 0 0 4px 4px;
}

/* Cart badge on mobile bar */
.mobile-bottom-nav .mob-cart-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.55rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
}

/* ─────────────────────────────────────
   FRAMER-STYLE SCROLL ANIMATIONS
──────────────────────────────────────── */

/* ── Spring easing (Framer Motion default) ── */
:root {
    --fm-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --fm-spring-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
    --fm-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --fm-duration: 0.9s;
    --fm-duration-fast: 0.6s;
}

/* ── Base reveal (fade up) ── */
.reveal,
[data-animate] {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity var(--fm-duration) var(--fm-spring),
        transform var(--fm-duration) var(--fm-spring),
        filter var(--fm-duration-fast) ease;
    will-change: opacity, transform;
}

/* ── Directional reveals ── */
.reveal-left,
[data-animate="left"] {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity var(--fm-duration) var(--fm-spring),
        transform var(--fm-duration) var(--fm-spring),
        filter var(--fm-duration-fast) ease;
    will-change: opacity, transform;
}

.reveal-right,
[data-animate="right"] {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity var(--fm-duration) var(--fm-spring),
        transform var(--fm-duration) var(--fm-spring),
        filter var(--fm-duration-fast) ease;
    will-change: opacity, transform;
}

/* ── Scale reveal ── */
.reveal-scale,
[data-animate="scale"] {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity var(--fm-duration) var(--fm-spring),
        transform var(--fm-duration) var(--fm-spring-bouncy),
        filter var(--fm-duration-fast) ease;
    will-change: opacity, transform;
}

/* ── Blur-in (signature Framer effect) ── */
[data-animate="blur"] {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(12px);
    transition: opacity var(--fm-duration) var(--fm-spring),
        transform var(--fm-duration) var(--fm-spring),
        filter 0.7s var(--fm-ease-out);
    will-change: opacity, transform, filter;
}

/* ── Rotate in ── */
[data-animate="rotate"] {
    opacity: 0;
    transform: translateY(50px) rotate(6deg);
    transition: opacity var(--fm-duration) var(--fm-spring),
        transform var(--fm-duration) var(--fm-spring-bouncy);
    will-change: opacity, transform;
}

/* ── Flip in ── */
[data-animate="flip"] {
    opacity: 0;
    transform: perspective(800px) rotateX(25deg) translateY(40px);
    transition: opacity var(--fm-duration) var(--fm-spring),
        transform 1s var(--fm-spring-bouncy);
    will-change: opacity, transform;
}

/* ── Slide-up with elastic ── */
[data-animate="elastic"] {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: opacity 0.5s var(--fm-ease-out),
        transform 1.1s var(--fm-spring-bouncy);
    will-change: opacity, transform;
}

/* ── Active state (when scrolled into view) ── */
.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view,
[data-animate].in-view {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ── Stagger children with increasing delay ── */
.reveal-stagger>*:nth-child(1),
[data-stagger]>*:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-stagger>*:nth-child(2),
[data-stagger]>*:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal-stagger>*:nth-child(3),
[data-stagger]>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(4),
[data-stagger]>*:nth-child(4) {
    transition-delay: 0.28s;
}

.reveal-stagger>*:nth-child(5),
[data-stagger]>*:nth-child(5) {
    transition-delay: 0.36s;
}

.reveal-stagger>*:nth-child(6),
[data-stagger]>*:nth-child(6) {
    transition-delay: 0.44s;
}

.reveal-stagger>*:nth-child(7),
[data-stagger]>*:nth-child(7) {
    transition-delay: 0.52s;
}

.reveal-stagger>*:nth-child(8),
[data-stagger]>*:nth-child(8) {
    transition-delay: 0.6s;
}

/* ── Height-grow animation ── */
.reveal-height {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.9s var(--fm-spring), opacity 0.6s ease;
}

.reveal-height.in-view {
    max-height: 1200px;
    opacity: 1;
}

/* ── Parallax text shimmer ── */
[data-animate="text-reveal"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--fm-spring),
        transform 0.8s var(--fm-spring);
}

[data-animate="text-reveal"].in-view {
    opacity: 1;
    transform: none;
}

/* ── Smooth scroll-linked parallax (applied via JS) ── */
.fm-parallax {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ── Magnetic hover effect for buttons ── */
.fm-magnetic {
    transition: transform 0.4s var(--fm-spring-bouncy);
}

.fm-magnetic:hover {
    transform: scale(1.05);
}

/* ── Card tilt on hover ── */
.fm-tilt {
    transition: transform 0.5s var(--fm-spring);
}

.fm-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* ── Floating animation for hero elements ── */
@keyframes fm-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.fm-float {
    animation: fm-float 4s ease-in-out infinite;
}

/* ── Pulse glow for CTA buttons ── */
@keyframes fm-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 8px rgba(201, 168, 76, 0.15);
    }
}

.fm-pulse {
    animation: fm-pulse-glow 3s ease-in-out infinite;
}

/* ── Text character wave ── */
@keyframes fm-wave-char {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ── Smooth counter animation ── */
.fm-counter {
    display: inline-block;
    transition: all 0.3s var(--fm-spring);
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    [data-animate],
    .fm-parallax,
    .fm-float,
    .fm-pulse {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ── Stat counter widget ── */
.stat-counter-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-counter-item {
    padding: 54px 24px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.stat-counter-item:last-child {
    border-right: none;
}

.stat-counter-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.stat-counter-item:hover::after {
    width: 55%;
}

.stat-counter-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-counter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Scroll progress bar ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #f0c060);
    z-index: 9999;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Back-to-top button ── */
#scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    opacity: 0;
    transform: translateY(16px) scale(0.85);
    transition: all 0.35s ease;
    z-index: 500;
}

#scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#scroll-top-btn:hover {
    background: #a8873a;
    transform: translateY(-3px) scale(1.05);
}

#scroll-top-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Newsletter Form */
.newsletter-form {
    max-width: 400px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.newsletter-form input {
    margin: 0;
    width: 250px;
    padding: 12px 16px;
    background: #fafafa;
}

.newsletter-form .btn {
    padding: 12px 25px;
    margin: 0;
}

/* ── Scroll Animation Utilities ── */
.animate-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.animate-fade-down.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.animate-fade-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.animate-fade-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.animate-zoom-in {
    opacity: 0;
    transform: scale(.8);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.34, 1.56, .64, 1);
}

.animate-zoom-in.in-view {
    opacity: 1;
    transform: scale(1);
}

.animate-blur-in {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), filter .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}

.animate-blur-in.in-view {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.animate-flip-up {
    opacity: 0;
    transform: perspective(800px) rotateX(20deg) translateY(40px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.34, 1.56, .64, 1);
}

.animate-flip-up.in-view {
    opacity: 1;
    transform: perspective(800px) rotateX(0) translateY(0);
}

.animate-bounce-in {
    opacity: 0;
    transform: translateY(80px) scale(.9);
    transition: opacity .5s ease, transform 1.1s cubic-bezier(.34, 1.56, .64, 1);
}

.animate-bounce-in.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delay utilities */
.delay-100 {
    transition-delay: .1s !important;
}

.delay-200 {
    transition-delay: .2s !important;
}

.delay-300 {
    transition-delay: .3s !important;
}

.delay-400 {
    transition-delay: .4s !important;
}

.delay-500 {
    transition-delay: .5s !important;
}

.delay-600 {
    transition-delay: .6s !important;
}

.delay-700 {
    transition-delay: .7s !important;
}

.delay-800 {
    transition-delay: .8s !important;
}

/* Stagger children */
.stagger-children>*:nth-child(1) {
    transition-delay: .05s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: .1s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: .15s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: .2s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: .25s;
}

.stagger-children>*:nth-child(6) {
    transition-delay: .3s;
}

/* Hover effects */
.hover-lift {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
}

@media (prefers-reduced-motion:reduce) {

    .animate-fade-up,
    .animate-fade-down,
    .animate-fade-left,
    .animate-fade-right,
    .animate-zoom-in,
    .animate-blur-in,
    .animate-flip-up,
    .animate-bounce-in {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}