/* ===== GENEL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff;
  color: #003366;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 150px;
  background: #192e41;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 100;
  transition: all 0.3s ease;
}

header.shrink {
  height: 50px;
  padding: 0 1rem;
}

/* Logo küçülmesi */
header .logo {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

header .logo img {
  width: auto;
  height: 100px;
  transition: all 0.3s ease;
}

header.shrink .logo img {
  height: 40px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #bbc8de;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

header.shrink h1 {
  font-size: 1rem;
}

/* Nav ve linkler */
nav {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

header.shrink nav a {
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
  color: #bbc8de;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.3s ease, font-size 0.3s ease;
}

nav a:hover {
  color: #0099ff;
}

/* ===== HAMBURGER MENÜ ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #bbc8de;
  transition: 0.3s;
}

/* ===== SECTIONS ===== */
section {
  padding: 120px 20px; /* üst-alt boşluk */
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Section arka planı tüm genişlik */
  width: 100%;
}

/* Section içeriği */
section .container {
  max-width: 1000px; /* içerik genişliği */
  margin: 0 auto;    /* ortalama */
  padding: 0 20px;   /* içerik kenar boşlukları */
  box-sizing: border-box;
  text-align: center;  /* opsiyonel, başlık ve paragraf için */
}

/* Arka plan renkleri */
#about {
  background: #ffffff;
  color: #003366;
}

#services {
  background: rgba(41, 96, 144, 0.1);
  color: #003366;
}

#gallery {
  background: #ffffff;
  color: #003366;
}

#contact {
  background: rgba(41, 96, 144, 0.1);
  color: #003366;
}

#home {
  background: linear-gradient(rgba(41, 96, 144, 0.6), rgba(41, 96, 144, 0.6)),
    url('../img/hero01.png')
    center/cover no-repeat;
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ===== HİZMETLER ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.service-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .icon {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.service-card .icon img {
  width: 50px;      /* ikon boyutu */
  height: 50px;     /* kare oranı için */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.service-card:hover .icon img {
  transform: scale(1.2); /* hover animasyonu */
}

/* ===== GALERİ ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  transition: transform 0.3s ease;
}

.lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox .close:hover {
  color: #0099ff;
}

/* Navigasyon okları */
.lightbox .prev, .lightbox .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 3rem;
  padding: 10px;
  user-select: none;
  transition: color 0.3s;
}

.lightbox .prev:hover, .lightbox .next:hover {
  color: #0099ff;
}

.lightbox .prev { left: 20px; transform: translateY(-50%); }
.lightbox .next { right: 20px; transform: translateY(-50%); }

/* Gallery grid hover efekti */
.gallery-item {
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}



/* ===== FORM ===== */
form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

button {
  padding: 10px;
  background: #005b9f;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #007bff;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: #003366;
  color: #fff;
  margin-top: 2rem;
}

/* ===== SCROLL ANİMASYONU ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBİL ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 150px; /* header yüksekliğine göre pozisyon */
    left: 0;
    width: 100%;
    background: #192e41;
    flex-direction: column;
    align-items: center;
    display: none;
    transition: top 0.3s ease;
  }

  header.shrink nav {
    top: 50px; /* header küçüldüğünde menü de yeni yüksekliğe uyumlu */
  }

  nav.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  nav a {
    margin: 1rem 0;
    font-size: 1.1rem;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ===== CONTACT ===== */
#contact {
  background: rgba(41, 96, 144, 0.1);
  color: #003366;
}

.contact-subtitle {
  margin-bottom: 30px;
}

/* 2 kolon düzen */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Sol Alan */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-item img {
  width: 32px;
  height: 32px;
}

/* Sağ Alan */
.contact-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Sosyal medya */
.contact-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #192e41;
  color: #bbc8de;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-social img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.contact-social:hover {
  transform: translateY(-5px);
  background: #005b9f;
}

/* Mobil uyum */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-right {
    grid-template-columns: repeat(2, 1fr);
  }
}
