/* Custom Styles */

/* Screen reader only - SEO H1 for accessibility and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tailwind hidden class (if not in dist/output.css) */
.hidden {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll; /* Always show vertical scrollbar to prevent layout shift */
}

body {
    font-family: var(--site-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Theme-specific colors are handled in header.php style block */
body.theme-dark {
    background-color: #0a0a0a;
    color: #ffffff;
}

body.theme-light {
    background-color: #f9fafb;
    color: #111827;
}

/* Light Theme - Hero Section Fix - Remove transparent strip at top */
body.theme-light #homepage-hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    background-color: transparent !important; /* Hero section'ın background'unu koru */
}

/* Light Theme - Ensure hero section starts from top */
body.theme-light #homepage-hero-section::before {
    display: none !important;
}

/* Light Theme - Hero section içindeki video ve image'ların görünür olmasını sağla */
/* Video elementlerini bu kuraldan hariç tut - onların kendi opacity mantığı var */
body.theme-light #homepage-hero-section .hero-video-container,
body.theme-light #homepage-hero-section .hero-media:not(.hero-video),
body.theme-light #homepage-hero-section img,
body.theme-light #homepage-hero-section video:not(.hero-video) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Light Theme - Hero video başlangıçta gizli (genel kuralı override et) */
/* Daha spesifik selector kullan - video element'ini direkt hedefle */
body.theme-light #homepage-hero-section .hero-video-container video.hero-video,
body.theme-light #homepage-hero-section .hero-video-container .hero-video.hero-media {
    opacity: 0 !important;
    visibility: visible !important;
    display: block !important;
}

/* Light Theme - Header tamamen şeffaf, arka plan yok */
body.theme-light nav.fixed {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* Light theme: News/Blog hero text should be off-white and NO shadow */
body.theme-light .nb-page section.nb-hero-section .nb-hero-content,
body.theme-light .nb-page section.nb-hero-section .nb-hero-content .nb-hero-title,
body.theme-light .nb-page section.nb-hero-section .nb-hero-content .nb-hero-title.text-white,
body.theme-light .nb-page section.nb-hero-section .nb-hero-content p,
body.theme-light .nb-page section.nb-hero-section .nb-hero-content p.text-white,
body.theme-light .nb-page section.nb-hero-section .nb-hero-content p.text-white\/60,
body.theme-light .nb-page section.nb-hero-section .nb-hero-content .text-white {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--site-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #A89F91;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #A89F91;
    transition: width 0.3s ease;
}

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

/* Mega Menu Card Hover Effects */
.mega-menu-card {
    transition: all 0.3s ease;
}

.mega-menu-card:hover .mega-menu-image {
    transform: scale(1.05);
}

.mega-menu-card:hover .mega-menu-title {
    color: #A89F91;
}

.mega-menu-image {
    transition: transform 0.5s ease;
}

/* Mobile Menu Overlay Animation */
.mobile-overlay {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.mobile-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-link {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #A89F91;
    transform: translateX(10px);
}

/* Mobile Collection Card Hover */
.mobile-collection-card:hover .mobile-card-title {
    color: #A89F91;
}

.mobile-collection-card:hover img {
    transform: scale(1.05);
}

/* Featured Collections Hover Effects - Now handled by Tailwind classes */

/* Fix white background issue when pasting into input/textarea fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
}

/* Remove any browser default styling that might add background */
input[type="text"]::-webkit-input-placeholder,
input[type="email"]::-webkit-input-placeholder,
input[type="tel"]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    background-color: transparent !important;
}

input[type="text"]:-webkit-autofill,
input[type="email"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    background-color: transparent !important;
    background: transparent !important;
}

body.theme-dark input[type="text"]:-webkit-autofill,
body.theme-dark input[type="email"]:-webkit-autofill,
body.theme-dark input[type="tel"]:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
}

body.theme-light input[type="text"]:-webkit-autofill,
body.theme-light input[type="email"]:-webkit-autofill,
body.theme-light input[type="tel"]:-webkit-autofill {
    -webkit-text-fill-color: #111827 !important;
}

/* Contact form - Fix paste background issue (dark theme) - Most aggressive rules */
body.theme-dark #contact-form input[type="text"],
body.theme-dark #contact-form input[type="email"],
body.theme-dark #contact-form input[type="tel"],
body.theme-dark #contact-form textarea,
body.theme-dark #contact-form input[type="text"] *,
body.theme-dark #contact-form input[type="email"] *,
body.theme-dark #contact-form input[type="tel"] *,
body.theme-dark #contact-form textarea * {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.theme-dark #contact-form input[type="text"]:focus,
body.theme-dark #contact-form input[type="email"]:focus,
body.theme-dark #contact-form input[type="tel"]:focus,
body.theme-dark #contact-form textarea:focus,
body.theme-dark #contact-form input[type="text"]:hover,
body.theme-dark #contact-form input[type="email"]:hover,
body.theme-dark #contact-form input[type="tel"]:hover,
body.theme-dark #contact-form textarea:hover,
body.theme-dark #contact-form input[type="text"]:active,
body.theme-dark #contact-form input[type="email"]:active,
body.theme-dark #contact-form input[type="tel"]:active,
body.theme-dark #contact-form textarea:active,
body.theme-dark #contact-form input[type="text"][value],
body.theme-dark #contact-form input[type="email"][value],
body.theme-dark #contact-form input[type="tel"][value] {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Contact form - Fix paste background issue (light theme) - Most aggressive rules */
body.theme-light #contact-form input[type="text"],
body.theme-light #contact-form input[type="email"],
body.theme-light #contact-form input[type="tel"],
body.theme-light #contact-form textarea,
body.theme-light #contact-form input[type="text"] *,
body.theme-light #contact-form input[type="email"] *,
body.theme-light #contact-form input[type="tel"] *,
body.theme-light #contact-form textarea * {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.theme-light #contact-form input[type="text"]:focus,
body.theme-light #contact-form input[type="email"]:focus,
body.theme-light #contact-form input[type="tel"]:focus,
body.theme-light #contact-form textarea:focus,
body.theme-light #contact-form input[type="text"]:hover,
body.theme-light #contact-form input[type="email"]:hover,
body.theme-light #contact-form input[type="tel"]:hover,
body.theme-light #contact-form textarea:hover,
body.theme-light #contact-form input[type="text"]:active,
body.theme-light #contact-form input[type="email"]:active,
body.theme-light #contact-form input[type="tel"]:active,
body.theme-light #contact-form textarea:active,
body.theme-light #contact-form input[type="text"][value],
body.theme-light #contact-form input[type="email"][value],
body.theme-light #contact-form input[type="tel"][value] {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Fix selection background when pasting */
body.theme-dark #contact-form input[type="text"]::selection,
body.theme-dark #contact-form input[type="email"]::selection,
body.theme-dark #contact-form input[type="tel"]::selection,
body.theme-dark #contact-form textarea::selection {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body.theme-light #contact-form input[type="text"]::selection,
body.theme-light #contact-form input[type="email"]::selection,
body.theme-light #contact-form input[type="tel"]::selection,
body.theme-light #contact-form textarea::selection {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #111827 !important;
}

/* Additional fix for autofill in contact form - solid colors (transparent doesn't override Chrome's autofill bg) */
body.theme-dark #contact-form input[type="text"]:-webkit-autofill,
body.theme-dark #contact-form input[type="email"]:-webkit-autofill,
body.theme-dark #contact-form input[type="tel"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--marque-black, #050505) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: transparent !important;
    background: transparent !important;
}

body.theme-light #contact-form input[type="text"]:-webkit-autofill,
body.theme-light #contact-form input[type="email"]:-webkit-autofill,
body.theme-light #contact-form input[type="tel"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f9fafb inset !important;
    -webkit-text-fill-color: #111827 !important;
    background-color: transparent !important;
    background: transparent !important;
}

/* Fix autocomplete dropdown selection background (all states) */
body.theme-dark #contact-form input[type="text"]:autofill,
body.theme-dark #contact-form input[type="email"]:autofill,
body.theme-dark #contact-form input[type="tel"]:autofill,
body.theme-dark #contact-form input[type="text"]:-webkit-autofill,
body.theme-dark #contact-form input[type="email"]:-webkit-autofill,
body.theme-dark #contact-form input[type="tel"]:-webkit-autofill,
body.theme-dark #contact-form input[type="text"]:-webkit-autofill:hover,
body.theme-dark #contact-form input[type="email"]:-webkit-autofill:hover,
body.theme-dark #contact-form input[type="tel"]:-webkit-autofill:hover,
body.theme-dark #contact-form input[type="text"]:-webkit-autofill:focus,
body.theme-dark #contact-form input[type="email"]:-webkit-autofill:focus,
body.theme-dark #contact-form input[type="tel"]:-webkit-autofill:focus,
body.theme-dark #contact-form input[type="text"]:-webkit-autofill:active,
body.theme-dark #contact-form input[type="email"]:-webkit-autofill:active,
body.theme-dark #contact-form input[type="tel"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--marque-black, #050505) inset !important;
    box-shadow: 0 0 0 1000px var(--marque-black, #050505) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
}

body.theme-light #contact-form input[type="text"]:autofill,
body.theme-light #contact-form input[type="email"]:autofill,
body.theme-light #contact-form input[type="tel"]:autofill,
body.theme-light #contact-form input[type="text"]:-webkit-autofill,
body.theme-light #contact-form input[type="email"]:-webkit-autofill,
body.theme-light #contact-form input[type="tel"]:-webkit-autofill,
body.theme-light #contact-form input[type="text"]:-webkit-autofill:hover,
body.theme-light #contact-form input[type="email"]:-webkit-autofill:hover,
body.theme-light #contact-form input[type="tel"]:-webkit-autofill:hover,
body.theme-light #contact-form input[type="text"]:-webkit-autofill:focus,
body.theme-light #contact-form input[type="email"]:-webkit-autofill:focus,
body.theme-light #contact-form input[type="tel"]:-webkit-autofill:focus,
body.theme-light #contact-form input[type="text"]:-webkit-autofill:active,
body.theme-light #contact-form input[type="email"]:-webkit-autofill:active,
body.theme-light #contact-form input[type="tel"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f9fafb inset !important;
    box-shadow: 0 0 0 1000px #f9fafb inset !important;
    -webkit-text-fill-color: #111827 !important;
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
}

/* Fix for all input states when autocomplete is used */
body.theme-dark #contact-form input[type="text"]:hover,
body.theme-dark #contact-form input[type="email"]:hover,
body.theme-dark #contact-form input[type="tel"]:hover,
body.theme-dark #contact-form textarea:hover,
body.theme-dark #contact-form input[type="text"]:active,
body.theme-dark #contact-form input[type="email"]:active,
body.theme-dark #contact-form input[type="tel"]:active,
body.theme-dark #contact-form textarea:active {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: none !important;
}

body.theme-light #contact-form input[type="text"]:hover,
body.theme-light #contact-form input[type="email"]:hover,
body.theme-light #contact-form input[type="tel"]:hover,
body.theme-light #contact-form textarea:hover,
body.theme-light #contact-form input[type="text"]:active,
body.theme-light #contact-form input[type="email"]:active,
body.theme-light #contact-form input[type="tel"]:active,
body.theme-light #contact-form textarea:active {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: none !important;
}

/* Hero Slider - Prevent flash of inactive slides */
.hero-slide {
    will-change: opacity;
}

/* Ensure inactive slides are completely hidden until JavaScript loads */
.hero-slide:not(:first-child) {
    display: none !important;
}

/* After JavaScript loads, this class will override the above */
.hero-slider-ready .hero-slide {
    display: block !important;
}

/* Slaytlar arası yumuşak geçiş – Poster Arkasında Hazırlık stratejisi */
.hero-slider-ready .hero-slide {
    transition: opacity 0.8s ease-in-out !important;
    will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider-ready .hero-slide {
        transition: none !important;
    }
}

/* Philosophy Section - Window Frame Effect (Clean & Realistic) */
.philosophy-window-frame {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 8px solid #1a1a1a;
    border-radius: 6px;
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(168, 159, 145, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Dış çerçeve detayı - iç kenar */
.philosophy-window-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border: 3px solid rgba(40, 40, 40, 0.8);
    border-radius: 3px;
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Dış çerçeve - dış kenar highlight */
.philosophy-window-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(60, 60, 60, 0.4);
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.3);
}

.philosophy-window-pane {
    position: relative;
    pointer-events: none;
}

/* Kalın pencere çıtası - dikey bölücü */
.philosophy-window-pane.border-r {
    border-right: 8px solid #1a1a1a !important;
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.4),
        2px 0 4px rgba(0, 0, 0, 0.3);
}

/* Kalın pencere çıtası - yatay bölücü */
.philosophy-window-pane.border-b {
    border-bottom: 8px solid #1a1a1a !important;
    box-shadow: 
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hem dikey hem yatay çerçeve kesişimi */
.philosophy-window-pane.border-r.border-b {
    border-right: 8px solid #1a1a1a !important;
    border-bottom: 8px solid #1a1a1a !important;
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        2px 0 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Görsel - hafif cam efekti */
.philosophy-window-frame .philosophy-image {
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    width: calc(100% - 36px) !important;
    height: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    max-height: calc(100% - 36px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block !important;
}

/* Çok hafif cam yansıması */
.philosophy-window-frame .philosophy-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.03) 0%,
            transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* THE SOUL OF STONE - Grid Window Mullions Theme Colors */
.philosophy-window-grid,
.philosophy-window-grid .philosophy-window-grid-pane {
    border-color: #000000 !important; /* Dark theme: black mullions */
}

body.theme-light .philosophy-window-grid,
body.theme-light .philosophy-window-grid .philosophy-window-grid-pane {
    border-color: #ffffff !important; /* Light theme: white mullions */
}

/* Grid border colors for THE SOUL OF STONE section - Using semantic classes */
/* Default (dark theme): black mullions */
.philosophy-grid,
.philosophy-grid-cell {
    border-color: #000000 !important; /* Dark theme: black mullions */
}

/* Dark theme explicit override */
body.theme-dark .philosophy-grid,
body.theme-dark .philosophy-grid-cell {
    border-color: #000000 !important; /* Dark theme: black mullions */
}

/* Light theme: white mullions */
body.theme-light .philosophy-grid,
body.theme-light .philosophy-grid-cell {
    border-color: #ffffff !important; /* Light theme: white mullions */
}

/* THE SOUL OF STONE Section Background - Light Theme */
body.theme-light .philosophy-section {
    background-color: #ffffff !important;
}

/* Philosophy Section - Premium Gold Colors */
/* Dark theme */
.philosophy-title {
    color: #D3C6AE !important; /* Warm pale gold (dark theme) */
}

.philosophy-subtitle {
    color: #C0AE8C !important; /* Slightly deeper gold (dark theme) */
}

/* Light theme */
body.theme-light .philosophy-title {
    color: #6B5F4C !important; /* Deep gold-brown (light theme) */
}

body.theme-light .philosophy-subtitle {
    color: #8F846F !important; /* Champagne gold (light theme) */
}

body.theme-light .philosophy-text {
    color: #333333 !important;
}

/* Philosophy Section - Production-safe font sizes */
.philosophy-title {
    font-size: 1.1875rem !important; /* 19px — yalnızca <768 (768+ aşağıdaki media ile ezilir) */
    line-height: 1.4 !important;
    padding-top: 0.5rem !important;
    overflow: visible !important;
}

/* Büyütme yalnızca lg altı (mobil + tablet); masaüstü önceki değerler */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .philosophy-title {
        font-size: 1.4375rem !important; /* 23px (önceden 768+ için 22px’ti) */
    }
}

@media (min-width: 1024px) {
    .philosophy-title {
        font-size: 1rem !important; /* 16px (laptop) — orijinal */
    }
}

@media (min-width: 1280px) {
    .philosophy-title {
        font-size: 1.75rem !important; /* 28px — orijinal */
    }
}

@media (min-width: 1536px) {
    .philosophy-title {
        font-size: 2rem !important; /* 32px — orijinal */
    }
}

/* Subtitle - ELEGANCE FORGED BY THE EARTH - Production-safe */
.philosophy-section p.font-manrope.text-base {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
}

/* Alt başlık: büyütme yalnızca lg altı; lg+ tekrar index’teki Tailwind (masaüstü eskisi gibi) */
@media (max-width: 1023.98px) {
    .philosophy-subtitle {
        font-size: 0.9375rem !important; /* 15px — dar ekran / yatay telefon / tablet */
    }
}

@media (min-width: 768px) {
    .philosophy-section p.font-manrope {
        font-size: 1rem !important; /* 16px - text-base */
    }
}

@media (min-width: 1024px) {
    .philosophy-section p.font-manrope {
        font-size: 0.75rem !important; /* 12px - text-xs (laptop için daha da küçültüldü) */
    }
}

@media (min-width: 1280px) {
    .philosophy-section p.font-manrope {
        font-size: 1.125rem !important; /* 18px - text-lg (büyük laptop) */
    }
}

@media (min-width: 1536px) {
    .philosophy-section p.font-manrope {
        font-size: 1.25rem !important; /* 20px - text-xl (1920px için) */
    }
}

/* Body text - Production-safe */
.philosophy-text {
    font-size: 0.75rem !important; /* 12px - text-xs */
    line-height: 1.65 !important;
}

@media (min-width: 768px) {
    .philosophy-text {
        font-size: 0.875rem !important; /* 14px - text-sm */
    }
}

@media (min-width: 1024px) {
    .philosophy-text {
        font-size: 0.625rem !important; /* 10px (laptop için daha da küçültüldü) */
        line-height: 1.65 !important;
    }
}

@media (min-width: 1280px) {
    .philosophy-text {
        font-size: 1rem !important; /* 16px - text-base (büyük laptop) */
    }
}

@media (min-width: 1536px) {
    .philosophy-text {
        font-size: 1.125rem !important; /* 18px - text-lg (1920px için) */
    }
}

/* Philosophy Image - 16:9 Aspect Ratio - Desktop & Mobile */
/* Production-safe: Uses semantic classes, no inline style dependencies */
.philosophy-grid {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 360px !important;
    height: auto !important;
    max-height: 80vh !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .philosophy-grid {
        height: 360px !important;
    }
}

.philosophy-grid img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    min-height: 400px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    box-sizing: border-box !important;
    transition: transform 0.7s ease !important;
}

/* Philosophy Image Hover Effect */
.philosophy-grid:hover img {
    transform: scale(1.1) !important;
}

/* Mobile: Ensure image maintains aspect ratio and visibility */
@media (max-width: 1023px) {
    .philosophy-grid {
        aspect-ratio: 16 / 9 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 270px !important;
        height: auto !important;
        max-height: 70vh !important;
        box-sizing: border-box !important;
    }
    
    /* Fallback for browsers that don't support aspect-ratio */
    @supports not (aspect-ratio: 16 / 9) {
        .philosophy-grid {
            height: 270px !important;
        }
    }
    
    .philosophy-grid img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 70vh !important;
        min-height: 300px !important;
        object-fit: contain !important;
        object-position: center !important;
        box-sizing: border-box !important;
    }
}

/* Mobile Landscape: Philosophy Image - Larger and better fit - MUST BE AFTER portrait query */
@media (max-width: 1023px) and (orientation: landscape) {
    .philosophy-grid {
        aspect-ratio: unset !important; /* Remove aspect ratio constraint for landscape */
        width: 100% !important;
        max-width: 100% !important;
        min-height: 80vh !important; /* Increased from 70vh */
        min-height: 500px !important; /* Increased from 400px - Fallback fixed height for mobile */
        height: 80vh !important; /* Increased from 70vh */
        height: 500px !important; /* Increased from 400px - Fallback fixed height for mobile */
        max-height: 90vh !important; /* Increased from 85vh */
        box-sizing: border-box !important;
    }
    
    .philosophy-grid img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 80vh !important; /* Increased from 70vh */
        min-height: 500px !important; /* Increased from 400px - Fallback fixed height */
        max-height: 90vh !important; /* Increased from 85vh */
        object-fit: cover !important; /* Fill the container better */
        object-position: center !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

/* Extra small mobile landscape - More specific targeting for real mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
    .philosophy-grid {
        min-height: 450px !important; /* Increased from 350px */
        height: 450px !important;
        max-height: 95vh !important; /* Increased from 90vh */
    }
    
    .philosophy-grid img {
        min-height: 450px !important; /* Increased from 350px */
        max-height: 95vh !important; /* Increased from 90vh */
    }
}

/* Very small mobile landscape - iPhone SE, small Android phones */
@media (max-width: 480px) and (orientation: landscape) {
    .philosophy-grid {
        min-height: 400px !important; /* Increased from 300px */
        height: 400px !important;
        max-height: 98vh !important; /* Increased from 95vh */
    }
    
    .philosophy-grid img {
        min-height: 400px !important; /* Increased from 300px */
        max-height: 98vh !important; /* Increased from 95vh */
    }
}

/* ================================================
   NEWS/BLOG SECTION - Theme Support
   ================================================ */

/* News/Blog Section Background - Light Theme */
body.theme-light section[style*="background-color: #0f172a"],
body.theme-light section[style*="background-color:#0f172a"] {
    background-color: #f8fafc !important;
}

/* News/Blog Section Text Colors - Light Theme */
body.theme-light section[style*="background-color: #0f172a"] .text-white,
body.theme-light section[style*="background-color:#0f172a"] .text-white {
    color: #1e293b !important;
}

body.theme-light section[style*="background-color: #0f172a"] .text-white\/70,
body.theme-light section[style*="background-color:#0f172a"] .text-white\/70 {
    color: #475569 !important;
}

body.theme-light section[style*="background-color: #0f172a"] .text-white\/80,
body.theme-light section[style*="background-color:#0f172a"] .text-white\/80 {
    color: #334155 !important;
}

body.theme-light section[style*="background-color: #0f172a"] .text-white\/90,
body.theme-light section[style*="background-color:#0f172a"] .text-white\/90 {
    color: #1e293b !important;
}

/* News/Blog Section Borders - Light Theme */
body.theme-light section[style*="background-color: #0f172a"] .border-slate-800,
body.theme-light section[style*="background-color:#0f172a"] .border-slate-800 {
    border-color: #e2e8f0 !important;
}

body.theme-light section[style*="background-color: #0f172a"] .border-white\/10,
body.theme-light section[style*="background-color:#0f172a"] .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* News/Blog Section Card Background - Light Theme */
body.theme-light section[style*="background-color: #0f172a"] .bg-white\/5,
body.theme-light section[style*="background-color:#0f172a"] .bg-white\/5 {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* News/Blog Section Hover States - Light Theme */
body.theme-light section[style*="background-color: #0f172a"] .hover\:text-white:hover,
body.theme-light section[style*="background-color:#0f172a"] .hover\:text-white:hover {
    color: #0f172a !important;
}

body.theme-light section[style*="background-color: #0f172a"] .hover\:text-white\/70:hover,
body.theme-light section[style*="background-color:#0f172a"] .hover\:text-white\/70:hover {
    color: #64748b !important;
}

body.theme-light section[style*="background-color: #0f172a"] .hover\:border-white\/30:hover,
body.theme-light section[style*="background-color:#0f172a"] .hover\:border-white\/30:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Desktop Menu Slide Down Animation */
.desktop-menu-container:not(.always-visible):not(.open) {
    max-height: 0 !important;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important; /* Override Tailwind md:block */
}

/* Desktop Menu Container - Soldan taşmayı önle */
.desktop-menu-container {
    max-width: none;
}

/* Ayar pasif olduğunda (always-visible class'ı varsa) menü her zaman görünür */
.desktop-menu-container.always-visible {
    display: flex !important;
    align-items: center !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* Always-visible durumunda menü içeriğini inline yap */
.desktop-menu-container.always-visible .desktop-menu-content {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.desktop-menu-container.always-visible .nav-desktop {
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Daha spesifik selector - hidden class'ını override et */
.desktop-menu-container.open.hidden,
.desktop-menu-container.open {
    max-height: 300px !important; /* Menü içeriğine göre ayarlayın */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important; /* Tailwind hidden class override - önemli! */
}

/* Desktop'ta özellikle override et */
@media (min-width: 1024px) {
    .desktop-menu-container.open.hidden {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .desktop-menu-container.open {
        display: block !important;
    }
}

.desktop-menu-content {
    transform: translateY(-10px);
    transition: transform 0.4s ease-out;
}

.desktop-menu-container.open .desktop-menu-content {
    transform: translateY(0);
}

/* Desktop Menu Toggle Button Icon Animation - Removed (no icon change) */
.desktop-menu-toggle-icon {
    transition: transform 0.3s ease;
}

/* Dark Mode Desktop Menu - Header ile aynı şeffaflık */
body.theme-dark .desktop-menu-container {
    background-color: transparent;
    border-bottom: none;
}

body.theme-dark .desktop-menu-content {
    background-color: transparent;
}

body.theme-dark .desktop-menu-content .nav-desktop {
    background-color: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    border-radius: 0;
    width: auto;
    margin-left: 0;
    min-width: auto;
}

/* Light Mode Desktop Menu - Header ile aynı şeffaflık */
body.theme-light .desktop-menu-container {
    background-color: transparent;
    border-bottom: none;
}

body.theme-light .desktop-menu-content {
    background-color: transparent;
}

body.theme-light .desktop-menu-content .nav-desktop {
    background-color: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    border-radius: 0;
    width: auto;
    margin-left: 0;
    min-width: auto;
}

/* Küçük ekranlarda menü içeriğini kaydırılabilir yap */
@media (max-width: 1200px) {
    .desktop-menu-container {
        max-width: calc(100vw - 1rem) !important;
    }
    
    .desktop-menu-content .nav-desktop {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .desktop-menu-content .nav-desktop::-webkit-scrollbar {
        height: 4px;
    }
    
    .desktop-menu-content .nav-desktop::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .desktop-menu-content .nav-desktop::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    body.theme-light .desktop-menu-content .nav-desktop::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Light Mode Navigation Links */
body.theme-light .desktop-menu-container .nav-link {
    color: rgba(17, 24, 39, 0.9);
}

body.theme-light .desktop-menu-container .nav-link:hover {
    color: #A89F91;
}

body.theme-light .desktop-menu-container .w-px {
    background-color: rgba(0, 0, 0, 0.2);
}

body.theme-light .desktop-menu-container #theme-toggle-btn {
    color: rgba(17, 24, 39, 0.6);
}

body.theme-light .desktop-menu-container #theme-toggle-btn:hover {
    color: #A89F91;
}

body.theme-light .desktop-menu-container a[aria-label*="Instagram"],
body.theme-light .desktop-menu-container a[aria-label*="Facebook"],
body.theme-light .desktop-menu-container a[aria-label*="Twitter"],
body.theme-light .desktop-menu-container a[aria-label*="LinkedIn"],
body.theme-light .desktop-menu-container a[aria-label*="YouTube"],
body.theme-light .desktop-menu-container a[aria-label*="Pinterest"],
body.theme-light .desktop-menu-container a[aria-label*="TikTok"],
body.theme-light .desktop-menu-container a[aria-label*="WhatsApp"] {
    color: rgba(17, 24, 39, 0.6);
}

body.theme-light .desktop-menu-container a[aria-label*="Instagram"]:hover,
body.theme-light .desktop-menu-container a[aria-label*="Facebook"]:hover,
body.theme-light .desktop-menu-container a[aria-label*="Twitter"]:hover,
body.theme-light .desktop-menu-container a[aria-label*="LinkedIn"]:hover,
body.theme-light .desktop-menu-container a[aria-label*="YouTube"]:hover,
body.theme-light .desktop-menu-container a[aria-label*="Pinterest"]:hover,
body.theme-light .desktop-menu-container a[aria-label*="TikTok"]:hover,
body.theme-light .desktop-menu-container a[aria-label*="WhatsApp"]:hover {
    color: #A89F91;
}

/* Light tema menü toggle renkleri aşağıda tanımlı */

/* Mega Menu Panel Visibility Fix */
#mega-menu-panel:not(.hidden):not(.mega-menu-hidden) {
    z-index: 9999 !important; /* Çok yüksek z-index - sadece açıkken */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#mega-menu-panel.hidden,
#mega-menu-panel.mega-menu-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important; /* Kapanırken z-index'i düşür ki altındaki öğelere tıklanabilsin */
}

#mega-menu-panel.block {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Mega menu panel içeriği görünürlük */
#mega-menu-panel > div {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mega menu panel her zaman en üstte ve fixed - sadece açıkken */
#mega-menu-panel:not(.hidden):not(.mega-menu-hidden) {
    position: fixed !important;
    z-index: 9999 !important;
}

/* Contact Page - Hero Header z-index fix - Navbar'ın altında kalmalı */
/* Contact sayfasındaki hero header ve tüm child elementler navbar'ın (z-50) altında olmalı */
.contact-page .contact-hero-header {
    position: relative !important;
    z-index: 0 !important;
    isolation: isolate; /* Yeni stacking context oluştur */
}

/* Background image div - navbar'ın altında kalmalı ama navbar'ın altına uzatılmalı */
.contact-page .contact-hero-header > div.absolute[style*="background-image"] {
    z-index: 0 !important;
    position: absolute !important;
}

/* Overlay div - navbar'ın altına uzatılmalı */
.contact-page .contact-hero-header > div.absolute.bg-black\/60 {
    z-index: 1 !important;
    position: absolute !important;
}

/* Content div */
.contact-page .contact-hero-header > div.relative {
    z-index: 2 !important;
    position: relative !important;
}

/* Light Theme - Contact Hero açıklama metni beyaz gölgeli */
body.theme-light .contact-page .contact-hero-header p.text-white\/60 {
    color: #000000 !important; /* Tam siyah */
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.9),
        0 0 35px rgba(255, 255, 255, 0.8),
        0 0 45px rgba(255, 255, 255, 0.7),
        0 0 55px rgba(255, 255, 255, 0.6),
        0 2px 6px rgba(255, 255, 255, 0.8) !important; /* Çok daha güçlü beyaz glow efekti */
}

/* Light Theme - Contact Hero başlık (h1) beyaz gölgeli */
body.theme-light .contact-page .contact-hero-header h1.text-white {
    color: #000000 !important; /* Tam siyah */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(255, 255, 255, 0.5) !important; /* Beyaz glow efekti */
}

/* Light Theme - Contact Hero görsel üzerindeki overlay filtreyi kaldır */
body.theme-light .contact-page .contact-hero-header > div.absolute.bg-black\/60 {
    display: none !important;
}

/* Navbar her zaman en üstte olmalı - Contact sayfasında da */
nav.fixed {
    z-index: 50 !important;
    position: fixed !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* Navbar container ve iç div'ler - Contact sayfasında şeffaf olmalı */
.contact-page nav.fixed > div,
.contact-page nav.fixed > div > div {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* Dark tema için de navbar şeffaf - tüm sayfalarda */
body.theme-dark nav.fixed {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

body.theme-dark nav.fixed > div,
body.theme-dark nav.fixed > div > div {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* ================================================
   ABOUT PAGE - Dark Theme Background Images
   ================================================ */

/* Dark Theme - About hero section background image/video (opacity-20) */
body.theme-dark section.relative[class*="min-h"].bg-marque-black .absolute[style*="background-image"][class*="opacity-20"],
body.theme-dark section.relative[class*="min-h"].bg-marque-black video[class*="opacity-20"] {
    opacity: 0.5 !important; /* Increased from 0.20 to 0.50 for better visibility */
}

/* Dark Theme - About section 1 background image (about-section-1-bg with opacity-10) */
body.theme-dark .about-section-1-bg,
body.theme-dark section.bg-marque-black .absolute.about-section-1-bg[class*="opacity-10"] {
    opacity: 0.45 !important; /* Increased from 0.10 to 0.45 for better visibility */
}

/* Dark Theme - About section 2 background image - apply same opacity as section 1 */
body.theme-dark section.relative.bg-black:not(.bg-gray-50) [data-bg-about-section2],
body.theme-dark section.relative.bg-black:not(.bg-gray-50) .absolute[data-bg-about-section2],
body.theme-dark section.relative.bg-black:not(.bg-gray-50) .absolute[style*="background-image"][class*="opacity-10"] {
    opacity: 0.45 !important; /* Same as section 1 for consistency */
}

/* Dark Theme - About section 3 background image - REMOVED: handled in about.css */

/* ================================================
   VIDEO CONTROLS HIDING - Overlay Method
   ================================================ */

/* Video container - Overlay ile kontrolleri gizle */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Hero slide içindeki video container */
.hero-slide .hero-video-container {
    position: absolute;
    inset: 0;
}

/* Hero Video Container - iOS Safari Poster Fix */
#homepage-hero-section .hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* Video katmanı: poster'ın altında (z-index: 1), poster ile aynı alanı kaplar */
#homepage-hero-section .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    /* iOS Safari play button'u tamamen gizle */
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* iOS repaint/kompozit katman stabilitesi için */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* iOS Safari play button'u tamamen gizlemek için ek özellikler */
    -webkit-playsinline: true;
    playsinline: true;
    controls: false;
    /* Poster attribute'unu CSS ile override et */
    background: transparent;
    /* iOS Safari native play button'unu gizlemek için */
    -webkit-appearance: none;
    appearance: none;
}

#homepage-hero-section .hero-video.is-playing,
#homepage-hero-section .hero-video-container.is-playing .hero-video {
    opacity: 1 !important; /* Oynarken görünür */
}

/* iOS Safari'de video autoplay sorununu çözmek için akıllı yaklaşım */
/* Video oynatılabilirse göster, oynatılamazsa poster göster */

/* Poster: videonun üstünde, video gerçekten akmaya başlayınca yumuşakça kaybolur */
#homepage-hero-section .hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: transparent;
    display: none;
    visibility: hidden;
}

#homepage-hero-section .hero-video-container.has-poster:not(.is-playing) .hero-poster {
    display: none;
    opacity: 0;
    visibility: hidden;
}

#homepage-hero-section .hero-video-container.has-poster:not(.is-playing) .hero-poster.poster-visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* JS ile eklenir: video gerçekten akmaya başlayınca poster yumuşakça kaybolur */
#homepage-hero-section .hero-poster.poster-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

#homepage-hero-section .hero-video-container.is-playing .hero-poster {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Light Theme - Poster'ı is-playing olduğunda gizle (important ile) */
body.theme-light #homepage-hero-section .hero-video-container.is-playing .hero-poster {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

#homepage-hero-section .hero-video-container .video-overlay {
    position: absolute;
    inset: 0;
    z-index: 100; /* Video ve poster'dan üstte, iOS play button'unu kapatmak için yüksek z-index */
    /* iOS Safari: Tap videoya gitmesin (native overlay/controls tetiklenip siyah flash yapabiliyor) */
    pointer-events: auto;
    background: transparent;
    /* iOS Safari play button'unu tamamen kapatmak için */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Video overlay - Kontrollerin üzerini kapatır */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

/* Video elementleri */
video.hero-media,
video.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* iOS Safari Webkit Media Controls Gizleme */
video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* iOS Safari için hero video'ya özel daha agresif gizleme - TAMAMEN GİZLİ */
#homepage-hero-section .hero-video::-webkit-media-controls,
#homepage-hero-section .hero-video::-webkit-media-controls-panel,
#homepage-hero-section .hero-video::-webkit-media-controls-start-playback-button,
#homepage-hero-section .hero-video::-webkit-media-controls-overlay-play-button,
#homepage-hero-section .hero-video::-webkit-media-controls-current-time-display,
#homepage-hero-section .hero-video::-webkit-media-controls-time-remaining-display,
#homepage-hero-section .hero-video::-webkit-media-controls-timeline,
#homepage-hero-section .hero-video::-webkit-media-controls-volume-slider,
#homepage-hero-section .hero-video::-webkit-media-controls-mute-button,
#homepage-hero-section .hero-video::-webkit-media-controls-fullscreen-button,
#homepage-hero-section .hero-video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -1 !important;
}

/* iOS Safari için ek play button gizleme kuralları */
#homepage-hero-section video.hero-video::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

#homepage-hero-section video.hero-video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

#homepage-hero-section video.hero-video::-webkit-media-controls-current-time-display,
#homepage-hero-section video.hero-video::-webkit-media-controls-time-remaining-display,
#homepage-hero-section video.hero-video::-webkit-media-controls-timeline,
#homepage-hero-section video.hero-video::-webkit-media-controls-volume-slider,
#homepage-hero-section video.hero-video::-webkit-media-controls-mute-button,
#homepage-hero-section video.hero-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Philosophy ve Banner video containerları */
.philosophy-video-container,
.banner-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==============================================
   LIGHT THEME - HERO VIDEO FIX (dist/output.css override)
   Bu kurallar dist/output.css'ten sonra yüklendiği için 
   en sona eklenmeli
   ============================================== */

/* Light Theme - Video container background'unu koru */
body.theme-light #homepage-hero-section .hero-video-container {
    background: #000 !important;
}

/* Light Theme - Video visible only when playing */
/* Dark temadaki kuralı (satır 1064) override et - daha spesifik selector ile */
body.theme-light #homepage-hero-section .hero-video-container.is-playing video.hero-video,
body.theme-light #homepage-hero-section .hero-video-container.is-playing .hero-video.hero-media {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Light Theme - Poster visible when not playing */
body.theme-light #homepage-hero-section .hero-video-container:not(.is-playing) .hero-poster {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* ================================================
   HEADER MENU BACKGROUND - Yarı Saydam Tabaka
   ================================================ */

/* Dark Theme - Header menü ve ikonlar */
body.theme-dark .desktop-menu-toggle,
body.theme-dark .mobile-menu-toggle {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important; /* Beyazımsı */
    transition: color 0.3s ease !important;
}

body.theme-dark .desktop-menu-toggle svg,
body.theme-dark .mobile-menu-toggle svg {
    stroke: rgba(255, 255, 255, 0.9) !important;
    transition: stroke 0.3s ease !important;
}

body.theme-dark .desktop-menu-toggle span {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease !important;
}

/* Dark Theme - Hover: altın rengi */
body.theme-dark .desktop-menu-toggle:hover,
body.theme-dark .mobile-menu-toggle:hover {
    color: #D4AF37 !important;
}

body.theme-dark .desktop-menu-toggle:hover svg,
body.theme-dark .mobile-menu-toggle:hover svg {
    stroke: #D4AF37 !important;
}

body.theme-dark .desktop-menu-toggle:hover span {
    color: #D4AF37 !important;
    text-shadow: none !important;
}

/* Dark Theme - Desktop navigation menu için arka plan */
body.theme-dark .desktop-menu-container .desktop-menu-content {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
}

/* Dark Theme - Nav desktop için arka plan (desktop-menu-content içinde) */
body.theme-dark .desktop-menu-container .desktop-menu-content .nav-desktop {
    background-color: transparent !important;
    padding: 0 !important;
}

/* Light Theme - Header menü ikonları premium bronz-altın (arka plan efekti yok) */
body.theme-light .desktop-menu-toggle,
body.theme-light .mobile-menu-toggle {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #A68A5B !important; /* Premium bronz-altın */
}

body.theme-light .desktop-menu-toggle svg,
body.theme-light .mobile-menu-toggle svg {
    stroke: #A68A5B !important;
}

body.theme-light .desktop-menu-toggle span {
    color: #A68A5B !important;
}

/* Light Theme - Hover: koyu bronz */
body.theme-light .desktop-menu-toggle:hover,
body.theme-light .mobile-menu-toggle:hover {
    color: #8B7355 !important;
}

body.theme-light .desktop-menu-toggle:hover svg,
body.theme-light .mobile-menu-toggle:hover svg {
    stroke: #8B7355 !important;
}

body.theme-light .desktop-menu-toggle:hover span {
    color: #8B7355 !important;
    text-shadow: none !important;
}

/* Light Theme - Desktop navigation menu için arka plan */
body.theme-light .desktop-menu-container .desktop-menu-content {
    background-color: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
}

/* Light Theme - Nav desktop için arka plan (desktop-menu-content içinde) */
body.theme-light .desktop-menu-container .desktop-menu-content .nav-desktop {
    background-color: transparent !important;
    padding: 0 !important;
}

/*
 * Mobil / dar yatay: .nav-desktop gizliyken .desktop-menu-content sadece padding + cam efektiyle
 * boş “şeffaf kutu” gibi görünüyor (always-visible menü modu). Efekti bu görünümlerde kapat.
 */
@media (max-width: 799px) {
    body.theme-dark .desktop-menu-container .desktop-menu-content,
    body.theme-light .desktop-menu-container .desktop-menu-content {
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
}

@media (orientation: landscape) and (min-width: 800px) and (max-height: 450px) {
    body.theme-dark .desktop-menu-container .desktop-menu-content,
    body.theme-light .desktop-menu-container .desktop-menu-content {
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
}

/* ================================================
   Products Carousel Styles
   ================================================ */
   
/* Carousel Wrapper */
.products-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Carousel Track */
.products-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    --carousel-offset: 0;
    transform: translateX(calc(var(--carousel-offset) * -1px));
}

/* Carousel Item */
.products-carousel-item {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 280px;
    max-width: 100%;
}

/* Responsive: Tablet - 2 cards */
@media (max-width: 1024px) {
    .products-carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

/* Responsive: Mobile - 1 card */
@media (max-width: 640px) {
    .products-carousel-item {
        flex: 0 0 100%;
        min-width: unset;
    }
}

/* Navigation Button Base Styles */
.products-carousel-nav-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(168, 159, 145, 0.5);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A89F91;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-carousel-nav-btn:hover {
    background-color: rgba(168, 159, 145, 0.2);
    border-color: #A89F91;
}

.products-carousel-nav-btn:active {
    transform: scale(0.95);
}

/* Disabled state */
.products-carousel-nav-btn.carousel-btn-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Counter text */
.products-carousel-counter {
    min-width: 80px;
    text-align: center;
}

/* Light theme adjustments */
.popular-products-section-light .products-carousel-nav-btn {
    border-color: rgba(107, 114, 128, 0.5);
    color: #374151;
}

.popular-products-section-light .products-carousel-nav-btn:hover {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: #374151;
}

.popular-products-section-light .products-carousel-counter {
    color: rgba(55, 65, 81, 0.6);
}

/* ================================================
   Products Carousel - Drag & Touch Support
   ================================================ */

/* Grab cursor for desktop dragging */
.products-carousel {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Dragging state */
.products-carousel.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

/* Prevent child elements from interfering during drag */
.products-carousel.is-dragging * {
    pointer-events: none;
}

/* Touch action for carousel - allow horizontal swipe */
.products-carousel-wrapper {
    touch-action: pan-y pinch-zoom;
}

.products-carousel {
    touch-action: pan-x pan-y;
}

/* Force 16:9 aspect ratio for all product carousel cards */
.products-carousel-item .aspect-video,
.products-carousel-item [class*="aspect-"] {
    aspect-ratio: 16 / 9 !important;
}

.products-carousel-item .aspect-video img,
.products-carousel-item [class*="aspect-"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ================================================
   Related Products Carousel Styles
   ================================================ */

/* Related Products Carousel Wrapper */
.related-products-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Reduce space above carousel only when there are 4+ products */
.related-products-carousel-wrapper.-mt-4 {
    margin-top: -1rem;
}

/* Related Products Carousel - uses same styles as products-carousel */
#related-products-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    --carousel-offset: 0;
    transform: translateX(calc(var(--carousel-offset) * -1px));
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Dragging state for related products */
#related-products-carousel.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

#related-products-carousel.is-dragging * {
    pointer-events: none;
}

/* Force 16:9 aspect ratio for related products carousel cards */
#related-products-carousel .products-carousel-item .aspect-video,
#related-products-carousel .products-carousel-item [class*="aspect-"] {
    aspect-ratio: 16 / 9 !important;
}

#related-products-carousel .products-carousel-item .aspect-video img,
#related-products-carousel .products-carousel-item [class*="aspect-"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
