@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    /* New Appetizing Palette */
    --bg-cream: #FDFBF7;
    /* Warm, flour-like background */
    --text-coffee: #4A3B32;
    /* Deep espresso brown for text */
    --patuli-gold: #EBB53D;
    /* Crust/Gold accent */
    --patuli-red: #8B1538;
    /* Darker, richer burgundy for highlights */
    --glass-cream: rgba(253, 251, 247, 0.85);
    /* Frosted cream for overlays */
    
    /* Navbar Gradient Colors */
    --nav-blue-1: #02012D;
    --nav-blue-2: #010127;
    --nav-blue-3: #01011D;
    --nav-blue-4: #020015;
}

html,
body {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-coffee);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--text-coffee);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--patuli-gold);
}

/* --- Mobile Menu: Navbar Gradient Style --- */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    /* Full width for impact */
    height: 100vh;
    /* Navbar Gradient: Blue to Black */
    background: linear-gradient(135deg, 
        var(--nav-blue-1) 0%, 
        var(--nav-blue-2) 25%, 
        var(--nav-blue-3) 50%, 
        var(--nav-blue-4) 75%, 
        var(--nav-blue-1) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    box-shadow: -10px 0 40px rgba(2, 1, 45, 0.5);
    z-index: 100;

    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;

    counter-reset: menu-counter;
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Watermark - More subtle on blue gradient */
#mobile-menu::before {
    content: 'PATULI';
    position: absolute;
    bottom: -10px;
    right: -20px;
    font-size: 10rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    /* White glass effect */
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

/* Menu Links */
#mobile-menu a {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    /* Smaller size */
    font-weight: 400;
    /* Lighter weight (Not kaba) */
    color: #FFFFFF;
    /* White Text */
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 10;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Patuli prefix styling in mobile menu */
#mobile-menu a::first-word {
    font-weight: 700;
    color: var(--patuli-gold);
}

/* Numbering Style */
#mobile-menu a::before {
    counter-increment: menu-counter;
    content: "0" counter(menu-counter);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

/* Hover Effects */
#mobile-menu a:hover {
    transform: translateX(15px);
    color: var(--patuli-gold);
    /* Gold accent */
    text-shadow: 0 0 20px rgba(235, 181, 61, 0.5);
}

#mobile-menu a:hover::before {
    color: var(--patuli-gold);
    border-color: var(--patuli-gold);
    padding-right: 10px;
    /* Animate number padding */
}

/* Stagger Animation */
#mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

#mobile-menu.active a:nth-child(2) {
    transition-delay: 0.1s;
}

#mobile-menu.active a:nth-child(3) {
    transition-delay: 0.15s;
}

#mobile-menu.active a:nth-child(4) {
    transition-delay: 0.2s;
}

#mobile-menu.active a:nth-child(5) {
    transition-delay: 0.25s;
}

#mobile-menu.active a:nth-child(6) {
    transition-delay: 0.3s;
}

#mobile-menu.active a:nth-child(7) {
    transition-delay: 0.35s;
}

#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 30, 20, 0.6);
    backdrop-filter: blur(8px);
    /* Stronger blur */
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Page Transitions --- */
.page-enter {
    animation: fadeSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Carousel Updated Colors */
.gallery-container {
    perspective: 1000px;
    overflow: hidden;
    padding: 80px 0;
}

.gallery-spin {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: spin 20s linear infinite;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(74, 59, 50, 0.2);
}

.gallery-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(350px);
}

.gallery-item:nth-child(2) {
    transform: rotateY(60deg) translateZ(350px);
}

.gallery-item:nth-child(3) {
    transform: rotateY(120deg) translateZ(350px);
}

.gallery-item:nth-child(4) {
    transform: rotateY(180deg) translateZ(350px);
}

.gallery-item:nth-child(5) {
    transform: rotateY(240deg) translateZ(350px);
}

.gallery-item:nth-child(6) {
    transform: rotateY(300deg) translateZ(350px);
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-reverse {
    animation: floatReverse 8s ease-in-out infinite;
}

.floating-delay-1 {
    animation-delay: 0.5s;
}

.floating-delay-2 {
    animation-delay: 1s;
}

.floating-delay-3 {
    animation-delay: 1.5s;
}

/* 3D Flip Card */
.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--patuli-gold), var(--patuli-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
}

/* Parallax Floating Images */
.parallax-float {
    animation: parallaxFloat 10s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-30px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-20px) translateX(5px);
    }
}

/* Wave Animation */
.wave-container {
    position: relative;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, 
        rgba(235, 181, 61, 0.1) 0%,
        rgba(235, 181, 61, 0.2) 50%,
        rgba(235, 181, 61, 0.1) 100%);
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Magnetic Hover Effect */
.magnetic-card {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(235, 181, 61, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(235, 181, 61, 0.6);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Rotating Border */
@keyframes rotateBorder {
    0% {
        border-color: var(--patuli-gold);
    }
    33% {
        border-color: var(--patuli-red);
    }
    66% {
        border-color: var(--patuli-coffee);
    }
    100% {
        border-color: var(--patuli-gold);
    }
}

.rotating-border {
    border: 3px solid;
    animation: rotateBorder 4s linear infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Particle Effects */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--patuli-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 19s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 15s; }

/* Morphing Blob */
.morphing-blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--patuli-gold), var(--patuli-red));
    opacity: 0.1;
    animation: morph 20s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) scale(1);
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--patuli-cream);
    transform: translateX(-100%);
    animation: textReveal 1.5s ease-out forwards;
    z-index: 1;
}

@keyframes textReveal {
    to {
        transform: translateX(100%);
    }
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(90deg, 
        var(--patuli-gold), 
        var(--patuli-red), 
        var(--patuli-coffee), 
        var(--patuli-gold));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* 3D Tilt Effect */
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Neon Glow */
.neon-glow {
    text-shadow: 
        0 0 10px var(--patuli-gold),
        0 0 20px var(--patuli-gold),
        0 0 30px var(--patuli-gold),
        0 0 40px var(--patuli-gold);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--patuli-gold),
            0 0 20px var(--patuli-gold),
            0 0 30px var(--patuli-gold);
    }
    50% {
        text-shadow: 
            0 0 20px var(--patuli-gold),
            0 0 30px var(--patuli-gold),
            0 0 40px var(--patuli-gold),
            0 0 50px var(--patuli-gold);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--patuli-gold), var(--patuli-red));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(-45deg, 
        var(--patuli-cream), 
        var(--patuli-gold), 
        var(--patuli-red), 
        var(--patuli-coffee));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatIcon 8s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Section Video Styles (Parallax Reveal) */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Slight dim for readability */
}

@media (min-width: 1px) {
    .cinematic-bg-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: -1;
        overflow: hidden;
    }

    .cinematic-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        animation: kenBurns 20s ease-in-out infinite alternate;
        z-index: 1;
    }

    .cinematic-bg-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        animation: kenBurns 20s ease-in-out infinite alternate;
        z-index: 2;
    }

    .cinematic-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(74, 59, 50, 0.3), rgba(74, 59, 50, 0.6));
        z-index: 3;
    }

    @keyframes kenBurns {
        0% {
            transform: scale(1);
        }

        100% {
            transform: scale(1.15);
        }
    }
}

/* Video Background Styles - Removed duplicate, handled above */

/* Gallery Hover Effects */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Smooth Image Transitions */
img {
    transition: transform 0.3s ease;
}

/* Video Container Styles */
video {
    display: block;
}

/* Hero Animations */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Card Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}

/* Menu Iframe Styles */
.menu-iframe {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .menu-iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 500px !important;
        min-height: 500px !important;
    }
    
    #menu .max-w-\[500px\] {
        max-width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-iframe {
        height: 400px !important;
        min-height: 400px !important;
    }
}

/* Snow Animation Bar */
.snow-bar {
    position: fixed;
    width: 100%;
    background: #000000;
    z-index: 40;
    overflow: hidden;
    /* Navbar height calculation: py-4 (16px top + 16px bottom) + logo height */
    top: calc(1rem + 1rem + 3rem); /* Mobile: 16px + 16px + 48px = 80px */
    height: 25px; /* Orta kalınlık - 25px */
}

/* Cafe Page - Blue line between navbar and snow bar (same as bakery navbar) */
body.cafe-page .snow-bar {
    border-top: 10px solid #02012D; /* Navy blue like bakery navbar */
}

/* Bakery Page - Taba line between navbar and snow bar */
body.bakery-page .snow-bar {
    border-top: 10px solid var(--text-coffee); /* Taba/Coffee brown line at top */
}

/* Kitchen Page - Taba line between navbar and snow bar */
body.kitchen-page .snow-bar {
    border-top: 10px solid var(--text-coffee); /* Taba/Coffee brown line at top */
}

/* Index Page - Taba line between navbar and snow bar */
body.index-page .snow-bar {
    border-top: 10px solid var(--text-coffee); /* Taba/Coffee brown line at top */
}

/* Gallery Page - Taba line between navbar and snow bar */
body.gallery-page .snow-bar {
    border-top: 10px solid var(--text-coffee); /* Taba/Coffee brown line at top */
}

@media (min-width: 768px) {
    .snow-bar {
        top: calc(1rem + 1rem + 4rem); /* Desktop: 16px + 16px + 64px = 96px */
        height: 25px; /* Orta kalınlık - 25px */
    }
}

.snow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.snowflake {
    position: absolute;
    color: #ffffff !important;
    font-size: 14px;
    opacity: 0.9;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    -webkit-text-fill-color: #ffffff !important;
    -webkit-text-stroke: 0.5px #ffffff !important;
    font-variant-emoji: text !important;
    /* Hareketsiz - ortada sabit */
    top: 50%;
    transform: translateY(-50%);
}

/* Safari özel kar tanesi düzeltmesi */
@supports (-webkit-appearance: none) {
    .snowflake {
        font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
        -webkit-font-feature-settings: "liga" off !important;
        font-feature-settings: "liga" off !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-text-stroke-width: 1px !important;
        -webkit-text-stroke-color: #ffffff !important;
        text-shadow: 0 0 3px #ffffff !important;
    }
}

.snowflake:nth-child(1) { left: 2%; font-size: 12px; }
.snowflake:nth-child(2) { left: 7%; font-size: 13px; }
.snowflake:nth-child(3) { left: 12%; font-size: 12px; }
.snowflake:nth-child(4) { left: 18%; font-size: 14px; }
.snowflake:nth-child(5) { left: 23%; font-size: 12px; }
.snowflake:nth-child(6) { left: 28%; font-size: 15px; }
.snowflake:nth-child(7) { left: 33%; font-size: 13px; }
.snowflake:nth-child(8) { left: 38%; font-size: 14px; }
.snowflake:nth-child(9) { left: 43%; font-size: 13px; }
.snowflake:nth-child(10) { left: 48%; font-size: 12px; }
.snowflake:nth-child(11) { left: 53%; font-size: 14px; }
.snowflake:nth-child(12) { left: 58%; font-size: 13px; }
.snowflake:nth-child(13) { left: 63%; font-size: 15px; }
.snowflake:nth-child(14) { left: 68%; font-size: 14px; }
.snowflake:nth-child(15) { left: 73%; font-size: 12px; }
.snowflake:nth-child(16) { left: 78%; font-size: 14px; }
.snowflake:nth-child(17) { left: 83%; font-size: 13px; }
.snowflake:nth-child(18) { left: 88%; font-size: 15px; }
.snowflake:nth-child(19) { left: 93%; font-size: 14px; }
.snowflake:nth-child(20) { left: 98%; font-size: 13px; }

@keyframes snowfall {
    0% {
        transform: translateX(0) translateY(-8px) rotate(0deg);
        opacity: 0;
    }
    3% {
        opacity: 0.95;
    }
    25% {
        transform: translateX(3px) translateY(2px) rotate(90deg);
    }
    50% {
        transform: translateX(-2px) translateY(6px) rotate(180deg);
    }
    75% {
        transform: translateX(2px) translateY(8px) rotate(270deg);
    }
    97% {
        opacity: 0.95;
    }
    100% {
        transform: translateX(0) translateY(20px) rotate(360deg);
        opacity: 0;
    }
}

/* 360 View Iframe Styles */
iframe[title*="360"] {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 360 View Container Hover Effects */
.group:hover iframe[title*="360"] {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Responsive 360 Views */
@media (max-width: 768px) {
    .aspect-square {
        aspect-ratio: 1 / 1;
    }
    
    iframe[title*="360"] {
        min-height: 300px;
    }
}

/* Navbar Gradient */
.navbar-gradient {
    background: linear-gradient(135deg, 
        var(--nav-blue-1) 0%, 
        var(--nav-blue-2) 25%, 
        var(--nav-blue-3) 50%, 
        var(--nav-blue-4) 75%, 
        var(--nav-blue-1) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    backdrop-filter: blur(10px);
}

/* Index Page - Black navbar */
body.index-page .navbar-gradient {
    background: #000000; /* Black */
    animation: none; /* Remove gradient animation */
}

/* Cafe Page Navbar - Taba/Coffee brown */
body.cafe-page .navbar-gradient {
    background: var(--text-coffee); /* Solid taba/coffee brown */
    animation: none; /* Remove gradient animation */
}

/* Kitchen Page Navbar - Burgundy */
body.kitchen-page .navbar-gradient {
    background: var(--patuli-red); /* Burgundy/Red */
    animation: none; /* Remove gradient animation */
}

/* Content Padding Below Navbar and Snow Bar */
/* Mobile: navbar (80px) + snow bar (48px) = 128px */
/* Desktop: navbar (96px) + snow bar (57.6px) = 153.6px */
.content-padding-top {
    padding-top: calc(1rem + 1rem + 3rem + (1rem + 1rem + 3rem) * 0.6); /* Mobile: ~128px */
}

@media (min-width: 768px) {
    .content-padding-top {
        padding-top: calc(1rem + 1rem + 4rem + (1rem + 1rem + 4rem) * 0.6); /* Desktop: ~153.6px */
    }
}

/* Hero Section - Full height minus navbar and snow bar */
.hero-section {
    min-height: 100vh;
    padding-top: calc(1rem + 1rem + 3rem + (1rem + 1rem + 3rem) * 0.6); /* Mobile: ~128px */
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: calc(1rem + 1rem + 4rem + (1rem + 1rem + 4rem) * 0.6); /* Desktop: ~153.6px */
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Image Modal Preview */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.image-modal-content {
    position: relative;
    z-index: 99999;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: block !important;
    opacity: 1 !important;
    z-index: 99999;
    position: relative;
}

@keyframes imageZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 999999;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.image-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Make images clickable */
img[src]:not([src=""]):not(.no-modal):not(#navbar img):not(.image-modal-img) {
    cursor: pointer;
    transition: transform 0.2s ease;
}

img[src]:not([src=""]):not(.no-modal):not(#navbar img):not(.image-modal-img):hover {
    transform: scale(1.02);
}

/* Make image containers clickable */
.gallery-item,
.group.relative,
.h-80,
.h-64,
.h-96,
.aspect-square,
div:has(img[src]:not(.no-modal):not(#navbar img):not(.image-modal-img)) {
    cursor: pointer;
}

/* Make image containers clickable */
.gallery-item,
.group.relative,
.h-80,
.h-64,
.h-96,
.aspect-square {
    cursor: pointer;
}

/* Allow clicks through overlays on gallery items - let clicks pass to image */
.group.relative > div.absolute,
.h-80 > div.absolute,
.h-64 > div.absolute,
.h-96 > div.absolute {
    pointer-events: none;
}

/* But allow text to be visible on hover */
.group.relative:hover > div.absolute,
.h-80:hover > div.absolute,
.h-64:hover > div.absolute,
.h-96:hover > div.absolute {
    pointer-events: auto;
}

/* Exclude logo and specific images from modal */
#navbar img,
.logo img,
.image-modal-img,
video,
iframe {
    cursor: default !important;
}

/* Exclude navigation cards from modal (they have links) */
a[href*=".php"] img {
    cursor: pointer;
}

/* Navbar Text Colors - White for visibility */
#navbar a,
#navbar button {
    color: #ffffff !important;
}

#navbar a:hover {
    color: var(--patuli-gold) !important;
}

#navbar a.text-patuli-gold {
    color: var(--patuli-gold) !important;
}

#navbar .text-patuli-coffee {
    color: #ffffff !important;
}

#navbar .text-gray-400 {
    color: rgba(255, 255, 255, 0.6) !important;
}

#navbar .text-gray-400:hover {
    color: #ffffff !important;
}

#navbar .border-patuli-coffee {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#navbar .border-patuli-coffee:hover {
    border-color: var(--patuli-gold) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--patuli-gold) !important;
}

#navbar .border-r.border-white {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Language Switcher Toggle Style */
#navbar a[href*="lang="] {
    transition: all 0.3s ease;
}

#navbar a[href*="lang="]:hover {
    transform: scale(1.05);
}

/* Capitalize text in navbar */
#navbar .capitalize {
    text-transform: capitalize;
}

/* Flag Emoji Styling */
.flag-emoji {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Hero Section Button Hover Effects */
.hero-section a[style*="background-color: #8B1538"]:hover {
    background-color: #ffffff !important;
    color: #8B1538 !important;
}

.hero-section a[style*="background-color: #1a237e"]:hover {
    background-color: #ffffff !important;
    color: #1a237e !important;
}

.hero-section a[style*="background-color: #B8860B"]:hover {
    background-color: #ffffff !important;
    color: #B8860B !important;
}

/* Hero Section Button Icon Rotation on Hover */
.hero-section a:hover i {
    transform: rotate(12deg);
}
/* Back to Top Button - Always Visible */
#back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: #EBB53D !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
}

#back-to-top:hover {
    background: #8B1538 !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Mobile */
@media screen and (max-width: 768px) {
    #back-to-top {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 20px !important;
    }
}
/* Mobile Menu - Page Specific Colors */
/* Index Page - Black mobile menu */
body.index-page #mobile-menu {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

/* Cafe Page - Taba/Coffee brown mobile menu */
body.cafe-page #mobile-menu {
    background: linear-gradient(135deg, var(--text-coffee) 0%, #3a2b22 50%, var(--text-coffee) 100%);
}

/* Kitchen Page - Burgundy mobile menu */
body.kitchen-page #mobile-menu {
    background: linear-gradient(135deg, var(--patuli-red) 0%, #6b1028 50%, var(--patuli-red) 100%);
}

/* Bakery Page - Navy blue mobile menu */
body.bakery-page #mobile-menu {
    background: linear-gradient(135deg, #1a237e 0%, #0d1157 50%, #1a237e 100%);
}

/* Gallery Page - Default gradient mobile menu */
body.gallery-page #mobile-menu {
    background: linear-gradient(135deg, 
        var(--nav-blue-1) 0%, 
        var(--nav-blue-2) 25%, 
        var(--nav-blue-3) 50%, 
        var(--nav-blue-4) 100%);
}
/* Bakery Page Navbar - Navy blue */
body.bakery-page .navbar-gradient {
    background: #1a237e; /* Navy blue */
    animation: none;
}

/* Gallery Page Navbar - Default gradient */
body.gallery-page .navbar-gradient {
    background: linear-gradient(135deg, 
        var(--nav-blue-1) 0%, 
        var(--nav-blue-2) 25%, 
        var(--nav-blue-3) 50%, 
        var(--nav-blue-4) 100%);
}