@import url("mobile.css");
@import url("image-fallback.css");

:root {
  --bg: #0a0b0d;
  --glass: rgba(12, 14, 18, 0.72);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.55);
  --accent: #c41e2a;
  --accent-soft: rgba(196, 30, 42, 0.35);
  --dropdown-bg: #ffffff;
  --dropdown-text: #1a1a1e;
  --radius: 14px;
  --nav-h: 72px;
  --nav-h-mobile: 118px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: auto;
  overflow-x: clip;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

.bg-scene {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  background: url("../assets/bg/hero.jpg") center / cover no-repeat; /* PNG: assets/bg/hero.png — js otomatik seçer */
}
.bg-scene::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,8,.92) 0%, rgba(8,10,14,.85) 40%, rgba(5,6,8,.95) 100%);
  backdrop-filter: blur(2px);
}
.bg-scene::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(255,120,40,.12) 0%, transparent 60%),
    radial-gradient(ellipse 30% 20% at 30% 70%, rgba(196,30,42,.08) 0%, transparent 50%);
  pointer-events: none;
}

.parallax-wrap { position: relative; z-index: 1; min-height: 100vh; }
.parallax-layer {
  position: fixed; pointer-events: none; z-index: 0;
  border-radius: var(--radius);
  background: rgba(10,12,16,.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}
.parallax-layer.l1 { width: 42vw; height: 28vh; top: 18%; left: -8%; opacity: .5; }
.parallax-layer.l2 { width: 35vw; height: 22vh; top: 45%; right: -6%; opacity: .4; }
.parallax-layer.l3 { width: 28vw; height: 18vh; bottom: 12%; left: 15%; opacity: .35; }

.spark {
  position: fixed; width: 3px; height: 3px; border-radius: 50%;
  background: #ff8c42; box-shadow: 0 0 8px #ff6b20;
  animation: spark 4s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.spark:nth-child(1) { top: 35%; left: 62%; animation-delay: 0s; }
.spark:nth-child(2) { top: 55%; left: 28%; animation-delay: 1.2s; }
.spark:nth-child(3) { top: 72%; left: 75%; animation-delay: 2.4s; }
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: auto;
  min-height: var(--nav-h);
  background: rgba(8, 9, 12, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}
.top-panel {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.top-panel__brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 32px;
  min-height: var(--nav-h);
}
.top-panel__nav {
  width: 100%;
}
.nav-inner.top-panel {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}
@media (min-width: 1025px) {
  .top-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    align-items: center;
    min-height: var(--nav-h);
    padding: 0 32px;
    gap: 12px 20px;
  }
  .top-panel__brand-row {
    display: contents;
    padding: 0;
    min-height: 0;
  }
  .logo--img {
    grid-column: 1;
    grid-row: 1;
  }
  .top-panel__nav-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
  }
  .top-panel__nav {
    width: auto;
    overflow: visible;
    border: none;
  }
  .lang-flags {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo--img {
  padding: 6px 14px 6px 0;
  margin-right: 8px;
}
.logo-img {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(320px, 58vw);
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45))
          drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
  opacity: 1;
}
.logo--img:hover .logo-img {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.65))
          drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.nav-center { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-center > li { position: relative; }
.nav-center a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 0.8125rem; font-weight: 500;
  color: var(--text); text-decoration: none; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-center a:hover { background: rgba(255,255,255,.06); }
.nav-center a.active { color: var(--accent); }
.nav-center a svg { width: 16px; height: 16px; opacity: .9; }

.nav-has-dropdown { position: relative; }
.dropdown-panel {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 240px;
  background: var(--dropdown-bg);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.2s, visibility 0.2s;
}
.dropdown-panel.is-placed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Link ile panel arasında hover kopmasın */
.dropdown-panel.is-placed::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--dropdown-arrow-x, 24px);
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--dropdown-bg);
}
.dropdown-panel a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: var(--dropdown-text) !important;
  font-size: 0.875rem; border-radius: 0;
}
.dropdown-panel a:hover { background: rgba(0,0,0,.04); }
.dropdown-panel .arrow {
  color: var(--accent); font-size: .75rem; font-weight: 700;
  width: 14px; text-align: center;
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-flags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}
.lang-btn {
  width: 24px;
  height: 17px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  background: none;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
}
.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-center a.active,
.nav-kurumsal.active {
  color: var(--accent) !important;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-status--success { color: #6ee7a0; }
.form-status--error { color: #f87171; }
.form-status--info { color: var(--muted); }
.form-status--loading { color: var(--muted); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 32px 80px;
  max-width: 1400px; margin: 0 auto; position: relative; z-index: 2;
}
.hero-content { will-change: transform, opacity; }
body.scroll-page .hero {
  background: linear-gradient(180deg, transparent 60%, rgba(5,6,8,.9) 100%);
}
.hero-tag {
  font-size: .75rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.03em; max-width: 14ch;
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.125rem; color: var(--muted); max-width: 52ch; margin-bottom: 40px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: .9rem; font-weight: 600;
  border-radius: 12px; text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 32px var(--accent-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-soft); }
.btn-ghost {
  background: rgba(255,255,255,.08); color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: .3; transform: scaleY(.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* SECTIONS */
section { position: relative; z-index: 2; padding: 100px 32px; max-width: 1400px; margin: 0 auto; }
.section-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 48px; max-width: 20ch;
}
.glass-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 32px;
  backdrop-filter: blur(20px);
  transition: transform .3s, border-color .3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.1);
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; align-items: start; }

.stats {
  display: flex; flex-wrap: wrap; gap: 48px; padding: 64px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.stat strong { display: block; font-size: 2.5rem; font-weight: 700; color: var(--text); }
.stat span { font-size: .85rem; color: var(--muted); }

/* PAGE */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 32px 60px;
  max-width: 1400px; margin: 0 auto; position: relative; z-index: 2;
}

.breadcrumb {
  margin-bottom: 20px;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
}
.breadcrumb__item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb__item a:hover {
  color: var(--text);
}
.breadcrumb__sep {
  color: rgba(245, 245, 247, 0.22);
  user-select: none;
  padding: 0 2px;
}
.breadcrumb__item--current span {
  color: rgba(245, 245, 247, 0.88);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.page-content {
  max-width: 900px; margin: 0 auto; padding: 0 32px 100px;
  position: relative; z-index: 2;
}
.page-content h2 { font-size: 1.35rem; margin: 40px 0 16px; }
.page-content p, .page-content li { color: var(--muted); margin-bottom: 16px; }
.page-content ul { padding-left: 24px; margin-bottom: 24px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 32px; }
.cert-item {
  aspect-ratio: 3/4; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--muted); text-align: center; padding: 16px;
}

.contact-form { display: grid; gap: 20px; max-width: 560px; margin-top: 32px; }
.contact-form label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: rgba(0,0,0,.35);
  color: var(--text); font-family: inherit; font-size: .95rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info { margin-top: 48px; }
.contact-info p { margin-bottom: 8px; }
.contact-page { max-width: 1200px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-map-wrap { width: 100%; }
.contact-map-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 16px;
}
.contact-map {
  width: 100%; height: min(480px, 60vh);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  filter: grayscale(20%) contrast(1.05);
}
.map-link-btn { display: inline-flex; margin-top: 16px; }

html[dir="rtl"] .nav-inner { direction: rtl; }
html[dir="rtl"] .dropdown-panel::before {
  left: var(--dropdown-arrow-x, 24px);
  right: auto;
  transform: translateX(-50%);
}
html[dir="rtl"] .scroll-panel__inner,
html[dir="rtl"] .page-content,
html[dir="rtl"] .contact-grid { direction: rtl; }
html[dir="rtl"] .reveal.from-left { transform: translateX(120px) translateY(40px) scale(0.94); }
html[dir="rtl"] .reveal.from-right { transform: translateX(-120px) translateY(40px) scale(0.94); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 360px; }
}

.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--glass-border);
  padding: 48px 32px; max-width: 1400px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  font-size: .85rem; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 1024px) {
  .top-panel__brand-row {
    padding: 0 16px;
    min-height: 64px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .logo-img {
    height: 48px;
    max-width: min(240px, 52vw);
  }
  .top-panel__nav {
    overflow: visible;
    border-top: 1px solid var(--glass-border);
  }
  .nav-center {
    flex-wrap: nowrap;
    width: max-content;
    max-width: 100%;
    padding: 6px 12px 10px;
    gap: 2px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-center::-webkit-scrollbar { display: none; }
  .nav-center a {
    padding: 10px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    min-height: 44px;
  }
  .dropdown-panel {
    max-width: min(280px, calc(100vw - 24px));
  }
}
@media (max-width: 640px) {
  .nav-inner { padding: 0; }
  .hero, section, .page-hero { padding-left: 20px; padding-right: 20px; }
  .page-content { padding-left: 20px; padding-right: 20px; }
  .logo-img {
    height: 42px;
    max-width: min(200px, 46vw);
  }
  .lang-flags { gap: 3px; }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .grid-4 .glass-card {
    padding: 20px 14px;
  }
  .grid-4 .glass-card h3 {
    font-size: 0.9rem;
  }
  .stats {
    gap: 20px 28px;
    justify-content: center;
  }
  .stat strong { font-size: 1.85rem; }
  .scroll-finale { padding: 80px 20px; }
  .hero h1 { max-width: none; }
  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
}
