/* ========================================= */
/* 1. CORE VARIABLES & FONTS                 */
/* ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --primary: #FF4D00;
    --text-main: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.75); /* Biraz daha koyu cam */
    --dock-height-desktop: 80px;
    --dock-height-mobile: 65px;
}

/* GILROY FONT SETUP */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    
    /* ÖNEMLİ: GSAP için dikey kaydırma (y) açık, yatay (x) kapalı olmalı */
    /* Eski kodundaki gibi HTML'i kilitlemiyoruz, doğal akışa bırakıyoruz */
    overflow-x: hidden; 
    overflow-y: auto; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Gilroy', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    
    /* Yükseklik ayarı */
    min-height: 100vh;
}

/* Mobilde padding ayarı (Eski kodundan) */
@media (min-width: 993px) { 
    body { padding-bottom: 0; } 
}

/* ========================================= */
/* 2. NOISE EFFECT (KARINCALANMA)            */
/* ========================================= */
body::before {
    content: ""; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; 
    z-index: 9999; 
    opacity: 0.4;
}

/* Link ve Liste Sıfırlama */
ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* Scrollbar Özelleştirme (Opsiyonel ama şık durur) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
.container { max-width: 1400px; width: 90%; margin: 0 auto; }


/* --- ANA BÖLÜMLERİN AYARLARI --- */
/* Her bir bölümün (Hero, Services, Projects, Footer) kaydırma noktası olması için */
section {
    /* Her bölüm ekranı tam kaplamalı */
    height: 120vh;
    width: 100%;
    position: relative;
    
    /* YAPIŞMA NOKTASI */
    scroll-snap-align: start;
    scroll-snap-stop: always; /* Mutlaka dur */
    
    /* İçerik Ortalama */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Panel içindeki section'lar ana sayfa kuralından etkilenmesin (120vh boşluk olmasın) */
.bottom-sheet section,
.sheet-content section {
    height: auto;
    min-height: 0;
    scroll-snap-align: none;
    scroll-snap-stop: auto;
    display: block;
    justify-content: unset;
}


/* ========================================= */
/* === PRELOADER STYLES (AÇILIŞ EKRANI) === */
/* ========================================= */

#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark); /* Simsiyah zemin */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease; /* Kapanış daha yumuşak olsun */
}

/* Yükleme bitince eklenecek sınıf (Gizleme) */
#preloader.hide-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo Kapsayıcısı */
.loader-content {
    position: relative;
    width: 300px; /* Logo boyutu büyütüldü (Eskisi 120px idi) */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- LOGO ANİMASYONU --- */
.loader-content svg, 
.loader-content span {
    width: 100%;
    height: auto;
    
    /* Artık renk değiştirmiyor (hue-rotate kalktı). 
       Sadece Nefes Alıyor ve Turuncu Parlıyor */
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Nefes Alma ve Turuncu Parlama Efekti */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        /* Hafif turuncu gölge */
        filter: drop-shadow(0 0 10px rgba(255, 77, 0, 0.3)); 
    }
    50% {
        transform: scale(1.1); /* Hafif büyüsün */
        /* Güçlü turuncu parlama */
        filter: drop-shadow(0 0 40px rgba(255, 77, 0, 0.8)); 
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 77, 0, 0.3));
    }
}


/* ========================================================= */
/* === NEW LIQUID BOTTOM DOCK STYLES (APP-LIKE NAV) === */
/* ========================================================= */

/* DOCK CONTAINER (Masaüstü Yüzen Kapsül) */
.bottom-nav-dock.liquidGlass-wrapper {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 550px; /* Masaüstünde çok dar olmasın */
    height: var(--dock-height-desktop);
    z-index: 10000; /* En üstte */
    
    /* Liquid Glass Core */
    display: flex; font-weight: 600; overflow: hidden; color: white;
    border-radius: 50px; /* Tam oval */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8), 
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

/* MASAÜSTÜ HOVER EFEKTİ: Biraz büyüsün */
@media (min-width: 993px) {
    .bottom-nav-dock.liquidGlass-wrapper:hover {
        bottom: 35px;
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.9), 
            0 0 0 1px rgba(255, 77, 0, 0.3); /* Turuncu kenarlık */
    }
}


.dock-wrapper {
    position: fixed;
    bottom: 30px;
    left: 0; width: 100%;
    display: flex; 
    justify-content: center; /* İçeriği ortalar */
    z-index: 9999;
    pointer-events: none;
}

.dock-anchor {
    position: relative; /* Referans noktası */
    display: flex; align-items: center;
}

.dock-container {
    pointer-events: auto; /* Sadece menüye tıklansın */
    
    /* CAM EFEKTİ (SAF CSS) */
    background: rgba(20, 20, 20, 0.75); /* Yarı saydam siyah */
    backdrop-filter: blur(16px) saturate(180%); /* Buzlu cam */
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.2); /* İnce beyaz çerçeve */
    border-radius: 24px;
    padding: 0 15px;
    height: 70px; /* Sabit yükseklik */
    
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Derin gölge */
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.dock-list {
    display: flex;
    align-items: center;
    gap: 8px; /* İkonlar arası boşluk */
    margin: 0; padding: 0; list-style: none;
}

/* İkon Linkleri */
.dock-list li a {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 45px; height: 45px;
    border-radius: 50px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover Efektleri */
.dock-list li a:hover, .dock-list li a.active {
    background: rgba(255,255,255,0.15); 
    color: #fff;
}
.dock-list li a.active {
    color: var(--primary);
}

/* --- ORTA LOGO (POP-OUT EFFECT) --- */
.dock-logo-item {
    margin: 0 20px; /* Logoyu sağdan soldan ayır */
}

.dock-logo-link {
    width: 90px !important; height: 90px !important; /* Diğerlerinden büyük */
    background: #111 !important; /* Arkası dolu olsun, şeffaf değil */
    border-radius: 50% !important; /* Tam yuvarlak */
    
    /* YUKARI TAŞMA HAREKETİ */
    transform: translateY(-25px); 
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
}

.dock-logo-link svg {
    height: 100px; width: auto;
    fill: #fff;
    transition: 0.3s;
}

/* Logoya Hover */
.dock-logo-link:hover {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) ;
    transform: translateY(-30px) scale(1.1) !important; /* Daha da yukarı */
}

/* Tooltip (Hover Yazısı) */
.tooltip {
    position: absolute;
    top: -35px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px; font-weight: 600;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
    white-space: nowrap;
    pointer-events: none;
}
.dock-list li a:hover .tooltip {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.social-satellite {
    pointer-events: auto;
    
    /* KONUMLANDIRMA (SİHİR BURADA) */
    position: absolute;
    left: 100%; /* Dock menünün bittiği yerden başla */
    top: 10px; 
    bottom: 0; /* Yüksekliği ortala */
    margin-left: 15px; /* Dock ile arasına 15px boşluk koy */
    
    /* GÖRÜNÜM */
    display: flex; align-items: center; gap: 15px;
    background: rgba(20, 20, 20, 0.6); /* Biraz daha şeffaf olabilir */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Hap şeklinde */
    padding: 15px;
    height: 50px; /* Dock'tan biraz daha ince olsun (Estetik tercih) */
    
    /* Giriş Animasyonu */
    opacity: 0; transform: translateX(-10px);
    animation: slideInRight 0.5s 0.5s ease forwards;
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

.social-satellite a {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: rgba(255,255,255,1);
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
    font-size: 14px;
}

.social-satellite a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    
    .dock-wrapper {
        /* 1. Biraz daha yukarı kaldır */
        bottom: 30px !important; 
        
        /* iPhone Çentik Desteği (Varsa ekstra boşluk bırakır) */
        bottom: calc(30px + env(safe-area-inset-bottom)) !important;
        
        /* 2. Z-Index Ayarı */
        /* Popup'ın (2 milyar) altında ama Hero'nun (1) üstünde olsun */
        z-index: 9999 !important; 
    }
    
    .dock-container {
        height: 60px; padding: 0 10px;
        bottom: 20px;
    }
    .dock-logo-link {
        width: 60px !important; height: 60px !important;
        transform: translateY(-20px);
    }
    .tooltip { display: none; } /* Mobilde yazı çıkmasın */
    .social-satellite {
        display: none !important;
    }
}


/* ========================================= */
/* 3. HİZMETLER (MASONRY / DİNAMİK YAP)      */
/* ========================================= */
.gallery-section {
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding: 80px 0 100px 0;
    position: relative;
    overflow: visible;
}

/* Kapsayıcı: Ekranın tamamını kaplasın ama kenarlardan çok az nefes alsın */
.fluid-gallery-wrapper {
    width: 100%;
    padding: 0 2vw; /* Sağdan soldan %2 boşluk */
}

/* --- DAĞINIK IZGARA YAPISI (CSS COLUMNS) --- */
.scattered-grid {
    /* Ekranı sütunlara bölüyoruz */
    column-count: 4; 
    column-gap: 30px; /* Sütunlar arası boşluk */
}

/* --- GALERİ ELEMANI --- */
.gallery-item {
    /* Kartın bölünmesini engelle (Resim yarısı diğer sütuna geçmesin) */
    break-inside: avoid; 
    -webkit-column-break-inside: avoid;
    
    margin-bottom: 30px; /* Alt boşluk */
    position: relative;
    transition: transform 0.5s ease;
}

/* --- DAĞINIKLIK EFEKTİ (Rastgelelik Hissi) --- */
/* Bazı elemanlara ekstra boşluklar vererek hizayı bozuyoruz */

/* Her 2. elemanın alt boşluğunu artır */
.gallery-item:nth-child(2n) {
    margin-bottom: 60px; 
}
/* Her 3. elemanı biraz sağa itiyormuş gibi yapamayız (column layoutta) ama margin ile oynayabiliriz */
.gallery-item:nth-child(3n) {
    margin-top: 40px; /* Bazıları yukarıdan başlasın */
}
.gallery-item:nth-child(5n) {
    margin-bottom: 80px; /* Bazıları çok ayrı dursun */
}


/* --- RESİM AYARLARI (FILL YOK, ORİJİNAL) --- */
.gallery-link {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden; /* Overlay taşmasın */
}

.gallery-link img {
    width: 100%; /* Sütun genişliğine otur */
    height: auto !important; /* ASLA KESME! Orijinal oran neyse o */
    display: block;
    border-radius: 8px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9); /* Hafif karanlık başlasın */
}

/* --- OVERLAY (HOVER BİLGİSİ) --- */
.gallery-overlay {
    position: absolute;
    bottom: 0;        /* En alta yapıştır */
    left: 0;
    width: 100%;      /* Genişliği tam kapla */
    height: auto;     /* Yükseklik içeriğe göre olsun, tüm ekranı kaplamasın */
    
    /* Arka plan: Yazı okunması için alttan yukarı siyah gradient */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* İçeriği en alta it */
    align-items: flex-start;   /* Sola yasla */
    
    padding: 40px 20px 20px 20px; /* Üstten fazla boşluk veriyoruz ki gradient yumuşak geçsin */
    opacity: 1;       /* ARTIK HEP GÖRÜNÜR */
    z-index: 5;
    pointer-events: none; /* Mouse etkileşimini engelle ki tıklama direkt Link'e geçsin (opsiyonel ama sağlıklı) */
}

/* --- BİLGİ KUTUSU --- */
.gallery-info {
    transform: none; /* Animasyon için kaydırmayı iptal ettik */
    width: 100%;
    text-align: left; /* Yazıları sola yasla */
}

.gallery-info .cat {
    display: block;
    font-size: 11px; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    color: var(--primary); /* Temandaki ana renk */
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); /* Arka plan açık renkse okunsun diye gölge */
}

.gallery-info h3 {
    font-size: 16px; 
    color: #fff; 
    margin: 0; 
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* --- HOVER ETKİLEŞİMİ --- */
.gallery-link:hover img {
    transition: transform 0.3s ease;
    transform: scale(1.05); /* Resim hafif büyüsün */
}


@media screen and (max-width: 1024px) {
    .scattered-grid {
        column-count: 2; /* 4 sütundan 2 sütuna düşür */
        column-gap: 20px;
    }
    
    .fluid-gallery-wrapper {
        padding: 0 3vw; /* Kenar boşluklarını biraz aç */
    }
}

/* --- MOBİL CİHAZLAR (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    .gallery-section {
        height: auto !important;
        overflow: visible !important; /* Taşmaları gizleme */
        padding-bottom: 100px !important; /* Footer ile araya güvenli mesafe */
    }

    /* 2. Izgara Yapısını Sütundan Flex'e Çevir */
    .scattered-grid {
        display: flex !important;       /* Column yapısını iptal et */
        flex-direction: column !important; /* Alt alta diz */
        column-count: auto !important;  /* Sütunları tamamen kapat */
        column-gap: 0 !important;
        height: auto !important;
    }

    /* --- Mobilde Dağınıklık Efektini SIFIRLA --- */
    /* Mobilde rastgele boşluklar kötü durur, hepsini eşitliyoruz */
    .gallery-item {
        width: 100% !important;
        display: block !important;
        margin-bottom: 40px !important; /* Kartlar arası boşluk */
        
        /* Olası JS kaydırmalarını (transform) sıfırla */
        transform: none !important; 
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .footer-section {
        margin-top: auto !important;
        position: relative !important;
        z-index: 10 !important; /* Galerinin üstünde kalsın */
    }

    .fluid-gallery-wrapper {
        padding: 0 20px; /* Mobilde kenarlardan standart 20px boşluk iyidir */
    }

    /* Yazıları mobilde biraz daha okunaklı yapalım */
    .gallery-overlay {
        padding: 30px 15px 15px 15px; /* İç boşluğu biraz kıstık */
    }

    .gallery-info h3 {
        font-size: 14px; /* Başlık çok yer kaplamasın */
    }
    
    .gallery-info .cat {
    font-size: 10px; 
}

.footer-socials {
        gap: 30px; 
    }
    .footer-socials a {
        font-size: 22px; 
        padding: 5px;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-visuals {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%; height: 100%; object-fit: cover;
    animation: slowZoom 20s infinite alternate; /* Yavaşça yakınlaşıp uzaklaşma */
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.15); } }

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    /* Alttan yukarı doğru koyulaşan, üstten hafif ışık alan gradyan */
    background: radial-gradient(circle at 50% 30%, rgba(0,0,0,0.4) 0%, rgba(10,10,10,1) 90%);
}

.hero-overlay::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 3px);
    pointer-events: none;
}

.hero-container {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.hero-badge-wrapper { 
    margin-bottom: 25px; 
}

.hero-glass-badge {
    display: inline-flex; align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.hero-glass-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-title {
    font-size: 90px; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 30px;
    color: #fff; 
    letter-spacing: -2px;
}

.text-outline {
    -webkit-text-stroke: 1px rgba(255,255,255,0.4);
    color: transparent;
    transition: 0.3s;
}

.hero-title:hover .text-outline { color: rgba(255,255,255,0.1); }
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 30px auto;
    font-weight: 400; line-height: 1.6;
}


.rating-box {
    display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.6); font-size: 13px;
}
.stars { color: #FFD700; font-size: 14px; margin-bottom: 2px; }


/* Giriş Animasyonları (Fade In) */
.fade-in-up {
    opacity: 0; transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* --- Mobil Uyumluluk --- */
@media (max-width: 768px) {
    .hero-title { font-size: 50px; }
    .hero-desc { font-size: 16px; padding: 0 20px; }
}


/* =========================================
   KATEGORİLER / HİZMETLER CAROUSEL
   Ortada seçili kart, solda önceki / sağda sonraki görünür
   ========================================= */

/* Genel section 120vh almasın; yükseklik içeriğe göre, padding makul */
.categories-section {
    height: auto;
    min-height: 0;
    padding: 40px 0 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}
/* Slider: kartlar + butonların konteyneri */
.categories-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    touch-action: pan-y;
    --card-width: 52vw;
    --cards-gap: 28px;
    --nav-offset: 15px;
}

.categories-track {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: var(--cards-gap);
    width: max-content;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Prev/Next butonları – aktif kartın sol/sağ kenarının dışında, boşlukta */
.categories-nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, opacity 0.25s;
}
.categories-nav:hover {
    background: rgba(255, 77, 0, 0.25);
    border-color: rgba(255, 77, 0, 0.5);
    transform: translateY(-50%) scale(1.08);
}
.categories-nav i {
    font-size: 14px;
}
/* Konum JS ile ayarlanıyor (positionNavButtons) */
.categories-nav--prev,
.categories-nav--next {
    transform: translate(-50%, -50%);
}
.categories-nav--prev:hover,
.categories-nav--next:hover {
    transform: translate(-50%, -50%) scale(1.08);
}
.categories-nav--hidden {
    display: none !important;
}

.categories-card {
    flex-shrink: 0;
    width: var(--card-width);
    min-width: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                box-shadow 0.3s ease,
                border-color 0.2s ease;
}

.categories-card__link {
    display: block;
    height: 100%;
    min-height: 420px;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.categories-card__image {
    position: absolute;
    inset: 0;
}

.categories-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.categories-card__link:hover .categories-card__image img {
    transform: scale(1.06);
}

.categories-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 45%);
    pointer-events: none;
}

.categories-card__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 2;
}

.categories-card__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.categories-card__title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* Sadece aktif kartta: "Tıklayınca menü açılır" hissi */
.categories-card__action {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.25s ease;
}

.categories-card.is-current .categories-card__action {
    display: inline-flex;
    opacity: 0.75;
}

.categories-card.is-current:hover .categories-card__action {
    opacity: 1;
    transform: translateY(0);
    color: var(--primary);
}

.categories-card.is-current .categories-card__action i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.categories-card.is-current:hover .categories-card__action i {
    transform: translate(2px, -2px);
}

/* Ortadaki kart büyük ve vurgulu; önceki/sonraki küçük (daha fazla kategori hissi) */
.categories-card.is-current {
    transform: scale(1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.categories-card.is-current:hover {
    border-color: rgba(255, 77, 0, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 77, 0, 0.2);
}

.categories-card:not(.is-current) {
    transform: scale(0.78);
    opacity: 0.85;
    cursor: pointer;
    z-index: 1;
}

.categories-card:not(.is-current):hover {
    opacity: 1;
    transform: scale(0.82);
}

/* Kenarlarda “devam ediyor” hissi: hafif gradient */
.categories-slider::before,
.categories-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.categories-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.categories-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

/* =========================================
   MARKALAR BÖLÜMÜ (Statik grid, tıklanabilir kartlar)
   ========================================= */

.brands-section {
    height: auto;
    min-height: 0;
    padding: 40px 0 30px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.brands-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.brands-section__header .sub-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.brands-section__header .section-title {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.brands-section__desc {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Marka kartı – buton olarak tıklanabilir */
.brand-card {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 28px 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.brand-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.brand-card img {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.brand-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.brand-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.brand-card__action {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.45);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.brand-card:hover .brand-card__action {
    opacity: 1;
    transform: translateY(0);
    color: var(--primary);
}

.brand-card__action i {
    margin-left: 4px;
    font-size: 10px;
}

/* Panel içi marka etiketi */
.sheet-meta-tag-brand {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

/* Marka paneli: logo yuvarlak daire içinde */
.sheet-brand-logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sheet-brand-logo-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

.sheet-brand-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.sheet-brand-website:hover {
    color: #ff6b33;
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .brands-section {
        padding: 56px 0 72px;
    }

    .brands-section__header {
        margin-bottom: 36px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .brand-card {
        min-height: 120px;
        padding: 20px 16px;
    }

    .brand-card img {
        max-height: 48px;
    }
}


#image-viewer {
    display: none; 
    position: fixed;
    /* Değeri çok yüksek yaptık ve !important ekledik */
   z-index: 2147483647 !important; /* Maksimum değer + important */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.95); /* Arka planı daha koyu yaptık */
    backdrop-filter: blur(10px); 
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Görüntülenen Resim */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px; /* Çok geniş ekranlarda devleşmesin */
    max-height: 85vh; /* Ekrana sığsın */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Başlık / Açıklama */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 500;
}

/* Kapatma Butonu (X) */
.close-viewer {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 100;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

.close-viewer:hover,
.close-viewer:focus {
    color: var(--primary); /* Senin turuncu rengin */
    text-decoration: none;
    cursor: pointer;
}

/* Açılma Animasyonu Class'ı */
#image-viewer.active {
    opacity: 1;
}
#image-viewer.active .modal-content {
    transform: scale(1);
}

/* --- BOTTOM SHEET TASARIMI --- */

/* 1. Karartma perdesi — blur + hafif karartma; arkada koyu bölüm olsa bile tam siyah görünmesin */
.bottom-sheet-overlay,
#detailOverlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999998 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
.bottom-sheet-overlay.active,
#detailOverlay.active {
    pointer-events: auto;
}

#detailSheet, 
.bottom-sheet {
    z-index: 9999999 !important;
    background: #111 !important; /* Arka planı net bir renk olsun (şeffaf olmasın) */
    backdrop-filter: none !important; /* Panelin kendisinde blur olmasın */
    box-shadow: 0 -5px 30px rgba(0,0,0,0.8); /* Paneli öne çıkaran gölge */
}

/* 3. İçerik ve Butonlar */
.sheet-content,
.sheet-drag-handle {
    z-index: 1000000 !important;
    position: relative;
}

.bottom-sheet, 
.bottom-sheet * {
    color: #ffffff !important; /* Tüm metinleri zorla beyaz yap */
    box-sizing: border-box;
}

/* 2. Proje Kartlarını ve Kapsayıcılarını Aşağı Baskıla (brands bölümü üstte tıklanabilir kalsın) */
.brands-section {
    position: relative;
    z-index: 2; /* Gallery'nin (z-index:1) üstünde, tıklanabilir */
}
.gallery-section,
.fluid-gallery-wrapper,
.scattered-grid,
.gallery-item {
    z-index: 1 !important; /* Bunları en alta it */
    position: relative; /* Eğer fixed ise relative'e çek */
}

/* 3. Eğer Header/Menü de üstte kalıyorsa onu da popup'ın altına al */
header, .navbar, .top-bar {
    z-index: 999 !important; /* Popup'tan küçük herhangi bir sayı */
}

.hero-section,
#home {
    position: relative !important; /* Kodunda zaten var ama garanti olsun */
    z-index: 1 !important; /* Popup'tan (2 milyar) çok daha düşük */
}

/* 2. Arka Plandaki Resim ve Görselleri Daha da Alta İt */
.hero-visuals,
.hero-bg-img {
    z-index: 0 !important;
}

/* 3. İçerik Alanı (Animasyonlar içerdiği için katman atlayabilir, onu da tutalım) */
.hero-content,
.hero-container {
    position: relative;
    z-index: 2 !important; /* Hero görselinin üstünde ama Popup'ın altında */
}



.bottom-sheet-overlay.active,
#detailOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. Kayan Panel (dar, ortada) */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 560px;
    height: 85vh;
    background: #111;
    border-radius: 20px 20px 0 0;
    z-index: 9999999 !important;
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active { transform: translateX(-50%) translateY(0); }

/* Sürükleme çubuğu (native app hissi, sürüklenebilir) */
.sheet-drag-handle {
    flex-shrink: 0;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}
.sheet-drag-handle:active {
    cursor: grabbing;
}
.sheet-drag-handle::after {
    content: '';
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    transition: background 0.2s;
}
.sheet-drag-handle:hover::after,
.sheet-drag-handle:active::after {
    background: rgba(255,255,255,0.6);
}

/* Kapat Butonu */
/* 5. İçerik Alanı */
.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px 80px 30px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}
/* Sheet içi özel scrollbar */
.sheet-content::-webkit-scrollbar {
    width: 6px;
}
.sheet-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 3px;
}
.sheet-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.sheet-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,77,0,0.5);
}

/* Panel içi geçiş: keyframes ile (transition yerine) */
.sheet-content-inner {
    min-height: 100%;
    position: relative;
}
.sheet-content-inner.sheet-content--animate-out {
    animation-name: sheetContentFadeOut;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
.sheet-content-inner.sheet-content--animate-in {
    animation-name: sheetContentFadeIn;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
@keyframes sheetContentFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes sheetContentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Eski sheet içerik (hizmet/marka vb.) */
.sheet-header-img {
    width: 100%; height: 250px; object-fit: cover;
    border-radius: 12px; margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.sheet-meta-tag {
    display: inline-block; padding: 6px 14px;
    background: rgba(255,255,255,0.08); color: var(--primary);
    border: 1px solid rgba(255,77,0,0.25);
    border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    margin-bottom: 15px; letter-spacing: 1.2px;
}
.sheet-title { font-size: 32px; margin-bottom: 10px; color: #fff; font-weight: 700; letter-spacing: -0.02em; }
.sheet-client { color: #888; font-size: 14px; margin-bottom: 30px; display: block; }
.sheet-desc { color: #ccc; line-height: 1.8; font-size: 16px; }

/* ========== PROJE DETAY PANELİ (Modern) ========== */
.pd { padding-bottom: 48px; }
.pd-back {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 12px 0 16px 0; padding: 10px 16px;
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.pd-back:hover {
    background: rgba(255,77,0,0.15);
    border-color: rgba(255,77,0,0.4);
    color: #fff;
    transform: translateX(-2px);
}
.pd-back i { font-size: 11px; opacity: 0.9; transition: transform 0.2s; }
.pd-back:hover i { transform: translateX(-2px); }

.pd-hero {
    position: relative;
    width: calc(100% + 60px);
    margin: 0 -30px 28px -30px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    background: rgba(0,0,0,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.pd-hero::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), rgba(255,77,0,0.5));
    opacity: 0.9;
}
.pd-hero-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.pd-hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.97) 0%, rgba(17,17,17,0.4) 40%, transparent 70%);
    pointer-events: none;
}

/* --- Proje galerisi (Instagram tarzı, sabit alan 1080x1350) --- */
.pd-gallery {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 24px auto 28px auto;
    border-radius: 16px;
    overflow: hidden;
    /* Instagram post oranı: 1080x1350 = 4:5 */
    aspect-ratio: 1080 / 1350;
    background: #1a1a1a;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    touch-action: pan-y pinch-zoom;
}
.pd-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
}
.pd-gallery-track:active { cursor: grabbing; }
.pd-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #1a1a1a;
}
.pd-gallery-slide-inner {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Görsel kırpılmaz; yatay/dikey ne olursa olsun tam gösterilir (contain) */
.pd-gallery-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    pointer-events: none;
}
.pd-gallery-caption {
    position: absolute;
    left: 20px;
    bottom: 40px;
    margin: 0;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255,255,255,0.95) !important;
    text-align: left;
    max-width: 100%;
}
.pd-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}
.pd-gallery-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.25s ease, transform 0.2s ease;
}
.pd-gallery-dot:hover {
    background: rgba(255,255,255,0.7);
}
.pd-gallery-dot.is-active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.6);
}
.pd-gallery-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.5) 0%, transparent 50%);
    pointer-events: none;
}

.pd-body { padding: 0 4px; }

.pd-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}
.pd-pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255,77,0,0.12);
    border: 1px solid rgba(255,77,0,0.2);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,77,0,0.08);
}
.pd-pill-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}
.pd-pill-meta-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.45);
}
.pd-title {
    font-size: 28px; font-weight: 700; line-height: 1.25;
    color: #fff; margin: 0 0 24px 0; letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.pd-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.pd-meta-item {
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    border-left: 3px solid rgba(255,77,0,0.5);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pd-meta-item:hover {
    background: rgba(255,255,255,0.06);
    border-left-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.pd-meta-label {
    display: block;
    font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}
.pd-meta-value {
    font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.95);
}
.pd-section {
    padding-top: 28px;
    padding-left: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--primary);
    margin-left: 0;
    background: linear-gradient(90deg, rgba(255,77,0,0.04) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
    margin-top: 4px;
}
.pd-section-title {
    font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin: 0 0 14px 0;
}
.pd-desc {
    font-size: 15px; line-height: 1.8;
    color: rgba(255,255,255,0.78);
    white-space: pre-wrap; /* Enter, Tab ve boşluklar yazıldığı gibi gösterilir */
}
.pd-cta {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 28px; padding: 14px 24px;
    font-size: 14px; font-weight: 700;
    color: #0a0a0a; background: #fff;
    border-radius: 10px; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, gap 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.pd-cta:hover {
    background: var(--primary); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,77,0,0.4);
    gap: 12px;
}
.pd-cta i { font-size: 12px; transition: transform 0.2s; }
.pd-cta:hover i { transform: translate(2px, -2px); }

/* --- HİZMET PANELİ (kategori + projeler) --- */
.sheet-service-inner { padding-bottom: 20px; }
.sheet-service-header {
    margin-bottom: 32px;
    position: relative;
}
.sheet-service-header-img {
    width: 100%; height: 180px; object-fit: cover;
    border-radius: 14px; margin-bottom: 16px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
}
.sheet-meta-tag-service { color: var(--primary); }
.sheet-service-title { font-size: 26px; margin: 8px 0 12px 0; font-weight: 700; letter-spacing: -0.02em; }
.sheet-service-desc { color: rgba(255,255,255,0.7); line-height: 1.7; font-size: 15px; margin: 0; }

.sheet-projects-section {
    margin-top: 28px; padding-top: 28px; padding-left: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, rgba(255,77,0,0.04) 0%, transparent 100%);
    border-radius: 0 14px 14px 0;
}
.sheet-projects-title {
    font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin: 0 0 20px 0;
}
.sheet-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.sheet-project-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.sheet-project-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
    pointer-events: none;
}
.sheet-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,77,0,0.45);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,77,0,0.1);
}
.sheet-project-card:hover::before { opacity: 1; }
.sheet-project-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(0,0,0,0.35);
    overflow: hidden;
}
.sheet-project-card-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.sheet-project-card:hover .sheet-project-card-img {
    transform: scale(1.05);
}
.sheet-project-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2); font-size: 28px;
}
.sheet-project-card-body {
    padding: 14px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.sheet-project-card-meta {
    display: block; font-size: 11px; color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.sheet-project-card-title {
    font-size: 14px; font-weight: 600; color: #fff; margin: 0;
    line-height: 1.35; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sheet-no-projects {
    color: rgba(255,255,255,0.45); font-size: 14px; margin: 0; padding: 24px 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .sheet-projects-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sheet-project-card-title { font-size: 13px; }
    .sheet-service-header-img { height: 140px; }
    .sheet-brand-logo-circle { width: 96px; height: 96px; margin-bottom: 16px; }
    .sheet-content { padding: 16px 20px 100px 20px; }
    .pd-section { padding-left: 14px; margin-left: 0; }
    .sheet-projects-section { padding-left: 14px; }
    .pd-hero {
        width: calc(100% + 40px);
        margin: 0 -20px 20px -20px;
        border-radius: 0 0 16px 16px;
        max-height: 200px;
    }
    .pd-gallery {
        max-width: 100%;
        margin: 20px 0 24px 0;
        border-radius: 12px;
    }
    .pd-gallery-caption { padding: 10px 12px 12px; font-size: 12px; }
    .pd-gallery-dots { bottom: 8px; gap: 5px; }
    .pd-gallery-dot { width: 4px; height: 4px; }
    .pd-title { font-size: 22px; margin-bottom: 20px; }
    .pd-pill-wrap { gap: 8px 12px; }
    .pd-section-title { margin-bottom: 10px; }
    .pd-desc { font-size: 14px; }
    .pd-cta { width: 100%; justify-content: center; margin-top: 24px; padding: 14px 20px; }
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .modal-content { width: 95%; margin-top: 30%; }
    .close-viewer { top: 20px; right: 20px; font-size: 40px; }
}

/* ========================================= */
/* 4. FOOTER                                 */
/* ========================================= */
.footer-section {
    height: auto !important;
    min-height: auto !important;
    position: relative;
    /* Üstten 100px, Alttan 160px boşluk (Dock Menüye pay bıraktık) */
    padding: 0 0 160px 0; 
    background-color: var(--bg-dark);
    overflow: hidden;
    z-index: 1;
}

/* --- 1. Devasa Link (Let's Work Together) --- */
.footer-cta {
    display: flex; flex-direction: column;
    margin-bottom: 80px;
}

.cta-subtitle {
    font-size: 13px; letter-spacing: 3px; 
    color: var(--primary); 
    font-weight: 700; text-transform: uppercase;
    margin-bottom: 25px;
    display: inline-flex; align-items: center;
}
/* Çizgi detayı */
.cta-subtitle::before {
    content: ''; width: 30px; height: 1px; background: var(--primary);
    margin-right: 15px;
}

.huge-contact-link {
    font-size: 100px; /* PC'de devasa boyut */
    font-weight: 800;
    line-height: 0.95;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

/* Hero'daki Outline Efektinin Devamı */
.huge-contact-link .outline-text {
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    color: transparent;
    transition: 0.3s;
}
.huge-contact-link .text-highlight {
    color: #fff; 
}

/* Hover Efekti */
.huge-contact-link:hover .outline-text {
    color: #fff; /* Hover olunca içi dolsun */
    -webkit-text-stroke: 0;
    text-shadow: 0 0 40px rgba(255,255,255,0.4);
}
.huge-contact-link:hover {
    transform: translateX(10px); /* Hafif sağa kayma */
}

/* --- 2. Alt Bilgiler --- */
.footer-divider {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
    font-size: 14px; color: rgba(255,255,255,0.5);
}

/* Durum Noktası (Yeşil Yanıp Sönen) */
.footer-status {
    display: flex; align-items: center; gap: 10px;
    font-weight: 500; color: rgba(255,255,255,0.9);
}
.status-dot {
    width: 8px; height: 8px; background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Linkler */
.footer-links a {
    color: rgba(255,255,255,0.5);
    transition: 0.3s;
    font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }
.separator { margin: 0 10px; color: rgba(255,255,255,0.1); }

/* --- 3. Arka Plan Glow --- */
.footer-glow {
    position: absolute; bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- FOOTER SOSYAL İKONLAR --- */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    text-decoration: none;
}

.footer-socials a:hover {
    color: var(--primary); /* Temandaki ana renk */
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1400px) {
    .scattered-grid { column-count: 3; column-gap: 20px; }
}

/* ========================================= */
/* 5. MOBİL UYUMLULUK                        */
/* ========================================= */
@media (max-width: 992px) {
    
    .scattered-grid { column-count: 2; column-gap: 15px; }
    .fluid-gallery-wrapper { padding: 0 15px; }
    
    .dock-container {
        height: 60px; padding: 0 10px;
        bottom: 20px;
    }

    /* --- LOGO BOYUTUNU BURADAN ARTIRIYORUZ --- */
    .dock-logo-link {
        /* Eskisi 60px idi, şimdi 85px yapıyoruz */
        width: 75px !important; 
        height: 75px !important;
        
        /* Yukarı taşma miktarını da biraz artırıyoruz */
        transform: translateY(-25px);
    }
    
    .dock-logo-link svg {
    height: 90px; width: auto;
    fill: #fff;
    transition: 0.3s;
}

    /* Diğer ayarlar aynı kalabilir */
    .tooltip { display: none; }
    .social-dock { display: none; }
    
    
    /* Kategoriler – mobil: tıklanabilir yan kartlar + swipe ile kayma */
    .categories-section {
        padding: 32px 0 40px;
    }
    .categories-slider {
        --card-width: 72vw;
        --cards-gap: 14px;
        touch-action: pan-y;
        -webkit-tap-highlight-color: transparent;
    }
    .categories-nav {
        width: 40px;
        height: 40px;
    }
    .categories-nav i {
        font-size: 12px;
    }
    .categories-track {
        --card-width: 72vw;
        --cards-gap: 14px;
    }
    .categories-card {
        min-width: 0;
    }
    .categories-card__link {
        min-height: 280px;
    }
    .categories-card:not(.is-current) {
        transform: scale(0.82);
        opacity: 0.9;
    }
    .categories-card:not(.is-current):hover {
        transform: scale(0.86);
    }
    .categories-card__link {
        min-height: 280px;
    }
    .categories-card:not(.is-current) {
        transform: scale(0.82);
        opacity: 0.9;
    }
    .categories-card:not(.is-current):hover {
        transform: scale(0.86);
    }
    .hero-container {
        /* İçeriği görsel olarak yukarı itmek için alttan boşluk veriyoruz */
        /* Bu sayede 'Center' hizalaması biraz yukarı kayıyor */
        padding-bottom: 140px !important; 
    }

    /* Başlık mobilde çok yer kaplamasın */
    .hero-title {
        font-size: 38px !important; /* Biraz daha küçülttük */
        line-height: 1.1;
        margin-bottom: 15px;
    }

    /* Açıklama yazısını mobilde biraz kısalım/küçültelim */
    .hero-desc {
        font-size: 14px !important;
        margin-bottom: 20px;
        max-width: 90%; /* Kenarlara yapışmasın */
    }
    
    .hero-title { font-size: 40px; }
    
    .huge-contact-link { font-size: 48px; }
    
    .footer-bottom {
        flex-direction: column; align-items: flex-start; gap: 25px;
    }
    
    .footer-links {
        display: flex; flex-direction: column; gap: 10px;
    }
    .footer-links .separator { display: none; }
    
    .footer-copyright {
        font-size: 12px; opacity: 0.4;
        order: 3; /* En alta at */
        margin-top: 10px;
    }
    
    /* Mobilde Dock menü üzerine binmesin diye ekstra boşluk */
    /* Dock ~80px ise 140px boşluk iyidir */
    
    
}


/* LOGO/PRELOADER */
.loader-container { text-align: center; width: 300px; position: relative; } svg { width: 100%; height: auto; overflow: visible; } .logo-yazi path, .logo-yazi rect { fill: #ffffff; } #donen-logo { transform-origin: center; transform-box: fill-box; } #donen-logo path, #donen-logo polygon { transform-origin: center; transform-box: fill-box; opacity: 0; animation: bloom-effect 4s ease-in-out infinite; } .shadow-layer { transform-origin: center; transform-box: fill-box; opacity: 0; animation: shadow-fade 3s ease-in-out infinite; animation-delay: 0.2s; mix-blend-mode: multiply; } #donen-logo .st5 { animation-delay: 0.0s; } #donen-logo .st6 { animation-delay: 0.1s; } #donen-logo .st4 { animation-delay: 0.2s; } #donen-logo .st7 { animation-delay: 0.3s; } #donen-logo .st1 { animation-delay: 0.4s; } #donen-logo .st0 { animation-delay: 0.5s; } @keyframes bloom-effect { 0% { opacity: 0; transform: scale(0) rotate(-180deg); } 25% { opacity: 1; transform: scale(1) rotate(0deg); } 75% { opacity: 1; transform: scale(1) rotate(0deg); } 100% { opacity: 0; transform: scale(1.2) rotate(45deg); } } @keyframes shadow-fade { 0% { opacity: 0; transform: scale(0.5); } 25% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } } .status-text { margin-top: 30px; color: #ffffff; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; animation: pulse 1.5s infinite ease-in-out; } @keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } } .st0 { fill: #e92541; } .st1 { fill: #ab45db; } .st2 { fill: #fff; } .st3 { opacity: 0; } .st4 { fill: #8ed44d; } .st5 { fill: #ffcb16; } .st6 { fill: #fe8439; } .st7 { fill: #00a5ff; } .shadow-image { opacity: 0.1; mix-blend-mode: multiply; }