:root {
  --primary-color: rgb(27, 40, 56);
  --secondary-color: rgb(0, 122, 204);
  --secondary-color-rgb: 0, 122, 204;
}
/* --- Basic Reset & Font Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Lato', sans-serif;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Header / Navigation Styling --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  transition: all 0.4s ease-out;
}


.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 1.8rem;
  color: whitesmoke;
  letter-spacing: 1.5px;
  transition: font-size 0.4s ease-out;
}

.logo span {
  color: whitesmoke;
  font-weight: 500;
}

.logo img {
  width: auto;
  height: 55px;
  padding-right: 5px;
  transition: height 0.4s ease-out;
}

.main-nav ul {
  display: flex;
}

.main-nav li a {
  padding: 0 15px;
  font-weight: bold;
  font-size: 1.0rem;
  color: whitesmoke;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease-out;
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; /* Starts the line in the center */
  transform: translateX(-50%); /* Keeps it centered as it grows */

  width: 0; /* Starts at 0 width (hidden) */
  height: 2px; /* How thick the line is */

  background-color: var(--secondary-color);
  transition: width 0.3s ease-out;
}

.main-nav li a.active {
  color: var(--secondary-color);
}

.main-nav li a:hover::after,
.main-nav li a.active::after {
  width: 90%; 
  background-color: var(--secondary-color);
}

.main-header.scrolled {
  /* 1. Koyu arka planı ve bulanıklığı geri getir */
  background-color: rgba(27, 40, 56, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  
  /* 2. Dikey boşluğu (padding) azalt */
  padding-top: 12px;
  padding-bottom: 12px;

  /* 3. Gölge ekle (isteğe bağlı ama şık durur) */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 4. Logoyu ve metinleri eski boyutuna küçült */
.main-header.scrolled .logo {
  font-size: 1.5rem; /* Orijinal boyuta geri dön */
}

.main-header.scrolled .logo img {
  height: 30px; /* Orijinal boyuta geri dön */
}

.main-header.scrolled .main-nav li a {
  font-size: 0.9rem; /* Orijinal boyuta geri dön */
}

/* --- Video Hero Styling --- */
.hero-video {
  position: relative; /* İçerik ve videoyu konumlandırmak için ana taşıyıcı */
  width: 100%;
  height: 100vh;
  overflow: hidden; /* Taşan video kısımlarını gizle */
  background-color: #333; /* Video yüklenemezse görünecek renk */
}

.hero-video__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Videoyu tam merkeze alır */
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1; /* En alttaki katman */
}

.hero-video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-video__content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3; 
  
  /* İçeriği Ortalamak İçin */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
}

/* --- Yeni Hero İçerik Stilleri (Başlık, Slogan, Butonlar) --- */

.hero-main-content {
  color: whitesmoke;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-main-content h1 {
  /* Typed.js span'ının düzgün çalışması için h1'e sarıyoruz */
  margin: 0;
}

#typed-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem; 
  font-weight: bold;
  line-height: 1.2;
}

.hero-main-content .typed-cursor {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  /* AOS animasyonu için (solma gecikmesi) */
  opacity: 0;
  animation: fadeIn 0.5s ease 1s forwards;
}

.btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: whitesmoke;
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);

  /* NEON SHADOW EFEKTİ */
  box-shadow: 0 0 10px rgba(var(--secondary-color-rgb), 0.8),
              0 0 20px rgba(var(--secondary-color-rgb), 0.5),
              0 0 35px rgba(var(--secondary-color-rgb), 0.3);
}

/* İkincil Buton (Şeffaf) */
.btn-secondary {
  background-color: transparent;
  border-color: whitesmoke;
  color: whitesmoke;
}

.btn-secondary:hover {
  background-color: whitesmoke;
  color: #222; /* Koyu zemin rengi */
  transform: translateY(-2px);
}

/* Butonların geç gelmesi için küçük bir animasyon */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- Yeni Hero İçin Mobil Ayarlar --- */
@media (max-width: 576px) {
  #typed-title {
    font-size: 2.2rem; /* Başlığı mobilde küçült */
  }
  .hero-main-content .typed-cursor {
    font-size: 2.2rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
    margin-top: 15px;
  }

  .hero-buttons {
    flex-direction: column; /* Butonları alt alta diz */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
  }
}

/* --- About Us Section --- */
.sub-hero {
  padding: 80px 40px;
  text-align: center;
  background-color: #222;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden; /* AOS animasyonlarının taşmasını engellemek için */
}

.sub-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* 1. Sütun (Resim) | 2. Sütun (Metin) */
  grid-template-columns: 1fr 1.5fr; 
  align-items: center;
  gap: 50px; /* Sütunlar arası boşluk artırıldı */
  text-align: left;
}

/* YENİ: Resim Sütunu ve Clip-Path Efekti */
.about-image-col {
  width: 100%;
  height: 450px; /* Resim için sabit bir yükseklik */
  overflow: hidden; /* Resmin taşmasını engelle */
  
  /* İSTEDİĞİNİZ ÜÇGEN/TRAPEZOİD EFEKTİ BURADA */
  /* Koordinatlar: [sol-üst] [sağ-üst] [sağ-alt] [sol-alt] */
  clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 0% 100%);
}

.about-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Resmin şekli bozmadan kaplamasını sağlar */
  display: block;
}

/* YENİ: Metin Sütunu Stilleri */
.about-text-col h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  color: whitesmoke;
  margin-bottom: 35px;
  line-height: 1.4;
  text-align: left;
}

.about-text-col p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
  border-left: 4px solid var(--secondary-color);
  padding-left: 25px;
  text-align: left; /* Metni sola yasladık */
}

/* YENİ: Mobil Görünüm (Eskisinden uyarlandı) */
@media (max-width: 768px) {
  /* Bölümü tek sütuna düşür */
  .sub-hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Mobil cihazda "üçgen" efekti kaldır, normal resim göster */
  .about-image-col {
    clip-path: none; 
    border-radius: 8px; /* Mobilde köşeleri yuvarlat */
    height: 300px; /* Mobil için yüksekliği ayarla */
  }

  /* Metinleri tekrar ortala (mobilde daha iyi görünür) */
  .about-text-col h2 {
    text-align: center;
    font-size: 1.8rem;
  }
  
  .about-text-col p {
    text-align: center;
    border-left: none; /* Dikey çizgiyi kaldır */
    /* Çizgiyi başlığın altına yatay olarak ekle */
    border-top: 4px solid var(--secondary-color); 
    padding-left: 0;
    padding-top: 20px;
  }
}

/* --- Projects Section Styling --- */
.projects-section {
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.6)
    ),
    url('resources/images/Screenshot_5.png');

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: whitesmoke;
  padding: 80px 40px;
}

.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px; 
  max-width: 1200px;
  margin: 0 auto;
}

.project-column h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: whitesmoke;
  text-align: center;
  position: relative; /* Required for the underline */
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.project-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Centers the line */
  width: 120px; /* Width of the line */
  height: 3px; /* Thickness of the line */
  background-color: var(--secondary-color);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.image-grid a {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  height: 250px;
  position: relative;
  border: 2px solid var(--primary-color);
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Adds a simple zoom effect on hover */
.image-grid a:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

/* --- New Hover Overlay Styles --- */
.image-overlay {
  /* Position it over the entire link */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Dark background, hidden by default */
  background-color: rgba(var(--secondary-color-rgb), 0.3);
  opacity: 0;

  /* Center the text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Smooth transition */
  transition: opacity 0.3s ease;
}

/* This shows the overlay on hover */
.image-grid a:hover .image-overlay {
  opacity: 1;
}

/* Style the text inside the overlay */
.image-overlay h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.image-overlay p {
  color: #ddd;
  font-size: 0.9rem;
}

/* --- Responsive (Mobile) Styling --- */

/* On tablets and smaller, stack the two main columns */
@media (max-width: 992px) {
  .projects-container {
    grid-template-columns: 1fr;
  }
}

/* On small phones, make the image grid 2 columns */
@media (max-width: 576px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* --- "Neden Biz?" Bölümü Stilleri (Hover Efektli) --- */

.why-us-section {
  padding: 40px 40px;
  background-color: #222; /* Koyu kömür grisi zemin */
  color: whitesmoke;
  border-top: 1px solid rgba(255, 255, 255, 0.1); 
  overflow: hidden; /* Animasyon taşmalarını engelle */
}

.why-us-container {
  max-width: 1200px; 
  margin: 0 auto;
}

/* Sub-hero'daki ile aynı 2 sütunlu grid yapısı */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; 
  gap: 40px;
  align-items: center;
}

.why-us-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: whitesmoke;
  line-height: 1.4;
  text-align: right; 
  padding-right: 20px; 
  border-right: 4px solid var(--secondary-color);
}

.why-us-values ul {
  list-style: none;
}

/* DEĞER KARTLARI (<li>) */
.why-us-values li {
  display: flex; 
  align-items: flex-start; 
  gap: 15px;
  
  /* Kart stilleri */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: transparent; /* Başlangıçta şeffaf */
  border: 1px solid transparent; /* Yer tutucu */
  
  /* Animasyon */
  transition: all 0.3s ease-out;
}
.why-us-values li:last-child {
  margin-bottom: 0;
}

/* KART HOVER EFEKTİ */
.why-us-values li:hover {
  background-color: #333; /* Hafif aydınlık "kart" zemini */
  border-color: rgba(255, 255, 255, 0.1); /* Kenarlığı görünür yap */
  transform: translateY(-5px); /* Kartı kaldır */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* İKON STİLLERİ */
.value-icon {
  font-size: 2.5rem; 
  color: var(--secondary-color); /* Kırmızı */
  width: 50px; 
  text-align: center;
  transition: transform 0.3s ease-out; /* İkon animasyonu */
}

/* İKON HOVER EFEKTİ */
.why-us-values li:hover .value-icon {
  transform: scale(1.1); /* İkonu "pop" yap */
}

/* METİN STİLLERİ */
.value-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: whitesmoke;
  margin-bottom: 8px;
}

.value-text p {
  font-family: 'Lato', sans-serif;
  color: #ddd;
  line-height: 1.6;
  font-size: 1rem;
}

/* --- "Neden Biz?" Mobil Uyumluluk --- */
@media (max-width: 768px) {
  /* Bölümü mobilde tek sütuna düşür */
  .why-us-grid {
    grid-template-columns: 1fr; 
    gap: 30px;
  }
  
  .why-us-title h2 {
    text-align: center; 
    border-right: none; 
    padding-right: 0;
    border-bottom: 4px solid var(--secondary-color);
    padding-bottom: 15px;
  }
  
  .why-us-values li {
     padding: 20px; 
  }
}

/* --- Services Section (Faaliyet Alanları) Styling --- */
.services-section {
  padding: 60px 40px;
  /* background-color: #222; Koyu gri zemini kaldır */

  /* Projeler bölümünden kopyalanan yeni arka plan */
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.6)
    ),
    url('resources/images/Screenshot_5.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.services-section .section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: whitesmoke;

  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
}

/* This creates the orange underline */
.services-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Centers the line */

  width: 200px; /* Width of the line */
  height: 3px; /* Thickness of the line */
  background-color: var(--secondary-color);
}

/* This is the 6-column icon grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto; /* Izgara bloğunu .services-container içinde ortalar */
}

.service-item {
  text-align: center;
  /* Hover'da kartın yükselmesi için */
  transition: all 0.4s ease-out;
}

.service-icon {
  /* Daire stilleri (background, width, height, border-radius) kaldırıldı */
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Sadece ikonun kendisi */
  color: var(--secondary-color); /* Kırmızı */
  font-size: 3.5rem; /* İkonu büyüttük */
  transition: all 0.4s ease-out;
}

.service-icon i {
  transition: all 0.4s ease-out;
}

.service-title {
  color: whitesmoke;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  transition: all 0.4s ease-out;
}

/* Icon text label */
.service-item p {
  color: var(--primary-color); 
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.3;
}

.service-content-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.4s ease-out;
  background-color: rgba(34, 34, 34, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-item:hover .service-content-wrapper {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Gölgeyi koyulaştır */
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

/* Görünür (ikon+başlık) ve Gizli (açıklama) içeriğin pozisyonu */
.service-visible,
.service-hidden {
  position: absolute;
  width: 100%;
  left: 0;
  transition: all 1s ease-in-out;
}

/* Görünür içerik (ikon+başlık) başlangıçta ortada */
.service-visible {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transition: all 0.4s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-visible p {
  color: whitesmoke;
}

/* Gizli içerik (açıklama) başlangıçta altta ve gizli */
.service-hidden {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 100%; /* Taşıyıcının tam altında başla */
  transition: all 0.4s ease-out;
  
  /* Mavi arka plan ve metin stilleri */
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 30px 25px;
  text-align: center;
}

/* ---- HOVER ETKİLERİ ---- */

/* 1. Hover'da, görünür içeriği YUKARI kaydır ve gizle */
.service-item:hover .service-visible {
  transform: translateY(-100%);
  opacity: 0;
}

/* 2. Hover'da, gizli içeriği YUKARI kaydır ve göster */
.service-item:hover .service-hidden {
  top: 0;
}


/* ---- Gizli içeriğin (açıklama) stili ---- */
.service-hidden ul {
  list-style: none; /* Madde işareti noktalarını kaldır */
  padding: 0;
  margin: 0;
  text-align: left; /* Liste içeriği sola dayalı olsun */
}

.service-hidden li {
  font-family: 'Lato', sans-serif;
  color: #eee;
  font-size: 0.9rem; /* Metin küçültüldü */
  line-height: 1.5;
  margin-bottom: 8px; /* Liste elemanları arası boşluk */
  position: relative;
  padding-left: 20px; /* Madde işareti için yer aç */
}

/* Kırmızı madde işaretlerini ekle */
.service-hidden li::before {
  content: '\f00c'; /* Font Awesome "check" ikonu */
  font-family: 'Font Awesome 5 Free'; /* Font Awesome 7 kullanıyorsanız 'Font Awesome 7 Free' */
  font-weight: 900;
  color: var(--secondary-color); /* Kırmızı */
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 0.8rem;
}

.service-hidden p {
  font-family: 'Lato', sans-serif;
  color: #eee; /* Tam beyazdan daha yumuşak */
  font-size: 1rem; /* Okunabilir metin boyutu */
  line-height: 1.6; /* Rahat satır aralığı */
  margin: 0;
  padding: 0;
}

.service-hidden h4 {
  font-family: 'Montserrat', sans-serif;
  color: whitesmoke;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  
  /* YENİ EKLENENLER */
  position: relative; /* ::after kuralı için gereklidir */
  padding-bottom: 10px; /* Çizgi için boşluk bırakır */
  margin-bottom: 15px; /* Çizgi ve liste arası boşluk */
}

/* Başlığın altına kırmızı çizgiyi ekler */
.service-hidden h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Çizgiyi ortalar */
  
  width: 50px; /* Çizginin genişliği */
  height: 2px; /* Çizginin kalınlığı */
  background-color: var(--secondary-color); /* Kırmızı */
}

/* --- Responsive (Mobile) Styling --- */

/* On tablets */
@media (max-width: 992px) {
  .services-grid {
    /* Go from 6 columns to 3 */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: none;
  }
}

/* On phones */
@media (max-width: 576px) {
  .services-grid {
    /* Go from 3 columns to 2 */
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* --- Main Footer Styling --- */
.main-footer {
  background-color: #222;
  color: #ffffff;
}

.footer-main {
  padding: 60px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 2fr;  
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col p {
  color: #ddd;
  margin-bottom: 15px; /* Space between paragraphs */
}

.footer-col strong {
  color: #ffffff;
}

.social-icons {
  display: flex;
  gap: 15px; /* İkonlar arası boşluk */
  margin-top: 10px;
}

.social-icons a {
  color: #ffffff;
  font-size: 1.5rem; /* İkon boyutu */
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color); /* Kırmızı hover rengi */
  transform: translateY(-3px); /* Hafif yükselme efekti */
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 150px; /* Haritanın minimum yüksekliği */
  border-radius: 5px;
  overflow: hidden; /* Köşeleri yuvarlatmak için */
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* This is a placeholder for your <img> logos */
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}
.footer-logo:last-of-type {
  margin-top: 20px;
}

/* --- Sub-Footer Styling --- */
.footer-bottom {
  padding: 25px 40px;
}

.footer-bottom-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

/* Sub-footer'daki yeni "Başa Dön" DAİRE Butonu */
.back-to-top {
  display: flex; /* İkonu ortalamak için */
  align-items: center;
  justify-content: center;
  
  width: 40px;  /* Daire boyutu */
  height: 40px; /* Daire boyutu */
  border-radius: 50%; /* Tam daire */
  
  background-color: #333; /* Hafif koyu gri zemin */
  color: #ddd; /* İkon rengi */
  font-size: 1rem; /* İkon boyutu */
  
  border: 1px solid #555; /* İnce bir kenarlık */
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--secondary-color); /* Kırmızı */
  color: whitesmoke; /* Beyaz ikon */
  border-color: var(--secondary-color);
  transform: translateY(-3px); /* Hafif yükselme */
}

/* .back-to-top i kuralı artık GEREKLİ DEĞİL */

.copyright p {
  color: #ddd;
  font-size: 0.9rem;
}

.copyright .sub-copyright {
  font-size: 0.8rem;
  color: #aaa;
}

.footer-legal a {
  color: #ddd;
  font-size: 0.9rem;
  margin-left: 20px;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* --- Footer Responsive (Yeni Eklendi) --- */
@media (max-width: 992px) {
  /* Tablette 2x2 grid yap */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  /* Telefonda tek sütun yap */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    padding: 30px 20px;
  }
}

/* 1. WhatsApp İkonu */
.whatsapp-icon {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 100;

  background-color: #25D366; /* Standart WhatsApp Yeşili */
  color: whitesmoke;
  font-size: 1.6rem;
  
  /* Daire şeklinde olması için */
  width: 50px; 
  height: 50px;
  border-radius: 50%;

  /* İkonu ortalamak için */
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- Mobil Navigasyon Stilleri --- */

/* Hamburger Butonu */
.mobile-nav-toggle {
  display: none; /* Masaüstünde gizli */
  background: none;
  border: none;
  color: whitesmoke;
  font-size: 1.8rem; /* İkon boyutu */
  cursor: pointer;
  z-index: 1001; /* Açık menünün bile üstünde (ikonu 'X' yapınca) */
}

/* 1. ADIM: TABLET VE MOBİLDE (992px ve altı) */
@media (max-width: 992px) {
  
  /* Masaüstü navigasyonunu gizle */
  .main-nav {
    display: none; /* Başlangıçta gizli */
    position: fixed; /* Tam ekran kaplayan bir overlay olacak */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Tüm ekran yüksekliği */
    
    /* Koyu cam efekti */
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    
    /* Linkleri ortalamak için */
    flex-direction: column;
    justify-content: center;
    align-items: center;

    z-index: 1000;
  }
  
  /* JavaScript ile bu class eklendiğinde menüyü göster */
  .main-nav.is-active {
    display: flex;
  }

  /* Mobil menüdeki link listesi */
  .main-nav ul {
    flex-direction: column; /* Linkleri alt alta diz */
    gap: 20px;
    text-align: center;
  }
  
  /* Mobil menüdeki linkler */
  .main-nav li a {
    font-size: 1.8rem; /* Linkleri büyüt */
    padding: 10px;
  }
  
  /* Linklerin altındaki çizgiyi mobilde kaldır (isteğe bağlı) */
  .main-nav li a::after {
    display: none;
  }

  /* Hamburger butonunu göster */
  .mobile-nav-toggle {
    display: block;
  }
}

/* --- Diğer Mobil İyileştirmeler --- */
@media (max-width: 576px) {
  .text-box h1 {
    font-size: 1.8rem; /* 2.3rem'den küçültüldü */
  }
  .text-box {
    left: 30px; /* Kenar boşluğunu azalt */
  }

  .main-header {
    padding: 12px 20px; /* Header'ın kenar boşluklarını azalt */
  }
}

/* --- KAPSAMLI MOBİL CİHAZ DÜZELTMELERİ --- */

/* 768px (Tablet) ve altı için bazı ayarlar */
@media (max-width: 768px) {
  
  /* Faaliyet Alanları (Services) kartlarını 2 sütun yap (3 yerine) */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 576px (Telefon) ve altı için son ince ayarlar */
@media (max-width: 576px) {

  /* 1. Hero Video ve Başlık Düzeltmesi */
  .hero-video {
    height: 60vh; /* 72vh'den 60vh'ye düşürüldü */
  }

  /* 2. Faaliyet Alanları (Services) Kartlarını 1 Sütun Yap */
  /* "İnce kart" ve "okunaksız metin" sorununu çözer */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px; /* Kartlar arası dikey boşluk */
  }

  /* 3. WhatsApp İkonunu Küçült */
  .whatsapp-icon {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    bottom: 20px;
    right: 20px;
  }

  /* 4. Footer'daki Butonun Ezilmesini Engelle (En Önemlisi) */
  /* Body'nin en altına boşluk ekler. 
    Bu sayede footer'daki 'başa dön' butonu, 
    sabit WhatsApp ikonunun 'arkasında' kalmaz.
  */
  body {
    /* İkon yüksekliği (45px) + alttan boşluk (20px) + tampon (15px) */
    padding-bottom: 80px; 
  }

  /* Dün eklediğimiz proje ızgarası (hala geçerli) */
  .image-grid {
    grid-template-columns: 1fr;
  }
}