/* --- GENEL AYARLAR --- */
        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #171717;
            color: #EDEDED;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* --- NAVBAR --- */
        .navbar {
            background-color: #0e0e0e;
            height: 70px;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            /* justify-content: space-between; KARTILDI - Yeni yapı kullanıyoruz */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            box-sizing: border-box;
            border-bottom: 2px solid #DA0037;
        }

        /* Navbar 3'lü Yapı (Sol - Orta - Sağ) */
        .nav-left { flex: 1; display: flex; justify-content: flex-start; }
        .nav-center { flex: 2; display: flex; justify-content: center; }
        .nav-right { flex: 1; display: flex; justify-content: flex-end; } /* Hamburger için */

        /* Logo Kısmı */
        .logo {
            text-decoration: none;
            color: #EDEDED;
            font-size: 1.5rem;
            font-weight: bold;
            transition: color 0.3s;
            white-space: nowrap;
        }

        .logo span { color: #DA0037; }
        .logo:hover { color: #ffffff; }

        /* Menü Linkleri (Masaüstü) */
        .nav-menu {
            list-style: none;
            display: flex;
            gap: 25px;
            margin: 0;
            padding: 0;
            align-items: center;
        }

        .nav-link {
            text-decoration: none;
            color: #EDEDED;
            font-size: 1rem;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
            padding: 10px 0; /* Dropdown için alan */
            display: flex;
            align-items: center;
            gap: 5px;
        }

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

        /* AÇILIR MENÜ (DROPDOWN) STİLLERİ */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #444444;
            min-width: 160px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.5);
            z-index: 1;
            top: 100%;
            left: 50%;
            transform: translateX(-50%); /* Ortala */
            border-top: 2px solid #DA0037;
            border-radius: 0 0 5px 5px;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .dropdown-content a {
            color: #EDEDED;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            transition: 0.3s;
            text-align: left;
        }

        .dropdown-content a:hover {
            background-color: #DA0037;
            color: #ffffff;
        }

        /* --- HAMBURGER MENU (Mobil) --- */
        .hamburger {
            display: none;
            cursor: pointer;
        }
        
        .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            transition: all 0.3s ease-in-out;
            background-color: #EDEDED;
        }

        /* --- ANA BÖLÜMLER --- */
        section {
            padding: 100px 20px;
            min-height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        h2 {
            font-size: 2.5rem;
            margin-bottom: 40px;
            color: #DA0037;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        /* HERO ALANI */
        /* HERO ALANI (Giriş) - ÜST ve ALT OPAK GEÇİŞLİ */
#home {
    /* Mantık Şöyle:
       1. %0 (En Üst): Tamamen koyu (#171717 rengi) başlar, yazı net okunur.
       2. %50 (Orta): Renk şeffaflaşır (0.2), resim net görünür.
       3. %100 (En Alt): Tekrar tamamen koyulaşır, alt kısımla çizgi oluşmadan birleşir.
    */
    background: linear-gradient(to bottom, 
        rgba(23, 23, 23, 1) 5%,      /* En Üst: Tam Koyu */
        rgba(23, 23, 23, 0.4) 75%,    /* Üstten biraz aşağı inince hafif açıl */
        rgba(23, 23, 23, 0.4) 75%,    /* Alta doğru hala resim görünsün */
        rgba(23, 23, 23, 1) 100%      /* En Alt: Tekrar Tam Koyu (Yumuşak bitiş) */
    ), 
    url('imagess/bulut.jpg') no-repeat center center/cover;
    
    height: 100vh;
    position: relative;
}

        .hero-text h1 { font-size: 3.5rem; margin: 0; }

        .btn-main {
            display: inline-block;
            margin-top: 20px;
            padding: 12px 30px;
            background-color: #DA0037;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background 0.3s;
        }
        .btn-main:hover { background-color: #b3002d; }

        /* KARTLAR GENEL */
        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 1000px;
        }

        .card {
            background-color: #444444;
            padding: 20px;
            border-radius: 8px;
            transition: transform 0.3s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        }
        .card:hover { transform: translateY(-5px); border-bottom: 3px solid #DA0037; }

        /* GALERİ FOTOĞRAFLARI */
        .gallery-item {
            height: 200px;
            border-radius: 8px;
            overflow: hidden; /* Taşmaları gizle */
            border: 2px solid #171717;
            transition: 0.3s;
            cursor: pointer; /* Tıklanabilir imleç */
        }
        
        .gallery-item:hover {
            border-color: #DA0037;
        }

        .gallery-img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Resmi kutuya doldur, bozmadan */
            transition: transform 0.5s ease;
        }

        .gallery-item:hover .gallery-img {
            transform: scale(1.1); /* Hoverda hafif büyütme efekti */
        }

        /* --- LIGHTBOX (RESİM BÜYÜTME MODALI) --- */
        .lightbox {
            display: none; /* Başlangıçta gizli */
            position: fixed;
            z-index: 2000; /* Navbardan üstte */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9); /* Koyu yarı saydam arka plan */
            justify-content: center;
            align-items: center;
            padding: 20px;
            box-sizing: border-box;
        }

        .lightbox-content {
            max-width: 90%;
            max-height: 90%;
            border-radius: 5px;
            box-shadow: 0 0 20px rgba(218, 0, 55, 0.5);
            border: 2px solid #DA0037;
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #EDEDED;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.3s;
            z-index: 2001;
        }

        .close-btn:hover { color: #DA0037; }

        /* LİNKLER BÖLÜMÜ */
        .link-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: 100%;
            max-width: 400px;
        }

        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
            background-color: #444444;
            color: #EDEDED;
            text-decoration: none;
            border-radius: 50px;
            font-size: 1.1rem;
            transition: 0.3s;
            border: 1px solid transparent;
        }
        .social-btn:hover { background-color: #DA0037; border-color: #DA0037; color: #fff; }
        .social-btn i { margin-right: 10px; }

        /* FOOTER */
        footer {
            background-color: #0f0f0f;
            padding: 20px;
            text-align: center;
            border-top: 1px solid #333;
            font-size: 0.9rem;
            color: #888;
        }

              /* --- MOBİL UYUMLULUK (Responsive) --- */
        @media (max-width: 900px) {
            .hamburger { display: block; }
            .nav-center { display: none; } /* Mobilde orta kısmı gizle */
            .nav-right { justify-content: flex-end; }
            
            /* Mobil Menü (Sidebar Görünümü) */
            .nav-center {
                position: fixed;
                top: 70px;
                right: -100%;
                background-color: #171717;
                width: 100%;
                height: calc(100vh - 70px);
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding-top: 30px;
                transition: 0.3s;
                border-top: 1px solid #DA0037;
                display: flex; /* Flex yapısını koru ama gizli başla */
                visibility: hidden; /* Görünmez yap */
            }

            .nav-center.active {
                right: 0;
                visibility: visible; /* Görünür yap */
            }

            .nav-menu {
                flex-direction: column;
                width: 100%;
                gap: 0;
            }

            .nav-link {
                font-size: 1.3rem;
                padding: 15px;
                width: 100%;
                justify-content: center;
            }
            
            /* Mobilde Dropdown Ayarları */
            .dropdown-content {
                position: static; /* Mobilde aşağı itsin */
                transform: none;
                background-color: #222;
                width: 100%;
                text-align: center;
                border-top: none;
                display: none; /* Mobilde hover zor olduğu için başta gizli */
            }

            .dropdown:hover .dropdown-content {
                display: block; /* Mobilde de üzerine basılı tutunca açılsın */
            }

            .dropdown-content a {
                padding: 15px;
                font-size: 1.1rem;
            }

            h2 { font-size: 2rem; }
            .hero-text h1 { font-size: 2.5rem; }
            /* --- AÇILIR KAPANIR KART (ACCORDION) STİLLERİ --- */
.accordion-card {
    cursor: pointer; /* Tıklanabilir olduğunu göster */
    padding: 0;      /* İç boşluğu sıfırla, header ve body yönetecek */
    overflow: hidden; /* Kapalıyken taşan kısımları gizle */
}

.card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between; /* Yazı solda, ok sağda */
    align-items: center;
}

.header-text h3 { margin: 0; font-size: 1.2rem; }
.sub-text { margin: 5px 0 0; color: #aaa; font-size: 0.9rem; }

.icon {
    transition: transform 0.3s ease; /* Ok işaretinin dönme efekti */
}

/* Detay kısmı başlangıçta gizli */
.card-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Yanlardan boşluk */
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #3a3a3a; /* Detay kısmı biraz daha koyu/açık olsun */
}

/* Kart "active" sınıfını alınca (Tıklanınca) */
.accordion-card.active .card-body {
    max-height: 300px; /* Yeterince büyük bir değer verin */
    padding: 20px;     /* İçerik açılınca boşluk ver */
    border-top: 1px solid #555;
}

.accordion-card.active .icon {
    transform: rotate(180deg); /* Oku ters çevir */
    color: #DA0037; /* Ok rengini kırmızı yap */
}
        }
        /* --- ARAMA KUTUSU STİLLERİ (GÜNCEL) --- */

/* Kapsayıcı */
.search-container {
    display: flex;
    align-items: center;
}

/* Kutu Rengi: BEYAZ */
.search-input {
    padding: 8px 5px;
    font-size: 14px;
    border: none;
    outline: none;
    border-radius: 5px 0 0 5px;
    
    background-color: white; /* Kutunun içi beyaz */
    color: black;            /* Yazılan yazı siyah */
    
    width: 85px; 
    transition: width 0.3s;
}

/* Mobilde kutu boyutu ayarı */
@media (max-width: 400px) {
    .search-input { width: 100px; }
}

/* Buton Rengi: KIRMIZI */
.search-btn {
    padding: 5px 10px;
    
    background-color: #DA0037; /* Kırmızı renk */
    color: white;              /* İkon rengi beyaz */
    
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

/* Butonun üzerine gelince koyulaşsın */
.search-btn:hover {
    background-color: #620019;
}
        /* --- MOBİL UYUMLULUK (Responsive) --- */
        @media (max-width: 900px) {
            .hamburger { display: block; }
            .nav-center { display: none; } /* Mobilde orta kısmı gizle */
            .nav-right { justify-content: flex-end; }
            
            /* Mobil Menü (Sidebar Görünümü) */
            .nav-center {
                position: fixed;
                top: 70px;
                right: -100%;
                background-color: #171717;
                width: 100%;
                height: calc(100vh - 70px);
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding-top: 30px;
                transition: 0.3s;
                border-top: 1px solid #DA0037;
                display: flex; /* Flex yapısını koru ama gizli başla */
                visibility: hidden; /* Görünmez yap */
            }

            .nav-center.active {
                right: 0;
                visibility: visible; /* Görünür yap */
            }

            .nav-menu {
                flex-direction: column;
                width: 100%;
                gap: 0;
            }

            .nav-link {
                font-size: 1.3rem;
                padding: 15px;
                width: 100%;
                justify-content: center;
            }
            
            /* Mobilde Dropdown Ayarları */
            .dropdown-content {
                position: static; /* Mobilde aşağı itsin */
                transform: none;
                background-color: #222;
                width: 100%;
                text-align: center;
                border-top: none;
                display: none; /* Mobilde hover zor olduğu için başta gizli */
            }

            .dropdown:hover .dropdown-content {
                display: block; /* Mobilde de üzerine basılı tutunca açılsın */
            }

            .dropdown-content a {
                padding: 15px;
                font-size: 1.1rem;
            }

            h2 { font-size: 2rem; }
            .hero-text h1 { font-size: 2.5rem; }
            /* --- AÇILIR KAPANIR KART (ACCORDION) STİLLERİ --- */
.accordion-card {
    cursor: pointer; /* Tıklanabilir olduğunu göster */
    padding: 0;      /* İç boşluğu sıfırla, header ve body yönetecek */
    overflow: hidden; /* Kapalıyken taşan kısımları gizle */
}

.card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between; /* Yazı solda, ok sağda */
    align-items: center;
}

.header-text h3 { margin: 0; font-size: 1.2rem; }
.sub-text { margin: 5px 0 0; color: #aaa; font-size: 0.9rem; }

.icon {
    transition: transform 0.3s ease; /* Ok işaretinin dönme efekti */
}

/* Detay kısmı başlangıçta gizli */
.card-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Yanlardan boşluk */
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #3a3a3a; /* Detay kısmı biraz daha koyu/açık olsun */
}

/* Kart "active" sınıfını alınca (Tıklanınca) */
.accordion-card.active .card-body {
    max-height: 300px; /* Yeterince büyük bir değer verin */
    padding: 20px;     /* İçerik açılınca boşluk ver */
    border-top: 1px solid #555;
}

.accordion-card.active .icon {
    transform: rotate(180deg); /* Oku ters çevir */
    color: #DA0037; /* Ok rengini kırmızı yap */
}
        }
         /* Logo Genel Tasarımı */
.logo {
    font-family: 'Poppins', sans-serif; /* Fontun */
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    display: inline-block; /* Animasyonun çalışması için gerekli */
    overflow: hidden;      /* Taşmaları gizler (Yazı yazıldıkça açılır) */
    white-space: nowrap;   /* Yazının alt satıra inmesini engeller */
    border-right: 3px solid #e74c3c; /* Yanıp sönen imleç (Cursor) */
    width: 0;              /* Başlangıçta görünmez */
    
    /* ANİMASYON TANIMLAMASI */
    /* typing: yazma efekti, blink: imleç yanıp sönmesi */
    animation: 
        typing 5s steps(30) infinite alternate, 
        blink .75s step-end infinite;
}

/* Span (Soyad) Rengi */
.logo span {
    color: #e74c3c;
}

/* --- ANİMASYON KEYFRAMES (Hareket Kodları) --- */

@keyframes typing {
    /* 0% - 40% arası: YAZMA (2 saniye sürer) */
    0% { 
        width: 0; 
    }
    40% { 
        width: 180px; /* Genişliği kendi ayarına göre düzeltmeyi unutma! */
    }
    
    /* 40% - 70% arası: BEKLEME (1.5 saniye bekler) */
    70% { 
        width: 180px; /* Yazılı halde bekler */
    }
    
    /* 70% - 100% arası: SİLME (1.5 saniye sürer - Yavaşça siler) */
    100% { 
        width: 0; /* Başa döner */
    }
}

/* İmleç Yanıp Sönme Hareketi */
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #e74c3c }
}