/************* TURGUT  KIR  | turgutkr.com ***********/
/* Genel Reset ve Temel Ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #8dc140;
  --secondary: #1e8449;
  --text-color: #e0e0e0;
  --bg-color: #1a1a1a;
  --header-bg: #262626;
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --transition-speed: 0.3s;
  --font-family: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg) !important;
  box-shadow: none !important;
  z-index: 1000;
  transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

  /*   YÜKLENME ANİMASYONU  BAŞLANGIÇ */

/* Preloader Genel Stili */
#preloader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #000; /* Siyah arka plan */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Dönen Logo */
.loader-logo {
  width: 50px; /* Logonun boyutunu ayarlayabilirsin */
  height: 50px;
  animation: spin 1.5s linear infinite;
}

/* Döndürme Animasyonu */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}



/* YÜKLENME ANİMASYONU SON */

.logo {
  text-decoration: none;
}

.logo-img {
  max-height: 70px;
  width: auto;
  display: block;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  font-size: 1rem;
  color: var(--text-color);
  padding: 5px 0;
  transition: color var(--transition-speed) ease, border-bottom var(--transition-speed) ease;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link.active,
.nav-link.active:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: all var(--transition-speed) ease;
}
.hamburger.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: var(--overlay-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1050;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--header-bg);
  box-shadow: -4px 0 20px rgba(0,0,0,0.7);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  z-index: 1100;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav.open ~ .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}
.mobile-nav-close {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.mobile-nav-close:hover {
  color: var(--primary);
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.mobile-nav-links .nav-link {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  color: var(--primary);
}


/* Mobile Navigation Contact & Social */
.mobile-nav-contact {
  margin-top: auto;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}
.mobile-nav-contact .contact-item {
  margin-bottom: 15px;
}
.mobile-nav-contact .contact-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--primary);
}
.mobile-nav-contact .contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-contact .contact-info i {
  font-size: 1.2rem;
}
.mobile-nav-contact .contact-info a,
.mobile-nav-contact .contact-info span {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-nav-contact .contact-info a:hover {
  color: var(--primary);
}
.mobile-nav-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.mobile-nav-social a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.mobile-nav-social a:hover {
  color: var(--primary);
}

/* FOOTER */
.footer {
  background: #0d0d0d;
  color: #ccc;
  font-size: 0.95rem;
}

.footer-top {
  padding: 60px 20px;
  border-bottom: 1px solid #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: var(--primary);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.footer-contact i {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #ccc;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  background: #0a0a0a;
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom p a:hover {
  color: var(--text-color);
}

/* RESPONSIVE CSS */

/* 1200px ve altı */
@media (max-width: 1200px) {
  .header-container {
    max-width: 90%;
  }
}

/* 992px ve altı */
@media (max-width: 992px) {
  .header-container {
    padding: 20px;
  }
  .nav-link {
    font-size: 0.95rem;
  }
}

/* 768px ve altı */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
}

/* 576px ve altı */
@media (max-width: 576px) {
  .header-container {
    padding: 15px 20px;
  }
}


/* ==========================
   Hizmet Bölgelerimiz Sayfası
   ========================== */

/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary: #8dc140;
    --secondary: #1e8449;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --header-bg: #262626;
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --transition-speed: 0.3s;
    --font-family: 'Poppins', sans-serif;
  }
  
  body {
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
  }
  
  /* Hero Bölümü */
  .hizmet-hero {
    position: relative;
    width: 100%;
    height: 50vh; /* Yükseklik ihtiyaca göre */
    overflow: hidden;
    margin-bottom: 40px; /* İçerikle biraz boşluk bırak */
  }
  .hizmet-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }
  .hizmet-hero .hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
  }
  .hizmet-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }
  .hizmet-hero .hero-content p {
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  }
  
  /* Ana Konteyner */
  .hizmet-bolgeleri-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
  }
  .hizmet-bolgeleri-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    text-transform: uppercase;
  }
  .hizmet-bolgeleri-desc {
    text-align: left;
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
  }
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .hizmet-hero {
      height: 40vh;
    }
    .hizmet-hero .hero-content h1 {
      font-size: 2rem;
    }
    .hizmet-hero .hero-content p {
      font-size: 1rem;
    }
    .hizmet-bolgeleri-title {
      text-align: center;
    }
    .hizmet-bolgeleri-desc {
      text-align: center;
    }
  }

 /* Accordion */
.accordion {
  margin-bottom: 20px;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.accordion-header {
  background: #333;
  color: var(--text-color);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #3e3e3e;
}

.accordion-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.accordion-header i {
  transition: transform 0.3s ease;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  background: #1a1a1a;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  display: none; /* Başlangıçta kapalı */
}

/* Açıldığında scroll ve grid ayarı */
.accordion-content.open {
  display: block;
  opacity: 1;
  padding: 15px 20px;
  max-height: 250px; /* 250px kadar göster, daha fazlası scroll ile erişilir */
  overflow-y: auto;
  border-top: 1px solid #444;
}

/* Scrollbar Stili */
.accordion-content::-webkit-scrollbar {
  width: 8px;
}

.accordion-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Mahalle Listesi */
.accordion-content ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive Grid */
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobilde tek sütuna düş */
@media (max-width: 768px) {
  .accordion-content {
    max-height: 200px; /* Mobilde 200px yükseklik */
  }
  
  .accordion-content ul {
    grid-template-columns: 1fr; /* Mobilde tek sütun */
  }
}

/* Tabletlerde 2 sütunlu yap */
@media (min-width: 768px) and (max-width: 1024px) {
  .accordion-content ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Büyük ekranlarda 3 sütunlu yap */
@media (min-width: 1024px) {
  .accordion-content ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.accordion-content li {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 5px;
}

.accordion-content li::before {
  content: '• ';
  color: var(--primary);
}


  /* FOOTER */ 

  /* FOOTER */
.footer {
  background: #0d0d0d;
  color: #ccc;
  font-size: 0.95rem;
}

.footer-top {
  padding: 60px 20px;
  border-bottom: 1px solid #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: var(--primary);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.footer-contact i {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #ccc;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  background: #0a0a0a;
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom p a:hover {
  color: var(--text-color);
}

/* RESPONSIVE CSS */

/* 1200px ve altı */
@media (max-width: 1200px) {
  .header-container {
    max-width: 90%;
  }
}

/* 992px ve altı */
@media (max-width: 992px) {
  .header-container {
    padding: 20px;
  }
  .nav-link {
    font-size: 0.95rem;
  }
}

/* 768px ve altı */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .logo-img{
    max-height: 55px;
  }
}

/* Back to Top Butonu Stilleri */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

.back-to-top:hover {
  background-color: var(--secondary);
}

/* Görünür olduğunda */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Mobil görünümde boyutu küçültelim */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
