@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');


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

:root {
  --bg: #ffffff;
  --text: #1e1a18;
  --text-light: #4a4440;
  --nav-bg: #f7f4ef;
  --nav-text: #2a2523;
  --nav-hover: #1e1a18;
  --nav-border: #ddd8cf;
  --accent: #5f5a56;
  --border: #e4e0da;
  --card-shadow: 0 2px 16px rgba(0,0,0,0.07);
  --font: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 1.05rem; }
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === Header & Nav === */
header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 77px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--nav-text);
}
.logo-img { width: 50px; height: 50px; object-fit: contain; }
.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--nav-text);
  font-family: var(--font-display);
}
nav { font-family: var(--font-ui); }
nav ul { list-style: none; display: flex; gap: 0; }
nav > ul > li {
  position: relative;
}
nav > ul > li > a {
  display: block;
  padding: 0 1rem;
  height: 77px;
  line-height: 77px;
  color: var(--nav-text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
nav > ul > li > a:hover,
nav > ul > li.active > a {
  color: var(--nav-hover);
  background: rgba(0,0,0,0.06);
}
nav > ul > li.active > a {
  border-bottom: 2px solid var(--nav-text);
}
/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 77px;
  left: 0;
  background: var(--nav-bg);
  min-width: 230px;
  border: 1px solid var(--nav-border);
  border-top: 2px solid var(--nav-text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 200;
}
nav > ul > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: rgba(0,0,0,0.05); color: var(--nav-hover); }

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  font-family: var(--font-ui);
}

/* === Main === */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* === Home === */
.home-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
  margin-bottom: 2.5rem;
  display: block;
}
.home-hero-caption {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .home-hero-caption { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .home-hero-caption { font-size: 1.1rem; letter-spacing: 0.05em; }
}
.home-about {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.home-about h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }
.home-about p { color: var(--text-light); margin-bottom: 1.5rem; font-size: 1.05rem; }
.home-contact { margin-top: 1.5rem; }
.home-contact h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }
.home-contact a { color: var(--text-light); }
.home-contact a:hover { color: var(--text); text-decoration: underline; }
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  border-radius: 2px;
  margin-top: 0.5rem;
}
.btn:hover { background: var(--text); color: #fff; }
.linkedin-link img { width: 28px; height: 28px; margin: 0.5rem auto 0; }

/* === Card Grid (category pages) === */
.page-title {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  text-align: center;
}
.page-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}
.card-img-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img-wrap img { transform: scale(1.03); }
.card-body {
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.card-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Project Pages === */
.project-hero-wrap {
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}
.project-hero-img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.project-page h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.project-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.project-desc {
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}
.project-section-heading {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: #f5f5f5;
}
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.2s;
}
.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}
.gallery-item video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, opacity 0.2s;
}
.gallery-item:hover video {
  transform: scale(1.04);
  opacity: 0.92;
}

/* === About Page === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 1rem;
}
.about-photo { height: 100%; }
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.about-content h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.about-content p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.75; font-size: 1.05rem; }
.about-content h3 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 1.5rem 0 0.5rem; }
.about-content .contact-email { font-size: 1rem; }
.about-content .contact-email a { color: var(--text); text-decoration: underline; }
.about-content .linkedin-row { margin-top: 0.75rem; }
.about-content .linkedin-row a { display: inline-block; line-height: 0; color: var(--accent); transition: color 0.15s; }
.about-content .linkedin-row a:hover { color: var(--text); }
.about-content .linkedin-row svg { display: block; }

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox #lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox #lb-video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  background: #000;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0.5rem;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1.5rem; font-size: 3rem; }
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* === Tech Pack Carousel === */
.scroll-strip-section { margin-top: 3rem; }

.carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 3px;
  background: #f5f5f5;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
}
/* Prev / next arrows */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 40px;
  height: 56px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.7); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #999;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.carousel-dot:hover { border-color: #555; }
.carousel-dot.active { background: var(--text); border-color: var(--text); }

.strip-placeholder {
  height: 320px;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}


/* === Video Section === */
.video-section { margin-top: 3rem; }
.video-wrap {
  width: 100%;
  max-width: 800px;
}
.video-wrap + .video-wrap { margin-top: 1.5rem; }
.video-wrap video {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}
.video-placeholder {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  gap: 0.5rem;
}
.video-placeholder svg { opacity: 0.35; }

/* === Footer === */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  background: var(--nav-bg);
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 77px; left: 0; right: 0; background: var(--nav-bg); border-top: 1px solid var(--nav-border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  nav > ul > li > a { height: auto; line-height: 1.4; padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--nav-border); }
  nav > ul > li.active > a { border-bottom-width: 1px; border-bottom-color: var(--nav-border); }
  .dropdown { display: none !important; position: static; border: none; border-top: none; box-shadow: none; background: rgba(0,0,0,0.04); }
  nav > ul > li.open .dropdown { display: block !important; }
  .dropdown li a { padding-left: 2.5rem; }
  .project-page h1, .page-title { font-size: 2.2rem; }
  .project-hero-img { max-height: 55vh; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo, .about-photo img { height: auto; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .header-inner { position: relative; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item img, .gallery-item video { height: 200px; }
}

/* === Display Font for Headings === */
h1, h2, h3,
.page-title,
.project-page h1,
.home-hero-caption,
.about-content h2 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

/* UI elements stay sans-serif */
.btn, .card-link, .card-title {
  font-family: var(--font-ui);
}

/* Card body polish */
.card-title { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em; }
.card-link { font-size: 0.75rem; letter-spacing: 0.07em; }
