/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Yumuşak kaydırma efekti */
    scroll-padding-top: 70px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigasyon */
.navbar {
    width: 100%;
    display: block; /* Flex yerine block. Sticky'nin çalışması için şart. */
}

/* Üst Bar (Logo + İletişim) */
.top-bar {
    background: #1a252f;
    padding: 20px 5%; /* Alanı büyüttük */
    display: flex;
    justify-content: space-between; /* Logo sola, iletişim sağa */
    align-items: center;
    flex-wrap: wrap; /* Mobilde alt alta geçmesi için */
    gap: 15px;
}

.logo {
    font-size: 2rem; /* Logo daha büyük */
    font-weight: bold;
    color: white;
}

.top-info {
    display: flex;
    gap: 20px;
    font-size: 1.1rem; /* Yazılar daha büyük */
    color: #bdc3c7;
}

.top-info a {
    color: #3498db;
    text-decoration: none;
}

/* Alt Bar (Sadece Menü - Takip Eden Kısım) */
.bottom-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #2c3e50;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center; /* Linkleri ortalar */
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 20px; /* Linkler arası boşluk */
}

.nav-links a {
    color: #f4f4f4;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
    font-size: 1.2rem; /* Menü yazıları daha belirgin */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #3498db;
}

/* Section Ayarları */
.section {
    padding: 100px 5% 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bg-light { background: #f4f4f4; }

/* Hakkımızda Bölümü Kapsayıcısı (Harita ve Yazı) */
.hakkimizda-container {
    display: flex;
    align-items: center;
    gap: 50px; 
    max-width: 1500px; /* Sınırı genişlettik, artık ekrana daha çok yayılacaklar */
    margin: 0 auto; 
    padding: 0 5%;
}

.hakkimizda-map {
    flex: 1; 
}

.hakkimizda-map iframe {
    width: 100%;
    height: 550px; /* Haritanın direkt yüksekliğini artırdık */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hakkimizda-text {
    flex: 1; 
    text-align: left; 
}

.hakkimizda-text h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
}

.hakkimizda-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}
#hakkimizda {
    background-color: #efefe8; /* Buraya istediğin renk kodunu veya rengin İngilizce adını yaz */
}

/* Hizmetler Grid (Responsive) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px; /* Sayfada çok yayılmaması için sınır */
    margin: 40px auto 0;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden; /* Fotoğrafın köşelerden taşmasını önler */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Üzerine gelince hafif yükselme efekti */
}

/* Fotoğraf Alanı */
.service-image {
    width: 100%;
    height: 400px; /* Fotoğrafların yüksekliğini sabitler */
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fotoğrafı bozmadan alanı doldurmasını sağlar */
}

/* Başlık Alanı */
.service-title {
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

/* Anasayfa */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Yazıları sola yaslar */
    overflow: hidden;
}

/* Sola Dayalı Yazı Alanı */
.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5%; /* Soldan boşluk */
    color: white; 
    text-align: left; /* Metni sola hizalar */
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7); /* Yazının fotoğrafta kaybolmasını önler */
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Arka Plan Slider Konteynırı */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Yazıların net okunması için fotoğrafların üstüne yarı saydam siyah filtre */
.slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Tekil Fotoğraf Ayarları */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 12s infinite; /* Toplam 12 saniyede 3 fotoğraf döner */
}

/* 3 Fotoğrafın sahneye çıkış zamanları */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }

/* Yumuşak Geçiş (Fade) Animasyonu */
@keyframes fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

/* Projeler Slider Alanı */
.proje-slider-kutu {
    position: relative;
    width: 100%;
    max-width: 500px;  
    height: 800px;      
    margin: 30px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Slaytlar */
.proje-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.proje-slide.active {
    opacity: 1;
}

/* Oklar */
.prev-arrow, .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    z-index: 10;
    transition: 0.3s;
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

.prev-arrow:hover, .next-arrow:hover { background: rgba(0,0,0,0.8); }

/* Noktalar */
.dots-container {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: white; /* Aktif olan daha parlak */
}

/* Video */
#myVideo {
    pointer-events: none; /* kullanıcı videoya tıklayamaz */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- FOOTER / İLETİŞİM AYARLARI --- */
.footer-section {
    background-color: #1a252f;
    color: #bdc3c7;
    padding: 60px 5% 20px;
    font-size: 1.1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    align-items: start; 
}

.footer-col h3 {
    color: white;
    margin-top: 0; 
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2; 
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Sosyal Medya Butonları */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #bdc3c7; 
    transition: opacity 0.3s;
    width: fit-content;
}

.social-row:hover {
    opacity: 0.8;
    color: white;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px; 
    border-radius: 5px;
    color: white;
    font-size: 1.5rem;
}

.whatsapp { background-color: #25D366; }
.instagram { background-color: #E1306C; }

.social-text {
    font-size: 1.1rem;
    font-weight: bold;
}

/* 2. Sütun: Hizmetler */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

/* 3. Sütun: İletişim Bilgileri */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
}

.footer-contact a {
    color: #3498db;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Alt Kısım (Copyright) */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* Logo Resimleri */
.logo-img {
    height: 50px; 
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 60px; 
    width: auto;
    margin-bottom: 15px;
}

/* Mobil Uyumluluk (Media Queries) */
@media (max-width: 768px) {
    /* Üst Bar */
    .top-bar {
        flex-direction: column;
        text-align: center;
        padding: 15px 5%;
    }
    
    .top-info {
        flex-direction: column;
        gap: 10px;
        font-size: 0.9rem;
    }

    /* Alt Bar (Menü) */
    .bottom-bar {
        padding: 10px 2%;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .nav-links a {
        font-size: 1rem;
    }

    /* Anasayfa (Hero) */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    /* Bölümler */
    .section {
        padding: 70px 5% 40px;
    }

    /* Hakkımızda */
    .hakkimizda-container {
        flex-direction: column; /* Mobilde alt alta geçer */
        gap: 30px;
    }

    /* Hizmetler */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Projeler */
    .proje-slider-kutu {
        height: 350px;
    }
    
    .prev-arrow, .next-arrow {
        padding: 10px;
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        align-items: center; 
    }
}