/* GENEL SIFIRLAMA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f6f3;
  color: #1f2937;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === HEADER / TOP BAR === */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  height: 140px;
  padding: 0 30px;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}

.logo {
  height: 140px;
  max-width: 100%;
}

.info-area {
  text-align: right;
}

.info-area h1,
.info-area p {
  margin: 0;
  line-height: 1.4;
}

.slogan {
  color: #eab308;
  font-weight: 500;
}

.phone {
  font-size: 14px;
}

.cta-button {
  background-color: #eab308;
  color: #000;
  padding: 6px 14px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

/* === NAVBAR === */
.navbar {
  background-color: #1f2937;
  width: 100%;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 14px 20px;
  color: white;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: #374151;
}

/* === DROPDOWN MENU === */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: #1f2937;
  border: 1px solid #374151;
  z-index: 10;
}

.dropdown-menu li a {
  padding: 12px 16px;
  color: white;
}

.dropdown-menu li a:hover {
  background-color: #374151;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    height: auto;
    padding: 15px;
    text-align: center;
  }

  .info-area {
    text-align: center;
    margin-top: 10px;
  }

  .navbar {
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 20px;
    border-top: 1px solid #374151;
  }

  .dropdown-menu {
    position: static;
    border: none;
  }

  .dropdown-menu li a {
    padding: 10px 20px;
  }
}



/* === SLIDER === */
#slider {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ddd;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 0;
}

.slide-image.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Mobil uyum */
@media (max-width: 768px) {
  #slider {
    height: 300px;
  }
}



#hakkimizda {
  padding: 10px 30px;        /* yukarı-aşağı 60px, sağ-sol 30px */
  max-width: none;           /* ortalama yapmayacağız */
  margin: 0;                 /* ortalama yok */
  text-align: left;          /* garantiye alalım */
}

#hakkimizda h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1f2937;
}

#hakkimizda p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}





/* === PROJELERİMİZ BÖLÜMÜ === */
#projelerimiz {
  padding: 60px 30px;
  text-align: left;
}

#projelerimiz h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #1f2937;
  border-left: 5px solid #eab308;
  padding-left: 12px;
}

#projelerimiz h3 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #374151;
}

/* === GALERİ === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  #projelerimiz h2 {
    font-size: 26px;
  }
  #projelerimiz h3 {
    font-size: 20px;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .gallery img {
    height: 120px;
  }
}







/* === İLETİŞİM SAYFASI === */
#iletisim {
  padding: 60px 30px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

#iletisim h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #1f2937;
  border-left: 5px solid #eab308;
  padding-left: 12px;
}

/* === FORM === */
.iletisim-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: #f9fafb;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.iletisim-form label {
  font-weight: 600;
  color: #374151;
}

.iletisim-form input,
.iletisim-form textarea {
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.iletisim-form input:focus,
.iletisim-form textarea:focus {
  outline: none;
  border-color: #eab308;
}

.iletisim-form button {
  background-color: #eab308;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.iletisim-form button:hover {
  background-color: #d4a107;
}

/* === BAŞARI VE HATA MESAJLARI === */
.form-sonuc,
.form-hata {
  padding: 20px 25px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.form-sonuc {
  background-color: #ecfccb;
  color: #365314;
  border: 1px solid #a3e635;
}

.form-hata {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.form-hata ul {
  margin-left: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  #iletisim {
    padding: 40px 20px;
  }

  .iletisim-form {
    padding: 20px;
  }
}









/* FOOTER */
footer {
  background-color: #1a202c;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95em;
}

