/*
Theme Name: Above Drone Portfolio
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A cinematic single-page drone portfolio theme with full-screen video landing page and editable portfolio grid.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: above-drone
Tags: portfolio, video, full-width, dark, custom-background
*/

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, .bebas {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  --accent:       #e8c84a;
  --accent-dim:   rgba(232, 200, 74, 0.12);
  --accent-border:rgba(232, 200, 74, 0.45);
  --dark:         #0a0a0a;
  --dark-2:       #111111;
  --dark-3:       #181818;
  --border:       rgba(255, 255, 255, 0.07);
  --text-muted:   rgba(255, 255, 255, 0.4);
  --text-dim:     rgba(255, 255, 255, 0.25);
}

/* ─────────────────────────────────────────
   LANDING PAGE
───────────────────────────────────────── */
#landing {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video background */
#landing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Fallback poster / overlay tint */
.landing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Scan-line texture */
.landing-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  z-index: 2;
  pointer-events: none;
}

/* Grid overlay */
.landing-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--accent-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-dim) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
}

/* HUD corners */
.hud-corner {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(232, 200, 74, 0.55);
  font-family: 'Outfit', monospace;
  line-height: 1.6;
  z-index: 4;
  pointer-events: none;
}
.hud-tl { top: 20px; left: 24px; }
.hud-tr { top: 20px; right: 24px; text-align: right; }
.hud-bl { bottom: 20px; left: 24px; }
.hud-br { bottom: 20px; right: 24px; text-align: right; }

/* Rec dot */
.rec-dot {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e84a4a;
  z-index: 4;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* Crosshair */
.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  z-index: 3;
  opacity: 0.25;
  pointer-events: none;
}
.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.crosshair::before { width: 1px; height: 100%; left: 50%; top: 0; }
.crosshair::after  { height: 1px; width: 100%; top: 50%; left: 0; }

/* Landing content */
.landing-content {
  position: relative;
  z-index: 5;
  text-align: center;
  width: min(820px, calc(100vw - 48px));
  padding: 0 24px;
}

.landing-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 400;
}

.landing-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 100px);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 10px;
}

.landing-title .accent { color: var(--accent); }

.landing-subtitle {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  font-weight: 300;
  line-height: 1.7;
}

.landing-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0.5px solid var(--accent-border);
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  background: rgba(232, 200, 74, 0.06);
  transition: background 0.25s ease;
}
.landing-enter-btn:hover {
  background: rgba(232, 200, 74, 0.14);
}
.landing-enter-btn svg {
  width: 15px;
  height: 15px;
}

/* ─────────────────────────────────────────
   SITE NAVIGATION
───────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.08em;
}
.nav-logo .accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 0.5px solid var(--accent-border);
  padding: 8px 18px;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dim); }

/* ─────────────────────────────────────────
   PORTFOLIO HERO STRIP
───────────────────────────────────────── */
#portfolio-hero {
  padding: 56px 40px 48px;
  border-bottom: 0.5px solid var(--border);
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 400;
}

.portfolio-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 14px;
}

.portfolio-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   FILTER BAR
───────────────────────────────────────── */
#filter-bar {
  display: flex;
  padding: 0 40px;
  border-bottom: 0.5px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
#filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 15px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -0.5px;
}
.filter-btn:hover  { color: rgba(255, 255, 255, 0.7); }
.filter-btn.active { color: #fff; border-bottom-color: var(--accent); }

/* ─────────────────────────────────────────
   WORK GRID
───────────────────────────────────────── */
#work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 260px);
  gap: 1px;
  background: var(--border);
}

/* Explicit card placements */
.grid-card[data-slot="hospitality"] { grid-column: 1 / 3; grid-row: 1 / 3; }
.grid-card[data-slot="tourism"]     { grid-column: 3;     grid-row: 1; }
.grid-card[data-slot="wildlife"]    { grid-column: 3;     grid-row: 2; }

.grid-card[data-slot="automotive"]  { grid-column: 1;     grid-row: 3; }
.grid-card[data-slot="adventure"]   { grid-column: 1;     grid-row: 4; }
.grid-card[data-slot="airbnb"]      { grid-column: 2 / 4; grid-row: 3 / 5; }

.grid-card[data-slot="municipal"]   { grid-column: 1 / 3; grid-row: 5 / 7; }
.grid-card[data-slot="realestate"]  { grid-column: 3;     grid-row: 5; }
.grid-card[data-slot="stock"]       { grid-column: 3;     grid-row: 6; }

/* Card base */
.grid-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-2);
}

/* Thumbnail fills the card */
.card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0, 0, 1);
}
.grid-card:hover .card-thumb { transform: scale(1.05); }

/* Gradient overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.05) 55%,
    transparent 100%
  );
  z-index: 1;
}

/* Category colour tint (fallback when no image) */
.card-tint {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Card info */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 24px;
  z-index: 2;
}

.card-category {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}

/* Play button */
.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 0.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(0, 0, 0, 0.2);
}
.grid-card:hover .card-play { opacity: 1; }

/* Card hidden class for filtering */
.grid-card.hidden {
  display: none;
}

/* ─────────────────────────────────────────
   STATS STRIP
───────────────────────────────────────── */
#stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--border);
}

.stat-cell {
  padding: 28px 40px;
  border-right: 0.5px solid var(--border);
}
.stat-cell:last-child { border-right: none; }

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--border);
}

.about-left {
  padding: 48px 40px;
  border-right: 0.5px solid var(--border);
}

.about-right {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 16px;
}

.about-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 12px;
}

/* Credential items */
.cred-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 0.5px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.cred-icon {
  width: 36px;
  height: 36px;
  border: 0.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 16px;
}

.cred-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.cred-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ─────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────── */
#contact {
  border-top: 0.5px solid var(--border);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 0.04em;
  color: #fff;
}

.contact-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 300;
}

.contact-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--accent);
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.contact-btn:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────── */
#site-footer {
  padding: 18px 40px;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   LIGHTBOX / VIDEO MODAL
───────────────────────────────────────── */
#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#video-modal.open { display: flex; }

.modal-inner {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}

.modal-inner iframe,
.modal-inner video {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  #work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .grid-card[data-slot],
  .grid-card[data-slot] {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  #about { grid-template-columns: 1fr; }
  .about-left { border-right: none; border-bottom: 0.5px solid var(--border); }

  #stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }

  #contact { flex-direction: column; align-items: flex-start; }

  #site-nav { padding: 0 20px; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  #work-grid {
    grid-template-columns: 1fr;
  }

  #stats-strip { grid-template-columns: 1fr 1fr; }

  .landing-content {
    width: min(100%, calc(100vw - 32px));
    padding: 0 12px;
  }

  .landing-subtitle {
    max-width: 320px;
    letter-spacing: 0.16em;
  }

  .landing-title { font-size: 52px; }
}
