/* ============================================
   Sweet & More — Premium Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    color-scheme: dark;
    /* Color Palette — warm, luxurious, dessert-inspired */
    --clr-bg: #0a0a0b;
    --clr-bg-alt: #111113;
    --clr-bg-card: #18181b;
    --clr-bg-elevated: #1f1f23;

    --clr-primary: #d4a574;
    --clr-primary-light: #e8c9a6;
    --clr-primary-dark: #b8865a;
    --clr-primary-glow: rgba(212, 165, 116, 0.15);

    --clr-accent: #c06c4e;
    --clr-accent-light: #d98c72;

    --clr-text: #f5f0eb;
    --clr-text-muted: #a8a29e;
    --clr-text-dim: #6b6560;

    --clr-border: rgba(212, 165, 116, 0.12);
    --clr-border-hover: rgba(212, 165, 116, 0.3);

    --clr-snapchat: #FFFC00;

    /* Gradients */
    --grad-hero: linear-gradient(135deg, #0a0a0b 0%, #1a1210 50%, #0a0a0b 100%);
    --grad-card: linear-gradient(145deg, rgba(212, 165, 116, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    --grad-glow: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.08) 0%, transparent 70%);

    /* Typography */
    --ff-display: 'Playfair Display', Georgia, serif;
    --ff-body: 'Inter', -apple-system, sans-serif;
    --ff-arabic: 'Tajawal', 'Inter', sans-serif;

    /* Sizing */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 4vw, 2.5rem);
    --nav-height: 88px;

    /* Spacing */
    --space-3xs: 0.125rem;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-section: clamp(5rem, 10vh, 8rem);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--ff-arabic);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Accessibility: focus states --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* --- Skip link --- */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    z-index: 10001;
    background: var(--clr-primary);
    color: var(--clr-bg);
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
    top: 1rem;
}

/* --- Scroll progress bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-primary);
    z-index: 10002;
    transition: width 100ms linear;
}

/* --- Back to top button --- */
.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg-elevated);
    border: 1px solid var(--clr-border-hover);
    color: var(--clr-primary-light);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--grad-primary);
    color: var(--clr-bg);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

html[dir="ltr"] .back-to-top {
    right: 1.75rem;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    animation: preloaderPulse 1.5s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(212, 165, 116, .25), 0 0 0 1px rgba(212, 165, 116, .18);
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--clr-bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    animation: preloaderFill 1.8s var(--ease-out) forwards;
}

@keyframes preloaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- Section Shared Styles --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--clr-primary-glow);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--clr-primary);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--ff-arabic);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text);
    margin-bottom: var(--space-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    justify-content: flex-start;
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-text {
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    white-space: nowrap;
}

.nav-logo img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(212, 165, 116, .15);
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
}
.nav-logo:hover img {
    transform: rotate(-4deg) scale(1.06);
    box-shadow: 0 4px 18px rgba(212, 165, 116, .28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    flex: none;
    justify-content: center;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-text-muted);
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-normal) var(--ease-out);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    justify-content: flex-end;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-text);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--grad-hero);
    width: 100%;
    max-width: 100vw;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 165, 116, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(192, 108, 78, 0.04) 0%, transparent 60%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--clr-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: var(--space-2xl) var(--container-padding);
    padding-bottom: 8rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--clr-primary-light);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clr-primary);
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.6);
    animation: badgeDotPulse 2s ease-out infinite;
    flex-shrink: 0;
}

@keyframes badgeDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(212, 165, 116, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0); }
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-title-line {
    display: block;
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 50%, #e67e22 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-title-accent {
    display: block;
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 400;
    font-size: 0.5em;
    color: var(--clr-primary);
    -webkit-text-fill-color: var(--clr-primary);
    margin: var(--space-xs) 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.9rem 2rem;
    font-family: var(--ff-arabic);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--clr-bg);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.4);
}

.btn-primary svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-primary:hover svg {
    transform: translateX(-4px);
}

.btn-outline {
    border: 1px solid var(--clr-border-hover);
    color: var(--clr-primary-light);
    background: transparent;
}

.btn-outline:hover {
    background: var(--clr-primary-glow);
    border-color: var(--clr-primary);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats-wrapper {
    display: inline-flex;
    justify-content: center;
    padding: var(--space-md) var(--space-3xl);
    background: rgba(25, 23, 20, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: var(--radius-full);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(212, 165, 116, 0.05);
    margin: 0 auto;
    animation: fadeInUp 0.8s var(--ease-out) 1s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.hero-stat {
    text-align: center;
    flex: 1;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-stat-number {
    position: relative;
    display: inline-block;
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--clr-primary-light);
    line-height: 1;
    direction: ltr;
    unicode-bidi: isolate;
}

.hero-stat-number::after {
    content: '+';
    position: absolute;
    font-family: var(--ff-body);
    font-size: 0.6em;
    color: var(--clr-primary);
    margin-left: 2px;
    top: 0;
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-text-dim);
    margin-top: var(--space-xs);
    white-space: nowrap;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--clr-border);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--clr-text-dim);
    font-size: 0.75rem;
    animation: fadeInUp 0.8s var(--ease-out) 1.2s both;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.hero-ambient-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: blur(50px);
}

/* Floating Hero Images */
.hero-floating-images {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.floating-img {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    opacity: 0.15;
    transition: opacity var(--duration-slow) var(--ease-out);
}

.floating-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-img-1 {
    width: 200px;
    height: 250px;
    top: 15%;
    left: 5%;
    animation: floatSlow 12s ease-in-out infinite;
}

.floating-img-2 {
    width: 180px;
    height: 220px;
    bottom: 15%;
    right: 5%;
    animation: floatSlow 14s ease-in-out infinite 2s;
}

.floating-img-3 {
    width: 160px;
    height: 200px;
    top: 20%;
    right: 8%;
    animation: floatSlow 10s ease-in-out infinite 4s;
}

.floating-img-4 {
    width: 140px;
    height: 180px;
    bottom: 25%;
    left: 10%;
    animation: floatSlow 11s ease-in-out infinite 1s;
}

.floating-img-5 {
    width: 150px;
    height: 190px;
    top: 10%;
    right: 25%;
    animation: floatSlow 13s ease-in-out infinite 3s;
}

.floating-img-6 {
    width: 130px;
    height: 170px;
    bottom: 10%;
    left: 25%;
    animation: floatSlow 15s ease-in-out infinite 1.5s;
}

.floating-img-7 {
    width: 170px;
    height: 210px;
    top: 40%;
    right: 2%;
    animation: floatSlow 12s ease-in-out infinite 2.5s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

/* --- About Section --- */
.about {
    padding: var(--space-section) 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--clr-bg);
    aspect-ratio: 1;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: 0 0 60px rgba(212, 165, 116, 0.3); }
}

.experience-number {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-bg);
    line-height: 1;
}

.experience-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--clr-bg);
    text-align: center;
    line-height: 1.3;
}

.about-content {
    padding-right: var(--space-xl);
}

.about-text {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    line-height: 1.9;
    margin-bottom: var(--space-xl);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--grad-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.about-feature:hover {
    border-color: var(--clr-border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-primary-glow);
    border-radius: var(--radius-md);
}

.feature-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: var(--space-xs);
}

.feature-info p {
    font-size: 0.85rem;
    color: var(--clr-text-dim);
    line-height: 1.6;
}

/* --- Gallery Section --- */
.gallery {
    padding: var(--space-section) 0;
    background: var(--clr-bg-alt);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    position: sticky;
    top: 73px;
    z-index: 90;
    background: var(--clr-bg-alt);
    padding: var(--space-sm) 0;
    border-bottom: none;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    background: transparent;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--clr-primary-light);
    border-color: var(--clr-border-hover);
}

.filter-btn.active {
    background: var(--grad-primary);
    color: var(--clr-bg);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    animation: fadeInScale 0.4s var(--ease-out) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item.hidden {
    display: none !important;
}

.gallery-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.gallery-card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.3);
}

.gallery-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

/* =============================================
   PRODUCT IMAGE SLIDER
   ============================================= */
.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
}

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

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
}

.gallery-card:hover .slider-arrow {
    opacity: 1;
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category-tag {
    padding: var(--space-xs) var(--space-md);
    background: rgba(212, 165, 116, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--clr-primary-light);
}

.gallery-zoom {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    transition: all var(--duration-fast) var(--ease-out);
}

.gallery-zoom:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
    transform: scale(1.1);
}

.gallery-info {
    padding: var(--space-lg);
}

.gallery-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: var(--space-xs);
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--clr-text-dim);
    line-height: 1.6;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 92vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.lightbox-img-wrapper {
    flex-shrink: 0;
}

.lightbox-content img {
    max-width: 90vw;
    /* Leave room for the caption and Order button so they stay on-screen */
    max-height: 68vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    flex-shrink: 0;
    text-align: center;
    padding: var(--space-sm) 0;
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    font-family: var(--ff-display);
    font-weight: 500;
}

.btn-whatsapp {
    flex-shrink: 0;
    display: inline-flex;
    background: #25D366;
    color: #ffffff;
    border: none;
    margin: 0 auto;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-full);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* --- Process / How to Order Section --- */
.process {
    padding: var(--space-section) 0;
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.step-number {
    font-family: var(--ff-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: var(--space-sm);
}

.process-step p {
    font-size: 0.85rem;
    color: var(--clr-text-dim);
    line-height: 1.7;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-border), var(--clr-primary), var(--clr-border));
    align-self: center;
    margin-top: 2rem;
    flex-shrink: 0;
}

/* --- Contact Section --- */
.contact {
    padding: var(--space-section) 0;
    background: var(--clr-bg-alt);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--grad-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-method:hover {
    border-color: var(--clr-border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-primary-glow);
    border-radius: var(--radius-md);
    color: var(--clr-primary);
    flex-shrink: 0;
}

.snapchat-icon {
    /* Styles removed as we are using the direct image now */
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-text-dim);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
}

.contact-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-primary);
    font-size: 0.85rem;
}

/* Contact Visual */
.contact-visual {
    display: flex;
    justify-content: center;
}

.contact-card-stack {
    position: relative;
    width: 320px;
    height: 400px;
}

.contact-card {
    position: absolute;
    width: 280px;
    height: 350px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-slow) var(--ease-out);
}

.contact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card-1 {
    top: 0;
    right: 0;
    transform: rotate(5deg);
    z-index: 3;
}

.contact-card-2 {
    top: 15px;
    right: 20px;
    transform: rotate(-2deg);
    z-index: 2;
    opacity: 0.85;
}

.contact-card-3 {
    top: 30px;
    right: 40px;
    transform: rotate(-8deg);
    z-index: 1;
    opacity: 0.6;
}

.contact-card-stack:hover .contact-card-1 {
    transform: rotate(0deg) translateX(-20px);
}

.contact-card-stack:hover .contact-card-2 {
    transform: rotate(3deg) translateX(10px) translateY(-10px);
    opacity: 1;
}

.contact-card-stack:hover .contact-card-3 {
    transform: rotate(-5deg) translateX(40px) translateY(10px);
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--clr-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.footer-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(212, 165, 116, .12);
    transition: transform .4s var(--ease-spring), box-shadow .35s var(--ease-out);
}
.footer-brand:hover .footer-logo {
    transform: rotate(4deg) scale(1.05);
    box-shadow: 0 4px 16px rgba(212, 165, 116, .22);
}

.footer-tagline {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--clr-text-dim);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--clr-primary-light);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg-elevated);
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    color: var(--clr-text-muted);
    transition: all var(--duration-fast) var(--ease-out);
}

.social-link:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.social-link.snapchat {
    /* Standard social link styling applies. We rely on the image file for branding. */
}

.social-link.snapchat:hover {
    box-shadow: 0 4px 15px rgba(255, 252, 0, 0.35);
    transform: translateY(-2px);
    border-color: #ffe566;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--clr-border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--clr-text-dim);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--duration-slow) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        padding-right: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-visual {
        order: -1;
    }

    .floating-img {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--clr-bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        transition: right var(--duration-normal) var(--ease-out);
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--clr-border);
        z-index: 999;
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1000;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .hero-stats-wrapper {
        padding: var(--space-sm) var(--space-md);
        width: 100%;
        max-width: 380px;
    }

    .hero-stats {
        flex-wrap: nowrap;
        gap: var(--space-xs);
    }

    .hero-stat {
        min-width: 0;
    }

    .hero-stat-number {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .hero-stat-divider {
        display: block;
        height: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-md);
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        width: 2px;
        height: 40px;
        margin-top: 0;
        background: linear-gradient(180deg, var(--clr-border), var(--clr-primary), var(--clr-border));
    }

    .contact-card-stack {
        width: 260px;
        height: 340px;
    }

    .contact-card {
        width: 240px;
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-content {
        padding-top: var(--nav-height);
        padding-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        margin-bottom: var(--space-lg);
    }

    .about-features {
        gap: var(--space-sm);
    }
    
    .about-feature {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .feature-info h4 {
        font-size: 0.9rem;
    }
    
    .feature-info p {
        font-size: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-outline {
        border-color: transparent;
    }

    .hero-stats-wrapper {
        padding: var(--space-xs) var(--space-sm);
        width: auto;
        max-width: max-content;
    }

    .hero-stats {
        justify-content: space-between;
        gap: var(--space-xs);
    }
    
    .hero-stat {
        flex: none;
    }

    .hero-stat-number {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.85rem;
    }
    
    .hero-stat-divider {
        height: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .gallery-info {
        padding: var(--space-sm);
    }

    .gallery-info h3 {
        font-size: 0.8rem;
        margin-bottom: var(--space-3xs);
    }

    .gallery-info p {
        font-size: 0.65rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .gallery-category-tag {
        padding: 4px 8px;
        font-size: 0.6rem;
    }
    
    .gallery-zoom {
        width: 32px;
        height: 32px;
    }

    .gallery-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0;
        margin-bottom: var(--space-md);
        top: 73px; /* Dock right under the scrolled mobile navbar */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: var(--space-md) var(--space-xl);
        font-size: 1.1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* --- Mobile Menu Overlay --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

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

/* ============================================
   Language Toggle Button
   ============================================ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    color: var(--clr-primary-light);
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    z-index: 1001;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    z-index: -1;
}

.lang-toggle:hover {
    border-color: var(--clr-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2);
}

.lang-toggle:hover::before {
    opacity: 1;
}

.lang-toggle:hover {
    color: var(--clr-bg);
}

.lang-globe {
    display: flex;
    align-items: center;
    transition: transform var(--duration-normal) var(--ease-out);
}

.lang-toggle:hover .lang-globe {
    transform: rotate(20deg);
}

.lang-label {
    transition: transform var(--duration-fast) var(--ease-out);
    min-width: 28px;
    text-align: center;
}

/* ============================================
   LTR (English) Direction Overrides
   ============================================ */
html[dir="ltr"] body {
    direction: ltr;
}

html[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .about-content {
    padding-right: 0;
    padding-left: var(--space-xl);
}

html[dir="ltr"] .about-img-secondary {
    left: auto;
    right: -2rem;
}

html[dir="ltr"] .about-experience-badge {
    left: auto;
    right: -1.5rem;
}

html[dir="ltr"] .about-feature:hover {
    transform: translateX(-4px);
}

html[dir="ltr"] .contact-method:hover {
    transform: translateX(-4px);
}

html[dir="ltr"] .btn-primary:hover svg {
    transform: translateX(4px);
}

html[dir="ltr"] .contact-card-1 {
    right: auto;
    left: 0;
}

html[dir="ltr"] .contact-card-2 {
    right: auto;
    left: 20px;
}

html[dir="ltr"] .contact-card-3 {
    right: auto;
    left: 40px;
}

html[dir="ltr"] .contact-card-stack:hover .contact-card-1 {
    transform: rotate(0deg) translateX(20px);
}

html[dir="ltr"] .contact-card-stack:hover .contact-card-2 {
    transform: rotate(3deg) translateX(-10px) translateY(-10px);
}

html[dir="ltr"] .contact-card-stack:hover .contact-card-3 {
    transform: rotate(-5deg) translateX(-40px) translateY(10px);
}

html[dir="ltr"] .floating-img-1 {
    left: auto;
    right: 5%;
}

html[dir="ltr"] .floating-img-2 {
    right: auto;
    left: 5%;
}

html[dir="ltr"] .floating-img-3 {
    right: auto;
    left: 8%;
}

html[dir="ltr"] .hero-title-line,
html[dir="ltr"] .hero-subtitle,
html[dir="ltr"] .hero-badge,
html[dir="ltr"] .section-header,
html[dir="ltr"] .hero-content {
    text-align: center;
}

html[dir="ltr"] .lightbox-close {
    right: auto;
    left: 1.5rem;
}

/* Mobile nav in LTR */
@media (max-width: 768px) {
    html[dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--clr-border);
        transition: left var(--duration-normal) var(--ease-out);
    }

    html[dir="ltr"] .nav-links.active {
        left: 0;
        right: auto;
    }
}

/* Responsive about content padding reset in LTR */
@media (max-width: 1024px) {
    html[dir="ltr"] .about-content {
        padding-left: 0;
    }
}


/* ============================================
   SWEET & MORE — ANIMATION LAYER v2
   ============================================ */

/* --- Keyframes --- */
@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes ribbonScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes rvUp {
    from { opacity: 0; transform: translate3d(0, 46px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes rvZoom {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes rvPop {
    from { opacity: 0; transform: scale(.35); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes rvLine {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 1; transform: scaleX(1); }
}
@keyframes rvBlur {
    from { opacity: 0; filter: blur(12px); transform: translate3d(0, 26px, 0); }
    to   { opacity: 1; filter: blur(0);    transform: translate3d(0, 0, 0); }
}
@keyframes wordUp {
    from { opacity: 0; transform: translate3d(0, .7em, 0) rotate(3deg); }
    to   { opacity: 1; transform: none; }
}
@keyframes rippleOut {
    from { transform: scale(0);   opacity: .5; }
    to   { transform: scale(2.6); opacity: 0; }
}
@keyframes connectorFlow {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes connectorFlowY {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
@keyframes popIn {
    from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.95); }
    to   { opacity: 1; transform: none; }
}
@keyframes lbIn {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes lbNext {
    from { opacity: 0; transform: translate3d(64px, 0, 0) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes lbPrev {
    from { opacity: 0; transform: translate3d(-64px, 0, 0) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
/* translate-based variant — composes with (instead of overriding) transform */
@keyframes softFloatT {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -9px; }
}

/* --- 1. Scroll reveal system --- */
/* Reveal elements are VISIBLE BY DEFAULT. Only hide them when JS is active
   (html.js) so the page can never get stuck blank if scripts are slow,
   blocked, or error out — e.g. on mobile. JS removes the hide once revealed. */
[data-reveal] { opacity: 1; }
html.js [data-reveal] { opacity: 0; }
html.js [data-reveal].is-visible {
    opacity: 1;
    animation-duration: .8s;
    animation-iteration-count: 1;
    animation-timing-function: var(--ease-out);
    animation-fill-mode: both;
    animation-delay: var(--reveal-delay, 0s);
    animation-name: rvUp;
}
[data-reveal="zoom"].is-visible    { animation-name: rvZoom; }
[data-reveal="pop"].is-visible     { animation-name: rvPop; animation-timing-function: var(--ease-spring); }
[data-reveal="line"].is-visible    { animation-name: rvLine; }
[data-reveal="blur"].is-visible    { animation-name: rvBlur; }
[data-reveal="curtain"].is-visible { animation-name: none; }

/* After the reveal animation finishes we drop back to plain declarations.
   opacity/filter stay unconditional — gating them on :hover would let the
   base `[data-reveal] { opacity: 0 }` win and hide the element on hover
   (:hover also matches ancestors, so hovering a card hid its whole item).
   Only `transform` is hover-gated, so hover transforms still take over. */
html.js [data-reveal].is-revealed {
    opacity: 1;
    filter: none;
}
html.js [data-reveal]:not(:hover).is-revealed {
    transform: none;
}

/* Curtain reveal: a solid panel wipes upward (no clip-path → shadows stay intact) */
[data-reveal="curtain"] { opacity: 1; position: relative; }
[data-reveal="curtain"]::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 6;
    background: var(--clr-bg);
    border-radius: inherit;
    transform-origin: top center;
    transform: scaleY(1);
    pointer-events: none;
    transition: transform 1s var(--ease-out) var(--reveal-delay, 0s);
}
[data-reveal="curtain"].is-visible::after,
[data-reveal="curtain"].is-revealed::after { transform: scaleY(0); }

/* --- 2. Word-by-word title reveal --- */
.split-word {
    display: inline-block;
    opacity: 1;
    will-change: transform, opacity;
}
html.js .split-word {
    opacity: 0;
}
.is-visible .split-word,
.is-revealed .split-word {
    animation: wordUp .65s var(--ease-spring) both;
    animation-delay: calc(var(--reveal-delay, 0s) + var(--i, 0) * 45ms);
}

/* --- 3. Hero: shimmering display type --- */
.hero-title-line,
.logo-text {
    background-size: 220% 220% !important;
    animation: textShimmer 7s ease-in-out infinite;
}
.hero-title-accent {
    animation: softFloat 5s ease-in-out infinite;
}
.hero-badge {
    backdrop-filter: blur(6px);
}
.hero-badge:hover {
    border-color: var(--clr-border-hover);
    box-shadow: var(--shadow-glow);
}
.hero-badge,
.hero-subtitle,
.hero-cta,
.hero-stats-wrapper { transition: box-shadow .4s var(--ease-out), border-color .4s var(--ease-out); }

/* --- 4. Falling sprinkles canvas --- */
.hero-sprinkles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* --- 5. Hero parallax layers --- */
.hero-content { will-change: transform, opacity; }
.hero-ambient-orb {
    transform: translate(-50%, -50%) translate3d(0, var(--hsy, 0px), 0);
    animation: orbBreathe 9s ease-in-out infinite;
}
@keyframes orbBreathe {
    0%, 100% { opacity: .75; }
    50%      { opacity: 1; }
}
.hero-floating-images {
    transform: translate3d(var(--hmx, 0px), calc(var(--hsy, 0px) + var(--hmy, 0px)), 0);
    transition: transform .6s var(--ease-out);
    will-change: transform;
}
.floating-img { opacity: .13; }

/* About images drift on scroll — uses `translate` so the curtain reveal
   animation and the tilt/hover transforms stay untouched */
.about-img-main,
.about-img-secondary { translate: 0 var(--py, 0px); }

/* --- 6. Sprinkle ribbon marquee --- */
.sprinkle-ribbon {
    position: relative;
    overflow: hidden;
    padding: .95rem 0;
    background: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-track {
    display: flex;
    width: max-content;
    animation: ribbonScroll 34s linear infinite;
}
.sprinkle-ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-group {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-inline-end: 3rem;
}
.ribbon-item {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    letter-spacing: .02em;
    color: var(--clr-text-dim);
    white-space: nowrap;
}
.ribbon-item b {
    color: var(--clr-primary);
    font-weight: 600;
    margin-inline-end: .45rem;
}
.ribbon-sep {
    color: var(--clr-primary);
    opacity: .55;
    font-size: .8rem;
}

/* --- 7. Card tilt --- */
.gallery-card[data-tilt] {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
    transition: transform .35s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.gallery-card[data-tilt]:hover {
    --ty: -8px;
    box-shadow: 0 18px 44px rgba(212, 165, 116, .18);
    border-color: rgba(212, 165, 116, .35);
}
.gallery-card[data-tilt]:hover .gallery-img > img,
.gallery-card[data-tilt]:hover .slide img { transform: scale(1.1); }

/* --- 8. Cursor spotlight --- */
.gallery-card[data-spot] .gallery-img::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s var(--ease-out);
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%);
}
.gallery-card[data-spot]:hover .gallery-img::after { opacity: 1; }
.gallery-overlay { z-index: 5; }

/* Gallery item: let the reveal system own the entrance */
.gallery-item[data-reveal] { animation: none; }
.gallery-item.filter-pop {
    animation: popIn .5s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}

/* --- 9. Magnetic elements (JS drives `translate`, never `transform`) --- */
.magnetic {
    transition-property: background, background-color, color, border-color,
                         box-shadow, transform, opacity, filter, visibility;
}

/* --- 10. Ripples --- */
.btn, .filter-btn, .social-link, .contact-method {
    position: relative;
    overflow: hidden;
}
.back-to-top {
    overflow: hidden;
}
.ripple-el {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    pointer-events: none;
    animation: rippleOut .65s var(--ease-out) forwards;
    z-index: 2;
}
.btn-whatsapp .ripple-el { background: rgba(255, 255, 255, .45); }

/* --- 11. Button shine sweep --- */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .45) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform .75s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary > :not(.ripple-el) { position: relative; z-index: 2; }

/* --- 12. Cursor glow --- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, .16) 0%, rgba(212, 165, 116, .05) 40%, transparent 68%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity .5s var(--ease-out);
    will-change: transform;
}
.cursor-glow.visible { opacity: 1; }
@media (hover: none), (pointer: coarse) {
    .cursor-glow { display: none; }
}

/* --- 13. Sliding nav indicator --- */
@media (min-width: 769px) {
    .nav-links { position: relative; }
}
.nav-indicator {
    position: absolute;
    top: var(--y, 100%);
    left: var(--x, 0px);
    width: var(--w, 0px);
    height: 2px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    opacity: 0;
    pointer-events: none;
    transition: left .45s var(--ease-spring), width .45s var(--ease-spring), opacity .3s var(--ease-out);
}
.nav-links.has-indicator .nav-link::after { display: none; }
@media (max-width: 768px) {
    .nav-indicator { display: none; }
}

/* --- 14. Back-to-top progress ring --- */
.back-to-top .btt-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}
.back-to-top .btt-ring circle {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.btt-ring-track    { stroke: rgba(212, 165, 116, .18); }
.btt-ring-progress { stroke: var(--clr-primary); transition: stroke-dashoffset .12s linear; }
.back-to-top > svg:not(.btt-ring) { position: relative; z-index: 1; }

/* --- 15. Lightbox transitions --- */
#lightboxImg.lb-in   { animation: lbIn .5s var(--ease-spring) both; }
#lightboxImg.lb-next { animation: lbNext .42s var(--ease-out) both; }
#lightboxImg.lb-prev { animation: lbPrev .42s var(--ease-out) both; }
#lightboxCaption.lb-in   { animation: lbIn .5s var(--ease-out) .1s both; }
#lightboxCaption.lb-next { animation: lbNext .42s var(--ease-out) both; }
#lightboxCaption.lb-prev { animation: lbPrev .42s var(--ease-out) both; }
.lightbox.active .lightbox-close,
.lightbox.active .lightbox-nav { animation: lbIn .45s var(--ease-out) .15s both; }

/* --- 16. Process connector flow --- */
.process-connector { position: relative; overflow: hidden; }
.process-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
    animation: connectorFlow 2.8s linear infinite;
}
.process-step .step-icon { display: inline-block; }
.process-step:hover .step-icon {
    animation: softFloat 1.2s ease-in-out infinite;
}
.process-step:hover .step-number { opacity: .55; }
.step-number { transition: opacity .4s var(--ease-out); }

/* --- 17. Soft idle float for accent pieces --- */
.soft-float {
    animation: softFloatT 6s ease-in-out infinite;
    animation-delay: var(--fl-delay, 0s);
}
.contact-card-stack:hover .soft-float { animation-play-state: paused; }

/* --- 18. Richer hover feedback --- */
.contact-method:hover .contact-icon,
.about-feature:hover .feature-icon {
    background: var(--clr-primary);
    color: var(--clr-bg);
    transform: scale(1.08) rotate(-6deg);
}
.contact-icon,
.feature-icon {
    transition: transform .45s var(--ease-spring), background .35s var(--ease-out), color .35s var(--ease-out);
}
.social-link:hover {
    box-shadow: 0 6px 18px rgba(212, 165, 116, .25);
    transform: translateY(-3px) scale(1.06);
}
.footer-links a { position: relative; }
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    inset-inline-start: 0;
    width: 0;
    height: 1px;
    background: var(--clr-primary);
    transition: width .35s var(--ease-out);
}
.footer-links a:hover::after { width: 100%; }
.contact-card { cursor: pointer; }
.contact-card img { transition: transform .6s var(--ease-out); }
.contact-card:hover img { transform: scale(1.06); }

/* --- 19. Reduced motion: keep reveals instant, drop the rest --- */
@media (prefers-reduced-motion: reduce) {
    .hero-ambient-orb,
    .hero-floating-images,
    .floating-img,
    .hero-title-line,
    .logo-text,
    .hero-title-accent,
    .ribbon-track,
    .process-connector::after,
    .soft-float,
    .cursor-glow {
        animation: none !important;
    }
    .cursor-glow { display: none; }
    .hero-sprinkles { display: none; }
    [data-reveal] { opacity: 1 !important; }
    .split-word { opacity: 1 !important; }
    [data-reveal="curtain"]::after { display: none; }
}

/* --- 20. Small responsive guards --- */
@media (max-width: 768px) {
    .sprinkle-ribbon { padding: .7rem 0; }
    .ribbon-item { font-size: .9rem; }
    .ribbon-group { gap: 2rem; padding-inline-end: 2rem; }
    .process-connector::after { animation-name: connectorFlowY; background: linear-gradient(180deg, transparent, var(--clr-primary), transparent); }
}

/* --- 21. Phone (<=480px) tightening --- */
@media (max-width: 480px) {
    :root { --nav-height: 72px; }

    .nav-logo .logo-text { font-size: 1rem; }

    .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); line-height: 1; }
    .hero-subtitle { font-size: 0.85rem; padding: 0 var(--space-sm); }
    .hero-content { padding-bottom: 4rem; }

    /* Keep the stat row from overflowing narrow screens */
    .hero-stats-wrapper {
        width: 100%;
        max-width: 100%;
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
    }
    .hero-stats { gap: var(--space-xs); }
    .hero-stat-number { font-size: 1.4rem; }
    .hero-stat-label { font-size: 0.7rem; white-space: normal; }
    .hero-stat-divider { height: 18px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

    .contact-card-stack { width: 220px; height: 290px; }
    .contact-card { width: 200px; height: 260px; }

    .footer-brand .footer-logo { width: 52px; height: 52px; }

    .btn { font-size: 0.9rem; padding: 0.8rem 1.5rem; }
}

/* --- 22. Ultra-narrow (<=360px) safety --- */
@media (max-width: 360px) {
    .hero-stats { flex-wrap: wrap; }
    .hero-stat { min-width: 0; flex: 1 1 30%; }
    .hero-stat-divider { display: none; }
    .filter-btn { font-size: 0.95rem; padding: var(--space-sm) var(--space-lg); }
}
