@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root {
    --main-color: #3d4e65;
    --black-color: #163928;
}
/* --- TOP BAR STİLİ --- */
.top-bar {
    background-color: var(--main-color); /* Ana renk (Lacivert/Gri) */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 7%; /* Header ile aynı hizada olsun */
    font-size: 1.4rem;
    position: relative;
    z-index: 1001;
}

.top-bar .contact-info span {
    margin-right: 2rem;
}

.top-bar .contact-info i {
    margin-right: 0.5rem;
    color: #3498db; /* İkon rengi (Açık mavi) */
}

.top-bar .social-icons a {
    color: #fff;
    margin-left: 1.5rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.top-bar .social-icons a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* Mobilde Top Bar'ı gizleyelim (kalabalık yapmasın) */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    /* Header'ı biraz yukarı çekelim */
    .header {
        top: 0; 
        margin-top: 0;
        border-radius: 0; /* Mobilde tam kare olsun */
        width: 100%;
    }
}
* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: 0.2s ease;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

body { background-color: var(--main-color); }
section { padding: 3.5rem 7%; }

.btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: 30rem;
    font-size: 1.5rem;
    color: #fff;
    background-color: var(--black-color);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--black-color);
    color: var(--black-color);
}

/* --- Header --- */
.header {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    margin: 2rem 7%;
    border-radius: 1rem;
    box-shadow: 0px 0px 17px -2px rgba(0, 0, 0, 0.75);
    position: sticky;
    top: 1rem;
    z-index: 1000;
    height: 8rem;
}

.header .logo img { height: 3rem; }

.header .navbar a { 
    margin: 0 1.5rem; 
    font-size: 1.6rem; 
    color: var(--black-color); 
    font-weight: 500; 
}

@media (max-width: 768px) {
   .header {
  position: fixed; /* absolute yerine fixed kullanıyoruz */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* Arka plan şeffaf kalır */
    z-index: 9999; /* En üstte kalması için yüksek bir değer */
}
}
.header .navbar a:hover { color: var(--main-color); }

.header .buttons div { 
    cursor: pointer; 
    font-size: 2.5rem; 
    margin-left: 1.5rem; 
    color: var(--black-color);
}

.header .buttons div:hover { color: var(--main-color); }
.header .buttons #menu-btn { display: none; }

/* --- Arama Çubuğu --- */
.header .search-form {
    position: absolute;
    top: 115%; right: 7%;
    background: #fff;
    width: 50rem; height: 5rem;
    display: flex; align-items: center;
    border-radius: 1rem;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    transform: scaleY(0);
    transform-origin: top;
    padding: 0 1.5rem;
}
.header .search-form.active { transform: scaleY(1); }
.header .search-form input { height: 100%; width: 100%; font-size: 1.6rem; color: var(--black-color); padding: 1rem; text-transform: none; }
.header .search-form label { cursor: pointer; font-size: 2.2rem; margin-right: 1.5rem; color: var(--black-color); }

/* --- Home --- */
.home {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/backround.jpg');
    background-size: cover;
    background-position: center;
    margin-top: -12rem;
    display: flex; align-items: center;
    padding-top: 12rem;
}
.home .content { max-width: 70rem; }
.home .content h3 { font-size: 5rem; color: #fff; text-transform: uppercase; line-height: 1.2; margin-bottom: 2rem; }
.home .content p { font-size: 1.8rem; font-weight: 300; line-height: 1.8; padding: 1rem 0; color: #eee; margin-bottom: 2rem; }

/* --- Genel Başlıklar --- */
.faaliyetlerimiz h2, .hakkimizda h2, .iletisim h2 {
    color: #fff; text-transform: uppercase; font-size: 3.5rem; margin-bottom: 3rem; text-align: center; border-bottom: 2px solid rgba(255,255,255,0.2); display: table;margin: 0 auto 3rem auto;
}

/* --- Faaliyet Alanları --- */
.faaliyetlerimiz { text-align: center; }
.faaliyetlerimiz .box-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.faaliyetlerimiz .box-container .box { padding: 2rem; background-color: #fff; border-radius: 1.5rem; display: flex; flex-direction: column; align-items: center; }
.faaliyetlerimiz .box-container .box img { width: 100%; height: 20rem; object-fit: cover; border-radius: 1rem; margin-bottom: 1.5rem; }
.faaliyetlerimiz .box-container .box h1 { font-size: 2.2rem; color: var(--main-color); }
.faaliyetlerimiz .box-container .box p { font-size: 1.4rem; color: #666; text-align: center; margin-bottom: 1rem;}

/* --- Hakkımızda --- */
.hakkimizda .row { display: flex; flex-wrap: wrap; gap: 4rem; background: rgba(255, 255, 255, 0.05); padding: 4rem; border-radius: 2rem; }
.hakkimizda .row .image, .hakkimizda .row .content { flex: 1 1 40rem; }
.hakkimizda .row .image img { width: 100%; border-radius: 1rem; }
.hakkimizda .row .content h1 { font-size: 2.2rem; color: #fff; margin-bottom: 2rem; }
.hakkimizda .row .content p { font-size: 1.5rem; color: #ddd; line-height: 1.8; text-transform: none; margin-bottom: 1rem;}

/* --- İletişim --- */
.iletisim .container { display: flex; flex-wrap: wrap; gap: 2rem; background-color: #fff; padding: 2rem; border-radius: 1rem; }
.iletisim .info-container { flex: 1 1 30rem; display: flex; flex-direction: column; gap: 2rem; padding: 2rem; background: #f0f2f5; border-radius: 1rem; }
.iletisim .info-box { display: flex; align-items: center; gap: 1.5rem; }
.iletisim .info-box i { font-size: 2.5rem; color: var(--black-color); background: #fff; padding: 1.5rem; border-radius: 50%; }
.iletisim .info-box h3 { font-size: 1.8rem; color: var(--main-color); }
.iletisim .info-box p { font-size: 1.4rem; color: #666; text-transform: none; }
.iletisim .map-container { flex: 1 1 30rem; min-height: 30rem; }
.iletisim .map-container iframe { width: 100%; height: 100%; border-radius: 1rem; border: none;}
.iletisim form { flex: 1 1 35rem; padding: 2rem; text-align: center; }
.iletisim form .inputBox { display: flex; align-items: center; margin: 1.5rem 0; border: 1px solid #ccc; background: #fff; border-radius: 0.5rem; }
.iletisim form .inputBox i { color: var(--main-color); font-size: 1.8rem; padding-left: 1.5rem; }
.iletisim form .inputBox input { width: 100%; padding: 1.5rem; font-size: 1.5rem; }
.iletisim form .btn { background-color: var(--main-color); width: 100%; }

/* --- MODAL (POPUP) TASARIMI --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}
.modal.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-content {
    background-color: #fefefe;
    border-radius: 1.5rem;
    width: 90%; max-width: 60rem;
    position: relative; overflow: hidden;
}
.modal-header img { width: 100%; height: 25rem; object-fit: cover; }
.modal-close {
    position: absolute; top: 1.5rem; right: 2rem;
    color: #fff; font-size: 3rem; font-weight: bold; cursor: pointer;
    background: rgba(0,0,0,0.5); width: 4rem; height: 4rem;
    border-radius: 50%; text-align: center; line-height: 4rem;
}
.modal-close:hover { background: rgba(0,0,0,0.8); color: #ff4d4d; }
.modal-body { padding: 2rem 3rem; }
.modal-body h2 { color: var(--main-color); font-size: 2.5rem; margin-bottom: 1rem; border-bottom: 2px solid #eee; }
.modal-body p { font-size: 1.6rem; line-height: 1.8; color: #555; text-transform: none; }

@keyframes fadeIn { from {opacity: 0; transform: scale(0.9);} to {opacity: 1; transform: scale(1);} }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    html { font-size: 55%; }
    .header { padding: 1.5rem 2rem; }
}
@media (max-width: 768px) {
    .header .buttons #menu-btn { display: inline-block; }
    .header .navbar {
        position: absolute; top: 100%; left: 0; right: 0;
        background-color: #fff;
        border-top: .1rem solid rgba(0,0,0,.1);
        border-bottom: .1rem solid rgba(0,0,0,.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        display: flex; flex-direction: column;
        padding: 1rem; margin: 0; border-radius: 0 0 1rem 1rem;
    }
    .header .navbar.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .header .navbar a { margin: 1.5rem; padding: 1.5rem; background: #f9f9f9; border-left: 0.5rem solid var(--main-color); display: block; font-size: 2rem; }
    .header .search-form { width: 90%; right: 2rem; }
    .home { margin-top: 0; }
    .header { width: 90%; border-radius: 1rem;}
}

/* --- WHATSAPP & YUKARI ÇIK BUTONLARI --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    text-align: center;
    line-height: 6rem;
    font-size: 3.5rem;
    z-index: 1000;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); background-color: #128c7e; }

.to-top-btn {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Başlangıçta gizli (sağda dışarıda) */
    background-color: var(--main-color);
    color: #fff;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    text-align: center;
    line-height: 5rem;
    font-size: 2rem;
    z-index: 1000;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.to-top-btn.active { right: 30px; } /* JS ile ekrana gelecek */
.to-top-btn:hover { background-color: var(--black-color); transform: translateY(-5px); }

/* --- İSTATİSTİKLER --- */
.stats {
    background: var(--main-color);
    text-align: center;
}

.stats .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.stats .box {
    padding: 2rem;
    background: rgba(255,255,255,0.1); /* Hafif şeffaf beyaz */
    border-radius: 1rem;
    color: #fff;
    transition: 0.3s;
}

.stats .box:hover {
    background: #fff;
    transform: scale(1.05);
}

.stats .box:hover i, 
.stats .box:hover h3, 
.stats .box:hover p {
    color: var(--main-color); /* Hover olunca yazılar mavi olsun */
}

.stats .box i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.stats .box h3 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.stats .box p {
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
}

/* --- 1. PRELOADER STİLİ --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 9999; /* Her şeyin üstünde */
    display: flex; align-items: center; justify-content: center;
    transition: 0.5s; /* Kayboluş efekti */
}

.loader {
    width: 50px; height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- 2. SCROLL ANIMASYON STİLİ (GİZLEME) --- */
/* JS ile bu sınıfları ekleyip çıkaracağız */
.reveal {
    opacity: 0;
    transform: translateY(100px); /* Aşağıda başla */
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Yerine gel */
}

/* --- 3. REFERANSLAR (SLIDER) STİLİ --- */
.partners-slider {
    background: #f0f2f5;
    padding: 3rem 0;
    overflow: hidden; /* Taşanları gizle */
    white-space: nowrap;
    position: relative;
}

.slide-track {
    display: flex;
    width: calc(250px * 16); /* Slide sayısı x genişlik */
    animation: scroll 40s linear infinite;
}

.slide {
    width: 250px;
    display: flex; align-items: center; justify-content: center;
}

.slide h3 {
    font-size: 2.5rem;
    color: #ccc; /* Gri renk (profesyonel durur) */
    font-weight: 800;
    text-transform: uppercase;
}

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 8)); } }

/* --- 4. FOOTER STİLİ --- */
.footer { background: #1a1a1a; padding-top: 5rem; } /* Koyu Arkaplan */

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    padding-left: 5rem;
}

.footer .box-container .box h3 {
    color: #fff; font-size: 2.5rem; padding-bottom: 2rem;
}

.footer .box-container .box p {
    color: #aaa; font-size: 1.5rem; padding-bottom: 2rem; line-height: 1.8; text-transform: none;
}

.footer .box-container .box .share a {
    height: 4.5rem; width: 4.5rem;
    line-height: 4.5rem;
    background: #333;
    color: #fff;
    font-size: 2rem;
    margin-right: .5rem;
    border-radius: 50%;
    text-align: center;
    transition: 0.3s;
}

.footer .box-container .box .share a:hover { background: var(--main-color); }

.footer .box-container .box .links {
    display: block;
    font-size: 1.5rem; color: #aaa;
    padding: 1rem 0;
}

.footer .box-container .box .links i { padding-right: .5rem; color: var(--main-color); }
.footer .box-container .box .links:hover { color: #fff; padding-left: 1rem; }

.footer .credit {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 2rem;
    border-top: .1rem solid rgba(255,255,255,.1);
    font-size: 1.8rem; color: #aaa;
}

.footer .credit span { color: var(--main-color); font-weight: 600; }

/* --- MOBİL İÇİN FİLM ŞERİDİ (SLIDER) AYARI --- */
@media (max-width: 768px) {
    
    .faaliyetlerimiz .box-container {
        display: flex; /* Grid yerine Flex kullanıyoruz ki yan yana dizilsinler */
        overflow-x: auto; /* Yatay kaydırmayı aç */
        scroll-snap-type: x mandatory; /* Kaydırınca kutu tam ortada dursun (mıknatıs etkisi) */
        gap: 1.5rem; /* Kutular arası boşluk */
        padding-bottom: 2rem; /* Alt tarafa biraz boşluk */
        -webkit-overflow-scrolling: touch; /* iPhone'larda kaydırma akıcı olsun */
    }

    .faaliyetlerimiz .box-container .box {
        flex: 0 0 85%; /* Kutu genişliği ekranın %85'i olsun (Yanındaki hafif görünsün ki kaydırılabildiği anlaşılsın) */
        scroll-snap-align: center; /* Kutu ekranın ortasına hizalansın */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Hafif gölge */
    }

    /* Scroll çubuğunu gizle (Daha temiz görünüm için) */
    .faaliyetlerimiz .box-container::-webkit-scrollbar {
        display: none;
    }
}

/* Bölüm Genel Ayarları */
.about-section {
    padding: 80px 0;
    background-color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* İçerik Düzeni (Flexbox) */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap; /* Mobilde alt alta geçsin */
}

/* Sol Taraf: Metin */
.about-text {
    flex: 1;
    min-width: 300px;
}

.sub-title {
    color: #2c3e50; /* Firmanızın ana rengi olabilir */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.main-title {
    font-size: 2.5rem;
    color: #222;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* İstatistik Kutuları */
.stats-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.stat-box .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50; /* Ana renk */
}

.stat-box .label {
    font-size: 0.9rem;
    color: #888;
}

/* Buton Tasarımı */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2c3e50; /* Buton rengi */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #1a252f;
}

/* Sağ Taraf: Görsel ve Efekt */
.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* Arkadaki Dekoratif Çerçeve */
.image-border {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid #2c3e50; /* Çerçeve rengi */
    border-radius: 10px;
    z-index: 1;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .image-border {
        display: none; /* Mobilde kalabalık yapmasın diye gizledik */
    }
}
