/* =============================
   Student Portfolio Stylesheet
   ============================= */

:root {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --card-bg: #232323;
  --accent: #4f8cff;
  --footer-bg: #181818;
  --input-bg: #232323;
  --input-border: #333;
  --transition: 0.3s;
  --font-main: 'Inter', 'Roboto', Arial, sans-serif;
}

/* Global responsive box-sizing */
* {
  box-sizing: border-box;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Light mode overrides */
body.light-mode {
  --bg-color: #f7f7f7;
  --text-color: #181818;
  --card-bg: #fff;
  --footer-bg: #eaeaea;
  --input-bg: #fff;
  --input-border: #ccc;
}

/* Responsive font sizes */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.85rem;
  }
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1200px) {
  .container {
    max-width: 80rem;
  }
}

/* Profile image: responsive with relative units */
.profile-img {
  width: 100%;
  max-width: 23.75rem; /* 380px → 23.75rem */
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.3125rem; /* 5px → 0.3125rem */
  border: 0.1875rem solid var(--accent); /* 3px → 0.1875rem */
  background: var(--card-bg);
  display: block;
  box-shadow: 0 0.25rem 1.5rem rgba(0,0,0,0.10); /* 4px 24px → 0.25rem 1.5rem */
  margin: 0 auto;
}

@media (max-width: 900px) {
  .profile-img {
    max-width: 13.75rem; /* 220px → 13.75rem */
  }
}

@media (max-width: 600px) {
  .profile-img {
    max-width: 7.5rem; /* 120px → 7.5rem */
  }
}

/* Responsive layout for homepage */
.main-flex {
  min-height: 90vh;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 1rem;
}

@media (max-width: 900px) {
  .main-flex {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
  }
}

.main-content-col {
  padding-left: 0 !important;
  margin-left: 0 !important;
  flex-grow: 1;
}

.profile-img-wrapper {
  padding-left: 0 !important;
  margin-left: 0 !important;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-direction: row;
}

.intro-text-col {
  padding-left: 2rem;
  flex-grow: 1;
}

@media (max-width: 1100px) {
  .profile-img-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .intro-text-col {
    padding-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .main-content-col {
    width: 100%;
  }
  .profile-img {
    margin-left: auto;
    margin-right: auto;
  }
  .profile-img-wrapper {
    gap: 1rem;
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none; /* Hidden by default on desktop */
  margin-top: 2rem;
  padding: 1rem 0;
}

.mobile-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.1);
  max-width: 20rem;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; /* 44px */
  height: 2.75rem; /* 44px */
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-color);
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: var(--accent);
  color: #fff;
  transform: translateY(-0.125rem);
}

.mobile-nav-item:active {
  transform: translateY(0);
}

/* Show mobile nav on small screens, hide vertical nav */
@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: block;
  }
  
  .vertical-nav {
    display: none !important;
  }
  
  .main-flex {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .mobile-nav-container {
    gap: 1.5rem;
    padding: 0.75rem 1rem;
  }
  
  .mobile-nav-item {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .mobile-nav-container {
    gap: 1rem;
    padding: 0.5rem 0.75rem;
  }
  
  .mobile-nav-item {
    width: 2.25rem; /* 36px */
    height: 2.25rem; /* 36px */
    font-size: 1rem;
  }
}

/* Vertical navigation styles (Desktop Only) */
.vertical-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem 2rem 2rem;
  background: var(--card-bg);
  border-radius: 1rem 0 0 1rem; /* 16px → 1rem */
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.06); /* 2px 8px → 0.125rem 0.5rem */
  min-width: 10rem; /* 160px → 10rem */
}

.vertical-nav .nav-link {
  color: var(--text-color);
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem; /* 6px → 0.375rem */
  text-align: right;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: block;
  width: 100%;
}

.vertical-nav .nav-link.active,
.vertical-nav .nav-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.vertical-nav .theme-toggle-btn {
  margin-top: 1.5rem;
  align-self: flex-end;
}

@media (max-width: 900px) {
  .vertical-nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 100%;
    min-width: unset;
    border-radius: 0 0 1rem 1rem; /* 16px → 1rem */
    padding: 0.75rem 1rem;
    position: static;
    box-shadow: none;
    margin-bottom: 1.5rem;
    gap: 1rem;
  }
  .vertical-nav .nav-link {
    text-align: center;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    width: auto;
  }
  .vertical-nav .theme-toggle-btn {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}

@media (max-width: 600px) {
  .vertical-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .vertical-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.375rem 0.5rem;
  }
}

/* Horizontal navigation improvements */
.navbar {
  transition: background var(--transition), color var(--transition);
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  transition: color var(--transition);
}

/* Mobile navbar collapse styling */
@media (max-width: 991.98px) {
  .navbar-collapse {
    text-align: center;
  }
  
  .navbar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: background var(--transition), color var(--transition);
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: var(--accent);
    color: #fff;
  }
  
  .navbar-nav .nav-link.active {
    background: var(--accent);
    color: #fff;
  }
  
  /* Center the theme toggle button in collapsed menu */
  .navbar-nav .btn {
    margin: 0.5rem auto;
    display: block;
    width: auto;
    min-width: 8rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.625rem 0.75rem;
  }
}

/* Footer responsive improvements */
.footer {
  background: var(--footer-bg);
  color: var(--text-color);
  font-size: 0.95rem;
  padding: 1rem;
  margin-top: auto;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.25em;
  transition: color var(--transition);
}

.footer-link:hover {
  text-decoration: underline;
  color: #fff;
}

@media (max-width: 768px) {
  .footer {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
}

/* Card improvements */
.card {
  background: var(--card-bg);
  color: var(--text-color);
  border: none;
  border-radius: 0.75rem; /* 12px → 0.75rem */
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08); /* 2px 8px → 0.125rem 0.5rem */
  transition: background var(--transition), color var(--transition);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

/* Button improvements - touch-friendly */
.btn {
  font-size: 1rem;
  padding: 0.75em 1.25em;
  border-radius: 0.375rem; /* 6px → 0.375rem */
  transition: all var(--transition);
  min-height: 2.75rem; /* Touch-friendly minimum height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background var(--transition);
}

.btn-accent:hover {
  background: #2563eb;
  color: #fff;
}

.btn-outline-secondary {
  border: 1px solid var(--input-border);
  color: var(--text-color);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--input-border);
  color: var(--text-color);
}

@media (max-width: 768px) {
  .btn {
    font-size: 0.9rem;
    padding: 0.625em 1em;
    min-height: 2.5rem;
    width: 100%;
    max-width: 18.75rem; /* 300px → 18.75rem */
    margin: 0.25rem 0;
  }
}

/* Form improvements - touch-friendly */
input, textarea {
  background: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--input-border);
  border-radius: 0.375rem; /* 6px → 0.375rem */
  padding: 0.75em;
  width: 100%;
  font-size: 1rem;
  min-height: 2.75rem; /* Touch-friendly */
  transition: background var(--transition), color var(--transition), border var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.125rem rgba(79, 140, 255, 0.25);
}

@media (max-width: 768px) {
  input, textarea {
    font-size: 0.9rem;
    padding: 0.625em;
    min-height: 2.5rem;
  }
}

label {
  margin-bottom: 0.25em;
  font-weight: 500;
  font-size: 1rem;
}

@media (max-width: 768px) {
  label {
    font-size: 0.9rem;
  }
}

/* Hide default number input arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Project card enhancements */
.project-thumbnail {
  width: 100%;
  height: 12.5rem; /* 200px → 12.5rem */
  object-fit: cover;
  border-radius: 0.5rem; /* 8px → 0.5rem */
  background: var(--card-bg);
  border: 1px solid var(--input-border);
}

@media (max-width: 768px) {
  .project-thumbnail {
    height: 10rem; /* 160px → 10rem */
  }
}

.project-title-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 1.25rem;
  font-weight: 600;
}

.project-title-link:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .project-title-link {
    font-size: 1.1rem;
  }
}

/* Project detail page styles */
.project-banner {
  width: 100%;
  height: 18.75rem; /* 300px → 18.75rem */
  object-fit: cover;
  border-radius: 0.75rem; /* 12px → 0.75rem */
  margin-bottom: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--input-border);
}

@media (max-width: 768px) {
  .project-banner {
    height: 12.5rem; /* 200px → 12.5rem */
    margin-bottom: 1.5rem;
  }
}

.project-content {
  line-height: 1.6;
  font-size: 1rem;
}

.project-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  margin-bottom: 1rem;
}

.project-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.project-content li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .project-content {
    font-size: 0.9rem;
  }
  .project-content h1 {
    font-size: 1.5rem;
  }
  .project-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-badge {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1.25rem; /* 20px → 1.25rem */
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .tech-badge {
    font-size: 0.8rem;
    padding: 0.1875rem 0.5rem;
  }
}

/* About page specific responsive styles */
.about-header-title {
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 2.2rem;
}

.about-header-subtitle {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-header-info {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.about-profile-img {
  width: 18.75rem; /* 300px → 18.75rem */
  height: 25rem; /* 400px → 25rem */
  object-fit: cover;
  border-radius: 0.5rem; /* 8px → 0.5rem */
  box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.2); /* 4px 10px → 0.25rem 0.625rem */
  display: block;
  margin: 0 auto;
}

.about-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2.5rem 0 1.5rem 0;
  flex-wrap: wrap;
}

.about-stat-box {
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: 0.625rem; /* 10px → 0.625rem */
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08); /* 2px 8px → 0.125rem 0.5rem */
  padding: 2rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  min-width: 12.5rem; /* 200px → 12.5rem */
}

.about-cv-btn {
  margin-top: 1.5rem;
  font-weight: 500;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .about-profile-img {
    width: 12.5rem; /* 200px → 12.5rem */
    height: 16.875rem; /* 270px → 16.875rem */
  }
  .about-stats {
    gap: 1rem;
  }
  .about-stat-box {
    padding: 1.2rem 1.5rem;
    min-width: 8.75rem; /* 140px → 8.75rem */
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .about-profile-img {
    width: 7.5rem; /* 120px → 7.5rem */
    height: 10rem; /* 160px → 10rem */
  }
  .about-header-title {
    font-size: 1.4rem;
  }
  .about-header-info {
    font-size: 1rem;
  }
  .about-stat-box {
    min-width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Contact page responsive improvements */
.contact-form-container {
  max-width: 31.25rem; /* 500px → 31.25rem */
  margin: 0 auto;
}

.contact-form-container iframe {
  width: 100%;
  height: 37.5rem; /* 600px → 37.5rem */
  border-radius: 0.5rem; /* 8px → 0.5rem */
  border: none;
}

@media (max-width: 768px) {
  .contact-form-container iframe {
    height: 31.25rem; /* 500px → 31.25rem */
  }
}

/* Utility classes for responsive spacing */
.section-padding {
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 1rem 0;
  }
}

/* Ensure no horizontal scrolling */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Responsive grid improvements */
.row {
  margin: 0;
}

.col-md-6, .col-lg-4, .col-12 {
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .col-md-6, .col-lg-4 {
    margin-bottom: 1rem;
  }
}

/* Main content responsive padding */
main.container {
  padding: 2rem 1rem;
}

@media (max-width: 768px) {
  main.container {
    padding: 1rem 0.5rem;
  }
}

/* Responsive text alignment */
@media (max-width: 768px) {
  .text-md-start {
    text-align: center !important;
  }
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Icon responsive sizing */
i, svg {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  i, svg {
    font-size: 1.25rem;
  }
}

/* =============================
   Home Page Refresh
   ============================= */
body.home-page {
  --home-bg: #ffffff;
  --home-ink: #1f1b16;
  --home-muted: #5a534c;
  --home-accent: #1a6b5c;
  --home-rule: rgba(31, 27, 22, 0.12);
  background: #ffffff;
  color: var(--home-ink);
  font-family: 'Space Grotesk', sans-serif;
}

body.home-page:not(.light-mode) {
  --home-bg: #0f1110;
  --home-ink: #f3f0ea;
  --home-muted: #b7afa6;
  --home-accent: #5ad1b8;
  --home-rule: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(1000px 600px at 15% -20%, rgba(90, 209, 184, 0.15), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 210, 170, 0.12), transparent 55%),
    linear-gradient(180deg, #0f1110 0%, #151816 100%);
  color: var(--home-ink);
}

.experience-page {
  --home-bg: #ffffff;
  --home-ink: #1f1b16;
  --home-muted: #5a534c;
  --home-accent: #1a6b5c;
  --home-rule: rgba(31, 27, 22, 0.12);
  background: #ffffff;
  color: var(--home-ink);
  font-family: 'Space Grotesk', sans-serif;
}

body.experience-page:not(.light-mode) {
  --home-bg: #0f1110;
  --home-ink: #f3f0ea;
  --home-muted: #b7afa6;
  --home-accent: #5ad1b8;
  --home-rule: rgba(255, 255, 255, 0.16);
  background: #0f1110;
  color: var(--home-ink);
}

.projects-page {
  --home-bg: #ffffff;
  --home-ink: #1f1b16;
  --home-muted: #5a534c;
  --home-accent: #1a6b5c;
  --home-rule: rgba(31, 27, 22, 0.12);
  background: #ffffff;
  color: var(--home-ink);
  font-family: 'Space Grotesk', sans-serif;
}

body.projects-page:not(.light-mode) {
  --home-bg: #0f1110;
  --home-ink: #f3f0ea;
  --home-muted: #b7afa6;
  --home-accent: #5ad1b8;
  --home-rule: rgba(255, 255, 255, 0.16);
  background: #0f1110;
  color: var(--home-ink);
}

.contact-page {
  --home-bg: #ffffff;
  --home-ink: #1f1b16;
  --home-muted: #5a534c;
  --home-accent: #1a6b5c;
  --home-rule: rgba(31, 27, 22, 0.12);
  background: #ffffff;
  color: var(--home-ink);
  font-family: 'Space Grotesk', sans-serif;
}

body.contact-page:not(.light-mode) {
  --home-bg: #0f1110;
  --home-ink: #f3f0ea;
  --home-muted: #b7afa6;
  --home-accent: #5ad1b8;
  --home-rule: rgba(255, 255, 255, 0.16);
  background: #0f1110;
  color: var(--home-ink);
}

.photography-page {
  --home-bg: #ffffff;
  --home-ink: #1f1b16;
  --home-muted: #5a534c;
  --home-accent: #1a6b5c;
  --home-rule: rgba(31, 27, 22, 0.12);
  background: #ffffff;
  color: var(--home-ink);
  font-family: 'Space Grotesk', sans-serif;
}

body.photography-page:not(.light-mode) {
  --home-bg: #0f1110;
  --home-ink: #f3f0ea;
  --home-muted: #b7afa6;
  --home-accent: #5ad1b8;
  --home-rule: rgba(255, 255, 255, 0.16);
  background: #0f1110;
  color: var(--home-ink);
}

.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem 2rem;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--home-ink);
  text-decoration: none;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-link {
  color: var(--home-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.home-link:hover,
.home-link.active {
  color: var(--home-ink);
  opacity: 0.85;
}

.home-theme-toggle {
  border: 1px solid var(--home-rule);
  background: transparent;
  color: var(--home-ink);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.home-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--home-accent);
}

.home-main {
  width: 100%;
  max-width: 760px;
  margin: 5rem auto 3.5rem;
}

.home-hero {
  animation: homeFadeUp 0.7s ease both;
}

.home-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.home-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: homeWave 2.4s ease-in-out infinite;
}

.home-subtitle {
  font-size: 1.15rem;
  color: var(--home-muted);
  max-width: 36rem;
}

.home-now {
  margin-top: 3.5rem;
}

.home-section-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--home-muted);
  margin-bottom: 2rem;
}

.home-now-grid {
  display: grid;
  gap: 2rem;
}

.home-now-block {
  padding-top: 1.5rem;
  animation: homeFadeUp 0.7s ease both;
}

.home-now-block:nth-child(2) {
  animation-delay: 0.1s;
}

.home-now-block:nth-child(3) {
  animation-delay: 0.2s;
}

.home-now-block:nth-child(4) {
  animation-delay: 0.3s;
}

.home-now-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--home-ink);
}

.home-now-block ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: var(--home-muted);
}

.home-now-block li {
  margin-bottom: 0.5rem;
}

.home-now-block p {
  margin: 0;
  color: var(--home-muted);
}

.home-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--home-rule);
  padding-top: 1.25rem;
  color: var(--home-muted);
  font-size: 0.95rem;
}

.home-footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-footer-links a {
  color: var(--home-ink);
  text-decoration: none;
  font-weight: 500;
}

.home-footer-links i {
  font-size: 1.1rem;
}

.home-footer-text {
  color: var(--home-ink);
}

.home-footer-meta {
  color: var(--home-muted);
}

.experience-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem 2rem;
}

.experience-main {
  width: 100%;
  max-width: 820px;
  margin: 4rem auto 3rem;
}

.experience-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 2.5rem;
}

.experience-entry {
  margin-bottom: 2.5rem;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.experience-header h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.experience-company {
  color: var(--home-muted);
  font-weight: 500;
}

.experience-location {
  color: var(--home-muted);
  font-size: 0.95rem;
}

.experience-dates {
  color: var(--home-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.experience-bullets {
  padding-left: 1.1rem;
  color: var(--home-muted);
  margin: 0;
}

.experience-bullets li {
  margin-bottom: 0.65rem;
}

.projects-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem 2rem;
}

.projects-main {
  width: 100%;
  max-width: 980px;
  margin: 4rem auto 3rem;
}

.projects-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 2.5rem;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item + .project-item {
  margin-top: 4rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.project-name {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.project-summary {
  color: var(--home-muted);
  max-width: 42rem;
}

.project-dates {
  color: var(--home-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.project-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--home-ink);
  color: var(--home-ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.project-btn:hover {
  transform: translateY(-1px);
  background: var(--home-ink);
  color: var(--home-bg);
}

.project-chip {
  border: 1px solid var(--home-rule);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--home-muted);
  background: transparent;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-details h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--home-ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-details h3:first-of-type {
  margin-top: 0;
}

.project-details p,
.project-details ul {
  color: var(--home-muted);
}

.project-details ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.project-details li {
  margin-bottom: 0.5rem;
}

.project-note {
  font-size: 0.9rem;
  color: var(--home-muted);
  margin-top: 0.5rem;
}

.project-media {
  border-radius: 1rem;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
  margin-bottom: 3.5rem;
}

.project-media-centered {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

.project-video {
  width: 100%;
  height: auto;
  display: block;
}

.contact-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem 2rem;
}

.contact-main {
  width: 100%;
  max-width: 820px;
  margin: 4rem auto 3rem;
}

.contact-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

.contact-intro {
  color: var(--home-muted);
  margin-bottom: 2rem;
}

.contact-page .contact-form-container {
  max-width: 100%;
  margin: 0;
}

.contact-page .contact-form-container iframe {
  width: 100%;
  height: 37.5rem;
  border-radius: 1rem;
  border: 1px solid var(--home-rule);
  background: #fff;
}

.contact-cta {
  margin-top: 1.5rem;
  color: var(--home-muted);
}

.contact-cta p {
  margin-bottom: 0.75rem;
}

.contact-links {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
  color: var(--home-muted);
}

.contact-links a {
  color: var(--home-ink);
}

.photography-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem 2rem;
}

.photography-main {
  width: 100%;
  max-width: 1040px;
  margin: 4rem auto 3rem;
}

.photography-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

.photography-intro {
  color: var(--home-muted);
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.photo-card {
  border-radius: 0;
  overflow: hidden;
  background: #f4f4f4;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  aspect-ratio: 4 / 5;
}

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

.photo-focus-left img {
  object-position: left center;
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-6deg);
  }
  60% {
    transform: rotate(10deg);
  }
}

@media (max-width: 900px) {
  .home-shell {
    padding: 2rem 1.5rem 1.5rem;
  }

  .home-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-nav {
    justify-content: flex-start;
    gap: 1rem;
  }

  .home-main {
    margin: 3rem auto 2.5rem;
  }

  .experience-shell {
    padding: 2rem 1.5rem 1.5rem;
  }

  .experience-main {
    margin: 3rem auto 2.5rem;
  }

  .projects-shell {
    padding: 2rem 1.5rem 1.5rem;
  }

  .projects-main {
    margin: 3rem auto 2.5rem;
  }

  .project-body {
    gap: 2rem;
  }

  .contact-shell {
    padding: 2rem 1.5rem 1.5rem;
  }

  .contact-main {
    margin: 3rem auto 2.5rem;
  }

  .photography-shell {
    padding: 2rem 1.5rem 1.5rem;
  }

  .photography-main {
    margin: 3rem auto 2.5rem;
  }
}

@media (max-width: 600px) {
  .home-shell {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .home-nav {
    row-gap: 0.75rem;
  }

  .home-subtitle {
    font-size: 1rem;
  }

  .home-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-shell {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .projects-shell {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .contact-shell {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .photography-shell {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
