/* ============================================
   Design System – Marcin Płomiński Drone Website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Dark Mode Default) --- */
:root {
  /* Accent from logo */
  --accent: #f68220;
  --accent-hover: #ff9a40;
  --accent-glow: rgba(246, 130, 32, 0.25);
  --accent-subtle: rgba(246, 130, 32, 0.08);

  /* Dark mode colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-nav: rgba(10, 10, 10, 0.88);

  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #666666;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 4px 25px rgba(246, 130, 32, 0.2);

  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 15px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

/* --- Light Mode --- */
[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --bg-nav: rgba(245, 245, 245, 0.92);

  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;

  --accent-hover: #e07010;
  --accent-glow: rgba(246, 130, 32, 0.15);
  --accent-subtle: rgba(246, 130, 32, 0.06);

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 25px rgba(246, 130, 32, 0.15);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

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

.section__title {
  margin-bottom: 16px;
}

.section__desc {
  max-width: 600px;
  margin-bottom: 40px;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav__logo-text {
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
  border-color: var(--border-hover);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: 80px;
  padding-bottom: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 850px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.45;
}

[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, transparent 70%);
  opacity: 0.7;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin-bottom: 4px;
  color: var(--text-primary);
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.55;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(246, 130, 32, 0.35);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.02rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   3D Viewer Section (embedded in Hero)
   ============================================ */
.viewer__wrapper {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: #000;
}

.viewer__iframe {
  width: 125%;
  height: 125%;
  border: none;
  display: block;
  transform: scale(0.8);
  transform-origin: 0 0;
  image-rendering: -webkit-optimize-contrast;
}

.viewer__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.viewer__wrapper.visible~.viewer__hint {
  opacity: 1;
  transform: translateY(0);
}

.viewer__hint svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ============================================
   Features / Services Section
   ============================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid rgba(246, 130, 32, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Location Bar */
.location-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.location-bar:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.location-bar__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid rgba(246, 130, 32, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.location-bar__icon svg {
  width: 20px;
  height: 20px;
}

.location-bar__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.location-bar__text strong {
  color: var(--text-primary);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.faq-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.faq-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-card__title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-card__desc strong {
  color: var(--text-primary);
}

/* ============================================
   CTA / Contact Combined Section
   ============================================ */
.contact {
  text-align: center;
}

.cta__box {
  max-width: 650px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta__box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta__title {
  margin-bottom: 14px;
}

.cta__desc {
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.footer__logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   Mobile menu overlay
   ============================================ */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 40px 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition);
  pointer-events: none;
}

.nav__mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav__mobile-menu .nav__links {
  flex-direction: column;
  gap: 0;
}

.nav__mobile-menu .nav__link {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.nav__mobile-menu .nav__link::after {
  display: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {

  .features__grid,
  .faq__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav__links-desktop {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile-menu {
    display: block;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .features__grid,
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta__box {
    padding: 36px 20px;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__buttons .btn {
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .viewer__wrapper {
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav__logo-text {
    display: none;
  }
}