* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
}

nav {
  background-color: #f4f4f4;
  padding: 10px 20px;
  border-top: 8px solid #3883ab;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.col-3 {
  display: flex;
  align-items: center;
}

.col-4{
    width: 30%;
    margin: 0 25px;
}

.col-4 .h3-4{
  margin-top: 40px;
}

.col-6{
    width: 40%;
    margin: 0 55px;
}

.col-6 h3{
    margin-top: 40px;
}

.col-12{
    text-align: center;
    margin-top: 40px;
    line-height: 40px;
}

.col-12 h1, p{
    color: #000;
} 

.col-3 img {
  width: 120px;
  margin-left: 50%;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-right: 3.5%;
}

.nav-links a {
  color: #000;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #3883ab;
}

.card {
  margin-bottom: 30px; /* Alt alta gelen card’lar arasında boşluk */
  overflow: hidden; /* resim büyürken dışarı taşmasın */
  border-radius: 12px; /* aynı köşe yuvarlama için */
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out; /* yumuşak geçiş */
}

.card h3{
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
    background-color: #a50000;
    padding: 10px;
    border-radius: 20px;
    transition: 0.1s;
}

.card h3:hover{
    background-color: #3883ab;
    color: #fff;
}

.card:has(img:hover) h3 { /* img hover olduğunda h3'e stil uygula */
  background-color: #3883ab;
  color: #fff;
}


#calculate-1{
    margin: 40px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card > a > img {
  width: 100%;
  aspect-ratio: 16 / 9; /* Yatay oran */
  /* object-fit: cover;    /* Görseli taşmadan doldurur. Kapatınca daha güzel görünüyor. Bir patlama olursa aç! */
  border-left: 8px solid #3883ab;
  border-radius: 8px;
  transition: 0.1s;
}

.card > a > img:hover{
  border-left: 16px solid #a50000;
  border-radius: 20px 8px 8px 20px;;
  /* transform: scale(0.99); */
}

.card:has(h3:hover) img { /* h3 hover olduğunda img'ye stil uygula */
  border-left: 16px solid #a50000;
  border-radius: 20px 8px 8px 20px;
}


/* Açılır menü kapsayıcısı */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Menü içeriği (başta gizli) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;       /* Dropdown, ana menünün altına gelsin */
  right: 0;         /* Sağ kenara dayalı */
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Menüdeki linkler */
.dropdown-content a {
  color: #000;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  font-size: 14px;
}

/* Hover olduğunda içerik gösterilir */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown menü açılıp hover olduğunda rengi değişsin */
.dropdown-content a:hover {
  background-color: #3883ab44;
  color: #000;
}





/* FOOTER BAŞLANGIÇ */
footer{
  background-color: #f4f4f4;
}

footer h2{
  position: relative;
  font-size: 40px;
  margin-top: 60px;
  padding: 56px 8px 8px 8px; /* Üst padding artırıldı */
  color: #000;
  overflow: hidden; /* Taşmayı engeller */
}

footer h2::before,
footer h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Normal görünüm */
footer h2::before {
  background: linear-gradient(to right, 
    #3883ab 0%, 
    #3883ab 28%, 
    #a50000 82%, 
    #a50000 100%);
  opacity: 1;
}

/* Hover görünüm (ters gradient) */
footer h2::after {
  background: linear-gradient(to right, 
    #a50000 0%, 
    #a50000 28%, 
    #3883ab 82%, 
    #3883ab 100%);
  opacity: 0;
}

/* Footer hover olduğunda ters gradient yavaşça görünür */
footer:hover h2::before {
  opacity: 0;
}

footer:hover h2::after {
  opacity: 1;
}

#footer-col12{
  display: flex;
  justify-content: center;
  gap: 140px;
}

#footer-col12 a, p{
  color: #293b43 !important;
  font-size: 20px;
  font-weight: bolder;
}

#footer-col12 .col-4{
  width: auto;
}

.footer-icons{
  display: flex;
  justify-content: center;
}

.footer-icons a{
  height: 60px;
}

#footer-sosyal {
  display: flex;
  flex-direction: column; /* Yazı üstte, ikonlar altta */
  align-items: center;    /* Ortalamayı sağlar */
  text-align: center;     /* Yazıyı ortalar */
}

.footer-icons img{
  width: 50px;  /* Daha kontrollü boyut */
  margin: 12px;  /* İkonlar arası boşluk */
  transition: 0.2s ease;
  margin-bottom: 90px;
}

.footer-icons img:hover{
  transform: scale(1.1);
}

.footer-arka-plan{
  background-color: #f4f4f4;
  min-height: 26vh;
}
/* FOOTER BİTİŞ */





/* HAKKIMIZDA BAŞLANGIÇ */
#about-section {
  margin: 60px 40px;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h1 {
  font-size: 36px;
  color: #000;
  margin-bottom: 10px;
}

.about-header p {
  font-size: 20px;
  color: #3883ab;
  font-weight: bold;
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.about-card {
  width: 40%;
  background-color: #f4f4f4;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  border-left: 8px solid #3883ab;
}

.about-card:hover {
  border-left: 16px solid #a50000;
}

.about-card:hover h3 {
  background-color: #3883ab;
  color: #fff;
}

.about-card h3 {
  background-color: #a50000;
  color: #fff;
  padding: 10px;
  border-radius: 20px;
  margin-bottom: 15px;
  text-align: center;
  transition: 0.2s;
}

.about-card p {
  color: #000;
  line-height: 1.6;
  font-size: 16px;
}
/* HAKKIMIZDA BİTİŞ */




/* İLETİŞİM BAŞLANGIÇ */
#contact-section {
  margin: 60px 40px;
  margin: 60px auto;   /* sola yaslı olmasın */
  max-width: 1200px;   /* sayfada genişliği sınırla */
  text-align: center;  /* başlık ve içerikler ortalansın */
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h1 {
  font-size: 36px;
  color: #000;
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 20px;
  color: #3883ab;
  font-weight: bold;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.contact-card {
  width: 40%;
  background-color: #f4f4f4;
  border-radius: 12px;
  padding: 20px 20px 20px 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease;
  border-left: 8px solid #3883ab;
}

.contact-info-card h3, p, a{
  color: #000;
}

.contact-form-card:hover {
  border-left: 8px solid #a50000;
}

.contact-info-card:hover {
  border-left: 8px solid #a50000;
}

.contact-info-card a {
  text-decoration: none; /* alt çizgiyi kaldır */
  transition: color 0.1s ease;
}

.contact-info-card a:hover{
  color: #a50000;
}

.contact-card h3 {
  background-color: #a50000;
  color: #fff;
  padding: 10px;
  border-radius: 20px;
  margin-bottom: 15px;
  text-align: center;
  transition: 0.2s;
}

.contact-card:hover h3 {
  background-color: #3883ab;
  color: #fff;
}

.contact-input,
.contact-textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: vertical; /* Sadece yukarı-aşağı büyütülebilir */
  max-width: 100%;   /* Container dışına çıkamaz */
  max-height: 300px;  /* en fazla 300px yüksekliğe kadar büyüsün */
  min-height: 100px;  /* minimum yükseklik */
  box-sizing: border-box; /* Padding dahil genişlik kontrolü */
  overflow: auto;    /* İçerik taşarsa scroll bar çıkar */
}

.contact-submit-btn {
  width: 50%;
  padding: 12px;
  background-color: #a50000;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.contact-submit-btn:hover {
  background-color: #3883ab;
}

#contact-form {
  position: relative; /* Mutlak konumlandırma için referans */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #000;
  font-size: 15px;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: vertical;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3883ab;
  box-shadow: 0 0 0 2px #3883ab33;
  outline: none;
}

.contact-submit-btn {
  align-self: center;
  padding: 12px 24px;
  background-color: #a50000;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.contact-submit-btn:hover {
  background-color: #3883ab;
}

#charCount {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

/* Başarı mesajı kutusu */
.success-message {
  display: none;
  position: absolute;
  bottom: 0px; /* Butonun üstünde belirsin */
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  animation: fadeIn 0.6s ease-in-out;
  z-index: 10;
  width: max-content;
  max-width: 90%;
}

/* Görünür hale geldiğinde kullanılacak */
.success-message.show {
  display: block;
}

.error-message {
  background-color: #d9534f; /* kırmızı */
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  animation: fadeIn 0.6s ease-in-out;
}

/* Basit fade-in animasyonu */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* İLETİŞİM BİTİŞ */






@media (max-width: 1674px){
    .col-4{
    width: 30%;
    margin: 0 15px;
}

  footer h2{
    margin-top: 0;
  }
}

@media (max-width: 1194px){
    .col-6{
    width: 37%;
    margin: 0 45px;
}
}

@media (max-width: 1074px){
    .col-4{
    width: 30%;
    margin: 0 10px;
}
}

@media (max-width: 816px) {
  .row {
    justify-content: space-between;
    align-items: center;
    position: relative; /* Hamburger pozisyonlaması için gerekli */
  }

  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    z-index: 2;
  }

  .hamburger-nav {
  position: relative;
  }

  .nav-links {
    position: absolute;
    z-index: 1;
    top: 52px; /* hamburger ikonunun altı */
    right: 0;
    background-color: #f4f4f4;
    border: 1px solid #3883ab8a;
    border-radius: 4px;
    display: none;
    flex-direction: column;
    width: 180px; /* Açılan menü genişliği */
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
    text-align: center;
    color: #333;
    text-decoration: none;
  }

  .nav-links a:hover {
    color: #3883ab;
  }

  .dropdown-content a:hover {
  background-color: #3883ab44;
  color: #000;
  }

  .col-3 {
    width: auto;
  }

  .col-4 h3{
  margin-top: 10px !important;
  }

  .col-3 img {
    width: 100px;
  }

  .col-4 {
    width: 100%;
    margin: 0 0 30px 0;
  }

  .col-4 h3{
  margin-top: 0px !important; /* Mobilde card'lar arası boşluğu azaltmak için */
  }

  .col-6 {
    width: 100%;
    margin: 0 0 30px 0;
  }

  .col-6 h3{
    margin-top: 0;
  }

.dropdown {
    position: relative;
  }

  .dropdown > a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .dropdown-content {
    position: absolute;
    top: 0;
    left: -180px; /* sola doğru çıkacak */
    width: 180px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  /* Hamburger menüde dropdown'ı etkilemeden görünmesini sağla */
  .dropdown:hover .dropdown-content {
    display: block;
  }

  /* Kapsayıcıda taşmayı engelle */
  nav {
    position: relative;
    overflow: visible;
  }


/* MOBİL FOOTER BAŞLANGIÇ */
  footer h2{
    margin-top: -30px;
    font-size: 36px;
  }

  #footer-col12{
    gap: 70px;
  }
}

@media (max-width: 600px) {
  footer h2{
    font-size: 26px;
  }

  #footer-col12{
    gap: 30px;
  }

  footer .col-4 a,
  footer .col-4 p {
    font-size: 18px !important; /* veya istediğin boyut */
  }

  .footer-icons img{
    margin: 6px;
    width: 45px;
  }


}
/* MOBİL FOOTER BİTİŞ */




/* MOBİL HAKKIMIZDA BAŞLANGIÇ */
@media (max-width: 768px) {
  .about-card {
    width: 100%;
  }

  .about-header h1 {
    font-size: 28px;
  }

  .about-header p {
    font-size: 18px;
  }

  #last-about-card{
    margin-bottom: 50px; /*Mobilde en son card ile footer alanı arasındaki boşluğu arttırmak için*/
  }
}
/* MOBİL HAKKIMIZDA BİTİŞ */





/* MOBİL İLETİŞİM BAŞLANGIÇ */
@media (max-width: 768px) {
  .contact-card {
    width: 100%;
    border: none;
  }

  .contact-card:hover{
    border: none;
  }

  .contact-header h1 {
    font-size: 28px;
  }

  .contact-header p {
    font-size: 18px;
  }

  #contact-form {
    margin-bottom: 40px; /* Formdan sonra boşluk */
  }

  .contact-info-card {
    margin-bottom: 50px; /* Footer ile arasında boşluk */
  }
}
/* MOBİL İLETİŞİM BİTİŞ */