body {
    font-family: 'Exo 2', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #f8f9fa; /* Temel açık renk */
    position: relative;
    overflow-x: hidden;
}
.dark body {
    background-color: #0f172a; /* Temel koyu renk */
}

/* Endüstriyel Dişli Motifli Arka Plan Stilleri */
.industrial-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* En arkada */
    pointer-events: none;
    overflow: hidden;
}
 /* reklem deneme */
/* Reklam Arka Plan Karartma */
#ad-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Arka planı hafifçe bulanıklaştırır */
}

/* Ana Kutu (Genişletilmiş Dikey Tasarım) */
.ad-content {
    background: white;
    width: 550px; /* Genişliği artırdık */
    max-width: 95%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* Üst Fotoğraf Alanı */
.ad-top {
    width: 100%;
    height: 100%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ÖNEMLİ */
}

/* Alt Metin Alanı */
.ad-bottom {
    padding: 40px; /* İç boşluğu artırdık */
    background: #fff;
    text-align: center;
}

/* Küçük Rozet (Badge) */
.ad-badge {
    display: inline-block;
    background: #F35C24;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.ad-bottom h2 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 28px; 
    font-weight: 800;
}

.ad-bottom p {
    color: #666;
    line-height: 1.7;
    margin: 0 0 30px 0;
    font-size: 16px;
}

/* Kapatma Butonu (Sağ Üstte Modern Tasarım) */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.267);
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.2s ease;
    line-height: 1; 
}

.close-btn:hover {
    background: #ff4757;
    transform: scale(1.08); /* Döndürme yok */
}

/* Sayaç Alanı */
.timer-wrapper {
    width: 100%;
}

.timer-info {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.timer-bar-bg {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

#timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #F35C24, #ff6b81); /* Gradyan renk */
    width: 100%;
    transition: width 30s linear;
}

/* PRELOAD DENEME EKRANI */
#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Preload bitişi */
.gear {
    position: absolute;
    fill: rgba(203, 213, 225, 0.1); /* Yarı saydam gri dolgu */
    stroke: rgba(203, 213, 225, 0.2); /* Biraz daha belirgin kenar çizgisi */
    stroke-width: 0.2;
}
.dark .gear {
    fill: rgba(51, 65, 85, 0.1);
    stroke: rgba(51, 65, 85, 0.3);
}
.gear path {
    stroke: inherit;
    fill: inherit;
}

#bg-gear-1 {
    width: 50vw;
    max-width: 600px;
    height: auto;
    top: -15vw;
    left: -20vw;
    animation:
        rotate-cw 80s linear infinite,
        heat-glow 15s ease-in-out infinite alternate;
}
#bg-gear-2 {
    width: 25vw;
    max-width: 300px;
    height: auto;
    bottom: -5vw;
    right: -10vw;
    animation:
        rotate-ccw 55s linear infinite,
        heat-glow 12s ease-in-out infinite alternate;
    animation-delay: -5s;
}

/* Isı Işıması Animasyonu */
@keyframes heat-glow {
    from { filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0)); }
    to { filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.4)); }
}

/* DİĞER TÜM STİLLER */
.nav-link.active {
    color: #f59e0b;
    position: relative;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f59e0b;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn { from { width: 0; } to { width: 100%; } }

#typing-effect::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: #f59e0b;
}
@keyframes blink { 50% { opacity: 0; } }

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: none !important;
}
.slide-from-left { transform: translateX(-50px); }
.slide-from-right { transform: translateX(50px); }
.fade-in-up { transform: translateY(50px); }
.zoom-in { transform: scale(0.9); }

.header-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.dark .header-glass {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    filter: blur(4px);
}

#search-modal-overlay, #search-modal {
    transition: all 0.3s ease-in-out;
}

#hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
#hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 100 * (16/9) */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Allows clicking through the iframe */
}

@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.animate-infinite-scroll {
    animation: infinite-scroll 40s linear infinite;
}
.animate-infinite-scroll img {
    height: 3rem; /* Mobil varsayılan boyut */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
@media (min-width: 768px) {
    .animate-infinite-scroll img {
        height: 4rem; /* Desktop boyutu */
    }
}
.dark .animate-infinite-scroll img {
    filter: grayscale(100%) invert(100%);
    opacity: 0.5;
}
.animate-infinite-scroll img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
.dark .animate-infinite-scroll img:hover {
    filter: grayscale(0%) invert(0%);
}


.map-style {
    filter: grayscale(80%);
    transition: filter 0.5s ease;
}
.map-style:hover {
    filter: grayscale(0%);
}
.dark .map-style {
    filter: grayscale(100%) invert(90%) brightness(0.7);
}
.dark .map-style:hover {
    filter: grayscale(0%) invert(0%);
}

@keyframes rotate-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* === YENİ MOBİL MENÜ STİLLERİ === */

/* JS ile eklenecek 'is-open' sınıfları animasyonu tetikler */
#mobile-menu.is-open {
    transform: translateX(0); /* Ekranın içine kaydır */
}
#mobile-menu-overlay.is-open {
    opacity: 1; /* Overlay'i görünür yap */
    pointer-events: auto; /* Tıklanabilir yap */
}

/* Yeni Mobil Menü Link Stilleri */
#mobile-menu-nav a {
    display: block;
    padding: 1rem 1.5rem; /* 16px 24px */
    text-align: left; /* Sola hizalı */
    font-weight: 600; /* Kalın */
    font-size: 1.125rem; /* large (daha okunaklı) */
    border-bottom: 1px solid #e5e7eb; /* Açık modda ayraç */
    transition: all 0.2s ease-in-out;
}
.dark #mobile-menu-nav a {
    border-bottom-color: #374151; /* Koyu modda ayraç */
}

/* Link üzerine gelince */
#mobile-menu-nav a:hover {
    background-color: #f3f4f6; /* Açık mod hover */
    padding-left: 1.75rem; /* Hafif içe kaydırma efekti */
}
.dark #mobile-menu-nav a:hover {
    background-color: #334155; /* Koyu mod hover */
}

/* Son linkin altındaki çizgiyi kaldır */
#mobile-menu-nav a:last-child {
    border-bottom: none;
}

/* Yeni Aktif Link Stili (Solda Vurgu Çizgisi) */
#mobile-menu-nav a.active {
    color: #f59e0b; /* amber-500 */
    background-color: #fffbeb; /* amber-50 */
    border-left: 4px solid #f59e0b; /* Vurgu çizgisi */
    padding-left: calc(1.5rem - 4px); /* Çizgiyi hesaba katarak hizala */
}

.dark #mobile-menu-nav a.active {
    color: #f59e0b; /* amber-500 */
    background-color: #334155; /* slate-700 */
    border-left-color: #f59e0b; /* Vurgu çizgisi */
}
/* === MOBİL MENÜ STİLLERİ BİTİŞ === */


/* === CSS ile Çizilen Hamburger İkonu === */
.hamburger-button {
    cursor: pointer;
    border: none;
    background: none;
    /* padding: 0.5rem; */ /* HTML'deki p-1 yeterli */
    display: flex; /* İçeriği (span) ortalamak için */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-out; /* Butonun hafifçe dönmesi için */
    -webkit-tap-highlight-color: transparent; /* Mobil dokunma efektini kaldır */
}
.hamburger-button:hover {
    transform: scale(1.1); /* Hafif büyütme efekti */
}

/* Çizgilerin temel stilleri (üst, orta, alt) */
.hamburger-button span,
.hamburger-button::before,
.hamburger-button::after {
    content: '';
    display: block;
    width: 24px; /* Mobil için çizgi genişliği */
    height: 3px; /* Çizgi kalınlığı */
    background-color: currentColor; /* Butonun text rengini alır (slate-600/dark:slate-300) */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute; /* Buton içine göre konumlandırma */
    left: 50%; /* Ortala */
    transform-origin: center; /* Dönüşlerin merkezden olması için */
    margin-left: -12px; /* Genişliğin yarısı kadar sola kaydır */
}
/* Media query ile büyük ekranda çizgi genişliği */
@media (min-width: 768px) {
    .hamburger-button span,
    .hamburger-button::before,
    .hamburger-button::after {
        width: 28px;
        margin-left: -14px; /* Yeni genişliğin yarısı */
    }
}

/* Üst çizgi */
.hamburger-button::before {
    transform: translateY(-8px); /* Orta çizgiden yukarı */
}

/* Alt çizgi */
.hamburger-button::after {
    transform: translateY(8px); /* Orta çizgiden aşağı */
}

/* Orta çizgi (HTML'deki span) */

/* Menü Açıkken (JS .is-active sınıfını butona ekleyecek) */
.hamburger-button.is-active .hamburger-middle {
    transform: translateX(-50px); /* Orta çizgiyi kaydırıp gizle */
    background-color: transparent; /* Görünmez yap */
}
.hamburger-button.is-active::before {
    /* Üst çizgiyi X'e çevir */
    transform: rotate(45deg) translateY(0px) translateX(0px); /* Y eksenindeki kaymayı sıfırla */
    /* Gerekirse translate değerlerini ayarlayarak X'in tam ortalanmasını sağlayın */
}
.hamburger-button.is-active::after {
    /* Alt çizgiyi X'e çevir */
    transform: rotate(-45deg) translateY(0px) translateX(0px); /* Y eksenindeki kaymayı sıfırla */
    /* Gerekirse translate değerlerini ayarlayarak X'in tam ortalanmasını sağlayın */
}

/* Odaklanma halkasını kesin olarak kaldır (CSS ile) */
.hamburger-button:focus,
.hamburger-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
/* === HAMBURGER İKONU STİLLERİ BİTİŞ === */