@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 {
    /* Professional Corporate Palette */
    --bg-cream: #FAFAFA;
    /* Clean light gray background */
    --text-coffee: #2C2C2C;
    /* Professional dark gray for text */
    --patuli-gold: #C9A961;
    /* Subtle gold accent */
    --patuli-red: #B91C1C;
    /* Professional red accent */
    --glass-cream: rgba(250, 250, 250, 0.95);
    /* Frosted background for overlays */
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Navbar Colors - Professional Dark */
    --nav-blue-1: #1F2937;
    --nav-blue-2: #111827;
    --nav-blue-3: #0F172A;
    --nav-blue-4: #0A0E1A;
}

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);
}

/* --- Navbar Dropdown (Tıklama ile) --- */
.nav-dropdown {
    position: relative;
}
.nav-dropdown .nav-dropdown-panel {
    z-index: 9999;
    pointer-events: auto;
}
.nav-dropdown.open .nav-dropdown-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.nav-dropdown:not(.open) .nav-dropdown-panel {
    pointer-events: none;
}
.nav-dropdown.open .nav-dropdown-btn i {
    transform: rotate(180deg);
}

/* --- Mobile Menu: Drawer - #800000 arka plan --- */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, #800000 0%, #600000 50%, #4a0000 100%) !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    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: 80px 40px 40px 60px;
}

#mobile-menu.active {
    transform: translateX(0);
}

/* (Watermark kaldırıldı: burger menüde arka plan yazısı / sayılar görünmesin diye) */

/* Menu Links - Yüksek kontrast, okunaklı (sadece ana nav linkleri) */
.mobile-nav-links a {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
    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 2px 8px rgba(0, 0, 0, 0.5);
}

/* Hover Effects */
.mobile-nav-links a:hover {
    transform: translateX(15px);
    color: #EBB53D !important;
    text-shadow: 0 0 16px rgba(235, 181, 61, 0.6);
}

/* Dil seçici - drawer içinde okunaklı */
#mobile-menu .flex.flex-wrap a {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.3) !important;
}
#mobile-menu .flex.flex-wrap a:hover {
    color: #EBB53D !important;
    background: rgba(235,181,61,0.15) !important;
}
#mobile-menu .flex.flex-wrap a[class*="bg-patuli-gold"] {
    background: rgba(235,181,61,0.25) !important;
    color: #EBB53D !important;
}

/* Stagger Animation */
.mobile-nav-links a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links a:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-nav-links a:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-nav-links a:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-nav-links a:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-nav-links a:nth-child(6) {
    transition-delay: 0.3s;
}

.mobile-nav-links 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);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

/* Menü açıkken navbar ve burger drawer'ın üstünde olsun (kapatma tıklanabilsin) */
body.menu-open #navbar {
    z-index: 110;
}

/* Burger butonu ve navbar #800000 (maroon) */
#burger-btn.burger-open-maroon,
#burger-btn:hover {
    color: #800000 !important;
}
/* Aktif link navbar'da #800000 üzerinde okunmaz - beyaz kullan */
#navbar a.text-patuli-maroon,
#navbar .text-patuli-maroon,
#navbar button.text-patuli-maroon,
#navbar .nav-dropdown-btn.text-patuli-maroon {
    color: #ffffff !important;
}
#navbar a:hover,
#navbar .group-hover\:text-patuli-maroon:hover,
#navbar .nav-dropdown-btn:hover {
    color: #ffffff !important;
}
#navbar a.text-patuli-gold,
#navbar .text-patuli-gold {
    color: #800000 !important;
}
#navbar .border-patuli-coffee:hover,
#navbar .hover\:border-patuli-maroon:hover {
    border-color: rgba(128, 0, 0, 0.5) !important;
    color: #800000 !important;
}

/* --- 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);
    }
}

/* --- Hero Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}
.animate-slide-up {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-cta-primary {
    background: linear-gradient(135deg, #800000 0%, #a00000 50%, #800000 100%);
    background-size: 200% 200%;
}
.hero-cta-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 20px 40px -10px rgba(128, 0, 0, 0.5);
}
.hero-cta-secondary:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* --- 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(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.75));
        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;
    }
}


/* 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 - #800000 (maroon) */
.navbar-gradient {
    background: linear-gradient(135deg, #800000 0%, #600000 50%, #4a0000 100%) !important;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    backdrop-filter: blur(10px);
}

/* Tüm sayfalarda navbar #800000 */
body.index-page .navbar-gradient,
body.urunler-page .navbar-gradient,
body.hakkimizda-page .navbar-gradient,
body.belgelerimiz-page .navbar-gradient,
body.franchise-page .navbar-gradient,
body.gallery-page .navbar-gradient,
body.cafe-page .navbar-gradient,
body.kitchen-page .navbar-gradient,
body.bakery-page .navbar-gradient {
    background: linear-gradient(135deg, #800000 0%, #600000 50%, #4a0000 100%) !important;
    animation: none;
}

/* Content Padding Below Navbar */
.content-padding-top {
    padding-top: calc(1rem + 1rem + 3.5rem); /* Mobile: navbar biraz daha yüksek */
}

@media (min-width: 768px) {
    .content-padding-top {
        padding-top: calc(1rem + 1rem + 4.5rem); /* Desktop: navbar biraz daha yüksek */
    }
}

/* Hero Section - Full height minus navbar */
.hero-section {
    min-height: 100vh;
    padding-top: calc(1rem + 1rem + 3.5rem); /* Mobile: navbar biraz daha yüksek */
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: calc(1rem + 1rem + 4.5rem); /* Desktop: navbar biraz daha yüksek */
    }
}

/* Special Banner - Koyu arka plan + speckle + görsel + yazı */
.special-banner {
    padding: 4rem 0;
}
.special-banner-bg {
    background: #0a0a0a;
}
.special-banner-speckles {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,200,100,0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,180,80,0.35), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,220,120,0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,190,90,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,210,100,0.35), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,170,70,0.3), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,200,90,0.35), transparent),
        radial-gradient(2px 2px at 250px 180px, rgba(255,185,85,0.3), transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255,195,95,0.4), transparent),
        radial-gradient(2px 2px at 350px 140px, rgba(255,175,75,0.35), transparent);
    background-size: 400px 250px;
    background-repeat: repeat;
    animation: speckleFloat 20s ease-in-out infinite;
}
@keyframes speckleFloat {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.75; }
}

@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: #ffffff !important;
}

/* Dropdown panelleri #800000 arka plan - linkler beyaz (Kurumsal, Ürünler) */
#navbar .nav-dropdown-panel:not(.lang-dropdown-panel) a {
    color: #ffffff !important;
}
#navbar .nav-dropdown-panel:not(.lang-dropdown-panel) a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15) !important;
}
#navbar .nav-dropdown-panel:not(.lang-dropdown-panel) .text-patuli-red,
#navbar .nav-dropdown-panel:not(.lang-dropdown-panel) a[class*="bg-patuli-red"] {
    color: #ffffff !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 - Dropdown */
.lang-dropdown .lang-switcher-btn {
    min-width: 120px;
    justify-content: center;
}
.lang-dropdown.open .lang-switcher-btn {
    border-color: rgba(128, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.12);
}
.lang-dropdown.open .lang-switcher-btn i {
    transform: rotate(180deg);
}
.lang-dropdown-panel a {
    border-left: 3px solid transparent;
    color: #ffffff !important;
}
.lang-dropdown-panel a:hover {
    border-left-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}
.lang-dropdown-panel a[class*="bg-patuli-red"] {
    border-left-color: rgba(255,255,255,0.5);
}

/* 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;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gray-800);
    color: white;
    border: 1px solid var(--gray-700);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 99999;
}

#back-to-top:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile */
@media screen and (max-width: 768px) {
    #back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* Fixed Right Social Menu - toggle drawer */
.fixed-right-menu {
    position: fixed;
    top: 38%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 99990;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.6s ease;
}

/* İlk yüklemede gizli, 3sn sonra sağdan kayan efekt */
.fixed-right-menu.initial-hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(120%);
}

/* Toggle button */
.fixed-right-menu .social-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 72px;
    border-radius: 9999px 0 0 9999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding-left: 4px;
    padding-right: 6px;
}

.fixed-right-menu .social-toggle .line {
    width: 18px;
    height: 2.5px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.fixed-right-menu .social-drawer {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%) translateX(12px);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.6rem 0.6rem;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 9999px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fixed-right-menu .social-drawer a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    border-radius: 12px;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fixed-right-menu .social-drawer a:hover {
    transform: translateX(-3px) translateY(-1px) scale(1.04);
    box-shadow: 0 12px 30px rgba(0,0,0,0.65);
}

.fixed-right-menu .social-drawer a.facebook {
    background: #1877F2;
}
.fixed-right-menu .social-drawer a.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.fixed-right-menu .social-drawer a.tiktok {
    background: #000000;
}
.fixed-right-menu .social-drawer a.reservation {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

/* Masaüstü ikon boyutu */
.fixed-right-menu .social-drawer a i {
    font-size: 20px;
}

/* Active state */
.fixed-right-menu.active .social-drawer {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.fixed-right-menu.active .social-toggle .line:first-child {
    transform: translateY(2px) rotate(35deg);
}
.fixed-right-menu.active .social-toggle .line:last-child {
    transform: translateY(-2px) rotate(-35deg);
}

/* Mobile: sağ sabit menüyü aşağı al ve sadeleştir */
@media (max-width: 768px) {
    .fixed-right-menu {
        top: auto;
        bottom: 320px;
        right: 10px;
        transform: translateY(0);
    }
    .fixed-right-menu .social-toggle {
        width: 40px;
        height: 70px;
    }
    .fixed-right-menu .social-toggle .line {
        width: 18px;
    }
    .fixed-right-menu .social-drawer {
        right: 40px;
        padding: 0.7rem 0.7rem;
        gap: 0.5rem;
    }
    .fixed-right-menu .social-drawer a {
        width: 40px;
        height: 40px;
    }
    .fixed-right-menu .social-drawer a i {
        font-size: 18px;
    }
}
/* Mobile Menu - Tüm sayfalarda #800000 (maroon) arka plan */
body.index-page #mobile-menu,
body.urunler-page #mobile-menu,
body.hakkimizda-page #mobile-menu,
body.belgelerimiz-page #mobile-menu,
body.franchise-page #mobile-menu,
body.gallery-page #mobile-menu,
body.cafe-page #mobile-menu,
body.kitchen-page #mobile-menu,
body.bakery-page #mobile-menu {
    background: linear-gradient(180deg, #800000 0%, #600000 50%, #4a0000 100%) !important;
}