/* ========= Genel Reset ve Kutulama Modeli ========= */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #121212;   /* Koyu gri zemin */
  color: #eeeeee;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========= Navbar (Tam Genişlik) ========= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  height: 70px;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  width: 100%;
}
/* Logo bölümü */
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 50px;
  width: auto;
}
.logo-text {
  margin-left: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}
.white-text {
  color: #ffffff;
}
.accent-text {
  color: #18C79E;
}
/* Menü ve hover animasyonu */
.menu {
  display: flex;
  gap: 32px;
}
.menu li {
  flex-shrink: 0;
}
.menu li a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  color: #cccccc;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.menu li a:hover {
  color: #FF9700;
}
.menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #FF9700;
  transition: width 0.3s ease-in-out;
}
.menu li a:hover::after {
  width: 100%;
}
.menu li a.active {
  color: #ffffff;
}
.menu li a.active::after {
  width: 100%;
}
@media (max-width: 768px) {
  .nav-container {
    padding: 0 10px;
    height: 60px;
  }
  .logo-img {
    height: 40px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .menu {
    gap: 16px;
  }
  .menu li a {
    font-size: 0.9rem;
    padding: 6px 0;
  }
  .menu li a::after {
    bottom: -1px;
    height: 2px;
  }
}

/* ========= Kod Animasyonu (Arka Plan) ========= */
.code-container {
  position: fixed;
  top: 70px;  /* Navbar’ın yüksekliğini hesaba kat */
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.code-line {
  position: absolute;
  white-space: nowrap;
  opacity: 1;
  font-size: 14px;
  color: #FF9700;
  font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace;
  transition: opacity 1s ease-in-out;
}

/* ========= Ortak Container ========= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: calc(100% - 40px);  /* Kenarlarda 20px boşluk */
  box-sizing: border-box;
}

/* ========= Genel Slide-Up Animasyonu ========= */
@keyframes slideUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-slide-up {
  opacity: 0;
  animation: slideUp 1s ease-out 0.2s forwards;
}

/* ========= Hakkımızda Sayfası Stilleri ========= */
.hakkimizda-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 70px;   /* Navbar’ın altına geç */
  padding-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
  color: #eeeeee;
}

/* ========= “Hakkımızda” Hero Bölümü ========= */
.hero-section {
  max-width: 1800px;
  margin: 40px auto;            /* Üstten 40px boşluk, alt otomatik, ortalanmış */
  width: calc(100% - 40px);     /* Kenar boşlukları için */
  background-color: #1f1f1f;    /* Arka plan rengi */
  padding: 40px 20px;           /* Üst:40px, alt:40px, yan:20px */
  border-radius: 8px;           /* Kenarları hafif yuvarla */
  box-sizing: border-box;
}
.hero-section h1 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-section .subheading {
  font-size: 1.1rem;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto 0;    /* Ortalamak için margin auto (üst:0, alt:0) */
  line-height: 1.6;
}

/* ========= “Kimiz?” Bölümü ========= */
.about-section {
  max-width: 1500px;
  margin: 80px auto;            /* Üstten 80px boşluk, yatayda ortala */
  width: calc(100% - 40px);     /* Kenardan 20px boşluk */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;          /* Dikeyde ortala */
  gap: 40px;
  box-sizing: border-box;
}
.about-text,
.about-image {
  flex: 1 1 400px;
  min-width: 280px;
  box-sizing: border-box;
}
/* Metin kutusuna üst-alt boşluk ver, metni ortala */
.about-text {
  padding: 20px 20px 40px;      /* Altı biraz daha genişletildi */
  text-align: center;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #FF9700;
}
.about-text p {
  font-size: 1rem;
  color: #dddddd;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}
/* Resim kutusu: üst-alt padding, ortalanmış resim */
.about-image {
  padding: 20px;
}
.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* ========= Misyon & Vizyon Bölümü ========= */
.mission-vision-section {
  max-width: 1800px;
  margin: 80px auto;            /* Üstten 80px, yatayda ortala */
  width: calc(100% - 40px);     /* Kenardan 20px boşluk */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 50px 20px;
  box-sizing: border-box;
  background-color: #1f1f1f;
}
/* Kart arka planı hero rengi (#1f1f1f), genişliği biraz artırıldı */
.mission-vision-section .card {
  background-color: #1f1f1f;   /* Hero ile aynı ton */
  border-left: 4px solid #FF9700;  
  border-radius: 0 8px 8px 0;
  padding: 24px 20px 24px 16px;
  flex: 1 1 350px;             
  max-width: 600px;            
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}
.mission-vision-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.mission-vision-section .card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #ffffff;
}
.mission-vision-section .card p {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

/* ========= Değerlerimiz Bölümü ========= */
.values-section {
  max-width: 1600px;
  margin: 80px auto 20px;       
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}
.values-section h2 {
  font-size: 2.2rem;
  color: #FF9700;
  margin-bottom: 24px;
}
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.values-grid .value-card {
  background-color: #2a2a2a;
  border-left: 4px solid #FF9700;
  border-radius: 0 8px 8px 0;
  padding: 24px 20px 24px 16px;
  flex: 1 1 250px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}
.values-grid .value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.values-grid .value-card h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #ffffff;
}
.values-grid .value-card p {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    align-items: center;
    width: calc(100% - 40px);
  }
  .mission-vision-section,
  .values-grid {
    flex-direction: column;
    align-items: center;
    width: calc(100% - 40px);
  }
  .mission-vision-section .card,
  .values-grid .value-card {
    max-width: 100%;
  }
}

/* ========= Hizmetler Sayfası ========= */
/* HERO’NUN ORTALANMASI */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;      
  text-align: center;
  max-width: 1800px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #1f1f1f;
  border-radius: 8px;
  box-sizing: border-box;
}

/* SERVİS KARTLARININ 3x2 LAYOUT’U */
.services-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  
  grid-auto-rows: auto;                   
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* KARTLARI SARMALAYAN DIV’E BORDER-LEFT */
.service-card {
  background-color: #1f1f1f;
  border-left: 4px solid #FF9700;  
  border-radius: 0 8px 8px 0;
  padding: 24px 20px 24px 24px;    
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.service-card .icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

/* Mobilde tek sütuna düşürmek isterseniz */
@media (max-width: 900px) {
  .services-section {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-section {
    grid-template-columns: 1fr;
  }
}

/* Hizmetler sayfasındaki hero’ya ekstra boşluk */
.hizmetler-container .hero-section {
  margin: 100px auto 40px;  
}

/* ========= Anasayfa Hero ========= */
.index-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: calc(100vh - 70px); 
  padding-top: 70px;          
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

/* ========= Buton Stili ========= */
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #FF9700;
  border: 2px solid #FF9700;
  border-radius: 4px;
  background: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
  cursor: pointer;
  margin-top: 16px;
}
.btn-outline:hover {
  background-color: #FF9700;
  color: #121212;
  transform: translateY(-2px);
}
.btn-outline:active {
  transform: translateY(0);
}
/* ========= Projeler – Hero Bölümü ========= */
.projeler-container .hero-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #1f1f1f;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}
.projeler-container .hero-section h1 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 16px;
}
.projeler-container .hero-section .subheading {
  font-size: 1.1rem;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========= Projeler – Hero Bölümü ========= */
.projeler-container .hero-section {
  max-width: 1800px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #1f1f1f;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}
.projeler-container .hero-section h1 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 16px;
}
.projeler-container .hero-section .subheading {
  font-size: 1.1rem;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========= Alternating Sections ========= */
.projeler-container {
  padding-top: 90px;
  padding-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}
.alt-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.alt-section.alt-reverse {
  flex-direction: row-reverse;
}
.alt-text { flex: 1; }
.alt-text h3 { font-size: 1.8rem; margin-bottom: 12px; color: #FF9700; }
.alt-text p { line-height: 1.5; margin-bottom: 16px; color: #ccc; }
.alt-text .btn-outline {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #FF9700;
  color: #FF9700;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.alt-text .btn-outline:hover {
  background: #FF9700;
  color: #121212;
}
.alt-image { flex: 1; }
.alt-image img { width: 100%; border-radius: 8px; display: block; }

@media (max-width: 768px) {
  .alt-section, .alt-section.alt-reverse {
    flex-direction: column;
  }
}

/* ========= İstatistik Daireleri ========= */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;

}
.stat-item {
  position: relative;
  width: 120px;
  height: 120px;
}
.stat-item svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}
.stat-bg {
  fill: none;
  stroke: #333;
  stroke-width: 4;
}
.stat-fg {
  fill: none;
  stroke: #FF9700;
  stroke-width: 4;
  stroke-dasharray: 339.292; /* 2πr, r=54 */
  stroke-dashoffset: 339.292;
  animation: draw 2s ease-out forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
.stat-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.stat-text .number {
  display: block;
  font-size: 1.2rem;
  color: #ffffff;
}
.stat-text .label {
  display: block;
  font-size: 0.85rem;
  color: #cccccc;
}

@media (max-width: 600px) {
  .stats-section {
    width: 100%;        /* Tam genişlik */
    max-width: 480px;   /* İsterseniz bir limit */
    margin: 0 auto;     /* Yatayda ortala */
    justify-content: center; /* Daireler arası boşluk */
    padding: 40px 0;    /* Yatay padding’i kaldırdık */
  }
}

/* ========= İSTATİSTİK DAİRELER ========= */
.stats-section {
  max-width: 1800px;     /* 1800px genişlik */
  margin: 40px auto;     /* Ortala */
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* ========= ALTERNATING BÖLÜMLERİN HERO’SU ========= */
/* Tekli (1., 3., 5., …) alt-section’lara hero stili */
.alt-section:nth-of-type(odd) {
  max-width: 1800px;           /* Genişlik 1800px */
  margin: 40px auto;           /* Ortala ve aralık bırak */
  background-color: #1f1f1f;   /* Hero arka plan */
  border-radius: 8px;          /* Yuvarlak köşe */
  padding: 60px 20px;          /* İç boşluk */
  box-sizing: border-box;
}

/* Çiftli (2., 4., …) alt-section’lar default kalır, 
   isterseniz burada özel stiller ekleyebilirsiniz: */
/* ========= İletişim Bölümü ========= */
.contact-wrapper {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:40px; padding:0 24px;
  margin:60px auto 80px; max-width:1200px;
}
.contact-card {
  background:#1f1f1f; border-radius:8px;
  padding:40px 24px;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
  transition:transform .2s,box-shadow .2s;
}
.contact-card:hover {
  transform:translateY(-4px);
  box-shadow:0 8px 16px rgba(0,0,0,0.4);
}
.form-card h2, .info-card h2 {
  font-size:1.8rem; margin-bottom:16px; color:#fff;
}
.form-group { margin-bottom:16px; }
label {
  display:block; margin-bottom:6px; color:#ccc;
  font-size:0.95rem;
}
input, textarea {
  width:100%; padding:12px;
  background:#282828; border:1px solid #444;
  border-radius:4px; color:#eee;
  font-size:1rem;
}
input::placeholder, textarea::placeholder {
  color:#777;
}
.contact-card button {
  margin-top:12px;
  padding:12px 24px;
  border:2px solid #FF9700;
  background:transparent;
  color:#FF9700; font-weight:600;
  border-radius:4px;
  transition:background .3s,color .3s;
}
.contact-card button:hover {
  background:#FF9700; color:#121212;
}

/* ========= Responsive ========= */
@media (max-width:768px) {
  .contact-wrapper { grid-template-columns:1fr; }
}
/* ========= Responsive Geliştirmeler ========= */

/* Tablet ve altında */
@media (max-width: 1024px) {
  /* Hero başlıkları */
  .index-hero h1 { font-size: 2.8rem; }
  .projeler-container .hero-section h1,
  .hero-section h1 { font-size: 2.4rem; }

  /* Alternating bölümler */
  .alt-section {
    padding: 50px 20px;
    gap: 24px;
  }

  /* İstatistik daireleri */
  .stats-section { gap: 40px; padding: 60px 20px; }
}

/* Küçük tablet / büyük telefon */
@media (max-width: 768px) {
  /* Navbar: menüyü biraz daha sıkıştır */
  .nav-container {
    padding: 0 12px;
  }
  .menu {
    gap: 16px;
    font-size: 0.9rem;
  }

  /* Hero’lar */
  .index-hero h1 { font-size: 2.4rem; }
  .index-hero p { font-size: 1.1rem; }

  .hero-section h1,
  .projeler-container .hero-section h1 { font-size: 2.2rem; }
  .hero-section .subheading,
  .projeler-container .hero-section .subheading { font-size: 1rem; }

  /* Alternating bölümler dikey */
  .alt-section {
    flex-direction: column;
    padding: 40px 16px;
  }
  .alt-image img { height: auto; }

  /* İstatistik daireleri tek satır azal */
  .stats-section { gap: 30px; padding: 50px 16px; }

  /* Hizmetler tek/iki sütun */
  .services-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Telefon ekranları */
@media (max-width: 480px) {
  /* Navbar: yatay scroll */
  .menu {
    overflow-x: auto;
    white-space: nowrap;
  }
  .menu li {
    flex: none;
  }

  /* Hero küçült */
  .index-hero {
    height: auto;
    padding: 80px 16px 40px;
  }
  .index-hero h1 { font-size: 2rem; }
  .index-hero p  { font-size: 0.95rem; }

  /* Alternating bölümler tam dikey */
  .alt-section {
    padding: 30px 12px;
  }

  /* İstatistik tek sütun */
  .stats-section {
    flex-direction: column;
    gap: 24px;
    padding: 40px 12px;
  }

  /* Projeler hero padding */
  .projeler-container .hero-section {
    padding: 30px 16px;
  }

  /* Tüm container boşlukları azalt */
  .container { padding: 0 16px; }
  .contact-wrapper { padding: 0 16px; }
}
/* ========= Hamburger Toggle ========= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: #eeeeee;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}
.hamburger::before {
  transform: translateY(-8px);
}
.hamburger::after {
  transform: translateY(6px);
}

/* Toggle açıkken X göstermek için */
.nav-toggle.open .hamburger {
  background-color: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Media Queries: Hamburger görünür, menü gizli */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;          /* navbar’ın hemen altında */
    left: 0;
    width: 100%;
    background: rgba(18,18,18,0.95);
    backdrop-filter: blur(5px);
    padding: 20px 0;
  }
  .menu.open {
    display: flex;
  }
  .menu li {
    margin: 0;
    text-align: center;
    padding: 12px 0;
  }
  .menu li a {
    font-size: 1.1rem;
  }
}
