/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b1220;
  background: #f6f8fb;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6ebf2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }

/* LOGO (yks.png) */
.logo {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e6ebf2;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title { font-weight: 900; font-size: 18px; }
.brand-sub { font-size: 12px; color: #5b667a; margin-top: 2px; }

.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: #334155;
  font-weight: 700;
}
.nav a:hover { background: #eef3fb; }

/* HERO + SLIDER */
.hero { padding: 0; }
.slider {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  border-bottom: 1px solid #e6ebf2;
}
.slides {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 15s infinite;
}
.slide {
  width: 100%;
  height: 100%;
  position: relative;

  background-size: contain;      /* ✅ orijinal oran */
  background-position: center;   /* ✅ ortala */
  background-repeat: no-repeat;  /* ✅ tekrar etmesin */
  background-color: #000;        /* ✅ boş kalan yerler siyah */
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,6,23,0.75), rgba(2,6,23,0.15));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
}
.slide-overlay h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.slide-overlay p {
  margin-top: 10px;
  font-size: 16px;
  max-width: 560px;
  color: rgba(255,255,255,0.9);
}
.cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }


@keyframes slide {
  0%   { transform: translateX(0%); }
  30%  { transform: translateX(0%); }
  35%  { transform: translateX(-33.333%); }
  65%  { transform: translateX(-33.333%); }
  70%  { transform: translateX(-66.666%); }
  95%  { transform: translateX(-66.666%); }
  100% { transform: translateX(0%); }
}
.s1 { background-image: url("1.png.jpeg"); }
.s2 { background-image: url("2.png.jpeg"); }
.s3 { background-image: url("3.png.jpeg"); }
.s4 { background-image: url("4.png.jpeg"); }
.s5 { background-image: url("5.png.jpeg"); }
.s6 { background-image: url("6.png.jpeg"); }
.s7 { background-image: url("7.png.jpeg"); }
.s8 { background-image: url("8.png.jpeg"); }
.s9 { background-image: url("9.png.jpeg"); }


.dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0.9;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 800;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: #0ea5e9;
  border-color: transparent;
}

/* SECTIONS */
.section { padding: 70px 0; }
.section.alt { background: #ffffff; border-top: 1px solid #e6ebf2; border-bottom: 1px solid #e6ebf2; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 30px; letter-spacing: -0.02em; }
.section-head p { margin-top: 8px; color: #5b667a; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}
.about-card {
  background: white;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}
.about-card h3 { font-size: 18px; margin-bottom: 10px; }
.about-card ul { margin-top: 8px; padding-left: 18px; color: #334155; }
.about-card li { margin: 6px 0; }
.about-card.highlight { background: #0b1220; color: #e5e7eb; border-color: #0b1220; }
.about-card.highlight p { margin-top: 10px; color: rgba(229,231,235,0.9); }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.stat-num { font-weight: 900; font-size: 18px; }
.stat-text { opacity: 0.85; font-size: 12px; margin-top: 2px; }

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.person {
  background: #f6f8fb;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  font-weight: 900;
  color: #0b1220;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service-card {
  background: white;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.05);
}
.service-card h3 { font-size: 18px; }
.service-card p { margin-top: 8px; color: #5b667a; line-height: 1.4; }

/* KONUM BÖLÜMÜ */
.map-section {
  background: linear-gradient(180deg, #050b18, #020617);
  padding: 80px 0;
  color: white;
}
.map-section .container {
  max-width: 900px;
  text-align: center;
}
.map-box {
  background: #0b1220;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.map-box iframe {
  width: 100%;
  height: 260px;
  border: none;
  border-radius: 12px;
}
.map-info h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.map-info p {
  opacity: 0.85;
  margin-bottom: 16px;
}

/* FOOTER */
.footer {
  background: #0b1220;
  color: #e5e7eb;
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-title { font-weight: 900; font-size: 18px; margin-bottom: 10px; }
.footer a { color: #e5e7eb; text-decoration: underline; text-underline-offset: 3px; }
.copyright {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  opacity: 0.85;
  font-size: 13px;
}

/* FLOATING BUTTONS */
.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  padding: 12px 14px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.fab-whatsapp:hover { transform: translateY(-2px); }

.fab-nav {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  border: 1px solid #e6ebf2;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  font-weight: 900;
}
.fab-btn:hover { transform: translateY(-2px); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .slide-overlay { padding: 0 6%; }
}
@media (max-width: 520px) {
  .nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .slider { min-height: 520px; }
}

/* =========================
   MOBILE FIX PACK (ADD END)
   ========================= */

/* iPhone notch / safe-area uyumu */
:root{
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Hover animasyonları mobilde zıplamasın */
@media (hover: none) {
  .btn:hover,
  .fab-whatsapp:hover,
  .fab-btn:hover,
  .nav a:hover {
    transform: none !important;
  }
}

/* Header: küçük ekranda kırılma/taşma engeli */
@media (max-width: 760px) {
  .header-inner{
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .brand{
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .logo{
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .brand-title{
    font-size: 16px;
    line-height: 1.15;
    text-align: center;
  }

  .brand-sub{
    text-align: center;
  }

  /* Nav yoksa bile boşluk sorun olmasın */
  .nav{
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
}

/* Genel mobil: spacing + grid’ler */
@media (max-width: 520px) {
  .container { width: min(1100px, 92%); }

  .section { padding: 46px 0; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14px; }

  /* Sen nav’ı 520px altında kapatıyorsun: OK.
     Ama header tek satırda düzgün görünsün diye yukarıdaki wrap fixleri yeterli. */
  .nav { display: none; }

  /* Kart paddingleri biraz küçülsün */
  .about-card { padding: 16px; border-radius: 16px; }
  .service-card { padding: 16px; border-radius: 16px; }

  /* Mini stats: 3’lü yerine 2’li + 1 alt satır daha iyi */
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 16px; }

  /* Team 2'li yerine 1'li daha rahat */
  .team-grid { grid-template-columns: 1fr; }

  /* Slider: mobilde dev olmasın */
  .slider {
    height: 48vh;
    min-height: 320px;
  }

  /* Resimler mobilde daha “dolu” görünmesi için cover daha iyi.
     Eğer siyah boşlukları seviyorsan contain kalsın; ama mobilde cover daha profesyonel durur. */
  .slide{
    background-size: cover;
    background-color: #000;
  }

  /* Harita alanı: padding ve başlıklar */
  .map-section { padding: 56px 0; }
  .map-info h2 { font-size: 22px; }
  .map-box iframe { height: 240px; }

  /* Footer: daha kompakt */
  .footer { padding: 40px 0 18px; }
}

/* Floating butonlar: safe-area + ekranı kaplamasın */
@media (max-width: 520px) {
  .fab-whatsapp {
    right: calc(14px + var(--safe-right));
    bottom: calc(14px + var(--safe-bottom));
    padding: 11px 13px;
    font-size: 14px;
  }

  .fab-nav {
    right: calc(14px + var(--safe-right));
    bottom: calc(66px + var(--safe-bottom));
    gap: 8px;
  }

  .fab-btn { width: 42px; height: 42px; }
}

/* 901-1100 arası: 3 kolon sıkışırsa otomatik 2’ye düşsün (daha akıcı) */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Çok küçük telefonlar (360px altı) */
@media (max-width: 360px) {
  .brand-title { font-size: 15px; }
  .logo { width: 52px; height: 52px; }
  .slider { min-height: 280px; }
}
