/*
 * Base styles
 */
:root {
  --primary-color: #007acc;
  --dark-color: #0e1b31;
  --light-bg: #ffffff;
  --muted-color: #667285;
  --accent-color: #5e3ae3;
}

html, body {
  min-height: 100dvh;
  overflow-x: hidden; /* prevent sideways scrollbars on mobile */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--dark-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container */
.container {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero section (slideshow area) */
.hero {
  position: relative;
  height: clamp(55vh, 70vw, 90vh); /* slightly shorter default */
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  width: 100%;
  background-size: cover;
  background-position: center center;
  text-align: left;
  overflow: hidden;
  animation: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero h1,
.hero .tagline,
.hero .sub {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 12px;
  max-width: 60ch;
}

.hero .sub {
  margin-top: 40px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 12px;
  max-width: 60ch;
}

/* Slideshow */
.slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 2s ease-in-out; }
.slide.active { opacity:1; }

.slide1 { background-image: url('../images/slideshow/1.png'); }
.slide2 { background-image: url('../images/slideshow/2.png'); }
.slide3 { background-image: url('../images/slideshow/3.png'); }
.slide4 { background-image: url('../images/slideshow/4.png'); }
.slide4 { background-image: url('../images/slideshow/5.png'); }
.slide4 { background-image: url('../images/slideshow/6.png'); }
.slide4 { background-image: url('../images/slideshow/7.png'); }
.slide4 { background-image: url('../images/slideshow/8.png'); }
.slide4 { background-image: url('../images/slideshow/9.png'); }
.slide4 { background-image: url('../images/slideshow/10.png'); }
.slide4 { background-image: url('../images/slideshow/11.png'); }
.slide4 { background-image: url('../images/slideshow/12.png'); }
.slide4 { background-image: url('../images/slideshow/13.png'); }
.slide4 { background-image: url('../images/slideshow/14.png'); }
.slide.active { opacity: 1; }

.hero-inner {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 0;
}

/* --- Projects section --- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 20px 0;
  font-size: 0; /* removes whitespace between blocks */
}

.project-row {
  margin: 0;
  padding: 0;
  line-height: 0; /* eliminates vertical gaps from inline images */
}

.project-row a {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0;
  padding: 0;
}

.project-row img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  border-radius: 20px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-row img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.project-row .details {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.project-row .details h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark-color);
}

.project-row .details .range {
  font-size: 1rem;
  color: var(--muted-color);
}

/* Section title */
.section-title {
  position: relative;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--dark-color);
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background-color: #e0e0e0;
}

.section-title::before { left: 0; }
.section-title::after { right: 0; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(249, 249, 252, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 0;
}
body {
  padding-top: 80px; /* equal to the navbar height */
}


.nav-inner {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 0;
}

.navbar .logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  text-decoration: none;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.navbar ul li a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.navbar ul li a:hover {
  color: var(--primary-color);
}
/* --- Navbar Logo --- */
.nav-logo {
  height: 40px;                /* adjust for preferred size */
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.85;               /* subtle hover feedback */
}

/* ensure it aligns vertically with nav items */
.nav-inner {
  display: flex;
  align-items: center;
}


/* Footer */
.footer {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(12px, 2.5vw, 28px) clamp(16px, 4vw, 48px);
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  background: #e0e0e0;
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer p { margin: 8px 0; }

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

/* --- Responsive Adjustments --- */

/* Medium screens */
@media (max-width: 900px) {
  .hero h1 { font-size: 54px; }
  .projects {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }
}

/* Navigation mobile adjustments */
@media (max-width: 800px) {
  .nav-inner {
    padding: 16px 0;
    row-gap: 8px;
  }

  .navbar ul {
    gap: 16px;
    flex-wrap: wrap;
  }

  .navbar .logo a {
    font-size: 1rem;
  }

  .navbar ul li a {
    font-size: 0.875rem;
  }
}

/* Project pages: prevent side cropping on small screens */
@media (max-width: 900px) {
  .project-page .project-content img,
  .project-content img {
    aspect-ratio: auto;     /* stop forcing 16:9 boxes */
    height: auto;
    width: 100%;
    object-fit: contain;    /* show full image without cutting */
    border-radius: 16px;
  }

  .project-page .project-content {
    padding: 16px;
  }
}
/* ----- FULL-BLEED FOOTER (edge-to-edge, any window size) ----- */
html, body { overflow-x: hidden; } /* prevent tiny horizontal scrollbars */

.footer {
  /* Break out of the centered container to full viewport width */
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  /* Keep your existing vertical padding; control left/right with padding-inline */
  padding-inline: clamp(16px, 4vw, 48px);
}

/* Respect iOS/Android safe areas while keeping full-bleed */
@supports (padding: max(0px)) {
  .footer {
    padding-left: max(env(safe-area-inset-left), clamp(16px, 4vw, 48px));
    padding-right: max(env(safe-area-inset-right), clamp(16px, 4vw, 48px));
    padding-bottom: max(env(safe-area-inset-bottom), clamp(12px, 2.5vw, 28px));
  }
}

/* If you previously added a mobile override that set width:100% on .footer, neutralize it */
@media (max-width: 640px) {
  .footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}
/* --- Other Work grid --- */
.otherwork-header {
  text-align: center;
  margin: clamp(24px, 4vw, 48px) 0;
}
.otherwork-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 8px;
}
.otherwork-header p {
  margin: 0;
  color: var(--muted-color);
}

/* Responsive grid that auto-fits columns */
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* Card / image */
.other-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.other-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;          /* consistent tile shape */
  object-fit: cover;             /* crop to frame for a gallery look */
  object-position: center;
}

.other-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Optional: tiny caption (you can leave "—" until you add labels) */
.other-item figcaption {
  font-size: 0.875rem;
  color: var(--muted-color);
  padding: 10px 12px 12px;
}

/* --- Inline Contact Section --- */
.contact-inline {
  margin-top: 2.5rem;
  text-align: left;
  max-width: 600px;
}

.contact-inline h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-inline p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.contact-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-inline-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-inline-links a:hover {
  color: #005fa3;
  text-decoration: underline;
}



