/* ============================================================
   MEGAPOL GROUP - HAKKIMIZDA
   site.css yuklendikten SONRA yuklenir.
   OTOMATIK URETILDI - kaynak: sayfa ici <style> bloklari
   ============================================================ */



:root {
  --brand: #041a72;
  --brand-light: #2a3f9e;
  --brand-dark: #141f52;
  --ink: #041A72;
  --ink-soft: #4a4a5a;
  --ink-muted: #8a8a9a;
  --surface: #ffffff;
  --surface-warm: #f7f7fa;
  --surface-cool: #eef0f5;
  --border: #e2e4ea;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --font: 'DM Sans', sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative; top: -1px;
}
.nav a.active { color: #fff; }
.nav a.active::after { width: 100% !important; }

/* ===== SECTIONS SHARED ===== */
section { padding: clamp(72px, 10vw, 128px) 0; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: all 0.35s var(--ease);
}
.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(30,47,119,0.25);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================
   PAGE HERO - Typographic, dark brand
   ================================================ */
.page-hero {
  position: relative;
  background: var(--ink);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(60px, 9vh, 96px);
  overflow: hidden;
}

/* Decorative geometric lines */
.page-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.page-hero-deco::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.page-hero-deco::after {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,47,119,0.55) 0%, transparent 70%);
}

/* Giant watermark text */
.hero-watermark {
  position: absolute;
  bottom: -0.1em;
  left: -0.02em;
  font-size: clamp(9rem, 22vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  white-space: nowrap;
}

/* Right image panel */
.hero-image-panel {
  position: absolute;
  top: 0; right: 0;
  width: 62%;
  height: 100%;
  z-index: 1;
}
.hero-image-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-image-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, rgba(4,26,114,0.7) 35%, rgba(4,26,114,0.2) 100%);
  z-index: 1;
}
.hero-image-panel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--ink) 0%, transparent 100%);
  z-index: 1;
}

/* Hero content */
.page-hero-content {
  position: relative;
  z-index: 2;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-eyebrow-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hero-eyebrow-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.page-hero h1 {
  color: #fff;
  max-width: 680px;
  margin-bottom: 12px;
}
.page-hero h1 .thin {
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  display: block;
}

/* Tagline stats row */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  max-width: 700px;
  flex-wrap: wrap;
}
.hero-tagline-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px 0 0;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-tagline-item:last-child {
  border-right: none;
}
.hero-tagline-number {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.hero-tagline-desc {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: scrollFade 2.5s infinite;
}
.scroll-hint span {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, #fff, transparent);
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ================================================
   SECTION 1 - KURULUŞ (Foundation Story)
   ================================================ */
.founding {
  background: var(--surface);
  overflow: hidden;
}
.founding-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

/* Image column */
.founding-image-col {
  position: relative;
}
.founding-img-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.founding-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.founding-img-main:hover img { transform: scale(1.03); }
.founding-img-main::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(30,47,119,0.1);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* Floating year badge */
.founding-year-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 100px; height: 100px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(4,26,114,0.3);
  z-index: 2;
}
.founding-year-badge .year-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.founding-year-badge .year-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* Text column */
.founding-body .label { margin-bottom: 16px; display: inline-block; }

.founding-pullquote {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--brand);
  opacity: 0.85;
}

.founding-body > p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.75;
  font-size: 0.98rem;
}

/* ================================================
   SECTION 2 - SAYILARLA MEGAPOL (Stats / Dark)
   ================================================ */
.stats-band {
  background: var(--ink);
  padding: clamp(48px, 8vw, 88px) 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,47,119,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stat-item:hover::before { opacity: 1; }
.stat-number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}
.stat-number sup {
  font-size: 0.5em;
  font-weight: 400;
  vertical-align: super;
  opacity: 0.6;
}
.stat-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

/* ================================================
   SECTION 3 - GLOCAL CONCEPT
   ================================================ */
.glocal-section {
  background: var(--surface-warm);
  position: relative;
  overflow: hidden;
}

/* Massive background text */
.glocal-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(12rem, 26vw, 22rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(4,26,114,0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.glocal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.glocal-left .label { margin-bottom: 20px; display: inline-block; }

.glocal-concept-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 24px;
}
.glocal-concept-title .highlight {
  position: relative;
  display: inline-block;
  color: var(--brand);
}
.glocal-concept-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  opacity: 0.25;
  border-radius: 2px;
}

.glocal-left > p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.concept-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.concept-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(30,47,119,0.07);
  border: 1px solid rgba(30,47,119,0.12);
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.concept-pill::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
}

/* Right image */
.glocal-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 64px rgba(4,26,114,0.15);
}
.glocal-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.glocal-image:hover img { transform: scale(1.04); }
.glocal-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,26,114,0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
/* Corner label on image */
.glocal-image-tag {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 2;
  background: rgba(4,26,114,0.85);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ================================================
   SECTION 4 - REFERANS PROJELERİ (Typography list)
   ================================================ */
.projects-section {
  background: var(--surface);
  position: relative;
}

.projects-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(48px, 8vw, 72px);
}
.projects-intro-left .label { margin-bottom: 16px; display: inline-block; }
.projects-intro-left h2 { line-height: 1.1; }
.projects-intro-right > p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* Project list */
.projects-list {
  border-top: 1px solid var(--border);
}
.project-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
  cursor: default;
  position: relative;
}
.project-row::before {
  content: '';
  position: absolute;
  left: -clamp(20px, 4vw, 48px);
  right: -clamp(20px, 4vw, 48px);
  top: 0; bottom: 0;
  background: var(--surface-warm);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}
.project-row:hover::before { opacity: 1; }
.project-row:hover .project-name { color: var(--brand); }
.project-row:hover .project-arrow { opacity: 1; transform: translateX(0); }

.project-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.project-info { display: flex; flex-direction: column; gap: 2px; }
.project-name {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.project-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-meta-dot {
  width: 3px; height: 3px;
  background: var(--border);
  border-radius: 50%;
}
.project-tag-badge {
  padding: 3px 10px;
  background: var(--surface-cool);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.project-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  color: var(--brand);
}

/* ================================================
   CTA STRIP
   ================================================ */
.cta-strip {
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cta-strip p { font-size: 0.95rem; color: var(--ink-soft); }
.cta-strip a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.cta-strip a:hover { color: var(--brand-light); }
.footer-brand p {
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}
.footer-links-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.85rem;
}
.footer-links-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}
.footer-links-col a:hover { color: rgba(255,255,255,0.85); }
.footer-contact {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .founding-grid { grid-template-columns: 1fr; gap: 40px; }
  .founding-img-main { max-width: 480px; aspect-ratio: 2/3; margin: 0 auto; }
  .founding-year-badge { right: -8px; bottom: -16px; }
  .glocal-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects-intro { grid-template-columns: 1fr; gap: 24px; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero-image-panel { display: none; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }

  /* Hero istatistikleri: esnek sarma yerine sabit 2x2 izgara (3+1 kaymasini onler) */
  .hero-tagline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    max-width: 440px;
    padding-top: 24px;
  }
  .hero-tagline-item {
    padding: 0;
    margin: 0;
    border-right: none;
  }
  .hero-tagline-item:nth-child(even) {
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 18px;
  }

  .project-row { grid-template-columns: 40px 1fr auto; gap: 14px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-contact { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .stats-band-inner { grid-template-columns: 1fr 1fr; }
  /* 2x2 izgara dar telefonlarda biraz daha sik */
  .hero-tagline { gap: 18px 12px; max-width: 340px; }
  .hero-tagline-item:nth-child(even) { padding-left: 14px; }
  section { padding: clamp(48px, 8vw, 80px) 0; }
}
