/* ═══════════════════════════════════════════════
   mugla.digital — Global Styles
   ═══════════════════════════════════════════════ */

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

:root {
  --cyan:         #22d3ee;
  --indigo:       #6366f1;
  --violet:       #a78bfa;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ─── HERO ─────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  /* svh = small viewport height — excludes mobile address bar.
     Fallback chain: 100vh → 100svh for older browsers.        */
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
}

#shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Prevent iOS from compositing the canvas as a separate layer
     which can sometimes cause blank frames on first paint.      */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ─── NAV ──────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 7px 16px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }

.nav-cta {
  padding: 8px 24px; border-radius: 100px;
  background: #fff; color: #000;
  font-size: 13px; font-weight: 500;
  border: none; cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: opacity 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }

/* ─── MOBILE NAV ────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; color: #fff; padding: 4px; line-height: 0;
}

.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,4,12,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.nav-drawer.open { display: flex; }

.nav-drawer nav {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.nav-drawer a {
  font-size: 26px; font-weight: 300;
  color: rgba(255,255,255,0.82); text-decoration: none;
  transition: color 0.2s;
}
.nav-drawer a:hover { color: #fff; }

.nav-drawer-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: none;
  color: rgba(255,255,255,0.65); font-size: 34px;
  cursor: pointer; line-height: 1; padding: 4px;
}

/* ─── HERO CONTENT ──────────────────────────────── */
.hero-content {
  position: absolute;
  bottom: 48px; left: 40px;
  z-index: 20; max-width: 640px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.75); }
}
.hero-badge-text { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 400; }

/* ─── HEADLINE ──────────────────────────────────── */
.hero-h1 { line-height: 1.05; margin-bottom: 20px; }

.hero-h1-light {
  display: block;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 300;
  color: rgba(255,255,255,0.68);
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.hero-h1-bold {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 82px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── SUB TEXT ──────────────────────────────────── */
.hero-sub-wrap {
  display: inline-block;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 11px 15px;
  border-left: 1.5px solid rgba(255,255,255,0.1);
  margin-bottom: 26px;
}
.hero-sub {
  font-size: 15px; font-weight: 400; line-height: 1.68;
  color: rgba(255,255,255,0.88);
  max-width: 460px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.75);
}

/* ─── BUTTONS ───────────────────────────────────── */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-outline {
  padding: 12px 28px; border-radius: 100px;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--font-body);
  text-decoration: none; display: inline-flex; align-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { background: rgba(0,0,0,0.42); border-color: rgba(255,255,255,0.5); }

.btn-fill {
  padding: 12px 28px; border-radius: 100px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #fff; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; font-family: var(--font-body);
  text-decoration: none; display: inline-flex; align-items: center;
  box-shadow: 0 4px 24px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-fill:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(99,102,241,0.6); }

/* ─── FOCUS ─────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ─── SPINNING BADGE ────────────────────────────── */
.spin-wrap {
  position: absolute; bottom: 40px; right: 40px; z-index: 20;
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
}
.spin-ring { position: absolute; inset: 0; animation: spin 20s linear infinite; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.spin-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--indigo), var(--cyan), var(--violet), var(--indigo));
  box-shadow: 0 0 20px rgba(99,102,241,0.65);
}

/* ─── REDUCED MOTION ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .spin-ring, .hero-badge-dot { animation: none; }
  .btn-fill:hover { transform: none; }
}

/* ─── TABLET ────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .spin-wrap { display: none; }
  .hero-content { left: 24px; right: 24px; bottom: 36px; max-width: 100%; }
  .hero-h1-bold { letter-spacing: -1.5px; }
}

/* ─── MOBILE ────────────────────────────────────── */
@media (max-width: 480px) {
  .nav { padding: 14px 16px; }
  .hero-content { left: 16px; right: 16px; bottom: 28px; }
  .hero-badge { margin-bottom: 14px; }
  .hero-h1 { margin-bottom: 14px; }
  .hero-h1-bold { letter-spacing: -1px; }
  .hero-sub-wrap { padding: 9px 13px; margin-bottom: 20px; }
  .hero-sub { font-size: 13.5px; }
  .btn-outline, .btn-fill { padding: 11px 20px; font-size: 13px; }
}
