/* ============================================================
   Rob Borja — Portfolio Site
   ============================================================ */

@font-face {
  font-family: 'SoulSister';
  src: url('../fonts/SoulSister.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ChaletNewYork';
  src: url('../fonts/Chalet-NewYorkNineteenSeven.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ChaletNewYork80';
  src: url('../fonts/Chalet-NewYorkNineteenEight.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ChaletLondon';
  src: url('../fonts/Chalet-LondonNineteenSevent.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ChaletLondon80';
  src: url('../fonts/Chalet-LondonNineteenEighty.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --accent:     #ffc800;
  --dark:       #6e6e6e;
  --white:      #ffffff;
  --border:     #e8e8e8;
  --body-gray:  #555555;
  --font-serif: 'SoulSister', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: #555; background: #fff; -webkit-font-smoothing: antialiased; }
body.home { background: #fff; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* ============================================================
   Navigation
   ============================================================ */
nav {
  position: relative;
  z-index: 2;
  height: 80px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo {
  font-family: 'SoulSister', sans-serif;
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--white);
  letter-spacing: 0.03em;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 4px 10px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-logo:hover { color: #ffc800; border-color: #ffc800; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: -4px;
}

.nav-right .nav-link {
  font-family: 'SoulSister', sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--white);
  transition: color 0.2s;
}

.nav-right .nav-link:hover { color: #ffc800; }

.nav-sep {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--white);
  line-height: 1;
  pointer-events: none;
}



/* ============================================================
   HOME — Hero
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 450px;
  max-height: 800px;
  margin-top: -80px;
  background: #000;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 28%);
  z-index: 1;
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
  max-width: 45%;
  z-index: 2;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
  background: rgba(0,0,0,0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 20px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: normal;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  color: var(--accent);
  line-height: 1.12;
  margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.hero-content p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* ============================================================
   HOME — Pillars
   ============================================================ */
.pillars-section {
  padding: 20px 5% 40px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar {
  background: rgba(0,0,0,0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 20px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.20));
}

.pillar h3 {
  font-family: 'SoulSister', sans-serif;
  font-size: 1.4rem;
  font-weight: normal;
  color: #555;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.pillar p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}

/* ============================================================
   HOME — Companies
   ============================================================ */
.companies {
  padding: 0 5%;
  text-align: center;
}

.companies img {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   HOME — Project Carousel
   ============================================================ */
.carousel-section {
  padding: 55px 0;
}

.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 30px;
  padding: 0 5%;
  overflow-x: hidden;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 calc(33.333% - 11px);
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.carousel-card:hover img {
  opacity: 0.85;
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 40 / 23;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.carousel-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 4px 0;
  color: #222;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.15s;
}

.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn svg { width: 14px; height: 14px; }

/* ============================================================
   HOME — Bio
   ============================================================ */
.bio {
  background: #fff;
  padding: 10px 5% 0;
}

.bio-inner {
  max-width: 1900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: max-content minmax(0, 650px);
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.bio-text {
  position: relative;
  z-index: 1;
  margin-left: -100px;
  background: rgba(0,0,0,0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 20px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.20));
}

.bio-image img {
  height: auto;
  width: auto;
  min-height: 300px;
  max-height: 350px;
  max-width: none;
}

.bio-text h2 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: normal;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.bio-text p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #111;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: #9a785f;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-left: 18px;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   PORTFOLIO PAGE — Header
   ============================================================ */
.portfolio-header {
  padding: 52px 5% 36px;
}

.portfolio-header h1,
.portfolio-header p {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-header h1 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: normal;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 6px;
}

.portfolio-header p {
  font-size: 0.78rem;
  color: #666;
}

/* ============================================================
   PORTFOLIO PAGE — Featured Grid (3 columns)
   ============================================================ */
.featured-section {
  padding: 0 5% 80px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 52px;
  max-width: 1400px;
  margin: 0 auto;
}

a.project-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.project-card:hover img {
  opacity: 0.85;
  box-shadow: 0 4px 16px rgba(0,0,0,0.65);
}

.project-card-title {
  font-family: 'SoulSister', sans-serif;
  font-size: 1.2rem;
  font-weight: normal;
  text-align: center;
  padding: 14px 8px 0;
  color: #555;
  letter-spacing: 0.02em;
}

/* ============================================================
   PORTFOLIO PAGE — Other Projects (4-column grid)
   ============================================================ */
.other-projects {
  padding: 72px 5% 80px;
}

.other-projects-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: normal;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 28px;
}

.section-subtitle {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 44px;
}

.other-project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.other-project-card img,
.other-project-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  margin-bottom: 14px;
}

.other-project-card h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
}

.other-project-card p {
  font-size: 0.78rem;
  line-height: 1.75;
  color: #111;
}

/* ============================================================
   PORTFOLIO PAGE — Critical Review & Awards
   ============================================================ */
.reviews {
  padding: 72px 5% 80px;
}

.reviews-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  column-gap: 40px;
  row-gap: 40px;
  text-align: center;
}

.reviews-left {
  padding: 0 40px 40px 40px;
}

.reviews-inner > .section-title {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  text-align: left;
}

.quote {
  margin-bottom: 52px;
}

.quote blockquote {
  font-size: 1rem;
  font-style: italic;
  font-weight: bold;
  line-height: 1.7;
  color: #111;
  margin-bottom: 14px;
}

.quote cite {
  font-size: 0.82rem;
  color: #666;
  font-style: normal;
}

.quote cite a {
  text-decoration: underline;
}

.award-group {
  margin-bottom: 36px;
}

.award-group h4 {
  font-size: 1rem;
  font-weight: bold;
  color: #111;
  text-decoration: underline;
  margin-bottom: 12px;
  cursor: default;
}

.award-group ul {
  padding-left: 0;
  list-style: none;
}

.award-group ul li {
  font-size: 0.78rem;
  line-height: 1.8;
  color: #555;
}

.award-group p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: #555;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; gap: 40px; }
  .bio-inner { grid-template-columns: 1fr; gap: 24px; }
  .bio { padding-bottom: 50px; }
  .bio-image img { display: block; margin: 0 auto; width: auto; max-width: 100%; height: auto; min-height: 250px; max-height: 350px; }
  .bio-text { margin-left: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .other-project-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-inner { grid-template-columns: 1fr; gap: 0; }
  .carousel-card { flex: 0 0 calc(50% - 8px); }
}

@media (max-width: 600px) {
  .hero-content { min-width: 80%; max-width: 80%; top: auto; bottom: 8%; right: auto; left: 50%; transform: translateX(-50%); text-align: center; }
  .project-grid { grid-template-columns: 1fr; justify-content: initial; }
  .other-project-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-card { flex: 0 0 82%; }
  nav, footer { padding-left: 4%; padding-right: 4%; }
  .companies { padding: 0; overflow-x: auto; display: flex; justify-content: center; }
  .companies img { width: 500px; max-width: none; display: block; margin: 0; }
}

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

.lightbox.active {
  display: flex;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.lightbox-close:hover { opacity: 1; }
