:root {
  --bg: #060F1A;
  --text: #f0f4f8;
  --text-secondary: rgba(240, 244, 248, 0.5);
  --accent: #0D9488;
  --accent-rgb: 13, 148, 136;
  --accent-light: #14B8A6;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-padding: clamp(5rem, 8vw, 10rem);
  --container-max: 1200px;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --glass-bg: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; }

a { text-decoration: none; transition: color 0.3s; }

/* ── Starscape ── */
#starscape {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Scroll Progress ── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-1px); }
#navbar.nav-scrolled .nav-inner {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(6, 15, 26, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 100px;
  padding: 10px 28px;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 20px; }
  #navbar.nav-scrolled .nav-inner { padding: 10px 20px; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
  transition: all 0.3s ease;
  will-change: transform;
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.5);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}
.btn-large { font-size: 1.1rem; padding: 18px 48px; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ── Section helpers ── */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -150px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--accent-light);
  bottom: -150px; left: -100px;
  opacity: 0.07;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title { margin-bottom: 1.25rem; }
.accent-text { color: var(--accent); }
.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-trust li {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.hero-trust li::first-letter { color: var(--accent); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  overflow: visible;
}
.hero-img {
  width: 100%;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 40px 80px rgba(var(--accent-rgb), 0.15));
}
.img-glow {
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-info-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(6, 15, 26, 0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.info-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
.hero-info-card small { font-size: 0.7rem; color: var(--text-secondary); display: block; }
.hero-info-card strong { font-size: 0.875rem; font-family: var(--font-display); display: block; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-hint span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-trust { align-items: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* ── Showcase ── */
#showcase {
  position: relative;
  height: 480vh;
  z-index: 1;
}
.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-images {
  position: relative;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16/9;
}
.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 60px 120px rgba(var(--accent-rgb), 0.12));
  border-radius: 12px;
  transition: opacity 0.1s linear;
}
#imgAssembled { opacity: 1; }
#imgDeconstructed { opacity: 0; }

/* Annotation cards */
.annotation-card {
  position: absolute;
  bottom: 8vh;
  left: 5vw;
  max-width: 340px;
  background: rgba(6, 15, 26, 0.8);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 18px;
  padding: 26px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 10;
}
.annotation-card.card-right {
  left: auto;
  right: 5vw;
}
.annotation-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.card-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.card-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  font-family: var(--font-display);
}
.card-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

/* Showcase label */
.showcase-label {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.06em;
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  #showcase { height: 350vh; }
  .showcase-images { width: 95%; }
  .annotation-card {
    bottom: 2vh;
    left: 2vw;
    right: 2vw;
    max-width: none;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .annotation-card.card-right { left: 2vw; right: 2vw; }
  .card-desc, .card-stat { display: none; }
  .card-number { margin-bottom: 0; }
}

/* ── Specs ── */
#specs {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}
#specs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--accent-rgb), 0.04) 50%, transparent 100%);
  pointer-events: none;
}
#specs .container { text-align: center; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 4rem;
  padding: 60px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
}
.spec-item { text-align: center; }
.spec-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.spec-number.counting {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}
.spec-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
}
@media (max-width: 768px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 40px 20px; }
  .spec-number { font-size: 2.25rem; }
}

/* ── Features ── */
#hizmetler {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}
#hizmetler .section-title { margin-bottom: 3rem; }

/* Featured: Evde Serum hero card */
.feature-hero {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  margin-bottom: 20px;
  text-decoration: none;
}
.feature-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.feature-hero:hover img { transform: scale(1.03); }
.feature-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6,15,26,0.92) 0%, rgba(6,15,26,0.6) 50%, rgba(6,15,26,0.2) 100%);
}
.feature-hero-content {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
}
.feature-hero-badge {
  align-self: flex-start;
  background: rgba(var(--accent-rgb), 0.18);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
}
.feature-hero-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 10px;
}
.feature-hero-content p {
  font-size: 0.95rem;
  color: rgba(240,244,248,0.75);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 20px;
}
.feature-hero-cta {
  display: inline-block;
  background: var(--text);
  color: #0a1622;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 100px;
  transition: transform 0.3s ease;
}
.feature-hero:hover .feature-hero-cta { transform: translateX(4px); }

/* Photo feature card */
.feature-card.feature-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 220px;
  border: 1px solid var(--glass-border);
}
.feature-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.feature-card.feature-photo:hover img { transform: scale(1.04); }
.feature-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,15,26,0.92) 0%, rgba(6,15,26,0.35) 55%, rgba(6,15,26,0.05) 100%);
}
.feature-photo-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.feature-photo-content h3 { color: var(--text); margin-bottom: 6px; }
.feature-photo-content p { color: rgba(240,244,248,0.65); font-size: 0.875rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.04);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ── CTA ── */
#cta {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cta-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ── Floating action buttons ── */
.fab-stack {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s ease;
}
.fab:hover { transform: scale(1.07); }
.fab:active { transform: scale(0.95); }
.fab-whatsapp {
  background: #25D366;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}
.fab-phone {
  background: var(--accent);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5);
}
.fab-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-light);
  animation: fabPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.4;
}
@keyframes fabPing {
  75%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-ping { animation: none; opacity: 0; }
}
