/* =========================================
           1. DEĞİŞKENLER VE TEMA AYARLARI
           ========================================= */
        :root {
            /* Renk Paleti */
            --primary-color: #0066ff;
            --kirmizi:#D32F2F;
            --text-heading: #222222;
            --text-main: #444444;
            --text-nav: #555555;
            
            /* Arka Planlar (Light Mode) */
            --bg-body: #ffffff;
            --bg-navbar: #ffffff;
            --bg-section-white: #ffffff;
            --bg-section-alt: #FFFDE7;
            --bg-references: #f8f9fa;
            
            /* --- REFERANSLAR BÖLÜMÜ RENKLERİ --- */
            --bg-references: #f8f9fa;
            --logo-bg: transparent;
            --logo-shadow: rgba(0,0,0,0.5);
            --about-title:#0a2e8c;
            
            
            /* Footer (Her zaman koyu) */
            --bg-footer: #212529; 
            --bg-footer-bottom: #1a1e21;
            --text-footer-heading: #ffffff;
            --text-footer-body: #b0b3b8;
            
            /* Diğer */
            --border-color: #faeab3;
            --shadow-color: rgba(0,0,0,0.6);
            --toggle-btn-color: #333;
            
            /* Özel Metin Renkleri */
            --marka-baslik: #000000;
        }

        /* Dark Mode Ayarları */
        [data-theme="dark"] {
            --primary-color: #0066ff;
            --kirmizi:#ff5252;
            --text-heading: #ffffff;
            --text-main: #d0d0d0;
            --text-nav: #e0e0e0;

            --bg-body: #121212;
            --bg-navbar: #1e1e1e;
            --bg-section-white: #121212;
            --bg-section-alt: #1e1e1e;
            --bg-references: #0f0f0f;
            
            --bg-footer: #0f0f0f;
            --bg-footer-bottom: #000000;
            --text-footer-heading: #ffffff;
            --text-footer-body: #a0a0a0;

            --border-color: #333;
            --shadow-color: rgba(0,0,0,0.5);
            --toggle-btn-color: #fff;
            --logo-bg: #ffffff; 
            
            --marka-baslik: #cccccc;
        }

        /* =========================================
           2. GENEL STİLLER
           ========================================= */
        body {
            font-family: 'Open Sans', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            transition: background-color 0.3s, color 0.3s;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .section-padding { padding: 80px 0; }
        
        .section-title {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: var(--kirmizi);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 40px;
            position: relative;
            display: inline-block;
        }
        .section-title::after {
            content: '';
            position: absolute;
            width: 50%;
            height: 3px;
            background-color: var(--kirmizi);
            bottom: -10px;
            left: 0;
        }

        /* =========================================
           3. NAVBAR & BUTTONS
           ========================================= */
        .navbar {
            background-color: var(--bg-navbar);
            padding: 15px 0;
            transition: background-color 0.3s;
        }
        .navbar.scrolled{
            box-shadow: 0 2px 10px var(--shadow-color);
        }
        .navbar-brand {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            color: var(--text-heading);
            font-size: 1.5rem;
            letter-spacing: -0.5px;
        }
        .navbar-brand img{
            width:200px;
        }
        .nav-link {
            font-family: 'Montserrat', sans-serif;
            color: var(--text-nav) !important;
            font-weight: 600;
            font-size: 0.95rem;
            margin: 0 8px;
            transition: color 0.3s;
            padding-bottom: 5px; /* Çizgi ile yazı arası boşluk */
            position: relative; /* Çizgi için referans noktası */
        }
        /* Önceki temalardan kalan 'hayalet' yazıları temizle */
        .nav-link::before {
            content: none !important;
            display: none !important;
        }
        
        /* Alt Çizgiyi Oluştur (Başlangıçta gizli) */
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;           /* Başlangıçta 0 genişlik */
            height: 2px;        /* Çizgi kalınlığı */
            bottom: 0;          /* En alta yapışık */
            left: 50%;          /* Ortadan başla */
            background-color: var(--kirmizi); /* Çizgi rengi */
            transition: width 0.3s ease-in-out; /* Açılma efekti */
            transform: translateX(-50%); /* Ortalamayı dengele */
        }
        
        /* Mouse ile üzerine gelince (Hover) VE Aktif Sayfada (Active) Çizgiyi Aç */
        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
        }
        
        .nav-link:hover { color: var(--kirmizi) !important; }
        
        .btn-lang {
            background-color: var(--kirmizi);
            color: white;
            border-radius: 4px;
            padding: 5px 15px;
            font-weight: bold;
            border: none;
        }

        .theme-toggle-btn {
            background: none;
            border: 2px solid var(--toggle-btn-color);
            color: var(--toggle-btn-color);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-left: 10px;
        }
        .theme-toggle-btn:hover {
            background-color: var(--toggle-btn-color);
            color: var(--bg-navbar);
        }
        
        .navbar-toggler { border-color: var(--text-nav); }
        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(128, 128, 128, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        }
        [data-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

        /* =========================================
           4. HERO SECTION
           ========================================= */
        .hero-section {
            position: relative;
            background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            min-height: 90vh;
            display: flex;
            align-items: center;
        }
        .hero-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%);
        }
        .hero-content {
            position: relative;
            z-index: 2;
            color: white;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-left: 5px solid var(--kirmizi);
            border-radius: 0 10px 10px 0;
        }

        /* =========================================
           5. MARKALAR BÖLÜMÜ
           ========================================= */
        .brand-section { background-color: var(--bg-body); }
        .brand-row { display: flex; align-items: center; padding: 60px 0; transition: background-color 0.3s; }
        
        .bg-white-custom { background-color: var(--bg-section-white); }
        .bg-yellow-custom { 
            background-color: var(--bg-section-alt); 
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .brand-img-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 15px 30px var(--shadow-color);
            height: 350px;
        }
        .brand-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .brand-row:hover .brand-img-wrapper img { transform: scale(1.05); }

        .brand-content { padding: 20px 40px; }
        .brand-title {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--text-heading);
        }
        .text-marka { color: var(--marka-baslik); }
        .brand-text { line-height: 1.8; color: var(--text-main); font-size: 1rem; margin-bottom: 25px; }

        .btn-visit {
            border: 2px solid var(--text-heading);
            color: var(--text-heading);
            font-weight: 600;
            padding: 10px 30px;
            transition: all 0.3s;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1px;
        }
        .btn-visit:hover {
            background-color: var(--text-heading);
            color: var(--bg-body);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px var(--shadow-color);
        }

        /* =========================================
           6. REFERANSLAR (SLIDER)
           ========================================= */
        .references-section {
            background-color: var(--bg-references);
            padding: 60px 0;
            transition: background-color 0.4s ease;
            overflow: hidden;
        }
        .slider-reference {
            height: 180px;
            margin: auto;
            position: relative;
            width: 100%;
            display: grid;
            place-items: center;
        }
        .slider-reference::before, .slider-reference::after {
            background: linear-gradient(to right, var(--bg-references) 0%, rgba(255,255,255,0) 100%);
            content: "";
            height: 100%;
            position: absolute;
            width: 150px;
            z-index: 2;
        }
        .slider-reference::after { right: 0; top: 0; transform: rotate(180deg); }
        .slider-reference::before { left: 0; top: 0; }

        .slide-track {
            display: flex;
            width: calc(200px * 18);
            animation: scroll 28s linear infinite;
        }
        .slide-track:hover { animation-play-state: paused; }

.slide-reference {
    height: 200px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.slide-reference img {
    width: 150px;
    height: 100%;
    object-fit: contain;
    max-height: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--logo-bg) !important;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 6px var(--logo-shadow);
}
.slide-reference img:hover { 
    transform: scale(1.05); 
    box-shadow: 0 8px 12px var(--logo-shadow);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 9)); }
}
@media (max-width: 768px) {
    .slider-reference::before, .slider-reference::after { width: 50px; }
}

/* =================ABOUT BAŞLANGIÇ==================*/
/* --- STORY SECTION --- */
.story-section { padding: 80px 0; margin: 28px 0;}
.story-img {
    border-radius: 12px;
    box-shadow: 0 15px 30px var(--shadow-color);
    position: relative;
    overflow: hidden;
}
.story-img img { width: 100%; transition: transform 0.5s; }
.story-img:hover img { transform: scale(1.03); }
.story-year {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--kirmizi);
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: 800;
    border-top-left-radius: 12px;
}
.story-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}
.story-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;             
    width: 50%;
    height: 3px;
    background-color: var(--kirmizi);
}
/* --- STATS SECTION --- */
.stats-section {
    background-color: var(--bg-gray);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stat-item { text-align: center; padding: 20px; }
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--kirmizi);
    font-family: 'Montserrat', sans-serif;
    display: block;
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* --- MISSION CARDS --- */
.mission-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px var(--shadow-color);
    text-align: center;
    height: 100%;
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}
.mission-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--kirmizi);
}
.mission-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--kirmizi);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: all 0.3s;
}
.mission-card:hover .mission-icon {
    background-color: var(--kirmizi);
    color: rgb(255, 255, 255);
}
.mission-title {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* =================ABOUT BİTİŞ==================*/
/* =================CONTACT BAŞLANGIÇ==================*/

/* --- İLETİŞİM KARTLARI --- */
        .contact-card {
            background-color: var(--contact-card-bg);
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 10px 30px var(--shadow-color);
            margin-bottom: 30px;
            border-left: 5px solid var(--kirmizi);
            transition: transform 0.3s;
        }
        .contact-card:hover {
            transform: translateY(-5px);
        }
        .contact-card h3 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: var(--text-heading);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }
        .contact-card h3 i { margin-right: 10px; color: var(--kirmizi); }
        
        .contact-item {
            display: flex;
            margin-bottom: 15px;
            color: var(--text-main);
        }
        .contact-item i {
            color: var(--kirmizi);
            width: 25px;
            margin-top: 5px;
            flex-shrink: 0;
        }
        .contact-item a {
            color: var(--text-main);
            text-decoration: none;
            transition: color 0.3s;
        }
        .contact-item a:hover { color: var(--kirmizi); }
        /* --- İLETİŞİM FORMU --- */
        .form-container {
            background-color: var(--contact-card-bg);
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 10px 30px var(--shadow-color);
        }
        .form-label {
            font-weight: 600;
            color: var(--text-heading);
            margin-bottom: 8px;
        }
        .form-control {
            background-color: var(--input-bg);
            border: 1px solid var(--input-border);
            color: var(--input-text);
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            transition: all 0.3s;
        }
        .form-control:focus {
            background-color: var(--bg-body);
            border-color: var(--kirmizi);
            box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
            color: var(--input-text);
        }
        [data-theme="dark"] .form-control::placeholder { color: #6c757d; }

        .btn-submit {
            background-color: var(--kirmizi);
            color: white;
            padding: 12px 30px;
            font-weight: 700;
            text-transform: uppercase;
            border-radius: 8px;
            border: none;
            width: 100%;
            transition: all 0.3s;
        }
        .btn-submit:hover {
            background-color: #b71c1c;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
        }


/* =================CONTACT BİTİŞ==================*/

        /* =========================================
           7. FOOTER
           ========================================= */
        .footer-section {
            background-color: var(--bg-footer);
            color: var(--text-footer-body);
            padding-top: 80px;
            font-size: 0.9rem;
            margin-top: auto;
        }
        .footer-brand h5 {
            color: var(--text-footer-heading);
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }
        .footer-heading {
            color: var(--text-footer-heading);
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            margin-bottom: 25px;
            font-size: 1.1rem;
            position: relative;
            padding-bottom: 10px;
        }
        .footer-heading::after {
            content: '';
            position: absolute;
            left: 0; bottom: 0;             
            width: 25%;
            height: 2px;
            background-color: var(--kirmizi);
        }
        .footer-links ul { list-style: none; padding: 0; }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a {
            color: var(--text-footer-body);
            text-decoration: none;
            transition: color 0.3s, padding-left 0.3s;
        }
        .footer-links a:hover {
            color: var(--kirmizi);
            padding-left: 5px;
        }
        .contact-info-item { display: flex; margin-bottom: 15px; align-items: flex-start; }
        .contact-info-item i {
            color: var(--kirmizi);
            margin-right: 15px; margin-top: 5px; width: 20px;
        }
        .social-icons a {
            display: inline-flex; align-items: center; justify-content: center;
            width: 35px; height: 35px;
            background-color: rgba(255,255,255,0.1);
            color: white;
            border-radius: 50%;
            margin-right: 10px;
            transition: all 0.3s;
            text-decoration: none;
        }
        .social-icons a:hover {
            background-color: var(--kirmizi);
            transform: translateY(-3px);
        }
        .btn-footer-contact {
            background-color: var(--kirmizi);
            color: white;
            font-weight: 600;
            padding: 10px 25px;
            border-radius: 30px;
            margin-top: 15px;
            display: inline-block;
            transition: all 0.3s;
        }
        .btn-footer-contact:hover {
            background-color: white;
            color: var(--kirmizi);
        }
        .footer-bottom {
            background-color: var(--bg-footer-bottom);
            padding: 20px 0; margin-top: 60px;
            border-top: 1px solid rgba(255,255,255,0.05);
            font-size: 0.85rem;
        }

        /* =========================================
           8. RESPONSIVE
           ========================================= */
        @media (max-width: 991px) {
            .navbar-brand img{ width:150px;}
            .brand-row { flex-direction: column !important; text-align: center; padding: 40px 0; }
            .brand-content { padding: 30px 15px 0 15px; }
            .section-title::after { left: 25%; }
            .brand-img-wrapper { height: 250px; width: 100%; }
            .hero-content { text-align: center; border-left: none; border-top: 5px solid var(--kirmizi); }
            .slider-reference::before, .slider-reference::after { width: 50px; }
            
            /* Footer Mobil */
            .footer-section { text-align: center; }
            .footer-heading::after { left: 50%; transform: translateX(-50%); }
            .contact-info-item { justify-content: center; }
            .footer-brand, .footer-links, .contact-group { margin-bottom: 40px; }
        }
    