/* ============================================
   MENDERES DİJİTAL — Global Design System
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- CSS Variables --- */
:root {
  --bg: #080808;
  --bg-alt: #0a0a0a;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --fg: #faf6f1;
  --fg-muted: rgba(250,246,241,0.5);
  --fg-dim: rgba(250,246,241,0.35);
  --orange: #ff6d00;
  --orange-deep: #ff4d00;
  --orange-glow: rgba(255,109,0,0.15);
  --orange-subtle: rgba(255,109,0,0.06);
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --pad: clamp(20px, 5vw, 80px);
  --font-display: 'Space Grotesk', Impact, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: 0.35s cubic-bezier(0.16,1,0.3,1);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection { background: var(--orange); color: var(--bg); }

/* --- Typography --- */
.font-display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.9; }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

.text-gradient {
  background: linear-gradient(135deg, #ff6d00, #ff4d00, #ffb700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-glow { text-shadow: 0 0 60px rgba(255,109,0,0.4), 0 0 120px rgba(255,109,0,0.15); }
.text-glow-subtle { text-shadow: 0 0 30px rgba(255,109,0,0.25); }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--orange); display: inline-block; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(40px, 8vw, 100px);
  line-height: 0.9; color: var(--fg); text-transform: uppercase;
  overflow-wrap: break-word; word-break: break-word;
}

/* --- Glass --- */
.glass { background: rgba(8,8,8,0.7); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.glass-card {
  background: rgba(255,255,255,0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--transition);
}
.glass-card:hover { border-color: rgba(255,109,0,0.2); transform: translateY(-4px); }

/* --- Buttons --- */
.btn-primary {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: var(--bg); font-family: var(--font-heading); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 32px; border-radius: 10px; transition: var(--transition);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; background: var(--orange-deep);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,109,0,0.35); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 10px;
  border: 1px solid rgba(255,109,0,0.3); color: var(--orange); font-family: var(--font-heading);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,109,0,0.08); border-color: var(--orange); }

/* --- Navigation --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: var(--transition); background: rgba(8,8,8,0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav.scrolled { background: rgba(8,8,8,0.95); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--pad); max-width: var(--max-w); margin: 0 auto; }
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-main { font-family: var(--font-display); font-size: 22px; color: var(--fg); letter-spacing: 0.05em; transition: color 0.3s; }
.nav-logo-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em; color: var(--orange); }
.nav-logo:hover .nav-logo-main { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--orange); }
.nav-cta { margin-left: 16px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,8,0.98); backdrop-filter: blur(30px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(36px, 10vw, 60px); color: var(--fg); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--orange); }

/* --- Hero --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 80px; max-width: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 var(--pad); max-width: 1000px; }
.hero-title { font-family: var(--font-display); font-size: clamp(40px, 9vw, 130px); line-height: 0.92; color: var(--fg); overflow-wrap: break-word; word-break: break-word; }
.hero-subtitle { margin-top: 24px; font-family: var(--font-heading); font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; color: var(--fg-muted); max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }

/* --- Service Cards --- */
.service-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border); transition: var(--transition);
}
.service-card:hover { border-color: rgba(255,109,0,0.25); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(255,109,0,0.08); }
.service-card-img { position: relative; width: 100%; height: 240px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.service-card:hover .service-card-img img { transform: scale(1.08); }
.service-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--orange-subtle); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card-icon svg { width: 22px; height: 22px; color: var(--orange); }
.service-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--fg); margin-bottom: 8px; transition: color 0.3s; }
.service-card:hover h3 { color: var(--orange); }
.service-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; flex: 1; }
.service-card-link { margin-top: 16px; font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-8px); transition: var(--transition); }
.service-card:hover .service-card-link { opacity: 1; transform: translateX(0); }

/* Service card grid layout */
.service-card > a { display: flex; width: 100%; }
.service-card > a > * { flex: 1 1 50%; min-width: 0; }
.service-card:nth-child(even) > a { flex-direction: row-reverse; }

/* --- Stats --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,109,0,0.08); border: 1px solid rgba(255,109,0,0.12); }
.stat-item { padding: 40px 24px; text-align: center; background: var(--bg); }
.stat-value { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); color: var(--fg); }
.stat-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-dim); margin-top: 8px; }

/* --- Steps --- */
.step { position: relative; padding-bottom: 32px; }
.step-num { font-family: var(--font-display); font-size: 64px; color: rgba(255,109,0,0.15); line-height: 1; }
.step h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--fg); margin: 8px 0; }
.step p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; }

/* --- Testimonial --- */
.testimonial { position: relative; padding-left: 24px; border-left: 2px solid rgba(255,109,0,0.3); }
.testimonial p { font-size: 18px; color: rgba(250,246,241,0.7); line-height: 1.7; font-style: italic; }
.testimonial-author { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-subtle); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--orange); }
.testimonial-name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--fg); }
.testimonial-role { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); }

/* --- FAQ --- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: rgba(255,109,0,0.15); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--fg); text-align: left; transition: color 0.3s; }
.faq-question:hover { color: var(--orange); }
.faq-question svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 14px; color: var(--fg-muted); line-height: 1.8; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13px; color: var(--fg-dim); line-height: 1.7; max-width: 280px; margin-top: 16px; }
.footer h3 { font-family: var(--font-heading); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 16px; }
.footer address { font-family: var(--font-body); font-size: 14px; font-weight: 400; font-style: normal; color: var(--fg-muted); line-height: 1.6; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 13px; color: var(--fg-dim); transition: color 0.3s; }
.footer li a:hover { color: var(--orange); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p, .footer-bottom a { font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); letter-spacing: 0.05em; }
.footer-bottom a:hover { color: var(--fg-muted); }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); margin-bottom: 32px; padding-top: 100px; }
.breadcrumb a { color: var(--fg-dim); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: rgba(255,255,255,0.15); }

/* --- Blog --- */
.blog-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.blog-card:hover { border-color: rgba(255,109,0,0.2); transform: translateY(-4px); }
.blog-card-img { width: 100%; height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-dim); margin-bottom: 12px; }
.blog-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg); margin-bottom: 8px; transition: color 0.3s; }
.blog-card:hover h3 { color: var(--orange); }
.blog-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--fg); font-family: var(--font-body); font-size: 15px;
  transition: var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-select option { background: var(--surface); color: var(--fg); }

/* --- Prose (Blog Content) --- */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--fg); margin: 48px 0 16px; }
.prose h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--fg); margin: 36px 0 12px; }
.prose p { font-size: 16px; color: var(--fg-muted); line-height: 1.8; margin-bottom: 20px; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose li { font-size: 15px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 8px; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--orange); border-bottom: 1px solid rgba(255,109,0,0.3); transition: border-color 0.3s; }
.prose a:hover { border-color: var(--orange); }
.prose blockquote { border-left: 3px solid var(--orange); padding: 16px 24px; margin: 24px 0; background: var(--orange-subtle); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { color: var(--fg); font-style: italic; margin: 0; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { position: absolute; top: 0; left: 0; display: flex; animation: marquee 25s linear infinite; white-space: nowrap; width: fit-content; padding: 14px 0; }

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-title { font-size: clamp(32px, 10vw, 64px); }
  .section-title { font-size: clamp(24px, 8vw, 40px); }
  .cta-title { font-size: clamp(28px, 9vw, 52px); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-card > a { flex-direction: column !important; }
}

@media (max-width: 480px) {
  :root { --pad: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
