/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:root {
  --color-bg-deep: #14171c;
  --color-bg-deep-rgb: 20, 23, 28;
  --color-bg-mid: #1b1f26;
  --color-accent: #d4862d;
  --color-accent-light: #ea9d5e;
  --color-accent-rgb: 212, 134, 45;
  --color-coral: #ff6b4a;
  --color-coral-light: #ff8f73;
  --color-text: #f4f4f2;
  --color-text-muted: rgba(244, 244, 242, 0.7);
  --color-glass: rgba(255, 255, 255, 0.05);
  --color-glass-border: rgba(255, 255, 255, 0.12);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  --gradient-coral: linear-gradient(135deg, var(--color-coral) 0%, var(--color-coral-light) 100%);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1180px;
  --header-height: 104px;
  --radius-lg: 28px;
  --radius-xl: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-mid) 100%);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--color-text-muted); }

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

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:focus-visible,
.btn-sahibinden:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-bg-deep);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--color-accent-rgb), 0.35); }
.btn-outline {
  border: 1px solid var(--color-glass-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-sahibinden {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gradient-accent);
  color: var(--color-bg-deep);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-sahibinden:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(var(--color-accent-rgb), 0.3); }
.btn-sahibinden__icon { flex-shrink: 0; }

/* Header — floating pill navbar */
.site-header {
  position: fixed;
  top: 20px; left: 0; right: 0;
  z-index: 100;
  transition: top 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(var(--color-bg-deep-rgb), 0.6);
  border: 1px solid var(--color-glass-border);
  border-radius: 999px;
  padding: 8px 8px 8px 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { top: 12px; }
.site-header.scrolled .nav-inner {
  background: rgba(var(--color-bg-deep-rgb), 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo span { color: var(--color-accent); }
.nav-collapsible {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 5px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: navFadeSlide 0.4s ease both;
}
.nav-links a:nth-child(1) { animation-delay: 0.04s; }
.nav-links a:nth-child(2) { animation-delay: 0.09s; }
.nav-links a:nth-child(3) { animation-delay: 0.14s; }
.nav-links a:nth-child(4) { animation-delay: 0.19s; }
.nav-links a:nth-child(5) { animation-delay: 0.24s; }
@keyframes navFadeSlide {
  from { opacity: 0; transform: translateY(-6px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.nav-links a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px) scale(1.04);
}
.nav-links a:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}
.nav-links a.active {
  color: var(--color-bg-deep);
  background: var(--gradient-accent);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a { animation: none; opacity: 1; transform: none; }
  .nav-links a:hover { transform: none; }
  .nav-links a:active { transform: none; }
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; flex-shrink: 0; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 20, 0.55) 0%, rgba(28, 24, 20,0.85) 75%, var(--color-bg-mid) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content p { font-size: 1.15rem; margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Aurora glow accents */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.aurora--accent { background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%); width: 480px; height: 480px; }
.aurora--coral { background: radial-gradient(circle, var(--color-coral) 0%, transparent 70%); width: 560px; height: 560px; }
.aurora--pos-a { top: 8%; right: -8%; }
.aurora--pos-b { bottom: -12%; left: -6%; }
.aurora--cta { width: 320px; height: 320px; top: -100px; right: -60px; opacity: 0.25; }
@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, -28px) scale(1.08); }
}
.aurora { animation: aurora-float 16s ease-in-out infinite; }
.aurora--coral { animation-duration: 20s; animation-direction: reverse; }

/* Ghost wordmark (homepage hero) */
.hero-ghost-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 242, 0.08);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* Shimmer title effect */
.shimmer-text {
  background: linear-gradient(90deg, var(--color-text) 0%, var(--color-accent-light) 25%, var(--color-accent) 50%, var(--color-accent-light) 75%, var(--color-text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-move 6s linear infinite;
}
@keyframes shimmer-move {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer-text { animation: none; background-position: 0% center; }
}

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }

/* Marquee wordmark background (flat sections) */
.section--marquee { position: relative; overflow: hidden; }
.section--marquee > .container { position: relative; z-index: 1; }
.marquee-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  white-space: nowrap;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 242, 0.07);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Glass card — enhanced with deeper glass and shine reflection */
.card-glass {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Shine reflection sweep */
.card-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.6s ease;
}
.card-glass:hover::after {
  left: 120%;
}
.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .card-glass::after { display: none; }
}

/* Service grid (Ana Sayfa) — bento layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--color-accent); }
.service-card[data-card-bg] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
}
.service-card__icon { font-size: 2rem; }
.service-card a.btn { align-self: flex-start; margin-top: 8px; }
.service-card--feature { grid-column: span 2; grid-row: span 2; }
.service-card--feature .service-card__icon { font-size: 3.25rem; }
.service-card--feature h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.service-card--wide { grid-column: span 2; }

/* Stats (Neden Biz) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  display: block;
}

/* Gallery strip */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-strip img { border-radius: 16px; height: 260px; object-fit: cover; width: 100%; }

/* Marquee gallery — auto-scrolling image strip for large photo sets */
.marquee-gallery {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-gallery__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-gallery-scroll var(--marquee-duration, 40s) linear infinite;
}
.marquee-gallery:hover .marquee-gallery__track { animation-play-state: paused; }
.marquee-gallery__item { flex-shrink: 0; width: 320px; }
.marquee-gallery__item img {
  border-radius: 16px;
  height: 240px;
  object-fit: cover;
  width: 100%;
}
.marquee-gallery__caption {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
@keyframes marquee-gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-gallery { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-gallery__track { animation: none !important; }
}
@media (max-width: 720px) {
  .marquee-gallery__item { width: 220px; }
  .marquee-gallery__item img { height: 165px; }
}

/* CTA band */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.15), rgba(var(--color-accent-rgb), 0.05));
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
  overflow: hidden;
}
.cta-band h2, .cta-band p, .cta-band .btn-primary, .cta-band .btn-outline { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .btn-primary { margin-top: 12px; }

/* Process timeline (Nakliyat) */
.timeline-viewport {
  overflow: hidden;
  padding-left: 24px;
}
.process-timeline {
  display: flex;
  gap: 32px;
  width: max-content;
}
.process-step {
  width: 320px;
  flex-shrink: 0;
}
.process-step .step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
}

/* Listing cards (Galeri) */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listing-card { overflow: hidden; padding: 0; }
.listing-card img { height: 200px; object-fit: cover; width: 100%; }
.listing-card__body { padding: 24px; }
.listing-card__price { color: var(--color-accent); font-weight: 700; font-size: 1.2rem; margin-top: 8px; }
.listing-card__meta { display: flex; gap: 16px; font-size: 0.85rem; margin-top: 8px; color: var(--color-text-muted); }

/* Footer */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--color-glass-border); margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h3 { font-size: 1rem; margin-bottom: 16px; color: var(--color-accent); }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid iframe { width: 100%; height: 160px; border: 0; border-radius: 12px; }
.footer-bottom { margin-top: 48px; text-align: center; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 960px) {
  .service-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--feature, .service-card--wide { grid-column: span 2; grid-row: span 1; }
  .gallery-strip, .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-inner { padding: 8px 8px 8px 20px; }
  .nav-collapsible {
    position: fixed;
    top: calc(var(--header-height) - 16px); left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(var(--color-bg-deep-rgb), 0.97);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    padding: 16px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-collapsible.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    background: none;
    padding: 0;
    gap: 4px;
  }
  .nav-links a { padding: 12px 16px; }
  .btn-sahibinden { justify-content: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .service-grid, .stats-grid, .gallery-strip, .listing-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card--feature, .service-card--wide { grid-column: span 1; grid-row: span 1; }
  /* Process timeline — mobilde dikey listeye dön */
  .process-timeline {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  .process-step {
    width: 100%;
  }
  .cta-band { padding: 32px; }
  .hero-ghost-text { font-size: clamp(3.5rem, 22vw, 6rem); }
}

/* Cross-document view transition — smooth page navigation */
@view-transition { navigation: auto; }

/* Main content entrance on page load */
main {
  animation: mainEntrance 0.5s ease both;
}
@keyframes mainEntrance {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
  main { animation: none; opacity: 1; transform: none; }
}
