/* ---------- Variables ---------- */
:root {
  --bg: #0a0d14;
  --bg-alt: #10141d;
  --surface: #161b26;
  --text: #f2f4f8;
  --text-muted: #9aa4b7;
  --sky-blue: #4fd6ff;
  --sunset-orange: #ff9d4d;
  --gradient: linear-gradient(120deg, var(--sky-blue), var(--sunset-orange));
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 120px 0; }

@media (max-width: 720px) {
  section { padding: 80px 0; }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--sky-blue);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring.hovered {
  width: 56px; height: 56px;
  border-color: var(--sky-blue);
  background: rgba(79, 214, 255, 0.08);
}
@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gradient);
  transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--sky-blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(280px, 80vw);
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid var(--border);
  }
  .nav.open { transform: translateX(0); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  overflow: hidden;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(255,157,77,0.16), transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(79,214,255,0.14), transparent 55%),
              var(--bg);
  z-index: 0;
}
.sun {
  position: absolute;
  top: 12%;
  right: 12%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,157,77,0.5), transparent 70%);
  filter: blur(10px);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  filter: blur(2px);
}
.cloud-1 { width: 340px; height: 90px; top: 22%; left: -10%; animation: drift 38s linear infinite; }
.cloud-2 { width: 260px; height: 70px; top: 55%; left: -20%; animation: drift 52s linear infinite; animation-delay: -10s; }
.cloud-3 { width: 200px; height: 60px; top: 75%; left: -15%; animation: drift 44s linear infinite; animation-delay: -22s; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

.drone-path {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.drone-path svg {
  width: 100%; height: 100%;
}
.drone-icon {
  position: absolute;
  font-size: 22px;
  color: var(--sky-blue);
  text-shadow: 0 0 16px rgba(79,214,255,0.8);
  offset-path: path('M -10,70 C 20,20 50,90 130,30');
  offset-rotate: 0deg;
  animation: fly 14s linear infinite;
}
@keyframes fly {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--sky-blue);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
}
.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--gradient);
  color: #0a0d14;
  box-shadow: 0 12px 30px rgba(255, 157, 77, 0.25);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(79, 214, 255, 0.35); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--sky-blue); }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--sky-blue), transparent);
  animation: scrollcue 2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Stats ---------- */
.stats { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-number, .stat-number-static {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 640px; }
.section-sub { max-width: 520px; }

/* ---------- Services ---------- */
.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,214,255,0.4);
  box-shadow: var(--shadow);
}
.service-icon { font-size: 1.8rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; margin: 0; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Work / video gallery ---------- */
.work-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1a2130, #0d1119);
}
.work-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-item:hover .work-thumb { transform: scale(1.08); }
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
}
.work-overlay h4 { margin: 0; font-size: 1rem; }
.work-overlay span { font-size: 0.78rem; color: var(--sky-blue); }
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 50%;
  background: rgba(10,13,20,0.55);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.work-item:hover .play-badge {
  transform: translate(-50%, -50%) scale(1);
  background: rgba(79,214,255,0.25);
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about-wrap {
  max-width: 720px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; color: var(--text-muted); }
.form-row input, .form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--sky-blue);
}
.form-note { font-size: 0.85rem; color: var(--sky-blue); min-height: 1em; margin: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-inner a {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 2px;
}
.footer-inner a:hover {
  color: var(--sky-blue);
  text-decoration-color: var(--sky-blue);
}

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 24px;
}
.video-modal.open { opacity: 1; pointer-events: all; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.9);
  backdrop-filter: blur(6px);
}
.video-modal-content {
  position: relative;
  width: min(920px, 100%);
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}
.video-modal.open .video-modal-content { transform: scale(1); }
.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.video-modal-frame iframe,
.video-modal-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-caption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { border-color: var(--sky-blue); color: var(--sky-blue); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
