:root {
  --primary: #a10000;
  --primary-dark: #7d0000;
  --primary-mid: #8b0000;
  --light: #f3f3f3;
  --line: #d5d5d5;
  --text: #1d1d1d;
  --white: #ffffff;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Libre Baskerville", serif;
  color: var(--text);
  background: var(--light);
}

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

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

.topbar {
  background: var(--primary-dark);
  color: var(--white);
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 2px solid rgba(255,255,255,0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-link {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  padding-right: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 700;
  padding: 0 1.4rem;
  line-height: 1;
}

.nav a + a {
  border-left: 2px solid rgba(255,255,255,0.35);
}

.hero {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 5vw 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr auto;
  gap: 2rem;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.98;
  margin-bottom: 1.6rem;
  letter-spacing: -0.02em;
}

.hero-copy p {
  font-size: clamp(1rem, 1.65vw, 2rem);
  max-width: 760px;
  line-height: 1.25;
  font-weight: 700;
}

.hero-photo-wrap {
  justify-self: center;
}

.hero-photo {
  width: min(380px, 100%);
  aspect-ratio: 0.88 / 1;
  background: #b8b8b8;
  border: 10px solid rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-rail {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-self: end;
}

.social-link {
  width: 76px;
  height: 76px;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  border: 1px solid rgba(0,0,0,0.08);
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link svg {
  width: 42px;
  height: 42px;
  fill: #000;
  stroke: #000;
}

.overview {
  background: #ececec;
  padding: 3.5rem 4vw 3rem;
}

.overview-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 3rem;
  align-items: stretch;
}

.stacked-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.stacked-links a {
  display: block;
  background: var(--primary);
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  text-align: center;
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.stacked-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.feature-card {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 1.25rem;
  align-items: center;
  min-height: 290px;
}

.feature-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.feature-header {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 1.35vw, 1.4rem);
  font-weight: 700;
  text-align: center;
  padding: 0;
}

.feature-image {
  width: min(430px, 100%);
  height: 320px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
}

.feature-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* HOME PAGE CAROUSEL BUTTONS */
/* Matched to the projects carousel button behavior */
.arrow-btn {
  background: var(--white);
  border: none;
  color: #000;
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  width: 100px;
  height: 74px;
  font-family: Georgia, serif;
  box-shadow: var(--shadow);
}

.arrow-btn:hover {
  background: #f3f3f3;
}

.dots {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: 2px solid rgba(255,255,255,0.9);
  cursor: pointer;
}

.dot.active {
  border-radius: 3px;
  width: 24px;
  background: #6ec9f1;
}

.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 3.5rem 5vw 4rem;
}

.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 5vw, 5.3rem);
}

.page-content {
  max-width: 2000px;
  margin: 0 auto;
  padding: 3rem 3vw 4rem;
}

.content-block,
.project-detail {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.content-block h2,
.project-detail h2 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 1.2rem;
}

.content-block p,
.project-detail p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-block p + p,
.project-detail p + p {
  margin-top: 1rem;
}

.project-role {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: -0.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.center-block {
  text-align: center;
}

/* RESUME BUTTON */
/* Keeps the same hover lift as contact buttons, while forcing text to stay white */
.resume-button,
.resume-button:visited,
.resume-button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.75rem;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  top: 0;
}

.resume-button:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

.resume-role {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: -0.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.project-detail-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-detail-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-carousel {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 1rem;
  align-items: center;
  margin: 0 auto 1.5rem;
}

.project-carousel-btn {
  background: var(--white);
  border: none;
  color: #000;
  font-size: 3.2rem;
  line-height: 1;
  cursor: pointer;
  height: 72px;
  box-shadow: var(--shadow);
  font-family: Georgia, serif;
}

.project-carousel-btn:hover {
  background: #f3f3f3;
}

.project-detail-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-detail-image img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
}

.project-image-caption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--primary);
  background: #fff;
  border-top: 1px solid var(--line);
  font-style: italic;
}

/* Bold/Underline links */

.content-block a:not(.resume-button),
.project-detail a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.content-block a:not(.resume-button):hover,
.project-detail a:hover {
  color: var(--primary-dark);
}

.tech-label {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* RESUME PAGE */

.resume-intro-block {
  margin-bottom: 2.5rem;
}

.resume-detail-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.resume-detail-image {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: start;
}

.resume-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.resume-detail-text {
  margin-bottom: 0;
  height: 100%;
}

/* ABOUT PAGE */

.about-intro {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.about-main-image {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: start;
}

.about-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.about-text-block {
  margin-bottom: 0;
  height: 100%;
}

.photo-gallery-section {
  background: #fff;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.photo-gallery-section h2 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 1.5rem;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-photo {
  background: #f2f2f2;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .social-rail {
    flex-direction: row;
    justify-self: start;
    flex-wrap: wrap;
  }

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

@media (max-width: 900px) {
  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-image {
    width: min(430px, 100%);
    height: 280px;
  }

  .arrow-btn {
    width: 100%;
  }

  .overview-grid {
    gap: 2rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-main-image {
    max-width: 420px;
    margin: 0 auto;
  }

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

  .resume-detail-row,
  .resume-detail-row.reverse {
    grid-template-columns: 1fr;
  }

  .resume-detail-row.reverse .resume-detail-image,
  .resume-detail-row.reverse .resume-detail-text {
    order: initial;
  }

  .resume-detail-image {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: center;
    padding: 1rem;
  }

  .nav-wrap {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }

  .nav a + a {
    border-left: none;
  }

  .nav a {
    padding: 0.3rem 0.8rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-carousel {
    grid-template-columns: 1fr;
  }

  .project-carousel-btn {
    width: 100%;
  }

  .project-detail-image img {
    height: auto;
  }
}

/* CONTACT PAGE */

.contact-page-content {
  padding: 3rem 4vw 4rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

.contact-message-block {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 2.75rem;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.contact-message-block h2 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.contact-message-block p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 900px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  flex: 1;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-field label {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--text);
  padding: 1rem;
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
}

.contact-field textarea {
  min-height: 235px;
  resize: vertical;
}

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

.contact-form button {
  align-self: flex-start;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-side-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 1.75rem;
  min-height: 72px;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-side-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 950px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-side-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-side-btn {
    min-height: 140px;
  }
}

@media (max-width: 720px) {
  .contact-field-row {
    grid-template-columns: 1fr;
  }

  .contact-message-block {
    padding: 2rem;
    min-height: auto;
  }

  .contact-side-links {
    grid-template-columns: 1fr;
  }
}


/* :root {
  --primary: #a10000;
  --primary-dark: #7d0000;
  --primary-mid: #8b0000;
  --light: #f3f3f3;
  --line: #d5d5d5;
  --text: #1d1d1d;
  --white: #ffffff;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Libre Baskerville", serif;
  color: var(--text);
  background: var(--light);
}

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

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

.topbar {
  background: var(--primary-dark);
  color: var(--white);
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 2px solid rgba(255,255,255,0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-link {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  padding-right: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 700;
  padding: 0 1.4rem;
  line-height: 1;
}

.nav a + a {
  border-left: 2px solid rgba(255,255,255,0.35);
}

.hero {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 5vw 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr auto;
  gap: 2rem;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.98;
  margin-bottom: 1.6rem;
  letter-spacing: -0.02em;
}

.hero-copy p {
  font-size: clamp(1rem, 1.65vw, 2rem);
  max-width: 760px;
  line-height: 1.25;
  font-weight: 700;
}

.hero-photo-wrap {
  justify-self: center;
}

.hero-photo {
  width: min(380px, 100%);
  aspect-ratio: 0.88 / 1;
  background: #b8b8b8;
  border: 10px solid rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-rail {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-self: end;
}

.social-link {
  width: 76px;
  height: 76px;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  border: 1px solid rgba(0,0,0,0.08);
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link svg {
  width: 42px;
  height: 42px;
  fill: #000;
  stroke: #000;
}

.overview {
  background: #ececec;
  padding: 3.5rem 4vw 3rem;
}

.overview-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 3rem;
  align-items: stretch;
}

.stacked-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.stacked-links a {
  display: block;
  background: var(--primary);
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  text-align: center;
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.stacked-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.feature-card {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 1.25rem;
  align-items: center;
  min-height: 290px;
}

.feature-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.feature-header {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 1.35vw, 1.4rem);
  font-weight: 700;
  text-align: center;
  padding: 0;
}

.feature-image {
  width: min(430px, 100%);
  height: 320px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
}

.feature-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.arrow-btn {
  background: var(--white);
  border: none;
  color: #000;
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  width: 100px;
  height: 74px;
  font-family: Georgia, serif;
}

.arrow-btn:hover {
  background: var(--gray);
  transform: translateY(-2px);
}

.dots {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: 2px solid rgba(255,255,255,0.9);
  cursor: pointer;
}

.dot.active {
  border-radius: 3px;
  width: 24px;
  background: #6ec9f1;
}

.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 3.5rem 5vw 4rem;
}

.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 5vw, 5.3rem);
}

.page-content {
  max-width: 2000px;
  margin: 0 auto;
  padding: 3rem 3vw 4rem;
}

.content-block,
.project-detail {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.content-block h2,
.project-detail h2 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 1.2rem;
}

.content-block p,
.project-detail p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-block p + p,
.project-detail p + p {
  margin-top: 1rem;
}

.project-role {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: -0.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.center-block {
  text-align: center;
}

.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.75rem;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  top: 0;
}

.resume-button:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.resume-role {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: -0.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.project-detail-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-detail-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-carousel {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 1rem;
  align-items: center;
  margin: 0 auto 1.5rem;
}

.project-carousel-btn {
  background: var(--white);
  border: none;
  color: #000;
  font-size: 3.2rem;
  line-height: 1;
  cursor: pointer;
  height: 72px;
  box-shadow: var(--shadow);
  font-family: Georgia, serif;
}

.project-carousel-btn:hover {
  background: #f3f3f3;
}

.project-detail-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-detail-image img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
}

.project-image-caption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--primary);
  background: #fff;
  border-top: 1px solid var(--line);
  font-style: italic;
}
/* Bold/Underline links */

.content-block a:not(.resume-button),
.project-detail a{
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.content-block a:not(.resume-button):hover,
.project-detail a:hover{
  color: var(--primary-dark);
}

.tech-label {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* RESUME PAGE */

.resume-intro-block {
  margin-bottom: 2.5rem;
}

.resume-detail-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.resume-detail-image {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: start;
}

.resume-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.resume-detail-text {
  margin-bottom: 0;
  height: 100%;
}

/* ABOUT PAGE */

.about-intro {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.about-main-image {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: start;
}

.about-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.about-text-block {
  margin-bottom: 0;
  height: 100%;
}

.photo-gallery-section {
  background: #fff;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.photo-gallery-section h2 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 1.5rem;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-photo {
  background: #f2f2f2;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .social-rail {
    flex-direction: row;
    justify-self: start;
    flex-wrap: wrap;
  }

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

@media (max-width: 900px) {
  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-image {
    width: min(430px, 100%);
    height: 280px;
  }

  .arrow-btn {
    width: 100%;
  }

  .overview-grid {
    gap: 2rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-main-image {
    max-width: 420px;
    margin: 0 auto;
  }

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

  .resume-detail-row,
  .resume-detail-row.reverse {
    grid-template-columns: 1fr;
  }

  .resume-detail-row.reverse .resume-detail-image,
  .resume-detail-row.reverse .resume-detail-text {
    order: initial;
  }

  .resume-detail-image {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: center;
    padding: 1rem;
  }

  .nav-wrap {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }

  .nav a + a {
    border-left: none;
  }

  .nav a {
    padding: 0.3rem 0.8rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

    .project-carousel {
    grid-template-columns: 1fr;
  }

  .project-carousel-btn {
    width: 100%;
  }

  .project-detail-image img {
    height: auto;
  }
}

/* CONTACT PAGE */

.contact-page-content {
  padding: 3rem 4vw 4rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

.contact-message-block {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 2.75rem;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.contact-message-block h2 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.contact-message-block p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 900px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  flex: 1;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-field label {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--text);
  padding: 1rem;
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
}

.contact-field textarea {
  min-height: 235px;
  resize: vertical;
}

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

.contact-form button {
  align-self: flex-start;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.contact-side-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 1.75rem;
  min-height: 72px;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-side-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 950px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-side-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-side-btn {
    min-height: 140px;
  }
}

@media (max-width: 720px) {
  .contact-field-row {
    grid-template-columns: 1fr;
  }

  .contact-message-block {
    padding: 2rem;
    min-height: auto;
  }

  .contact-side-links {
    grid-template-columns: 1fr;
  }
} */

