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

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1a1a1a;
  --text-primary: #f0ede8;
  --text-secondary: #9e9e9e;
  --accent: #c9a96e;
  --accent-dark: #a8895a;
  --film-bg: #111111;
  --film-hole: #0d0d0d;
  --border: #2a2a2a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 70px;
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

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

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

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}

.nav-mobile.open {
  transform: translateY(0);
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.nav-mobile a {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.nav-mobile a:hover { color: var(--accent); }

/* ===== FLOATING NAV ===== */
.floating-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-end;
}

.floating-nav-dot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.floating-nav-dot .dot-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
  white-space: nowrap;
}

.floating-nav-dot:hover .dot-label,
.floating-nav-dot.active .dot-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.floating-nav-dot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text-secondary);
  transition: all 0.25s;
  flex-shrink: 0;
}

.floating-nav-dot:hover .dot,
.floating-nav-dot.active .dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #1a1a1a 0%,
    #060606 25%,
    #060606 75%,
    #1a1a1a 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(240, 237, 232, 0.75);
  max-width: 480px;
  font-style: italic;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

/* ===== SECTIONS SHARED ===== */
section {
  padding: 7rem 2rem;
}

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

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.accent-line {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 1.2rem auto 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
#about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  pointer-events: none;
  z-index: 0;
}

.about-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(15%);
}

.about-image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border: 1px dashed var(--border);
}

.about-text .section-eyebrow {
  text-align: left;
}

.about-text .section-title {
  text-align: left;
}

.about-text .accent-line {
  margin: 1.2rem 0 2rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.02rem;
}

.about-signature {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-style: italic;
}

/* ===== PORTFOLIO ===== */
#portfolio {
  background: var(--bg-primary);
}

.portfolio-group {
  margin-bottom: 5rem;
}

.portfolio-group:last-child {
  margin-bottom: 0;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding: 0 1rem;
}

.group-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.group-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ===== FILM STRIP ===== */
.film-strip-wrap {
  position: relative;
  overflow: hidden;
}

.film-strip-wrap::before,
.film-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.film-strip-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.film-strip-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.film-strip {
  display: block;
  overflow: hidden;
  background: var(--film-bg);
  user-select: none;
}

.film-strip-inner {
  display: flex;
  flex-direction: column;
  min-width: max-content;
  will-change: transform;
}

/* Perforations track — horizontal rows top and bottom */
.film-perfs-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  padding: 7px 14px;
  background: var(--film-bg);
  overflow: hidden;
  align-items: center;
}

.film-perf {
  width: 14px;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 2px;
  border: 1px solid #000;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.8);
  flex-shrink: 0;
}

/* Frames */
.film-frames {
  display: flex;
  gap: 16px;
  padding: 12px 14px;
  background: var(--film-bg);
}

.film-frame {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  overflow: hidden;
  border: 2px solid #1f1f1f;
  cursor: pointer;
  transition: border-color 0.3s;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
  filter: brightness(0.85);
}

.film-frame:hover {
  border-color: var(--accent);
}

.film-frame:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.film-frame-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #444;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.film-frame-number {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  font-family: monospace;
}

.film-empty-msg {
  padding: 3rem 4rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(201, 169, 110, 0.15);
  transform: scale(0.92);
  transition: transform 0.3s;
}

.lightbox.open .lightbox-img-wrap img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid #2a2a2a;
  color: #555;
  font-size: 1.5rem;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 10;
  line-height: 1;
  border-radius: 2px;
}

.lightbox-close:hover {
  color: #999;
  border-color: #444;
  transform: rotate(90deg);
}

.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid #2a2a2a;
  color: #555;
  font-size: 1.4rem;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 10;
  user-select: none;
  border-radius: 2px;
}

.lightbox-btn:hover {
  color: #999;
  border-color: #444;
}

.lightbox-prev {
  left: 1.5rem;
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }

.lightbox-next {
  right: 1.5rem;
}
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* ===== TESTIMONIALS ===== */
#testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 200px;
}

.testimonial-card iframe {
  max-width: 100%;
}

/* ===== CONTACT ===== */
#contact {
  background: var(--bg-primary);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-detail svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail a:hover { color: var(--accent); }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.form-hidden { display: none; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-success {
  display: none;
  padding: 1.5rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: rgba(201, 169, 110, 0.05);
  color: var(--accent);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .floating-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }

  section { padding: 5rem 1.5rem; }

  .hero-title { letter-spacing: 0.04em; }

  .film-frame {
    width: 200px;
    height: 145px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card iframe {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1.2rem; }
  .film-frame { width: 160px; height: 115px; }
  .lightbox-btn { display: none; }
}
