/* =========================================
   1. CSS VARIABLES
   ========================================= */
:root {
  --color-bg: #0A0A0A;
  --color-bg-secondary: #161616;
  --color-text: #F5F5F0;
  --color-text-muted: #8A8A85;
  --color-accent: #D4A24C;
  --color-border: #2A2A2A;

  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.25s ease;
  --transition-medium: 0.5s ease;
  --max-width: 1200px;
}

/* =========================================
   2. RESET
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

section {
  padding: 120px 8vw;
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  display: block;
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-subtext {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   3. PRELOADER
   ========================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.camera-drop {
  animation: cameraDrop 1s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

@keyframes cameraDrop {
  0% { transform: translateY(-30px); }
  50% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.camera-flash {
  opacity: 0;
  animation: flashPulse 1s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes flashPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.loader-text {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--color-text-muted);
  animation: textFade 1.8s ease-in-out infinite;
}

@keyframes textFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
/* =========================================
   4. CUSTOM CURSOR
   ========================================= */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.custom-cursor.hovering {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid var(--color-accent);
}

@media (hover: none) {
  .custom-cursor { display: none; }
}

/* =========================================
   5. NAVBAR
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 8vw;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,0));
    
    /* ADD THIS LINE TO YOUR EXISTING BLOCK */
    transition: transform 0.3s ease-in-out;
}


/* ADD THIS NEW BLOCK BELOW YOUR NAVBAR STYLES */
.nav-hidden {
    transform: translateY(-100%);
}

.logo img {
  height: 125px;
  width: auto;
  display: block;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-text);
  border-radius: 999px;
  padding: 3px 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-bg);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--color-accent);
  color: var(--color-bg);
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

/* =========================================
   6. HERO
   ========================================= */
#hero {
  position: relative;
  height: 100vh;
  max-width: none;
  padding: 0 8vw;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: left;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: scale(0.9);
}

.hero-grid.popped {
  animation: heroPopIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroPopIn {
  to { opacity: 1; transform: scale(1); }
}

.hero-content {
  text-align: left;
}

.hero-greeting {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-text);
  margin-bottom: 6px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 10px;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 18px;
}

.role-word {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  border-right: 2px solid var(--color-accent);
  padding-right: 4px;
  animation: blinkCursor 0.75s steps(1) infinite;
}

@keyframes blinkCursor {
  0%, 50% { border-color: var(--color-accent); }
  51%, 100% { border-color: transparent; }
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 420px;
  margin-bottom: 32px;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.book-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.hero-character {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-character img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-accent);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-character { order: -1; }
}

/* =========================================
   7. MEMORY BOOK MODAL
   ========================================= */
.book-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.book-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.close-book-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  z-index: 10;
}

.book {
  position: relative;
  width: min(880px, 92vw);
  height: min(600px, 82vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-pages {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 2400px;
  cursor: pointer;
}

.book-page {
  position: absolute;
  inset: 0;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1), box-shadow 0.9s ease;
  box-shadow: -2px 0 12px rgba(0,0,0,0.3);
}

.page-bg-1 {
  background: linear-gradient(rgba(10,10,10,0.75), rgba(10,10,10,0.85)), url('../assets/images/book-page-1.jpg');
  background-size: cover;
  background-position: center;
}

.page-bg-2 {
  background: linear-gradient(rgba(10,10,10,0.75), rgba(10,10,10,0.85)), url('../assets/images/book-page-2.jpg');
  background-size: cover;
  background-position: center;
}

.page-bg-3 {
  background: linear-gradient(rgba(10,10,10,0.75), rgba(10,10,10,0.85)), url('../assets/images/book-page-3.jpg');
  background-size: cover;
  background-position: center;
}

.page-bg-4 {
  background: linear-gradient(rgba(10,10,10,0.75), rgba(10,10,10,0.85)), url('../assets/images/book-page-4.jpg');
  background-size: cover;
  background-position: center;
}

.book-page.flipped {
  transform: rotateY(-165deg);
  box-shadow: 2px 0 20px rgba(0,0,0,0.5);
}

.page-number {
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.book-page h3 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.book-page p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.page-portrait {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.book-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: border-color var(--transition-fast);
}

.book-arrow:hover {
  border-color: var(--color-accent);
}

.book-arrow-left { left: -64px; }
.book-arrow-right { right: -64px; }

@media (max-width: 900px) {
  .book-page { padding: 36px; }
  .book-page h3 { font-size: 1.5rem; }
  .book-arrow-left { left: 8px; }
  .book-arrow-right { right: 8px; }
}

/* =========================================
   8. SCROLL STACK 3D EFFECT
   ========================================= */
.stack-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.stack-section:nth-of-type(1) { z-index: 1; }
.stack-section:nth-of-type(2) { z-index: 2; }
.stack-section:nth-of-type(3) { z-index: 3; }
.stack-section:nth-of-type(4) { z-index: 4; }
.stack-section:nth-of-type(5) { z-index: 5; }
.stack-section:nth-of-type(6) { z-index: 6; }
.stack-section:nth-of-type(7) { z-index: 7; }
.stack-section:nth-of-type(8) { z-index: 8; }
.stack-section:nth-of-type(9) { z-index: 9; }

.stack-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  box-shadow: 0 -30px 50px 10px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

@media (max-width: 700px) {
  .stack-section {
    min-height: auto;
    position: relative;
  }
  .stack-section::before {
    display: none;
  }
}

/* =========================================
   9. ABOUT
   ========================================= */
#about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-image img,
.about-image video {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter var(--transition-medium);
}

.about-image:hover img,
.about-image:hover video {
  filter: grayscale(0%);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.about-stats {
  display: flex;
  gap: 48px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  #about {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   10. EXPERIENCE — TWO COLUMN COUNTRY LAYOUT
   ========================================= */
#experience {
  text-align: left;
}

.experience-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.experience-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.experience-country i {
  width: 18px;
  height: 18px;
}

.experience-list li {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.experience-list li:last-child {
  border-bottom: none;
}

.company-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.company-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

@media (max-width: 700px) {
  .experience-columns {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   11. LATEST PROJECTS
   ========================================= */
#latest-projects {
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
  display: flex;
  flex-direction: column;
}

.project-client {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.project-location {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   12. WORK / GALLERY
   ========================================= */
#work {
  text-align: center;
}

#work h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.gallery {
  columns: 3 240px;
  column-gap: 16px;
  text-align: left;
}

.gallery-item {
  position: relative;
  margin-bottom: 16px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10,10,10,0.75);
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover .gallery-tag {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.hidden {
  display: none;
}

.tag-client {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.tag-location {
  font-size: 0.7rem;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .gallery {
    columns: 1;
  }
}

/* =========================================
   13. SHOWREEL — 3 EQUAL AUTO-PLAY VIDEOS
   ========================================= */
#showreel {
  text-align: center;
}

.showreel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.showreel-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 9 / 16;
  background: var(--color-bg-secondary);
}

.showreel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .showreel-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   14. SERVICES — HOVER IMAGE REVEAL
   ========================================= */
#services {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 40px 24px;
  transition: border-color var(--transition-fast);
}

.service-card:hover {
  border-color: var(--color-accent);
}

.service-card > i,
.service-card > h3,
.service-card > p {
  position: relative;
  z-index: 2;
}

.service-card i {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.service-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.service-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.service-card:hover .service-preview {
  transform: scale(1.06);
}

/* =========================================
   15. MY GEAR — FLOATING PHOTOS AROUND LAPTOP
   ========================================= */
#gear {
  text-align: center;
}

.gear-stage {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 500px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.gear-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 300px;
  max-width: 55vw;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gear-center img {
  width: 100%;
  display: block;
}

.gear-float {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
  transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy)));
  animation: gearFloat 4s ease-in-out infinite;
  animation-delay: var(--fdelay);
}

.gear-app {
  width: 56px;
}

@keyframes gearFloat {
  0%, 100% {
    transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) translateY(0);
  }
  50% {
    transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) translateY(-14px);
  }
}

@media (max-width: 700px) {
  .gear-stage {
    height: 380px;
  }
  .gear-inner {
    transform: scale(0.62);
  }
  .gear-center {
    width: 260px;
  }
}

/* =========================================
   16. TESTIMONIALS
   ========================================= */
#testimonials {
  text-align: center;
}

.testimonial-card {
  max-width: 600px;
  margin: 40px auto 0;
}

.testimonial-card p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.testimonial-author {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* =========================================
   17. CONTACT
   ========================================= */
#contact {
  text-align: center;
}

.contact-subtext {
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  text-align: left;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contact-form input,
#contact-form textarea {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

#contact-form button {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

#contact-form button:hover {
  opacity: 0.85;
}

#form-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.contact-links a:hover {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   18. FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: 32px 8vw;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 20;
  background: var(--color-bg);
}

/* =========================================
   19. SCROLL REVEAL (JS toggles .visible)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   20. MOBILE NAV
   ========================================= */
@media (max-width: 700px) {
  .nav-pill {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: var(--color-bg-secondary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-medium);
  }

  .nav-pill.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 24px;
  }

  #nav-toggle {
    display: block;
  }

  section {
    padding: 80px 6vw;
  }
}
/* =========================================
   21. HORIZONTAL ICON NAV
   ========================================= */
.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--color-text);
  border-radius: 999px;
  padding: 12px 30px;
}

.icon-nav-item {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  position: relative;
  transition: all var(--transition-fast);
}

.icon-nav-item i {
  width: 17px;
  height: 17px;
}

.icon-nav-item:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Tooltip label on hover */
.icon-nav-item::after {
  content: attr(data-label);
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 10;
}

.icon-nav-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .nav-pill {
    display: none;
  }
  #nav-toggle {
    display: block;
  }
}

/* =========================================
   22. HANGING CAMERA — SIMPLE STRAP SWING
   ========================================= */
.hanging-camera-wrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  will-change: transform;
}

.hanging-camera {
  width: 110px;
  height: auto;
  cursor: grab;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,0.55));
  transform-origin: top center;
}

.hanging-camera:active {
  cursor: grabbing;
}

@media (max-width: 900px) {
  .hanging-camera-wrap {
    display: none;
  }
}
/* =========================================
   23. MEDIA LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  z-index: 6000;
  overflow-y: auto;
  padding: 80px 6vw;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 32px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-header {
  text-align: center;
  margin-bottom: 48px;
}

.lightbox-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.lightbox-location {
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lightbox-media-block {
  max-width: var(--max-width);
  margin: 0 auto 56px;
}

.lightbox-media-block.empty {
  display: none;
}

.lightbox-subheading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.lightbox-grid {
  columns: 3 260px;
  column-gap: 16px;
}

.lightbox-grid img,
.lightbox-grid video {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
  break-inside: avoid;
  cursor: pointer;
}

.gallery-item, .project-card, .service-card {
  cursor: pointer;
}

@media (max-width: 700px) {
  .lightbox-grid {
    columns: 1;
  }
}
