/* Genel Stiller */
:root {
  /* Renk paleti */
  --primary-color: #1d3661; /* Koyu mavi */
  --secondary-color: #cc1304; /* Kırmızı */
  --accent-color: #3a7bd5; /* Açık mavi (primary'den türetilmiş) */
  --accent-red: #e63946; /* Kırmızıdan türetilmiş */
  --dark-color: #0a192f; /* Çok koyu mavi */
  --form-color: rgb(238, 238, 248); /*form arka plan*/
  --light-color: #f8f9fa; /* Arka plan rengi */
  --border-color: #e2e8f0;
  --text-color: #333333; /* Ana metin rengi */
  --text-light: #6c757d; /* Açık metin rengi */

  /* Gradyanlar */
  --blue-gradient: linear-gradient(to right, #1d3661, #3a7bd5);
  --red-gradient: linear-gradient(to right, #cc1304, #ed3b4a);
  --callout-gradient: linear-gradient(to right, #1d3661, #cc1304, #1d3661);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;  
}

.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Gradyanlı Butonlar*/
.gradient-btn {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
}

.gradient-btn:hover {
  background: linear-gradient(45deg, #142a4d, #b01000);
}

/* Renki Borderlar*/
.featured-box {
  border-left: 4px solid var(--secondary-color);
  background: white;
}

/* Mobil Menü Stilleri (Düzeltilmiş) */
.mobile-menu-btn {
  display: none;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
}

/* Tüm sayfalar için ortak header stili */
.header .menu-item a {
  color: var(--text-color); /**/
  transition: all 0.3s ease;
}

/* Aktif sayfa stilleri */
.home-page .home-link a,
.services-page .services-link a,
.projects-page .projects-link a,
.price-page .price-link a,
.sss-page .sss-link a,
.about-page .about-link a,
.contact-page .contact-link a,
.offer-page .offer-link a {
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
}

.home-page .home-link a::after,
.services-page .services-link a::after,
.projects-page .projects-link a::after,
.price-page .price-link a::after,
.sss-page .sss-link a::after,
.about-page .about-link a::after,
.contact-page .contact-link a::after,
.offer-page .offer-link a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
}

/* Header Stilleri */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color); /*#fff;*/
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  transition: all 0.3s ease;
}

.navbar {
  transition: right 0.3s ease;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin-left: 30px;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar ul li a:hover {
  color: var(--secondary-color);
}

/* overlay */
.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.navbar-overlay.active {
  display: block;
}

/* Header TEl ve Teklif Al Bölümü*/
.header-cta {
  display: contents;
  align-items: center;
}

.phone {
  display: flex;
  align-items: center;
  margin-right: 20px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.phone i {
  margin-right: 8px;
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  border: 3px solid;
  /*background: var(--secondary-color);*/
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid;
  color: var(--primary-color);
  border-color: var(--primary-color); /**/
}

.btn-secondary:hover {
  /*background-color: var(--primary-color);*/
  background: var(--primary-color);
  color: white;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about img {
  margin-bottom: 20px;
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  opacity: 0.8;
}

.footer-contact ul li i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: white;
}

#backToTopBtn {
  display: none; /* Başlangıçta gizli */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #3b82f6;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0.8;
}

#backToTopBtn:hover {
  background-color: #2563eb;
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background-color: #25D366;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  
  .whatsapp-button:hover {
    transform: scale(1.05);
    background-color: #20b954;
  }
  
  .whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }
  
  @media (max-width: 768px) {
    .whatsapp-button {
      bottom: 15px;
      left: 15px;
      padding: 10px 14px;
      font-size: 14px;
    }
    
    .whatsapp-icon {
      width: 20px;
      height: 20px;
    }
  }

/* Font Awesome için (eğer ekli değilse) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* Mobil cihazlar için boyut ayarı */
@media (max-width: 768px) {
  #backToTopBtn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .header .container {
    position: relative;
    flex-wrap: wrap;
  }

  .header .menu-item a {
    color: var(--light-color); /*var(--text-color)*/
    transition: all 0.3s ease;
  }

  .mobile-menu-btn {
    background: var(--secondary-color);
    display: block;
    position: relative;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
    z-index: 1000;
  }

  .navbar.active {
    right: 0;
  }

  .navbar ul {
    flex-direction: column;
    padding: 20px;
  }

  .navbar ul li {
    margin: 15px 0;
  }

  .navbar ul li a:hover {
    color: var(--secondary-color);
  }

  .header-cta {
    display: contents;
  }

  .navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .navbar-overlay.active {
    display: block;
  }

  .logo {
    margin-bottom: 15px;
  }
}
 