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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --accent: #333;
  --border: #e0e0e0;
  --max-width: 1200px;
  --nav-height: 120px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header / Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 100px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img { height: 50px; }
}

nav { display: flex; gap: 2rem; align-items: center; }

nav a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 0.6; }
nav a.active { border-bottom: 2px solid var(--text); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

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

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Content sections */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.project-card:hover img { opacity: 1; }

.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card-overlay { opacity: 0; }

.project-card-overlay h3 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
}

/* Section themes */
.section-white { background: #fff; }
.section-bright { background: hsla(209, 53%, 71%, 1); }
.section-light { background: #f0f0f0; }
.section-black { background: #1a1a1a; color: #fff; }
.section-black p { color: #ccc; }

.project-section {
  padding: 4rem 2rem;
}

.project-section:first-of-type {
  padding-top: calc(var(--nav-height) + 3rem);
}

.project-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Project Detail */
.project-detail h1 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.project-detail .subtitle {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.project-detail p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-light);
}

.project-detail .main-image {
  margin: 2rem 0;
  border-radius: 2px;
}

.project-specs {
  margin: 1.5rem 0;
}

.project-specs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.project-specs li {
  font-size: 0.95rem;
}

.project-specs strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

/* Video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.5%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
}

.video-embed.portrait {
  padding-bottom: 0;
  width: 39%;
  height: 0;
  padding-bottom: 69%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .video-embed.portrait {
    width: 60%;
    padding-bottom: 107%;
  }
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Side-by-side video + text layout */
.video-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.video-text-row .video-embed {
  margin: 0;
}

@media (max-width: 768px) {
  .video-text-row {
    grid-template-columns: 1fr;
  }
}

/* Full-bleed background video */
.video-bg-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background: #000;
}

.video-bg-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Slideshow Gallery */
.gallery-slideshow {
  margin: 2rem 0;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #000;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 2;
  line-height: 1;
}

.gallery-arrow:hover { background: rgba(0,0,0,0.15); }
.gallery-arrow.prev { left: 1rem; }
.gallery-arrow.next { right: 1rem; }

.gallery-thumbs-wrap {
  margin-top: 0.75rem;
  overflow: hidden;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.gallery-thumbs img:hover { opacity: 0.8; }
.gallery-thumbs img.active { opacity: 1; border: 2px solid var(--text); }

/* Project nav (prev/next) */
.project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.project-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  transition: color 0.2s;
}

.project-nav a:hover { color: var(--text); }

/* About */
.about-bg, .content-bg {
  margin-top: var(--nav-height);
  background: #f0f0f0;
  flex: 1;
  padding: 4rem 2rem;
}

.about-bg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section {
  max-width: 700px;
  text-align: center;
}

.about-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about-section p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Contact */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
}

.contact-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

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

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button {
  display: inline-block;
  padding: 0.75rem 3rem;
  background: var(--text);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover { opacity: 0.8; }

.form-success {
  display: none;
  padding: 1rem;
  background: #f0f9f0;
  border: 1px solid #c3e6c3;
  border-radius: 4px;
  color: #2d7a2d;
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

footer a { text-decoration: underline; }
footer a:hover { opacity: 0.7; }

@media (max-width: 768px) {
  footer .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Badge link */
.store-badge { display: inline-block; margin: 1rem 0; }
.store-badge img { height: 50px; width: auto; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  nav.open { display: flex; }

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

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