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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

ul {
  list-style: none;
}

/* Site Wrapper */
.site-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Navigation - Centered */
.nav {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link.active {
  opacity: 0.5;
}

/* Home Content - Left Side */
.home-content {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.home-title {
  font-size: 12vw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.home-text {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #888;
  letter-spacing: 0.04em;
}

/* Scrolling Image Column - Right Side */
.image-column {
  position: absolute;
  right: 3rem;
  top: 0;
  width: 280px;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.image-scroll {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: scroll-up 20s linear infinite;
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.scroll-item {
  flex-shrink: 0;
}

.placeholder-image {
  width: 280px;
  background-color: #111;
  border: 1px solid #222;
  display: block;
}

.placeholder-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Dim the images slightly for depth */
.image-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 15%,
    transparent 85%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .home-title {
    font-size: 15vw;
  }

  .image-column {
    width: 220px;
    right: 2rem;
  }

  .placeholder-image {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .nav {
    top: 1.5rem;
  }

  .nav-list {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .home-content {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .home-title {
    font-size: 18vw;
  }

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

  .image-column {
    width: 160px;
    right: 1.5rem;
  }

  .placeholder-image {
    width: 160px;
  }
}

@media (max-width: 480px) {
  .nav-list {
    gap: 1rem;
  }

  .home-title {
    font-size: 22vw;
  }

  .image-column {
    width: 120px;
    right: 1rem;
  }

  .placeholder-image {
    width: 120px;
  }
}

/* ========================================
   BLOG PAGE
   ======================================== */

.page-blog {
  overflow-y: auto;
  overflow-x: hidden;
}

.page-blog .site-wrap {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}


/* ========================================
   BLOG POST PAGE
   ======================================== */

.page-blog-post {
  overflow-y: auto;
  overflow-x: hidden;
}

.page-blog-post .site-wrap {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}


/* ========================================
   PROJECTS PAGE
   ======================================== */

.page-projects {
  overflow-y: auto;
  overflow-x: hidden;
}

.page-projects .site-wrap {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}


/* Page Header */
.page-header {
  padding: 8rem 3rem 3rem;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Projects Container */
.projects-container {
  padding: 0 3rem 4rem;
}

/* Project Item */
.project-item {
  display: flex;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem 0;
  transition: background-color 0.3s ease;
}

.project-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.project-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Project Thumbnail */
.project-thumbnail {
  flex-shrink: 0;
}

.thumbnail-placeholder {
  width: 200px;
  height: 140px;
  background-color: #111;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.thumbnail-placeholder::after {
  content: attr(data-label);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.thumbnail-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border: 1px solid #222;
  transition: border-color 0.3s ease;
}

.project-item:hover .thumbnail-image {
  border-color: #444;
}

.project-item:hover .thumbnail-placeholder {
  border-color: #444;
}

.project-info {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0.5rem 2rem;
  align-items: start;
}

/* Project Title */
.project-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  grid-column: 1;
  grid-row: 1;
}

/* Project Year */
.project-year {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

/* Project Link */
.project-link {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  grid-column: 1;
  grid-row: 2;
  margin-top: 0.75rem;
  transition: color 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}

.project-link:hover {
  color: #fff;
  opacity: 0.8;
}

/* Project Data */
.project-data {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  gap: 3rem;
  margin-top: 1.5rem;
}

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

.data-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-value {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Projects Page Responsive */
@media (max-width: 900px) {
  .thumbnail-placeholder,
  .thumbnail-image {
    width: 160px;
    height: 112px;
  }

  .project-item {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 6rem 1.5rem 2rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .projects-container {
    padding: 0 1.5rem 3rem;
  }

  .project-item {
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.25rem;
  }

  .thumbnail-placeholder,
  .thumbnail-image {
    width: 100%;
    height: 180px;
  }

  .project-info {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .project-year {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: 0.25rem;
  }

  .project-link {
    grid-row: 3;
    margin-top: 1rem;
  }

  .project-data {
    grid-row: 4;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 5rem 1rem 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .projects-container {
    padding: 0 1rem 2rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .thumbnail-placeholder,
  .thumbnail-image {
    height: 140px;
  }
}

/* ========================================
   PROJECT DETAIL PAGE
   ======================================== */

.page-project-detail {
  overflow-y: auto;
  overflow-x: hidden;
}

.page-project-detail .site-wrap {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}


/* Back Link */
.back-link {
  display: inline-block;
  position: absolute;
  top: 2rem;
  left: 3rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #fff;
}

/* Project Detail Container */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
}

/* Project Header */
.project-header {
  margin-bottom: 3rem;
}

.project-detail-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.project-tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Project Meta */
.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 3rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.meta-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-value {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Project Hero */
.project-hero {
  margin-bottom: 4rem;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #111;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* Project Content */
.project-content {
  margin-bottom: 4rem;
}

.content-block {
  margin-bottom: 3rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.content-heading {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* Content Figures */
.content-figure {
  margin: 3rem 0;
}

.figure-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #111;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #333;
  font-weight: 600;
}

.content-figure.full-width {
  margin-left: -3rem;
  margin-right: -3rem;
  width: calc(100% + 6rem);
}

.content-figure.full-width .figure-placeholder {
  aspect-ratio: 21 / 9;
}

/* Figure Grid */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.figure-grid .content-figure {
  margin: 0;
}

.figure-grid .figure-placeholder {
  aspect-ratio: 4 / 3;
}

/* Project Links */
.project-links {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
}

.project-external-link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.project-external-link:hover {
  color: #fff;
}

/* Project Navigation */
.project-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 4rem;
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: opacity 0.2s ease;
}

.project-nav-link:hover {
  opacity: 0.7;
}

.project-nav-link.next {
  text-align: right;
  align-items: flex-end;
}

.nav-direction {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.nav-project-title {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Project Detail Responsive */
@media (max-width: 768px) {
  .back-link {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.75rem;
  }

  .project-detail {
    padding: 6rem 1.5rem 3rem;
  }

  .project-detail-title {
    font-size: 2rem;
  }

  .project-tagline {
    font-size: 1rem;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .content-block {
    padding-left: 1rem;
  }

  .content-heading {
    font-size: 1.25rem;
  }

  .content-figure.full-width {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }

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

  .project-links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-nav {
    flex-direction: column;
    gap: 2rem;
  }

  .project-nav-link.next {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .back-link {
    left: 1rem;
  }

  .project-detail {
    padding: 5rem 1rem 2rem;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .content-figure.full-width {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.page-about {
  overflow-y: auto;
  overflow-x: hidden;
}

.page-about .site-wrap {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}


/* About Container */
.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 3rem 6rem;
}

/* About Hero */
.about-hero {
  margin-bottom: 4rem;
}

.about-hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #111;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #333;
  font-weight: 600;
}

/* About Sections */
.about-section {
  margin-bottom: 4rem;
}

.about-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* About Intro */
.intro-text {
  font: Times New Roman, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.intro-text:last-child {
  margin-bottom: 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-category {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.skill-list {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* Recognition List */
.recognition-list {
  display: flex;
  flex-direction: column;
}

.recognition-item {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.recognition-item:first-child {
  padding-top: 0;
}

.recognition-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recognition-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.recognition-year {
  flex-shrink: 0;
  width: 4rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.recognition-title {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.contact-value {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.contact-value:hover {
  color: #fff;
}

/* About Page Responsive */
@media (max-width: 768px) {
  .about-container {
    padding: 6rem 1.5rem 4rem;
  }

  .about-hero-placeholder {
    aspect-ratio: 4 / 3;
  }

  .intro-text {
    font-size: 1.125rem;
  }

  .skills-grid {
    gap: 1.5rem;
  }

  .recognition-item {
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 5rem 1rem 3rem;
  }

  .about-section {
    margin-bottom: 3rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .recognition-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .recognition-year {
    width: auto;
    font-size: 0.75rem;
  }

  .recognition-title {
    font-size: 0.9375rem;
  }
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.page-contact {
  overflow-y: auto;
  overflow-x: hidden;
}

.page-contact .site-wrap {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}


/* Contact Container */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 8rem 3rem 6rem;
}

/* Contact Header */
.contact-header {
  margin-bottom: 4rem;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.contact-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Contact Sections */
.contact-section {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-section:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

/* Contact Address */
.contact-address {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* Contact Row */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-type {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  min-width: 60px;
}

/* Copy Button */
.contact-copy-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.contact-copy-btn:hover {
  opacity: 0.7;
}

.contact-copy-btn .contact-value {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-copy-btn .copy-indicator {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.contact-copy-btn .copied-indicator {
  display: none;
  font-size: 0.75rem;
  color: rgba(100, 255, 150, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-copy-btn.copied .copy-indicator {
  display: none;
}

.contact-copy-btn.copied .copied-indicator {
  display: inline;
}

.contact-copy-btn:hover .copy-indicator {
  color: rgba(255, 255, 255, 0.6);
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.7;
}

.social-link .arrow {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover .arrow {
  transform: translate(2px, -2px);
  color: rgba(255, 255, 255, 0.7);
}

/* Availability */
.contact-availability {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: none;
  margin-top: 2rem;
  padding-top: 0;
}

.availability-indicator {
  width: 8px;
  height: 8px;
  background-color: rgba(100, 255, 150, 0.8);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.availability-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-container {
    padding: 6rem 1.5rem 4rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-tagline {
    font-size: 1rem;
  }

  .contact-section {
    padding: 1.5rem 0;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .contact-type {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 5rem 1rem 3rem;
  }

  .contact-header {
    margin-bottom: 3rem;
  }

  .contact-availability {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
