html {
  scroll-behavior: smooth;
}


body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #333;
}

header {
  background: #005f99;
  color: white;
  padding: 20px;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

section {
  padding: 40px;
  max-width: 900px;
  margin: auto;
  background: white;
  margin-top: 20px;
  border-radius: 10px;
}

section img {
  max-width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 10px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: #005f99;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  margin-top: 20px;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  section {
    padding: 20px;
  }

  form input,
  form textarea {
    font-size: 16px;
  }

  header h1 {
    font-size: 24px;
  }

  nav ul {
    font-size: 16px;
  }
}

.whatsapp-button {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.whatsapp-button:hover {
  background-color: #1ebc59;
}

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 24px;
  padding: 15px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.floating-whatsapp:hover {
  background-color: #1ebc59;
}

#galeri {
  padding: 40px;
  background: #fff;
  max-width: 1200px;
  margin: auto;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.galeri-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeri-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-ortali-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  /* logo ve menüyü ortalar */
  flex-wrap: wrap;
  /* mobilde alt alta düşsün */
  background-color: #005f99;
  padding: 20px 40px;
  gap: 40px;
  /* logo ile menü arasında boşluk */
}

.logo {
  max-width: 300px;
  height: auto;
  display: block;
}

.menu-container ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.menu-container ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .header-ortali-flex {
    flex-direction: column;
    gap: 20px;
  }

  .menu-container ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.hizmet-gorselleri {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hizmet-gorselleri img {
  width: 48%;
  /* Yan yana sığsın diye */
  border-radius: 10px;
  object-fit: cover;
}

/* Mobil uyumlu olsun diye */
@media (max-width: 768px) {
  .hizmet-gorselleri img {
    width: 45%;
    min-width: 140px;
  }
}

section p {
  line-height: 1.6;
  font-size: 16px;
}

.yorum {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding: 20px;
  background-color: #f1f9ff;
  border-left: 5px solid #005f99;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.yorum-slider {
  position: relative;
  height: 180px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}


.yorum.aktif {
  opacity: 1;
  position: relative;
}

.yorum p {
  font-style: italic;
  margin-bottom: 10px;
}

.yorum span {
  font-weight: bold;
  color: #444;
}

.iletisim-vurgulu {
  background-color: #ff9800;
  color: white !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.iletisim-vurgulu:hover {
  background-color: #e68900;
  transform: scale(1.05);
}

.sabit-ara {
  display: none;
  /* sadece mobilde göster */
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.sabit-ara:hover {
  background-color: #218838;
}

@media (max-width: 768px) {
  .sabit-ara {
    display: block;
    bottom: 20px;
    transition: bottom 0.4s ease;
  }

  .floating-whatsapp {
    bottom: 20px;
    transition: bottom 0.4s ease;
  }
}

.yorum-yildizlar {
  color: gold !important;
  font-size: 20px;
  margin-top: 10px;
  display: inline-block;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #25D366;
  /* WhatsApp rengiyle uyumlu yeşil */
}

/* Mobilde harita boyutlarını küçült */
@media (max-width: 768px) {
  iframe {
    width: 100%;
    /* Haritayı ekranın genişliğine göre ayarlayalım */
    height: 300px;
    /* Mobilde yükseklik küçültüldü */
    border: none;
    /* Çerçeveyi kaldırdık */
  }
}

/* Mobilde galeri resimlerinin kaydırılabilir olması için stil */
@media (max-width: 768px) {
  #galeri {
    overflow-x: auto;
    /* Yalnızca yatay kaydırma yapılabilmesi için */
    white-space: nowrap;
    /* Resimler yatayda sıralanacak */
    padding: 20px 0;
  }

  .galeri-grid {
    display: inline-flex;
    /* Yatayda sıralama */
    gap: 15px;
  }

  .galeri-item {
    flex-shrink: 0;
    /* Resimlerin küçülmesini engelle */
    width: 200px;
    /* Her bir resmin genişliği */
  }

  .galeri-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}

/* Masaüstü görünüm - varsayılan grid */
.galeri-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Mobil görünüm - yatay scroll */
@media (max-width: 768px) {
  .galeri-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .galeri-item {
    flex: 0 0 auto;
    width: 250px;
    scroll-snap-align: start;
  }

  .galeri-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {

  form input,
  form textarea {
    font-size: 16px;
    width: 100%;
    max-width: 100%;
  }
}

.footerp {
  color: white;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  #yorumlar {
    margin-bottom: 150px;
  }

  .footerp {
    color: white;
  }
}

#iletisim {
  padding: 60px 20px;
  background: #f8f8f8;
  text-align: center;
  color: #333;
}

h1 {
  font-size: 32px;
  color: #005f99;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

h2 {
  font-size: 32px;
  color: #005f99;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

#iletisim h2 {
  font-size: 32px;
  color: #005f99;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

p {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

#iletisim p {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.contact-info {
  list-style: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  text-align: left;
  margin-bottom: 40px;
}

.contact-info li {
  margin-bottom: 20px;
}

.whatsapp-button {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.whatsapp-button:hover {
  background-color: #1ebc59;
}

#iletisim-formu {
  background: white;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

#iletisim-formu input,
#iletisim-formu textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

#iletisim-formu button {
  background-color: #005f99;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#iletisim-formu button:hover {
  background-color: #004a80;
}

.map-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  #iletisim h2 {
    font-size: 28px;
  }

  #iletisim-formu {
    padding: 20px;
    width: 100%;
  }

  .whatsapp-button {
    font-size: 14px;
    padding: 10px 15px;
  }

  .contact-info {
    text-align: center;
  }

  .map-container iframe {
    width: 100%;
    height: 300px;
  }
}
#iletisim-formu {
  background: white;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  width: 100%;  /* Genişliği %100 yaparak taşmayı engelledik */
  box-sizing: border-box;  /* Padding dahil edilerek genişlik doğru hesaplanacak */
}

#iletisim-formu input,
#iletisim-formu textarea {
  width: 100%;  /* %100 genişlik vererek taşmayı engelliyoruz */
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;  /* Genişlik hesaplamasında padding dahil edilir */
}

#iletisim-formu button {
  background-color: #005f99;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%;  /* Butonun da taşmaması için %100 genişlik */
}

#iletisim-formu button:hover {
  background-color: #004a80;
}

@media (max-width: 768px) {
  #iletisim-formu {
      padding: 20px;
      width: 100%;  /* Mobilde %100 genişlik */
      margin: 0 10px;  /* Mobilde sağ ve soldan biraz boşluk ekledik */
  }

  #iletisim-formu input,
  #iletisim-formu textarea {
      font-size: 14px;  /* Daha küçük font boyutu */
  }

  #iletisim-formu button {
      padding: 12px;  /* Butonun boyutunu mobilde küçülttük */
  }
}
