/* ==========================================================================
   2026 ULTRA-MINIMALIST & PROFESSIONAL GLASSMORPHISM THEME
   (Apple / Stripe / Vercel Aesthetics)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* LIGHT THEME VARIABLES */
  --bg-color: #FAFAFB;
  --surface-color: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  
  --primary: #000000;
  --primary-glow: rgba(0,0,0,0.1);
  --accent: #2563EB; /* Clean Blue */
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0,0,0,0.03);
  
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* DARK THEME VARIABLES */
  --bg-color: #0A0A0B;
  --surface-color: #121213;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  
  --primary: #FFFFFF;
  --primary-glow: rgba(255,255,255,0.1);
  --accent: #60A5FA;
  
  --glass-bg: rgba(18, 18, 19, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background accent */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.03;
  filter: blur(100px);
  z-index: -1; pointer-events: none;
}
[data-theme="dark"] body::before { opacity: 0.05; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { font-size: 1.05rem; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Refined Neumorphism / Glass Box */
.neu-box {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.neu-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
[data-theme="dark"] .neu-box:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

/* Buttons */
.btn-neon {
  background: var(--primary);
  color: var(--bg-color);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
[data-theme="dark"] .btn-neon { color: var(--bg-color); }
.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--primary-glow);
}
.btn-outline {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  background: transparent;
}
.btn-outline:hover { background: var(--surface-color); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 24px 0; z-index: 999;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header.scrolled {
  padding: 16px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* Subtle Logo */
.logo-wrapper { display: flex; align-items: center; gap: 8px; }
.logo-icon svg { width: 32px; height: 32px; fill: var(--primary); }
.logo-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em; }

/* Top Nav */
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-item { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-item:hover, .nav-item.active { color: var(--text-main); }

/* Sleek Mega Menu */
.has-mega-menu { position: relative; padding: 10px 0; }
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  width: 600px;
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-radius: var(--border-radius);
  padding: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
[data-theme="dark"] .mega-menu { box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.has-mega-menu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.mega-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; border-radius: 12px;
}
.mega-item:hover { background: var(--bg-color); }
.mega-item svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--text-main); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mega-item div { display: flex; flex-direction: column; }
.mega-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.mega-item span { font-size: 0.85rem; color: var(--text-muted); }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Theme Switcher Minimal */
.theme-switch {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--surface-color); transition: var(--transition);
}
.theme-switch:hover { background: var(--bg-color); }
.theme-switch svg { width: 16px; height: 16px; fill: none; stroke: var(--text-main); stroke-width: 2; }

/* Utility */
.text-gradient {
  background: linear-gradient(135deg, var(--text-main), var(--text-muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--bg-color); border: 1px solid var(--glass-border);
  color: var(--text-muted); margin-bottom: 16px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
/* ======================
   MOBILE MENU / HAMBURGER
   ====================== */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mobile-menu-overlay.active {
    transform: translateX(0);
}
.close-mobile-btn {
    position: absolute;
    top: 32px; right: 32px;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}
.mobile-nav-links {
    list-style: none;
    padding: 0; text-align: center;
}
.mobile-nav-links li {
    margin-bottom: 12px;
}
.mobile-nav-links a {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}
.mobile-nav-links a.mobile-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ======================
   RESPONSIVE DESIGN 
   ====================== */
@media (max-width: 992px) {
    /* Header Mobile Yapısı: Row kalması için flex-direction column İPTAL edildi. Sadece nav-links gizlendi. */
    .nav-links { display: none; }
    .hamburger-btn { display: block; }
    .d-none-mobile { display: none; }
    .mega-menu { display: none !important; } 
    .hero-h1 { font-size: 2.5rem; }
    .hero-p { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
  .container > div[style*="grid-template-columns"],
  section > .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .neu-box { padding: 24px !important; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > div { align-items: center; }

  /* HERO: mobilde dikey yığılma */
  section > .container[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  section > .container[style*="grid-template-columns: 1fr 1fr"] h1 {
    font-size: 2.5rem !important;
  }
  section > .container[style*="grid-template-columns: 1fr 1fr"] p {
    margin-left: auto;
    margin-right: auto;
  }
  section > .container[style*="grid-template-columns: 1fr 1fr"] div[style*="display: flex; gap: 16px"] {
    justify-content: center;
  }

  /* SÜREÇ 4-sütun => 2-sütun */
  div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* İstatistik Grid */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap:24px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Referans logoları daraltma */
  div[style*="justify-content: space-around"] {
    gap: 16px !important;
  }
  div[style*="justify-content: space-around"] h2 {
    font-size: 1.3rem !important;
  }

  /* Buton pill-box taşma önleme */
  div[style*="border-radius:100px"][style*="backdrop-filter"] {
    border-radius: 16px !important;
    flex-direction: column;
    padding: 16px !important;
    gap: 12px !important;
  }
  div[style*="border-radius:100px"][style*="backdrop-filter"] a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Strict Grid tek sütuna düşür (<768px) */
  .strict-grid {
    grid-template-columns: 1fr !important;
  }
}

/* iPhone 15 Pro Max ve benzeri büyük telefonlar (430px) */
@media (max-width: 480px) {
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.2rem !important; }
  .container { padding: 0 16px; }
  
  /* Süreç gridini mobilde tek sütuna düşür */
  div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Hızlı Teklif CTA kutusu */
  .neu-box[style*="padding: 64px"] {
    padding: 32px 20px !important;
  }

  /* Hero butonlar tam genişlik */
  section > .container[style*="grid-template-columns: 1fr 1fr"] div[style*="display: flex; gap: 16px"] {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  section > .container[style*="grid-template-columns: 1fr 1fr"] div[style*="display: flex; gap: 16px"] a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hero img küçültme */
  section img[style*="max-width: 500px"] {
    max-width: 280px !important;
    margin: 0 auto;
  }

  /* Floating 3D objeleri küçült */
  .floating-obj {
    opacity: 0.08 !important;
  }
  .obj-1 { width: 60px !important; }
  .obj-2 { width: 90px !important; }
  .obj-3 { width: 50px !important; }
  .obj-4 { width: 70px !important; }
  .obj-5 { width: 55px !important; }
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Premium Infinite Marquee Styles */
.marquee-wrapper {
  overflow: hidden;
  display: flex;
  width: 100%;
  position: relative;
  background: rgba(10, 10, 11, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .marquee-wrapper {
  background: rgba(250, 250, 251, 0.85);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 160s linear infinite;
  align-items: center;
}

.marquee-content {
  display: flex;
  align-items: center;
  padding-right: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  color: var(--text-main);
  opacity: 0.7;
}

