/* ==========================================================================
   MAYUR VAIDYA — PORTFOLIO DESIGN SYSTEM (REDESIGN)
   Minimalist, Typography-First, Border-Structured, Responsive Layout
   ========================================================================== */

/* --- Import Clean Font Families --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400&family=DM+Sans:wght@600;700&display=swap');

/* --- CSS Variables & Design Tokens (Dark Theme Default) --- */
:root {
  --bg: #0c0c0c;
  --bg-surface: #141414;
  --text-1: #f5f5f5;
  --text-2: #a0a0a0;
  --text-3: #555555;
  --accent: #6366f1; /* Indigo */
  --border: #1f1f1f;
  --border-subtle: #181818;

  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-bg: rgba(12, 12, 12, 0.9);
  --section-pad: 80px 0;
  --content-width: 1100px;
}

/* --- Light Mode Colors Override --- */
body.theme-light {
  --bg: #fafafa;
  --bg-surface: #f0f0f0;
  --text-1: #0d0d0d;
  --text-2: #555555;
  --text-3: #999999;
  --border: #e0e0e0;
  --border-subtle: #ebebeb;
  --accent: #4f46e5; /* Deep Indigo for light contrast */

  --nav-bg: rgba(250, 250, 250, 0.9);
}

/* ==========================================================================
   1. RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 200ms ease, color 200ms ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-1);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

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

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

input, textarea {
  font-family: var(--font-body);
  font-size: 14px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}

/* Selection Highlight */
::selection {
  background-color: var(--accent);
  color: #ffffff;
}

/* ==========================================================================
   2. REUSABLE UTILITIES
   ========================================================================== */
.main-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 767px) {
  .main-content {
    padding: 0 20px;
  }
}

.section {
  padding: var(--section-pad);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 200ms ease;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid var(--text-3);
  color: var(--text-1);
}

.btn-ghost:hover {
  border-color: var(--text-2);
  background-color: rgba(255, 255, 255, 0.02);
}

body.theme-light .btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Plain inline tags list */
.tags-inline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

/* Scroll reveal triggers */
.reveal {
  opacity: 0;
  transition: opacity 400ms ease-out;
}

.reveal.visible {
  opacity: 1;
}

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color 200ms ease, border-bottom 200ms ease;
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

@media (max-width: 767px) {
  .nav-inner {
    padding: 0 20px;
  }
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.nav-links a.active, .nav-links a:hover {
  color: var(--text-1);
}

.theme-toggle {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-2);
  transition: color 200ms ease;
}

.theme-toggle:hover {
  color: var(--text-1);
}

.theme-icon-sun {
  display: inline-block;
}

.theme-icon-moon {
  display: none;
}

body.theme-light .theme-icon-sun {
  display: none;
}

body.theme-light .theme-icon-moon {
  display: inline-block;
}

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 1010;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-1);
  transition: transform 200ms ease, opacity 200ms ease;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Mobile Overlay Menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.overlay-links a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-2);
}

.overlay-links a:hover {
  color: var(--text-1);
}

/* Hamburger active transformations */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  padding: 120px 0 60px;
  min-height: calc(100vh - 56px);
  max-height: 100vh;
  box-sizing: border-box;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.status-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 24px;
}

.hero-descriptor {
  font-size: 21px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-tagline {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48.5px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.stat-dot {
  color: var(--text-3);
  font-size: 18px;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-photo {
  width: 320px;
  height: 400px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 8px;
}

/* Tablet Breakpoints */
@media (max-width: 1099px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    max-height: none;
    min-height: auto;
    padding: 100px 0 60px;
  }
  .hero-right {
    justify-content: center;
    order: -1; /* Put photo on top */
  }
  .hero-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/5;
  }
}

/* Mobile responsive details */
@media (max-width: 767px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-dot {
    display: none;
  }
  .hero-name {
    font-size: 56px;
  }
}


/* ==========================================================================
   5. PROJECTS SECTION
   ========================================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-row {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 40px;
  align-items: stretch;
  padding: 40px 16px;
  border-left: 3px solid transparent;
  transition: background-color 200ms ease, border-left-color 200ms ease;
  cursor: default;
}

.project-row:hover {
  border-left-color: var(--accent);
  background-color: #161616;
}

body.theme-light .project-row:hover {
  background-color: #eaeaea;
}

.project-row-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.project-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-title-link {
  color: inherit;
}

.project-title-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.project-title-link:focus-visible .abstract-link {
  opacity: 1;
}

.abstract-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.project-row:hover .abstract-link {
  opacity: 1;
}

.project-desc {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
  max-width: 380px;
}

.project-tags {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: auto;
}

.project-row-right {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.project-image-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  width: 100%;
  height: 220px;
  scrollbar-width: none; /* Hide scrollbar for clean strip look */
  -webkit-overflow-scrolling: touch;
}

.project-image-strip::-webkit-scrollbar {
  display: none;
}

.project-image-strip img {
  height: 220px;
  width: auto;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: zoom-in;
}

.lightbox-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.project-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

@media (max-width: 1099px) {
  .project-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 12px;
  }
  .project-desc {
    max-width: none;
  }
  .project-image-strip {
    height: 180px;
  }
  .project-image-strip img {
    height: 180px;
  }
}


/* ==========================================================================
   6. RESEARCH & PUBLICATIONS
   ========================================================================== */
.publications-list {
  display: flex;
  flex-direction: column;
}

.pub-row {
  padding: 32px 16px;
}

.pub-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
}

.pub-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
}

.pub-authors {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.pub-desc {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
  max-width: 800px;
}

.pub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-tags {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.pub-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.pub-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   7. LEADERSHIP SECTION
   ========================================================================== */
.leadership-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.leadership-timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.leadership-border {
  width: 2px;
  min-height: 80px;
  align-self: stretch;
  background-color: var(--accent);
  flex-shrink: 0;
}

.leadership-info {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  flex: 1;
}

.leadership-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.leadership-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}

.leadership-org {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 400;
}

.leadership-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.leadership-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 600px;
}

/* Preview card — clickable thumbnail that opens gallery */
.leadership-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: auto;
}

.leadership-preview-card img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 200ms ease, opacity 200ms ease;
  display: block;
}

.leadership-preview-card:hover img {
  border-color: var(--accent);
  opacity: 0.85;
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

@media (max-width: 767px) {
  .leadership-timeline-item {
    flex-wrap: wrap;
    gap: 16px;
  }
  .leadership-preview-card {
    margin-left: 26px; /* align with info column after the border */
    width: calc(100% - 26px);
  }
  .leadership-preview-card img {
    width: 100%;
    height: 160px;
  }
}

/* ==========================================================================
   7b. LEADERSHIP GALLERY PAGE
   ========================================================================== */
.gallery-page-header {
  padding: 20px 0 0;
}

.gallery-page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-1);
  margin: 4px 0 8px;
}

.gallery-page-org {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.gallery-page-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 680px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  transition: border-color 200ms ease;
}

.gallery-item:hover {
  border-color: var(--accent);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: opacity 200ms ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  opacity: 0.85;
}

.gallery-item-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-page-title {
    font-size: 26px;
  }
}



.leadership-strip {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 35s linear infinite;
}

.leadership-strip:hover {
  animation-play-state: paused;
}

.leadership-strip img {
  height: 180px;
  width: auto;
  object-fit: cover;
  border-radius: 6px;
}

@keyframes scroll-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-50% - 8px), 0, 0); /* Loop size correction */
  }
}

@media (max-width: 767px) {
  .leadership-strip-container {
    height: 140px;
  }
  .leadership-strip img {
    height: 140px;
  }
}


/* ==========================================================================
   8. CERTIFICATIONS & AWARDS
   ========================================================================== */
.certs-viewer {
  max-width: 820px;
  margin-inline: auto;
}

.certs-viewer-media {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: center;
}

.cert-viewer-image {
  width: 100%;
  height: min(420px, 42vw);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  cursor: zoom-in;
}

.cert-viewer-control {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 20px;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.cert-viewer-control:hover,
.cert-viewer-control:focus-visible {
  border-color: var(--accent);
  color: var(--text-1);
  background-color: var(--bg-surface);
}

.cert-viewer-caption {
  margin-top: 16px;
  padding-left: 60px;
}

.cert-viewer-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
}

.cert-viewer-issuer {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

.cert-viewer-count {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

@media (max-width: 767px) {
  .certs-viewer-media {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .cert-viewer-image {
    height: 230px;
  }

  .cert-viewer-control {
    width: 36px;
    height: 36px;
  }

  .cert-viewer-caption {
    padding-left: 44px;
  }
}

.awards-list {
  display: flex;
  flex-direction: column;
}

.awards-viewer {
  max-width: 820px;
  margin-inline: auto;
}

.awards-viewer-media {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: center;
}

.award-viewer-image {
  width: 100%;
  height: min(420px, 42vw);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  cursor: zoom-in;
}

.award-viewer-control {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 20px;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.award-viewer-control:hover,
.award-viewer-control:focus-visible {
  border-color: var(--accent);
  color: var(--text-1);
  background-color: var(--bg-surface);
}

.award-viewer-caption {
  margin-top: 16px;
  padding-left: 60px;
}

.award-viewer-caption .award-name {
  font-size: 14px;
}

.award-viewer-caption .award-description {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.55;
}

.award-viewer-count {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

@media (max-width: 767px) {
  .awards-viewer-media {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .award-viewer-image {
    height: 230px;
  }

  .award-viewer-control {
    width: 36px;
    height: 36px;
  }

  .award-viewer-caption {
    padding-left: 44px;
  }
}



/* --- Award Rows (keep vertical) --- */
.award-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 12px;
  transition: background-color 200ms ease;
}

.award-row:hover {
  background-color: var(--bg-surface);
}

.award-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: zoom-in;
}

.award-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.award-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
}

.award-description {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

.award-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  flex-shrink: 0;
}

.cert-row-divider, .award-row-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}


/* ==========================================================================
   9. ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
}

.about-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 28px;
}

.about-subheading {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.about-skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.about-skills-list li {
  font-size: 14px;
  color: var(--text-2);
  position: relative;
}

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.edu-degree {
  font-weight: 500;
  color: var(--text-1);
}

.edu-details {
  color: var(--text-2);
}

.about-right {
  display: flex;
  justify-content: flex-end;
}

.about-photo {
  width: 320px;
  height: 400px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 1099px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-right {
    justify-content: center;
    order: -1;
  }
  .about-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/5;
  }
}

@media (max-width: 767px) {
  .about-skills-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .edu-row {
    flex-direction: column;
    gap: 4px;
  }
}


/* ==========================================================================
   10. CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-subtitle {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-method {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
}

.contact-value:hover {
  color: var(--accent);
}

.social-links-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 0;
  width: 84px;
  transition: border-color 200ms ease, transform 200ms ease, background-color 200ms ease, color 200ms ease;
  color: var(--text-2);
  text-decoration: none;
}

.social-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: color 200ms ease, transform 200ms ease;
}

.social-item .social-name {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-body);
}

.social-item:hover {
  border-color: var(--accent);
  color: var(--text-1);
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.02);
}

body.theme-light .social-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Minimal Form Styling */
.contact-right {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  padding: 8px 0;
  width: 100%;
  outline: none;
  border-radius: 0;
  transition: border-bottom-color 200ms ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-bottom-color: var(--accent);
}

/* Success display styling */
.form-success {
  padding: 20px;
  border-left: 2px solid var(--accent);
  background-color: var(--bg-surface);
  color: var(--text-1);
  font-size: 14px;
}

.form-status {
  font-size: 13px;
  line-height: 1.5;
}

.form-error {
  color: #f87171;
}

body.theme-light .form-error {
  color: #b91c1c;
}

.form-submit {
  align-self: flex-start;
  min-width: 140px;
}

.form-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}

@media (max-width: 1099px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  margin-top: 60px;
}


/* ==========================================================================
   12. LIGHTBOX VIEWER
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 12, 12, 0.95);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-light .lightbox {
  background-color: rgba(250, 250, 250, 0.98);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
  color: var(--text-2);
  width: 44px;
  height: 44px;
}

.lightbox-close:hover {
  color: var(--text-1);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--text-2);
  width: 44px;
  height: 44px;
}

.lightbox-arrow:hover {
  color: var(--text-1);
}

.lightbox-arrow-prev {
  left: 24px;
}

.lightbox-arrow-next {
  right: 24px;
}

.lightbox-content-wrapper {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

.lightbox-media-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-2);
  margin-top: 16px;
  text-align: center;
}

@media (max-width: 767px) {
  .lightbox-arrow {
    display: none; /* Hide arrows on small screens, rely on swipe / indicator tap */
  }
}

/* ==========================================================================
   13. PROJECT DETAIL PAGE OVERRIDES
   ========================================================================== */
.project-detail-page {
  padding-top: 56px;
}

.detail-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.detail-header-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

@media (max-width: 767px) {
  .detail-header-inner {
    padding: 0 20px;
  }
}

.detail-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.detail-back:hover {
  color: var(--text-1);
}

.project-detail-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 32px;
}

@media (max-width: 767px) {
  .project-detail-shell {
    padding: 30px 20px;
  }
}

.detail-hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.detail-panel {
  border: 1px solid var(--border);
  padding: 32px;
  background-color: var(--bg-surface);
  border-radius: 8px;
}

@media (max-width: 767px) {
  .detail-panel {
    padding: 20px;
  }
}

.detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  line-height: 1.2;
}

.detail-summary {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.5;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-meta .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 4px;
  background-color: transparent;
}

.detail-abstract {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.detail-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.detail-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-1);
}

.detail-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.detail-gallery-grid img, .detail-gallery-grid video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: zoom-in;
  transition: border-color 200ms ease;
}

.detail-gallery-grid img:hover, .detail-gallery-grid video:hover {
  border-color: var(--accent);
}

.detail-bullets {
  list-style-type: square;
  padding-left: 20px;
  color: var(--text-2);
}

.detail-bullets li {
  margin-bottom: 8px;
}

@media (max-width: 1099px) {
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
