/* 1. Animasyon Tanımlaması */
@keyframes zoom-in-bg {
    0% {
        /* Animasyonun başlangıcında görselin boyutu */
        transform: scale(1);
    }
    100% {
        /* Animasyonun sonunda görselin boyutu (örneğin %10 daha büyük) */
        transform: scale(1.1);
    }
}

/* 2. Hero Bölümüne Arka Plan ve Animasyonu Uygulama */
.hero {
    /* Görselin adı "isi-yalitimi-nasil-yapilir.jpg" olarak varsayılmıştır */
    background-image: url('isi-yalitimi-nasil-yapilir.jpg'); 
    background-size: cover; /* Görseli alanı kaplayacak şekilde boyutlandır */
    background-position: center center; /* Görseli ortala */
    overflow: hidden; /* Animasyon sırasında taşan kısımları gizle */
    position: relative; /* İçerik için pozisyon referansı */
    height: 600px; /* Hero bölümünün yüksekliğini ayarla, gerekirse değiştir */
}

/* 3. Arka Planı Hareket Ettirmek İçin Yeni Bir Katman Oluşturma */
.hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Animasyonu uygula: zoom-in-bg adlı animasyonu 20 saniyede, 
       kolay geçişle, sonsuz döngüde ve ters yönde çalıştır */
    animation: zoom-in-bg 20s ease-in-out infinite alternate; 
    z-index: -1; /* İçeriğin arkasında kalmasını sağla */
    /* background-image ve diğer background özellikleri buraya taşındı */
    background-image: url('isi-yalitimi-nasil-yapilir.jpg'); 
    background-size: cover;
    background-position: center center;
}

/* İçeriğin okunabilirliğini artırmak için yarı saydam bir katman (overlay) ekle */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Siyah, %40 saydamlık */
    z-index: 0;
}

/* 4. Hero İçeriğini En Öne Çıkarma */
.hero-inner {
    position: relative;
    z-index: 1; /* Overlay ve arka planın önüne getir */
    /* ... mevcut diğer stiller ... */
}

/* 5. Metinlerin Animasyonlu Arka Plan Üzerinde Daha İyi Görünmesi İçin */
.hero h1, .hero h2, .hero p {
    color: white; /* Metin rengini beyaza çevir */
    color: black;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Okunurluğu artırmak için gölge ekle */
}
/* -------- Reset -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* -------- Container -------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------- Header -------- */
.header {
  background: #004b87;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  height: 80px;
  margin-right: 10px;
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #ffd700;
}

.btn-header {
  background: #00ddff;
  color: #004b87;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-header:hover {
  background: #f9f9fa;
}

/* -------- Hero -------- */
.hero {
  background: linear-gradient(rgba(144, 189, 226, 0.8), rgba(0,75,135,0.8)), 
              url("https://images.unsplash.com/photo-1581093588401-22f50d3f8c9b?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: #fff;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h2 {
  font-size: 1.5rem;
  color: #d6e7ea;;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 15px 0;
}

.hero-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: #00ddff;;
  color: #050508;
}

.btn-primary:hover {
  background: #f9f9fa;
}

.btn-secondary {
  background: #00ddff;
  color: #050508;
}

.btn-secondary:hover {
  background: #f9f9fa;
  color: #050508;
}

/* -------- Hero Contact Card -------- */
.hero-contact-card {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 10px;
  color: #f9f9fa;
}

.card a {
  color: #004b87;
  text-decoration: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  width: 100%;
}

/* -------- Sections -------- */
.section {
  padding: 70px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #020507;
}

/* -------- Services -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-item {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.service-item h3 {
  color: #f9f9fa;
  margin-bottom: 10px;
}

/* -------- Projects -------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.proj-info {
  padding: 15px;
}

/* -------- Contact -------- */
.contact-section p {
  margin-bottom: 10px;
}

.map-wrapper {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

/* -------- Footer -------- */
.footer {
  background: #004b87;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.footer p {
  font-size: 0.9rem;
}
/* — Hizmetler Bölümü — */
.hizmetler-section {
  background-color: #fdfdfd;
  padding: 80px 0;
}

.hizmetler-section h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 50px;
  font-size: 2.2rem;
}

.hizmet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 24px;
}

.hizmet-item {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hizmet-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.hizmet-item h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.hizmet-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
/* ======================================= */
/* FULL SCREEN SLAYT VE GEÇİŞ AYARLARI */
/* ======================================= */

/* Hero Bölümünü Hazırla */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden; /* Taşmayı engelle */
    padding-top: 0; /* İçeriği yukarı çek */
    padding-bottom: 0;
}

/* Slaytları Kapsayan Konteyner */
.slideshow-container {
    position: fixed; /* Ekranı sabitler */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* En arkada kalsın */
}

/* Her Bir Slayt (Görsel) */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Başlangıçta hepsi gizli */
    animation: fade-transition 15s infinite; /* 3 görsel x 5 saniye = 15s */
}

/* Her Slayt İçin Farklı Gecikmeler */
/* 3 görsel için 15 saniyelik bir döngüde her slayt 5 saniye sonra başlar. */
.slideshow-container .slide:nth-child(1) {
    animation-delay: 0s; /* Hemen başla */
}
.slideshow-container .slide:nth-child(2) {
    animation-delay: 5s; /* 5 saniye gecikme */
}
.slideshow-container .slide:nth-child(3) {
    animation-delay: 10s; /* 10 saniye gecikme */
}

/* Animasyon Keyframe'leri */
@keyframes fade-transition {
    /* Başlangıç: Görünmez (0s) */
    0% { opacity: 0; }
    
    /* Yavaşça Görünür Ol (0s - 1.5s) */
    10% { opacity: 1; } 
    
    /* Görüntülenmeye Devam Et (1.5s - 3.5s) */
    25% { opacity: 1; }
    
    /* Yavaşça Kaybol (3.5s - 5s) */
    40% { opacity: 0; } 
    
    /* Geri Kalan Süre Görünmez Kal (5s - 15s) */
    100% { opacity: 0; }
}

/* İçeriğin Okunurluğu İçin Yarı Saydam Katman */
.hero::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Siyah, %40 saydamlık */
    z-index: -1; /* Slaytların üstünde, içeriğin altında kalsın */
}

/* İçeriği Öne Çıkar */
.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh; 
    /* İçerik düzeni artık sadece HTML ve varsayılan flexbox/grid ayarlarınla yönetilecek. */
}

.hero-text {
    /* Metinlerin okunurluğu için */
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}
/* =============================== */
/* 📱 RESPONSIVE TASARIM AYARLARI */
/* =============================== */

/* Tablet (max 992px) */
@media (max-width: 992px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .card {
    padding: 15px;
  }
}

/* Mobil (max 768px) */
@media (max-width: 768px) {
  .brand h1 {
    font-size: 1.2rem;
  }

  .brand .logo {
    height: 60px;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .nav-list li {
    margin-bottom: 8px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .hero-contact-card {
    width: 100%;
  }

  .services-grid,
  .projects-grid,
  .hizmet-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    font-size: 0.8rem;
  }
}

/* Küçük Mobil (max 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .card {
    padding: 12px;
  }

  .header {
    padding: 10px 0;
  }

  .nav-list {
    gap: 6px;
  }

  .footer p {
    font-size: 0.75rem;
  }
}
