/* ═══════════════════════════════════════════
   MOTION.CSS — Cinematic Motion Design Layer
   Paris Grandes Cuisines — Proof of Concept
   ═══════════════════════════════════════════ */

/* ─── MOTION VARIABLES ───────────────────── */
:root {
    --m-dark: #0d1117;
    --m-dark-alt: #161b22;
    --m-primary: #1a365d;
    --m-primary-glow: rgba(26, 54, 93, 0.4);
    --m-accent: #c9a227;
    --m-accent-glow: rgba(201, 162, 39, 0.35);
    --m-accent-light: #e2c55e;
    --m-white: #f7fafc;
    --m-gray: #a0aec0;
    --m-glass: rgba(255, 255, 255, 0.06);
    --m-glass-border: rgba(255, 255, 255, 0.1);
    --m-radius: 16px;
    --m-radius-sm: 10px;
    --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --m-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --m-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── GLOBAL MOTION OVERRIDES ────────────── */
body {
    overflow-x: hidden;
}

/* Transparent nav on hero pages */
body:has(.hero-motion) .site-header {
    background: rgba(13, 17, 23, 0.30);
    backdrop-filter: blur(6px);
    box-shadow: none;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
body:has(.hero-motion) .site-header .nav-link,
body:has(.hero-motion) .site-header .logo-text {
    color: #fff !important;
    filter: none;
    background: transparent !important;
    transition: color 0.3s ease, background 0.3s ease;
}
body:has(.hero-motion) .site-header .nav-link:hover {
    color: #e2c55e !important;
    background: rgba(255, 255, 255, 0.10) !important;
}
body:has(.hero-motion) .site-header .nav-link.active {
    color: #c9a227 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
body:has(.hero-motion) .site-header .nav-toggle span {
    background: #fff;
}
body:has(.hero-motion) .site-header.scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Mobile dropdown on homepage: dark text on white background */
@media (max-width: 768px) {
    body:has(.hero-motion) .site-header .nav-menu {
        background: #fff;
    }
    body:has(.hero-motion) .site-header .nav-menu .nav-link {
        color: #1a365d;
        filter: none;
    }
    body:has(.hero-motion) .site-header .nav-menu .nav-link:hover {
        color: #c9a227;
        background: rgba(26, 54, 93, 0.06);
    }
    body:has(.hero-motion) .site-header .nav-menu .nav-link.active {
        color: #1a365d;
        background: rgba(26, 54, 93, 0.08);
    }
    body:has(.hero-motion) .site-header .nav-actions .btn {
        color: #1a365d;
    }
}

.section-motion {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════
   HERO — CINEMATIC OPENING SEQUENCE
   ═══════════════════════════════════════════ */

.hero-motion {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--m-dark);
}

/* Background layer — parallax zoom */
.hero-bg-layer {
    position: absolute;
    inset: -20px;
    background:
        linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(13, 17, 23, 0.92) 60%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    will-change: transform;
    transform: scale(1.15);
    z-index: 1;
}

/* Film grain overlay */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* Bottom gradient */
.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--m-dark), transparent);
    z-index: 3;
}

/* Floating geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}
.shape-1 {
    width: 500px; height: 500px;
    background: var(--m-primary-glow);
    top: -10%;  right: -10%;
}
.shape-2 {
    width: 350px; height: 350px;
    background: var(--m-accent-glow);
    bottom: -5%; left: -5%;
}
.shape-3 {
    width: 250px; height: 250px;
    background: rgba(99, 179, 237, 0.15);
    top: 40%; left: 30%;
}

/* ─── Hero Content Wrap ──────────────────── */
.hero-content-wrap {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 80px 20px 0;
    margin: 0 auto;
}

/* Badge */
.hero-badge-motion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--m-glass);
    border: 1px solid var(--m-glass-border);
    border-radius: 100px;
    color: var(--m-accent-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    /* Initial state — hidden for GSAP */
    opacity: 0;
    transform: translateY(30px);
}
.badge-glow {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: badge-shimmer 3s ease infinite 2s;
}
@keyframes badge-shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ─── Title Motion ───────────────────────── */
.hero-title-motion {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--m-white);
    margin-bottom: 20px;
}
.title-line {
    display: block;
    overflow: hidden;
}
.title-word {
    display: inline-block;
    /* Initial state — hidden for GSAP */
    opacity: 0;
    transform: translateY(100%);
}
.title-accent {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(135deg, var(--m-accent) 0%, var(--m-accent-light) 100%);
}

/* ─── Subtitle ───────────────────────────── */
.hero-sub-motion {
    font-size: 1.15rem;
    color: var(--m-gray);
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 36px;
    /* Initial state */
    opacity: 0;
    transform: translateY(20px);
}

/* ─── CTA Buttons ────────────────────────── */
.hero-cta-motion {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    /* Initial state */
    opacity: 0;
    transform: translateY(20px);
}

/* --- Motion Buttons (shared) --- */
.btn-motion {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--m-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s var(--m-ease), box-shadow 0.3s var(--m-ease);
    border: none;
}
.btn-motion:hover {
    transform: translateY(-3px);
}
.btn-motion:active {
    transform: translateY(0);
}
.btn-motion-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.4s var(--m-ease);
}
.btn-motion-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Primary button */
.btn-motion-primary {
    color: #fff;
}
.btn-motion-primary .btn-motion-bg {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
}
.btn-motion-primary:hover {
    box-shadow: 0 8px 30px var(--m-accent-glow);
    color: #fff;
}

/* Outline button */
.btn-motion-outline {
    color: var(--m-white);
    border: 1.5px solid var(--m-glass-border);
}
.btn-motion-outline .btn-motion-bg {
    background: var(--m-glass);
}
.btn-motion-outline:hover {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 8px 30px rgba(255,255,255,0.06);
    color: var(--m-white);
}

/* Light (for dark bg CTA) */
.btn-motion-light {
    color: var(--m-dark);
}
.btn-motion-light .btn-motion-bg {
    background: #fff;
}
.btn-motion-light:hover {
    box-shadow: 0 8px 30px rgba(255,255,255,0.3);
    color: var(--m-dark);
}

.btn-motion-outline-light {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-motion-outline-light .btn-motion-bg {
    background: transparent;
}
.btn-motion-outline-light:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* Small variant */
.btn-motion-sm {
    padding: 10px 22px;
    font-size: 0.85rem;
    border-radius: 8px;
}
.btn-motion-sm .btn-motion-bg {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
}
.btn-motion-sm { color: #fff; }
.btn-motion-sm:hover { color: #fff; box-shadow: 0 4px 20px var(--m-accent-glow); }

/* Magnetic hover effect (JS adds calculated transforms) */
.btn-motion[data-magnetic] { transition: transform 0.2s ease-out; }

/* ─── Counters ───────────────────────────── */
.hero-counters {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-bottom: 90px;
    /* Initial state */
    opacity: 0;
    transform: translateY(20px);
}
.counter-item {
    text-align: center;
    position: relative;
}
.counter-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--m-accent);
    line-height: 1;
}
.counter-label {
    display: block;
    font-size: 0.8rem;
    color: var(--m-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.counter-bar {
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--m-accent), transparent);
    margin: 8px auto 0;
    border-radius: 2px;
    transition: width 1s var(--m-ease);
}
.counter-item.counted .counter-bar { width: 40px; }

/* ─── Scroll Indicator ───────────────────── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}
.hero-scroll-indicator span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--m-gray);
    font-weight: 500;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}
.scroll-dot {
    width: 3px;
    height: 12px;
    background: var(--m-accent);
    border-radius: 3px;
    position: absolute;
    left: -1px;
    animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 12px); }
}


/* ═══════════════════════════════════════════
   SECTIONS — COMMON MOTION STYLES
   ═══════════════════════════════════════════ */

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

.section-tag-motion {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--m-accent);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
}
.section-tag-motion::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 1.5px;
    background: var(--m-accent);
    transform: translateY(-50%);
}

.section-title-motion {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--m-dark);
    line-height: 1.2;
    margin-bottom: 8px;
}

.title-underline-motion {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--m-accent), var(--m-accent-light));
    border-radius: 3px;
    margin: 12px auto 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

.text-accent-motion {
    color: var(--m-accent);
}


/* ═══════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════ */

.services-motion {
    background: #fafbfc;
}

.services-grid-motion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card-motion {
    position: relative;
    background: #fff;
    border-radius: var(--m-radius);
    padding: 36px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.4s var(--m-ease), box-shadow 0.4s var(--m-ease);
    overflow: hidden;
    /* Initial state for GSAP */
    opacity: 0;
    transform: translateY(60px);
}
.service-card-motion:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.sc-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 150px; height: 150px;
    background: var(--m-accent-glow);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card-motion:hover .sc-glow { opacity: 1; }

.sc-icon {
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary));
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: transform 0.3s var(--m-ease-bounce);
}
.service-card-motion:hover .sc-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card-motion h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--m-dark);
    margin-bottom: 10px;
}
.service-card-motion p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.sc-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    padding: 5px 0;
}
.sc-features li i {
    color: var(--m-accent);
    font-size: 0.75rem;
}

.sc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--m-primary);
    text-decoration: none;
    transition: gap 0.3s var(--m-ease), color 0.3s ease;
}
.sc-link:hover {
    gap: 12px;
    color: var(--m-accent);
}

.sc-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

/* Featured card */
.featured-motion {
    border-color: var(--m-accent);
    border-width: 1.5px;
}
.featured-motion .sc-icon {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
}


/* ═══════════════════════════════════════════
   WHY US SECTION
   ═══════════════════════════════════════════ */

.why-motion {
    background: var(--m-dark);
    padding: 120px 0;
    position: relative;
}
.why-motion-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, var(--m-primary-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, var(--m-accent-glow) 0%, transparent 60%);
    opacity: 0.5;
}

.why-motion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.why-motion-left .section-tag-motion {
    color: var(--m-accent-light);
}
.why-motion-left .section-tag-motion::before {
    background: var(--m-accent-light);
}
.why-title {
    color: var(--m-white) !important;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
}
.why-description {
    color: var(--m-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 16px;
}

/* Trust cards */
.trust-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--m-glass);
    border: 1px solid var(--m-glass-border);
    border-radius: var(--m-radius-sm);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--m-ease), border-color 0.3s ease;
    /* Initial state */
    opacity: 0;
    transform: translateX(60px);
}
.trust-card:hover {
    transform: translateX(8px);
    border-color: var(--m-accent);
}
.trust-glow {
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--m-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.trust-card:hover .trust-glow { opacity: 1; }

.trust-icon {
    width: 46px; height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    font-size: 1.1rem;
}
.trust-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--m-white);
    margin-bottom: 2px;
}
.trust-content p {
    font-size: 0.82rem;
    color: var(--m-gray);
    line-height: 1.4;
    margin: 0;
}


/* ═══════════════════════════════════════════
   PRODUCTS — 3D CAROUSEL
   ═══════════════════════════════════════════ */

.products-motion {
    background: #fff;
}

.products-carousel-3d {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    perspective: 1200px;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: relative;
}

.carousel-card {
    position: absolute;
    width: 280px;
    background: #fff;
    border-radius: var(--m-radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.6s var(--m-ease);
    cursor: pointer;
    /* All cards hidden by default – JS positions them */
    opacity: 0;
    transform: scale(0.85) rotateY(15deg);
    pointer-events: none;
}
.carousel-card.carousel-active {
    opacity: 1;
    transform: scale(1.05) rotateY(0deg) translateZ(30px);
    z-index: 5;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    pointer-events: all;
}
.carousel-card.carousel-prev-card {
    opacity: 0.7;
    transform: scale(0.88) rotateY(8deg) translateX(-110%);
    z-index: 3;
    filter: blur(1px);
    pointer-events: all;
}
.carousel-card.carousel-next-card {
    opacity: 0.7;
    transform: scale(0.88) rotateY(-8deg) translateX(110%);
    z-index: 3;
    filter: blur(1px);
    pointer-events: all;
}
.carousel-card.carousel-far-prev {
    opacity: 0;
    transform: scale(0.7) rotateY(15deg) translateX(-200%);
    z-index: 1;
}
.carousel-card.carousel-far-next {
    opacity: 0;
    transform: scale(0.7) rotateY(-15deg) translateX(200%);
    z-index: 1;
}

.cc-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f7fafc;
}
.cc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--m-ease);
}
.carousel-card.carousel-active:hover .cc-image img {
    transform: scale(1.05);
}
.cc-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e0;
}
/* Corner ribbon promo badge */
.cc-badge {
    position: absolute;
    top: 0; right: 0;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 6px 30px;
    letter-spacing: 0.5px;
    transform: rotate(45deg) translate(18%, -30%);
    transform-origin: top right;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.cc-info {
    padding: 20px;
}
.cc-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--m-accent);
    font-weight: 600;
}
.cc-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--m-dark);
    margin: 6px 0 10px;
    line-height: 1.3;
}
.cc-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.cc-price .price-old {
    font-size: 0.85rem;
    color: #a0aec0;
    text-decoration: line-through;
}
.cc-price .price-current {
    font-size: 1.1rem;
    color: var(--m-accent);
    font-weight: 700;
}

/* Nav buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--m-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s var(--m-ease);
}
.carousel-nav-btn:hover {
    background: var(--m-accent);
    color: #fff;
    border-color: var(--m-accent);
    box-shadow: 0 8px 25px var(--m-accent-glow);
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Detail floating panel (subtle) */
.carousel-detail-float {
    display: none; /* Reserved for future */
}


/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-motion {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.cta-motion-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-dark) 100%);
    z-index: 0;
}
.cta-motion-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cta-motion-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    /* Initial state */
    opacity: 0;
    transform: scale(0.9);
}
.cta-motion-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.cta-motion-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}
.cta-motion-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════
   LOADING CURTAIN
   ═══════════════════════════════════════════ */

.motion-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--m-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.motion-curtain-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--m-white);
    letter-spacing: 2px;
    opacity: 0;
}
.motion-curtain.done {
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}


/* ═══════════════════════════════════════════
   SUB-PAGE HEADER (services, galerie, etc.)
   ═══════════════════════════════════════════ */

.page-header-motion {
    position: relative;
    padding: 140px 0 60px;
    background: var(--m-dark);
    overflow: hidden;
    text-align: center;
}
.page-header-motion::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, var(--m-primary-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, var(--m-accent-glow) 0%, transparent 50%);
    opacity: 0.4;
}
.page-header-motion .container {
    position: relative;
    z-index: 2;
}
.page-header-motion .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.82rem;
}
.page-header-motion .breadcrumb a {
    color: var(--m-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.page-header-motion .breadcrumb a:hover { color: var(--m-accent); }
.page-header-motion .breadcrumb i { color: var(--m-gray); font-size: 0.65rem; }
.page-header-motion .breadcrumb span { color: var(--m-accent-light); }
.page-header-motion h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--m-white);
    margin-bottom: 10px;
}
.page-header-motion p {
    color: var(--m-gray);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Sub-page content sections get scroll animations */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--m-ease), transform 0.7s var(--m-ease);
}
.section-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--m-accent), var(--m-accent-light));
    z-index: 10001;
    width: 0%;
    transition: none;
    pointer-events: none;
}


/* ═══════════════════════════════════════════
   CURSOR FOLLOWER (desktop only)
   ═══════════════════════════════════════════ */

.cursor-follower {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid var(--m-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    background: transparent;
    box-shadow: none;
    /* no transition on transform — GSAP handles it */
    transition: opacity 0.3s;
}
.cursor-follower.active {
    opacity: 1;
}

/* Hide default cursor globally on desktop — ring replaces it */
@media (pointer: fine) {
    body, body * {
        cursor: none !important;
    }
}

/* Click ripple wave — works on both desktop & mobile */
.cursor-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(226, 197, 94, 0.6) 0%, rgba(201, 162, 39, 0.3) 30%, transparent 70%);
    border: 1px solid rgba(226, 197, 94, 0.5);
    animation: clickRipple 0.7s ease-out forwards;
}
.cursor-ripple:nth-child(odd) {
    animation-duration: 0.9s;
}
@keyframes clickRipple {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}


/* ═══════════════════════════════════════════
   TEXT HIGHLIGHT ON SCROLL
   ═══════════════════════════════════════════ */

.text-reveal-highlight {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(120deg, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.15) 100%);
    transition: background-size 0.8s var(--m-ease);
    padding: 2px 0;
}
.text-reveal-highlight.revealed {
    background-size: 100% 100%;
}


/* ═══════════════════════════════════════════
   TILT 3D CARDS (interactive)
   ═══════════════════════════════════════════ */

.tilt-card {
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}
.tilt-card-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}
.tilt-card .sc-icon,
.tilt-card .trust-icon {
    transform: translateZ(30px);
}
.tilt-card h3,
.tilt-card h4 {
    transform: translateZ(20px);
}


/* ═══════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.4s, transform 0.4s var(--m-ease-bounce), box-shadow 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 15px var(--m-accent-glow);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.back-to-top:hover {
    box-shadow: 0 8px 30px var(--m-accent-glow);
    transform: translateY(-3px) scale(1.05);
}
/* SVG circular progress ring around back-to-top */
.back-to-top svg {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    transform: rotate(-90deg);
}
.back-to-top svg circle {
    fill: none;
    stroke: var(--m-accent);
    stroke-width: 2;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    transition: stroke-dashoffset 0.1s;
}


/* ═══════════════════════════════════════════
   INFINITE MARQUEE (partners)
   ═══════════════════════════════════════════ */

.partners-motion {
    padding: 40px 0;
    background: var(--m-dark-alt);
    overflow: hidden;
    position: relative;
}
.partners-motion-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--m-gray);
    margin-bottom: 24px;
    font-weight: 500;
}
.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}
.marquee-track img {
    height: 40px;
    filter: grayscale(1) brightness(0.7);
    opacity: 0.5;
    transition: filter 0.4s, opacity 0.4s;
}
.marquee-track img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 992px) {
    .services-grid-motion {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .why-motion-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .carousel-card { width: 260px; }
}

@media (max-width: 768px) {
    /* Hero mobile — static, simplified */
    .hero-motion {
        min-height: 100svh;
    }
    .hero-bg-layer {
        transform: scale(1) !important;
    }
    .hero-shapes { display: none; }
    .hero-grain { display: none; }
    .hero-title-motion {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }
    .hero-sub-motion {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    .hero-counters {
        flex-direction: row;
        gap: 24px;
        margin-bottom: 60px;
    }
    .counter-number { font-size: 1.6rem; }
    .counter-label { font-size: 0.65rem; }
    .hero-cta-motion {
        flex-direction: column;
        align-items: center;
    }
    .btn-motion { width: 100%; max-width: 300px; justify-content: center; }
    .section-motion { padding: 60px 0; }
    .products-carousel-3d { padding: 0 20px; }
    .carousel-card { width: 240px; }
    .carousel-card.carousel-prev-card { transform: scale(0.8) translateX(-80%); }
    .carousel-card.carousel-next-card { transform: scale(0.8) translateX(80%); }

    /* Hide cursor follower on touch */
    .cursor-follower { display: none !important; }

    /* WhatsApp above bottom nav */
    .whatsapp-float { bottom: 80px !important; right: 16px !important; }
    /* Back to top stacked above WhatsApp */
    .back-to-top { bottom: 130px; right: 16px; }

    /* Page header mobile */
    .page-header-motion { padding: 110px 0 40px; }
    .page-header-motion h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-content-wrap { padding: 60px 16px 0; }
    .hero-title-motion { font-size: 1.7rem; }
    .hero-counters { gap: 16px; }
    .cta-motion-actions { flex-direction: column; align-items: center; }
    .counter-number { font-size: 1.4rem; }
}


/* ═══════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════ */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: linear-gradient(180deg, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.98) 100%);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-top: 1px solid rgba(201, 162, 39, 0.12);
        padding: 4px 0 max(4px, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
        /* Hidden initially — JS will reveal with animation */
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-bottom-nav.visible {
        transform: translateY(0);
        opacity: 1;
    }
    /* Minimized state — only the grip handle visible */
    .mobile-bottom-nav.minimized {
        transform: translateY(calc(100% - 18px));
    }
    .mobile-bottom-nav.minimized .mob-nav-item {
        opacity: 0;
        pointer-events: none;
    }
    /* Grip handle to minimize/restore */
    .mob-nav-grip {
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        z-index: 1;
    }
    .mob-nav-grip span {
        width: 28px;
        height: 3px;
        border-radius: 3px;
        background: rgba(201, 162, 39, 0.4);
        transition: background 0.3s;
    }
    .mob-nav-grip:active span {
        background: rgba(201, 162, 39, 0.8);
    }
    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.45);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        padding: 4px 14px;
        border-radius: 12px;
        transition: color 0.3s, background 0.3s, opacity 0.3s;
        position: relative;
        /* Hidden initially — staggered reveal */
        opacity: 0;
        transform: translateY(20px);
    }
    .mob-nav-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .mob-nav-item i {
        font-size: 1.15rem;
        transition: transform 0.3s var(--m-ease-bounce), color 0.3s;
    }
    .mob-nav-item:active i {
        transform: scale(0.85);
    }

    /* Active state — gold glow */
    .mob-nav-item.active {
        color: var(--m-accent);
    }
    .mob-nav-item.active i {
        transform: scale(1.15);
        filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.5));
    }
    /* Gold line accent under active */
    .mob-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--m-accent), transparent);
        border-radius: 2px;
    }

    /* Hover / press feedback */
    .mob-nav-item:not(.active):active {
        color: rgba(255, 255, 255, 0.7);
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hide desktop nav actions on mobile when bottom nav is active */
    .nav-actions { display: none !important; }

    /* Content padding for bottom nav */
    .site-footer { padding-bottom: 80px; }
}
