/* ========================================
   Premium Experience — 3D, Animations, Effects
   ======================================== */

/* ----- Loading Screen (Luxury) ----- */
.loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--color-warm-white);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 2.5rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

html[data-theme="dark"] .loading-screen {
    background: var(--color-black);
}

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

.loading-logo-mark {
    position: relative;
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
}

.loading-logo-img {
    max-width: 220px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    animation: loadingLogoReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    filter: drop-shadow(0 6px 24px rgba(201, 162, 39, 0.35));
}

html[data-theme="dark"] .loading-logo-img {
    filter: drop-shadow(0 6px 24px rgba(201, 162, 39, 0.45));
}

@keyframes loadingLogoReveal {
    0% { opacity: 0; transform: scale(0.7) translateY(14px); filter: drop-shadow(0 0 0 rgba(201, 162, 39, 0)); }
    60% { opacity: 1; transform: scale(1.06) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: drop-shadow(0 6px 24px rgba(201, 162, 39, 0.35)); }
}

.loading-logo-mark svg {
    width: 100%; height: 100%;
    animation: logoSpin 2s ease-in-out infinite;
}

.loading-logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: logoReveal 0.8s ease 0.3s forwards;
}

.loading-subtitle {
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: -1.5rem;
    opacity: 0;
    animation: logoReveal 0.8s ease 0.6s forwards;
}

html[data-theme="dark"] .loading-subtitle {
    color: rgba(255,255,255,0.3);
}

.loading-cutlery {
    display: flex;
    align-items: center; gap: 1.5rem;
    opacity: 0;
    animation: logoReveal 0.8s ease 0.5s forwards;
}

.cutlery-spoon, .cutlery-fork {
    width: 28px; height: 56px;
    display: flex; align-items: center; justify-content: center;
}

.cutlery-spoon { animation: spoonBounce 1.5s ease-in-out infinite; }
.cutlery-fork { animation: forkBounce 1.5s ease-in-out infinite 0.15s; }

.cutlery-cross {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: var(--color-gold);
}

@keyframes logoSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.05); }
    75% { transform: rotate(8deg) scale(1.05); }
}

@keyframes spoonBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-6px) rotate(-2deg); }
}

@keyframes forkBounce {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

/* Loading Particles Container */
.loading-particles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}

.loading-particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 2s ease-out infinite;
}

@keyframes particleRise {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 1; transform: translateY(-20px) scale(1); }
    100% { transform: translateY(-120px) scale(0); opacity: 0; }
}

/* ========================================
   3D Hero Elements
   ======================================== */
.hero-3d-container {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
    perspective: 1200px;
}

.hero-3d-object {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Ethiopian-inspired Golden Plate */
.hero-3d-plate {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(201, 162, 39, 0.2), rgba(139, 26, 43, 0.05));
    border: 2px solid rgba(201, 162, 39, 0.2);
    box-shadow: 0 8px 40px rgba(201, 162, 39, 0.1),
                inset 0 -8px 30px rgba(201, 162, 39, 0.03);
    transform: rotateX(45deg) rotateZ(15deg);
    animation: plateFloat 6s ease-in-out infinite;
}

.hero-3d-plate::after {
    content: '';
    position: absolute; inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.12);
    box-shadow: inset 0 4px 20px rgba(201, 162, 39, 0.03);
}

/* Golden Spoon */
.hero-3d-spoon {
    width: 80px; height: 160px;
    filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.15));
    transform-style: preserve-3d;
    animation: spoonFloat 5s ease-in-out infinite;
}

.hero-3d-spoon svg {
    width: 100%; height: 100%;
}

/* Golden Fork */
.hero-3d-fork {
    width: 70px; height: 150px;
    filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.15));
    animation: forkFloat 5.5s ease-in-out infinite 0.5s;
}

.hero-3d-fork svg {
    width: 100%; height: 100%;
}

/* Floating ambient light */
.hero-3d-light {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.06), transparent 70%);
    animation: lightPulse 4s ease-in-out infinite;
}

@keyframes plateFloat {
    0%, 100% { transform: rotateX(45deg) rotateZ(15deg) translateY(0); }
    33% { transform: rotateX(43deg) rotateZ(17deg) translateY(-12px); }
    66% { transform: rotateX(47deg) rotateZ(13deg) translateY(-6px); }
}

@keyframes spoonFloat {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-20px) rotate(-4deg); }
}

@keyframes forkFloat {
    0%, 100% { transform: translateY(0) rotate(6deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}

@keyframes lightPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Hero Text Reveal */
.hero-title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(20deg);
    animation: wordReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Hero cinematic overlay */
.hero-cinematic {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.hero-light-sweep {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.03), transparent);
    transform: translateX(-100%);
    animation: lightSweep 8s ease-in-out infinite;
}

@keyframes lightSweep {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ========================================
   3D Tilt Cards
   ======================================== */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease;
}

.tilt-card-inner {
    transform-style: preserve-3d;
}

.tilt-card-image {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.tilt-card-body {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.tilt-card-shadow {
    transition: box-shadow 0.3s ease;
}

/* ========================================
   Glass Morphism
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.glass-gold {
    background: rgba(201, 162, 39, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 162, 39, 0.10);
}

html[data-theme="dark"] .glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .glass-gold {
    background: rgba(201, 162, 39, 0.03);
    border: 1px solid rgba(201, 162, 39, 0.06);
}

/* Dark mode loading screen adjustments */
html[data-theme="dark"] .loading-screen {
    background: var(--color-black);
}

/* Dark mode 3D elements */
html[data-theme="dark"] .hero-3d-plate {
    border-color: rgba(201, 162, 39, 0.15);
    box-shadow: 0 8px 40px rgba(201, 162, 39, 0.08),
                inset 0 -8px 30px rgba(201, 162, 39, 0.02);
}

html[data-theme="dark"] .hero-3d-light {
    background: radial-gradient(circle, rgba(201, 162, 39, 0.04), transparent 70%);
}

/* ========================================
   Steam Effect
   ======================================== */
.steam-container {
    position: relative;
    overflow: hidden;
}

.steam {
    position: absolute;
    bottom: 30%;
    left: 50%;
    width: 6px; height: 20px;
    background: linear-gradient(to top, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: steamRise 2.5s ease-out infinite;
    opacity: 0;
}

@keyframes steamRise {
    0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: translateX(-50%) translateY(-60px) scale(2); opacity: 0; }
}

/* ========================================
   Premium Particles
   ======================================== */
.particle-container {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}

.gold-particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
}

/* ========================================
   Parallax Layers
   ======================================== */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1);
}

.parallax-slow { transition-duration: 0.15s; }
.parallax-fast { transition-duration: 0.05s; }

/* ========================================
   Enhanced Scroll Reveal
   ======================================== */
.reveal-3d {
    opacity: 0;
    transform: perspective(800px) translateY(40px) rotateX(6deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-3d.visible {
    opacity: 1;
    transform: perspective(800px) translateY(0) rotateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   Cinematic Section Dividers
   ======================================== */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.2;
}

/* ========================================
   Premium Image Depth Effect
   ======================================== */
.img-depth {
    position: relative;
    overflow: hidden;
}

.img-depth img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.img-depth:hover img {
    transform: scale(1.06);
}

/* ========================================
   Luxury Shadow
   ======================================== */
.shadow-luxury {
    box-shadow:
        0 4px 20px rgba(0,0,0,0.04),
        0 1px 3px rgba(0,0,0,0.02),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.shadow-luxury-dark {
    box-shadow:
        0 4px 20px rgba(0,0,0,0.2),
        0 1px 3px rgba(0,0,0,0.15);
}

/* ========================================
   Mobile Safe
   ======================================== */
@media (max-width: 768px) {
    .hero-3d-container { display: none; }
    .loading-cutlery { transform: scale(0.8); }
    .loading-logo-text { font-size: 1.5rem; }
    .loading-logo-img { max-width: 160px; max-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .loading-logo-img {
        animation: none;
        opacity: 1;
    }
}

/* ========================================
   Generic Homepage Sections (CMS extras)
   ======================================== */
.generic-section-body {
    max-width: 720px;
    margin: 0 auto 1.25rem;
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.9;
    text-align: center;
}
.section-alt .generic-section-body,
.section-dark .generic-section-body { color: rgba(255,255,255,0.6); }
.generic-section-image {
    margin-top: var(--spacing-lg);
    text-align: center;
}
.generic-section-image img {
    max-width: 100%;
    max-height: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    object-fit: cover;
}

/* ========================================
   Hero Slides (CMS)
   ======================================== */
.hero-content-slider {
    display: grid;
    align-items: center;
    grid-template-rows: auto auto;
    width: 100%;
}
.hero-content-slider .hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}
.hero-content-slider .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.hero-dots {
    grid-area: 2 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-light-gray);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all var(--transition-gold);
}
.hero-dot.active {
    background: var(--color-gold);
    width: 24px;
    border-radius: 4px;
}
