/* Tasarım Sistemi ve Global Değişkenler */
:root {
    /* ==========================================================
       KURUMSAL KİMLİK RENK PALETİ — GERA MİMARLIK
       Ana renkler kurumsal kimlik dosyasından alınmıştır:
       Teal #168F98  |  Siyah #16191E
       Diğer tonlar bu iki renkten türetilmiş, okunabilirlik
       (WCAG AA kontrast) gözetilerek belirlenmiştir.
       ========================================================== */

    /* Marka teal — logo, vurgu, ikon, çizgi ve dolgu alanları */
    --color-primary: #168F98;

    /* Koyu teal — hover durumları ve açık zeminde küçük punto yazı (kontrast 5.99) */
    --color-primary-hover: #0F6E75;

    /* Derin teal — beyaz yazı taşıyan dolu butonların zemini (kontrast 4.95 = AA) */
    --color-primary-deep: #107C85;

    /* Açık teal — koyu zemin üzerinde okunan yazı ve ikonlar (kontrast 8.60 = AAA) */
    --color-primary-light: #5EC4CD;

    --color-primary-glow: rgba(22, 143, 152, 0.4);

    /* Marka siyahı */
    --color-dark: #16191E;
    --color-dark-light: #0E1013;

    --color-white: #ffffff;

    /* Teal'in en açık tonu — üst bilgi zeminleri, yumuşak vurgu alanları */
    --color-heaven: #E6F5F6;

    /* Sayfa zemini — teal ile uyumlu soğuk gri */
    --color-light-gray: #F3F6F7;

    /* Gövde metni renkleri — beyaz zeminde WCAG AA (>=4.5) sağlar */
    --color-text: #3F464E;        /* kontrast 9.31 */
    --color-text-muted: #5C6672;  /* kontrast 6.02 — ikincil metin */
    --color-border: #E3E9EB;
    
    /* Tipografi Standartları (Sadece Outfit) */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Border Radius Standartları */
    --radius-default: 12px;
    --radius-btn: 8px;
    /* Düğmeler her yerde aynı yuvarlaklıkta; form alanları 8px kalır. */
    --radius-pill: 50px;
    
    /* Derinlik (Soft Gölgeler ve Glow Efektleri) */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px var(--color-primary-glow);
    
    /* Etkileşim Süreleri */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kapsamlı CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light-gray); /* Sayfa geneli premium açık gri */
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
    font-weight: 400;
}

/* Tipografi Hiyerarşisi (Responsive Scaling) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-dark);
}
h1 { font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -1px; margin-bottom: 20px;}
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); letter-spacing: -0.5px; margin-bottom: 20px;}
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 15px;}
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); margin-bottom: 10px;}
p { font-size: 16px !important; line-height: 1.8; color: var(--color-text); margin-bottom: 20px;}

@media(max-width: 768px) {
    h1, .hero-title { font-size: 2rem !important; margin-bottom: 15px; line-height: 1.2; }
    h2, .section-header h2, .h-about-title, .why-us-text h2 { font-size: 1.6rem !important; margin-bottom: 15px; line-height: 1.3; }
    h3 { font-size: 1.3rem !important; margin-bottom: 10px; }
    h4 { font-size: 1.1rem !important; margin-bottom: 10px; }
    p { font-size: 14px !important; line-height: 1.6; margin-bottom: 15px; }
    
    /* --- SİTENİN TÜM ALANLARINI MOBİLDE ORTALA --- */
    body, h1, h2, h3, h4, h5, h6, p, ul, li, a, span, div, section {
        text-align: center !important;
    }
    
    .btn-primary, .btn-outline-primary {
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
    }
    
    .service-icon, .s-feat-box i, .s-feat-box svg, .port-icon, .icon-circle {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-buttons, .why-us-stats-boxes, .social-links, .contact-info li {
        justify-content: center !important;
    }
    
    .form-group label {
        text-align: center !important;
        width: 100%;
        display: block;
    }
}

a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-default); }

/* Başlık giriş animasyonunun başlangıç durumu.
   Yalnızca JS çalışırken uygulanır; GSAP öğeleri görünür hâle getirir. */
html.js-giris .header-logo,
html.js-giris .nav-links > li { opacity: 0; }

/* Section Utilities */
.section-padding { padding: 80px 0; }
@media (max-width: 768px) { .section-padding { padding: 50px 0; } }

/* Dinamik Arka Plan Baloncukları */
.bg-bubble {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Global Container */
.container { 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative; 
    z-index: 2; 
}

/* Global Buton (Hap Formlu Premium Buton) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--color-primary-deep);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 8px 8px 25px;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    border: none;
}
.btn-primary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.btn-primary i, .btn-primary svg, .btn-primary .icon-circle {
    background-color: var(--color-white);
    color: var(--color-primary);
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px; /* For SVGs directly taking width/height */
}
.btn-primary:hover i, .btn-primary:hover svg, .btn-primary:hover .icon-circle {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Sadece sağ ok ikonları için çapraz başlangıç ve düz hover animasyonu */
.btn-primary svg.lucide-arrow-right,
.btn-outline-primary svg.lucide-arrow-right {
    transform: rotate(-45deg);
}
.btn-primary:hover svg.lucide-arrow-right,
.btn-outline-primary:hover svg.lucide-arrow-right {
    transform: rotate(0deg);
}

/* Puslu Sarı (Hazy Yellow) Sayfa Üst Bilgisi (Page Header) - İç Sayfalar */
.page-header {
    padding: 160px 0 50px;
    /* Masaüstünde başlık 90px + 40px üst şerit yükseklikte;
       @media (min-width: 993px) kuralı bu boşluğu büyütür. */
    background: linear-gradient(135deg, #F5FBFB 0%, #E6F5F6 100%);
    text-align: center;
    border-bottom: 1px solid rgba(22, 143, 152, 0.2);
}
.page-header .page-title {
    color: var(--color-dark) !important;
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.page-header .page-title span { color: var(--color-primary) !important; text-shadow: none !important; }
.page-header p {
    color: #444 !important;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb Stilleri */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(22, 143, 152, 0.3);
}
.breadcrumb a {
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 5px;
}
.breadcrumb a:hover {
    color: var(--color-primary-hover);
}

/* Sayfa İçi (İç Sayfalar) Sidebar Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}
/* Yan sütun içerik boyunca ekranda kalır; uzun sayfalarda teklif
   kutusu gözden kaybolmasın diye. Üst boşluk sabit başlığın altına
   denk gelir. */
@media(min-width: 1101px) {
    .page-sidebar { position: sticky; top: 150px; }
}
@media(max-width: 1100px) {
    .page-layout { grid-template-columns: 1fr; gap: 40px; }
}

.breadcrumb .separator {
    color: #999;
    font-size: 0.8rem;
}
.breadcrumb .current {
    color: var(--color-primary-hover);
    font-weight: 700;
}

/* Sabit WhatsApp İkonu */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* Lightbox Modal Styles */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}
.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}
.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-default);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: block;
}
.lightbox-close {
    position: absolute;
    top: -45px;
    right: -45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lightbox-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    .lightbox-close { top: -45px; right: 0; }
}

/* ==========================================================
   FORM ELEMANLARI (Global)
   Teklif ve İnsan Kaynakları formları bu stilleri paylaşır.
   ========================================================== */
.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 60px 80px;
    border: 1px solid #eee;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-soft);
}
@media(max-width: 768px) {
    .form-wrapper { padding: 40px 20px; }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-row.cols-1 { grid-template-columns: 1fr; }
@media(max-width: 768px) {
    .form-row, .form-row.cols-3 { grid-template-columns: 1fr; gap: 20px; }
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}
.form-control, .form-select {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-dark);
    background: #fff;
    transition: var(--transition-smooth);
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 143, 152, 0.2);
}
textarea.form-control { resize: vertical; min-height: 150px; }

.btn-submit {
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    padding: 20px 40px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.btn-submit:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Dosya Yükleme Alanı */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    border: 2px dashed #ccc;
    border-radius: var(--radius-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 10px;
}
.file-upload-wrapper:hover { border-color: var(--color-primary); background: #fff; }
.file-upload-wrapper input[type="file"] {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.file-upload-wrapper span { color: #666; font-weight: 500; font-size: 0.95rem; pointer-events: none; }
.file-upload-wrapper i, .file-upload-wrapper svg { margin-right: 10px; color: var(--color-primary); font-size: 1.2rem; width: 20px; height: 20px; pointer-events: none; }

/* Form Bildirim Kutuları */
.form-alert {
    padding: 18px 20px;
    border-radius: var(--radius-btn);
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.6;
}
.form-alert.success { background: #E6F5F6; color: #0B5A61; border: 1px solid #A9DDE1; }
.form-alert.error { background: #FDECEC; color: #A32626; border: 1px solid #F5C2C2; }
.form-alert ul { margin: 10px 0 0 20px; font-weight: 500; }

/* KVKK Onay Satırı */
.form-consent {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-consent input[type="checkbox"] {
    width: 20px; height: 20px; margin-top: 2px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}
.form-consent label { font-weight: 400; color: #555; font-size: 0.9rem; margin: 0; }
.form-consent a { color: var(--color-primary-hover); text-decoration: underline; }

/* ==========================================================
   ERİŞİLEBİLİRLİK VE ORTAK BİLEŞENLER  (v2)
   ========================================================== */

/* Klavye kullanıcıları için "içeriğe geç" bağlantısı */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 14px 22px;
    border-radius: 0 0 var(--radius-btn) 0;
    font-weight: 700;
}
.skip-link:focus {
    left: 0;
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Odak halkası — klavyeyle gezinirken her zaman görünür */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Hareket azaltma tercihini onurlandır */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Yalnızca ekran okuyucular için */
.gorsel-gizli {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- İkincil düğme --- */
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
    font-weight: 700;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.btn-outline-dark:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* --- Dil değiştirici --- */
/* Dil seçici — üst şeritte, koyu zemin üzerinde durur. */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    padding: 2px;
}

.lang-switch a,
.lang-switch .lang-current {
    display: block;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}
.lang-switch .lang-current {
    background: var(--color-primary-deep);
    color: var(--color-white);
}
.lang-switch a { color: rgba(255, 255, 255, 0.75); }
.lang-switch a:hover,
.lang-switch a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
}

.mobile-lang-link {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: var(--color-dark);
}

@media (max-width: 992px) {
    .lang-switch { display: none; }
    .mobile-lang-link { display: flex; }
}

/* --- Footer teklif bağlantısı --- */
.footer-cta-link { color: var(--color-primary-light) !important; font-weight: 700; }

/* --- Dokunmatik cihazlarda proje etiketleri --- */
/* Fare olmayan cihazlarda :hover hiç tetiklenmez; bu yüzden proje
   kartlarındaki firma ve fuar bilgisi kalıcı olarak görünür kalmalı.
   İki koşul birlikte kullanılır: dokunmatik cihaz VEYA dar ekran —
   böylece hover bildirimi yanlış olan cihazlarda da etiket kaybolmaz. */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .pf-overlay,
    .s-gal-info,
    .port-overlay { opacity: 1 !important; }
    .pf-zoom { opacity: 1 !important; transform: scale(1) !important; }

    /* Kalıcı görünen katmanda yazı, görselin üstünde her zaman okunsun */
    .pf-overlay,
    .s-gal-info {
        background: linear-gradient(to top, rgba(22,25,30,0.95) 0%, rgba(22,25,30,0.55) 45%, rgba(22,25,30,0.08) 80%);
    }
}

/* --- Adres blokları --- */
/* Adres satırları sözcük ortasından bölünmesin; tarayıcı destekliyorsa
   son satırda tek sözcük kalmasını da (dul satır) engelle. */
.adres-metni {
    text-wrap: pretty;
    hyphens: none;
    overflow-wrap: break-word;
}


/* ==========================================================
   ÜST ŞERİTLİ BAŞLIK İÇİN SAYFA BOŞLUĞU
   Masaüstünde başlık 130px (40px şerit + 90px menü) yer kaplar.
   ========================================================== */
@media (min-width: 993px) {
    .page-header { padding-top: 200px; }
}

/* ==========================================================
   MOBİL SABİT ALT ÇUBUK
   Ara / Teklif / WhatsApp / Takvim — dört temel eylem
   parmak menzilinde durur. Masaüstünde gizlidir; oradaki
   karşılığı sağ alttaki WhatsApp düğmesidir.
   ========================================================== */
.mobil-alt-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.10);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mab-oge {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 62px;
    padding: 8px 4px;
    color: var(--color-text);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.2px;
    border-right: 1px solid var(--color-border);
}
.mab-oge:last-child { border-right: none; }
.mab-oge i,
.mab-oge svg {
    width: 21px;
    height: 21px;
    font-size: 20px;
    color: var(--color-primary-hover);
}
.mab-oge:active { background: var(--color-heaven); }

/* Teklif düğmesi vurgulu */
.mab-vurgu { background: var(--color-primary-deep); color: var(--color-white); }
.mab-vurgu i,
.mab-vurgu svg { color: var(--color-white); }
.mab-vurgu:active { background: var(--color-primary-hover); }

.mab-whatsapp i, .mab-whatsapp svg { color: #1EA855; }

@media (max-width: 992px) {
    .mobil-alt-bar { display: flex; }
    /* Sağ alttaki yüzen WhatsApp düğmesi mobilde kaldırıldı;
       yerini alt çubuktaki WhatsApp öğesi aldı. */
    .whatsapp-float { display: none !important; }
    /* Alt çubuk sayfa sonundaki içeriği örtmesin */
    body { padding-bottom: 62px; }
}
