/* ============================================================
   Apex Precision DroneWorks LLC
   Precision From Above
   Color palette: Orange #FF6B1A | Turquoise #00D4C8 | Black #0B0D10
   Clean, modern, professional
   ============================================================ */

:root {
  --orange: #FF6B1A;
  --orange-dark: #E55A0F;
  --turquoise: #00D4C8;
  --turquoise-dark: #00B8AD;
  --black: #0B0D10;
  --dark: #14171C;
  --gray: #1E232B;
  --light-gray: #2A303A;
  --text: #E8EAED;
  --text-muted: #9AA0A6;
  --white: #FFFFFF;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 16px 48px rgba(255, 107, 26, 0.25);
  --radius: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 3rem;
  background: rgba(11, 13, 16, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
  font-weight: 800;
}

.logo span {
  background: linear-gradient(90deg, var(--orange), var(--turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--turquoise));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 107, 26, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 26, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--turquoise);
  border: 1.5px solid var(--turquoise);
}

.btn-outline:hover {
  background: rgba(0, 212, 200, 0.1);
  transform: translateY(-2px);
}

.btn-contact {
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
  color: var(--black);
  font-weight: 700;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 212, 200, 0.35);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5.5rem; /* clear fixed navbar so top text is never overlapped */
}

.hero-bg {
  position: fixed;          /* stays locked while page content scrolls over it */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(180deg, rgba(11,13,16,0.62) 0%, rgba(11,13,16,0.78) 55%, rgba(11,13,16,0.94) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(255,107,26,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0,212,200,0.12) 0%, transparent 50%),
    url('../images/hero-bg.jpg') center center / cover no-repeat;
  z-index: -1;              /* sits behind everything */
  pointer-events: none;
}

/* Animated grid overlay for tech feel */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,212,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  opacity: 0.6;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  padding: 1.5rem 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--orange), var(--turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* ========== ANIMATED HERO SEQUENCE (the "video") ========== */
.hero-player {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}

.sequence-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
  overflow: hidden;
}

.sequence-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 1.2s ease;
  background: linear-gradient(160deg, #12151c 0%, #0d1016 100%);
}

.sequence-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.sequence-slide .slide-icon {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sequence-slide h3 {
  font-size: 1.7rem;
  font-weight: 650;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.sequence-slide p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.55;
}

.sequence-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--turquoise));
  width: 0%;
  z-index: 10;
  transition: width 0.1s linear;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: rgba(20, 23, 28, 0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.player-controls .status {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-controls .status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.replay-btn:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
  background: rgba(0,212,200,0.08);
}

.replay-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== INDUSTRY SECTION ========== */
.section {
  padding: 6rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--black);   /* solid so fixed hero image is covered when scrolling */
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-card {
  position: relative;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,26,0.08), rgba(0,212,200,0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.industry-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,26,0.35);
  box-shadow: var(--shadow-hover);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, rgba(255,107,26,0.15), rgba(0,212,200,0.15));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.industry-card:hover .industry-icon {
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
  color: var(--black);
  transform: scale(1.08);
}

.industry-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
  color: var(--white);
}

.industry-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ========== VALUE PROPS ========== */
.value-section {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
}

.value-item .num {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--orange), var(--turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.value-item h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.value-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ========== CTA BAND ========== */
.cta-band {
  text-align: center;
  padding: 5rem 2rem;
  background: 
    radial-gradient(ellipse at center, rgba(255,107,26,0.12) 0%, transparent 60%),
    var(--black);
}

.cta-band h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3.5rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--turquoise);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== INDUSTRY PAGE LAYOUT ========== */
.industry-hero {
  padding: 8rem 3rem 4rem;
  text-align: center;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(255,107,26,0.12) 0%, transparent 50%),
    var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.industry-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.industry-hero .tagline {
  font-size: 1.2rem;
  color: var(--turquoise);
  font-weight: 500;
  margin-bottom: 1rem;
}

.industry-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.viewer-section {
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.viewer-wrapper {
  background: var(--dark);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(20,23,28,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.viewer-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.viewer-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: rgba(0,212,200,0.15);
  color: var(--turquoise);
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.viewer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tool-btn {
  padding: 0.35rem 0.7rem;
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}

.tool-btn:hover,
.tool-btn.active {
  background: rgba(255,107,26,0.2);
  border-color: var(--orange);
  color: var(--orange);
}

#viewer-canvas {
  width: 100%;
  height: 520px;
  background: #0a0c10;
  display: block;
  cursor: grab;
}

#viewer-canvas:active {
  cursor: grabbing;
}

.viewer-footer {
  padding: 0.9rem 1.5rem;
  background: rgba(20,23,28,0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.measurement-readout {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--turquoise);
  font-weight: 500;
}

.howto-section {
  padding: 4rem 3rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.howto-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.howto-step {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem;
  background: var(--dark);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.howto-step h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.howto-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ========== MOBILE ========== */
@media (max-width: 1100px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-content {
    padding: 1rem 1.2rem 0;
  }
  .sequence-slide {
    padding: 1.5rem;
  }
  .sequence-slide h3 {
    font-size: 1.3rem;
  }
  .viewer-section {
    padding: 1.5rem;
  }
  .viewer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .viewer-tools {
    justify-content: flex-start;
  }
  #viewer-canvas {
    height: 380px;
  }
  .industry-hero {
    padding: 7rem 1.5rem 3rem;
  }
}

/* Mobile menu toggle (simple) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}
