@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  color-scheme: dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #050505;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

*:focus,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: #050505;
  color: rgba(255, 255, 255, 0.87);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}


.app-container.light-mode {
  color: #1a1a1a;
}

html.light-theme,
html.light-theme body {
  background-color: #fcf9ea;
  color: #1a1a1a;
}

html.dark-theme,
html.dark-theme body {
  background-color: #050505;
  color: rgba(255, 255, 255, 0.87);
}

a {
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

html.light-theme {
  color-scheme: light;
}

.hidden {
  display: none !important;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---- app container / themes ---- */

.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: transparent;
}

.app-container.dark-mode {
  color: rgba(255, 255, 255, 0.87);
}

.app-container.dark-mode h1,
.app-container.dark-mode h2,
.app-container.dark-mode h3,
.app-container.dark-mode h4,
.app-container.dark-mode h5,
.app-container.dark-mode h6,
.app-container.dark-mode .name-title {
  color: #fff;
}

.app-container.light-mode {
  color: #1a1a1a;
}

.app-container.light-mode h1,
.app-container.light-mode h2,
.app-container.light-mode h3,
.app-container.light-mode .name-title {
  color: #000;
}

.app-container.light-mode .about-text,
.app-container.light-mode .highlight-text {
  color: #1a1a1a;
  opacity: 1;
}

/* ---- sidebar ---- */

.sidebar {
  width: 250px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  height: 100vh;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-link {
  background: none;
  border: none;
  padding: 0;
  color: #888;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s, padding-left 0.2s;
  font-family: "Playfair Display", serif;
  text-transform: lowercase;
}

.nav-link:hover {
  padding-left: 5px;
}

.app-container.dark-mode .nav-link:hover,
.app-container.dark-mode .nav-link.active {
  color: #fff;
}

.app-container.light-mode .nav-link {
  color: #333;
}

.app-container.light-mode .nav-link:hover,
.app-container.light-mode .nav-link.active {
  color: #000;
}

.sidebar-footer {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.social-links-sidebar {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: #888;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-container.dark-mode .social-icon:hover {
  color: #fff;
}

.app-container.light-mode .social-icon:hover {
  color: #000;
}

.theme-toggle-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.app-container.dark-mode .theme-toggle-icon:hover {
  color: #fff;
}

.app-container.light-mode .theme-toggle-icon:hover {
  color: #000;
}

.webring-container-sidebar {
  display: none;
}

/* ---- main content ---- */

.main-content {
  margin-left: 250px;
  flex: 1;
  padding: 0;
  max-width: none;
  min-height: 100vh;
}

.scroll-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 4rem;
  box-sizing: border-box;
}

.section-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}

#about {
  justify-content: flex-start;
  padding-top: 10vh;
}

@media (min-width: 769px) {
  #about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    column-gap: 4rem;
    align-items: start;
  }

  #about > .about-header {
    display: contents;
  }

  #about > .about-header .name-title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  #about > .about-header .about-image-wrapper {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
  }

  #about > .about-content {
    grid-column: 1;
    grid-row: 2;
  }

  #about > .section-title,
  #about > .life-carousel-wrapper {
    grid-column: 1 / -1;
  }
}

.section-container {
  animation: fadeIn 0.5s ease-out;
  width: 100%;
}

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

/* ---- about ---- */

.about-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.name-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
  flex: 1;
  display: block;
  text-transform: lowercase;
}

.about-content {
  display: block;
  width: 100%;
}

.about-text {
  flex: 2;
  font-family: Inter, sans-serif;
  color: inherit;
  line-height: 1.6;
  opacity: 0.8;
}

.highlight-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: inherit;
  opacity: 1;
}

.highlight-orange {
  color: #ff9f1c;
  font-weight: 600;
}

.about-description-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-description-list li {
  font-family: Lato, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
  display: block;
}

.about-description-list li::before {
  content: "•";
  color: #ff9f1c;
  font-weight: 700;
  margin-right: 0.5rem;
}

.highlight-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  padding: 2px 6px;
  border-radius: 0;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
}

.app-container.light-mode .highlight-link {
  background-color: rgba(0, 0, 0, 0.12);
}

.highlight-link.hover-blue {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.highlight-link.hover-blue:hover {
  background-color: #2563eb;
  color: #fff;
}

.highlight-link.hover-purple {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
}

.highlight-link.hover-purple:hover {
  background-color: #7e22ce;
  color: #fff;
}

.highlight-link.hover-red {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.highlight-link.hover-red:hover {
  background-color: #dc2626;
  color: #fff;
}

.highlight-link.hover-gold {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.highlight-link.hover-gold:hover {
  background-color: #d97706;
  color: #fff;
}

.highlight-link.hover-yellow {
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
}

.highlight-link.hover-yellow:hover {
  background-color: #ca8a04;
  color: #000;
}

.app-container.dark-mode .highlight-link.hover-yellow:hover {
  color: #000;
  background-color: #facc15;
}

.highlight-link.hover-green {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.highlight-link.hover-green:hover {
  background-color: #16a34a;
  color: #fff;
}

.highlight-link.hover-bw {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.1);
}

.highlight-link.hover-bw:hover {
  background-color: #fff;
  color: #000;
}

.highlight-link.hover-dark-blue {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.1);
}

.highlight-link.hover-dark-blue:hover {
  background-color: #1e3a8a;
  color: #fff;
}

.app-container.light-mode .highlight-link.hover-blue {
  color: #1d4ed8;
}

.app-container.light-mode .highlight-link.hover-purple {
  color: #7c3aed;
}

.app-container.light-mode .highlight-link.hover-red {
  color: #dc2626;
}

.app-container.light-mode .highlight-link.hover-gold {
  color: #b45309;
}

.app-container.light-mode .highlight-link.hover-yellow {
  color: #a16207;
}

.app-container.light-mode .highlight-link.hover-green {
  color: #15803d;
}

.app-container.light-mode .highlight-link.hover-dark-blue {
  color: #1e3a8a;
}

.app-container.light-mode .highlight-link.hover-bw {
  color: #333;
  background: rgba(0, 0, 0, 0.1);
}

.app-container.light-mode .highlight-link.hover-bw:hover {
  background-color: #000;
  color: #fff;
}

.about-image-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.profile-image-rect {
  width: 300px;
  height: 380px;
  max-width: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.image-interaction-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  max-width: 100%;
}

.social-links-about {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icon-about {
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative;
}

.social-icon-about:hover {
  opacity: 1;
}

.social-icon-about[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%) translateY(100%);
  margin-bottom: -10px;
  padding: 0.4rem 0.6rem;
  background-color: #333;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
}

.app-container.light-mode .social-icon-about[data-tooltip]:hover::after {
  background-color: #e0e0e0;
  color: #000;
  border: 1px solid #ccc;
}

/* ---- life carousel ---- */

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 0.2rem;
}

.section-description {
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 2rem;
  margin-top: 0;
}

.life-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.life-carousel-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 0.5rem 0;
}

.life-carousel-scroll::-webkit-scrollbar {
  display: none;
}

#particles-js canvas {
  pointer-events: none !important;
}

.life-carousel-card {
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  min-width: 300px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}

.life-carousel-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: auto;
  cursor: zoom-in;
}

.app-container.light-mode .life-carousel-card img {
  background: rgba(0, 0, 0, 0.04);
}

.life-carousel-card:focus-visible {
  outline: 2px solid rgba(255, 159, 28, 0.8);
  outline-offset: 4px;
}

.life-carousel-card:hover {
  transform: scale(1.02);
}

.life-carousel-caption {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.4;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.carousel-nav-left { left: 12px; }
.carousel-nav-right { right: 12px; }

.carousel-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- work / projects ---- */

.experiences-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.app-container.light-mode .experiences-header {
  border-color: rgba(0, 0, 0, 0.1);
}

.filter-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 1.1rem;
  padding: 0;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  text-transform: lowercase;
}

.app-container.dark-mode .filter-btn:hover,
.app-container.dark-mode .filter-btn.active {
  color: #fff;
}

.app-container.light-mode .filter-btn:hover,
.app-container.light-mode .filter-btn.active {
  color: #000;
}

.projects-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card-2 {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-featured-star {
  color: #ff9f1c;
  margin-right: 0.35rem;
  font-size: 0.95rem;
}

.project-link-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

.project-card-link:hover .project-link-text {
  opacity: 1;
}

.app-container.light-mode .project-card-2 {
  border-color: rgba(0, 0, 0, 0.1);
}

.project-card-2:hover {
  transform: translateY(-5px);
  border-color: #888;
}

.project-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.app-container.light-mode .project-image-container {
  background: rgba(0, 0, 0, 0.04);
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease;
}

.project-image-container img.project-image-contain {
  object-fit: contain;
  object-position: center center;
  background: #111;
}

.app-container.light-mode .project-image-container img.project-image-contain {
  background: #ececec;
}

.project-card-2:hover .project-image-container img {
  transform: scale(1.04);
}

.app-container.light-mode .project-image-container img {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.project-info-2 {
  padding: 1.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-title-row h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  text-transform: lowercase;
}

.project-title-case {
  text-transform: none;
}

.project-badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  font-weight: 600;
  color: #fff;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.badge-orange { background-color: #f97316; }
.badge-purple { background-color: #a855f7; }
.badge-blue { background-color: #3b82f6; }
.badge-teal { background-color: #14b8a6; }
.badge-green { background-color: #22c55e; }

.project-desc {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-family: Inter, sans-serif;
}

.project-links-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  align-items: center;
}

.project-links-2 a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.project-links-2 a:hover {
  opacity: 1;
}

.project-tag-inline {
  font-size: 0.75rem;
  padding: 2px 6px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  font-family: Inter, sans-serif;
  text-transform: lowercase;
}

.app-container.light-mode .project-tag-inline {
  border-color: rgba(109, 40, 217, 0.3);
  color: #6d28d9;
}

.project-image-link {
  display: block;
  text-decoration: none;
}

/* ---- research cards ---- */

.research-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
  width: 100%;
}

.research-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.research-card-icon {
  color: #8b5cf6;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.research-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-transform: lowercase;
}

.research-card-abstract {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
  font-family: Inter, sans-serif;
  margin-bottom: 1.25rem;
  flex: 1;
}

.research-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.research-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  font-family: Inter, sans-serif;
  letter-spacing: 0.02em;
  background: rgba(139, 92, 246, 0.08);
}

.app-container.light-mode .research-tag {
  border-color: rgba(109, 40, 217, 0.3);
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.06);
}

/* ---- media ---- */

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 1rem;
  width: 100%;
}

.city-item {
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background-color: #1a1a1a;
}

.app-container.light-mode .city-item {
  background-color: #e8e8e8;
}

.city-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

.city-item:hover img {
  transform: scale(1.05) translateZ(0);
}

.city-item-0 { grid-column: span 2; grid-row: span 2; }
.city-item-1 { grid-column: span 1; grid-row: span 1; }
.city-item-2 { grid-column: span 1; grid-row: span 2; }
.city-item-3 { grid-column: span 2; grid-row: span 1; }
.city-item-4 { grid-column: span 1; grid-row: span 1; }
.city-item-5 { grid-column: span 1; grid-row: span 1; }
.city-item-6 { grid-column: span 2; grid-row: span 1; }

/* ---- watchlist ---- */

.consume-section-header {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  text-transform: lowercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.consume-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.consume-item {
  position: relative;
  aspect-ratio: 2/3;
  background: #222;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.app-container.light-mode .consume-item {
  background: #ddd;
}

.consume-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.consume-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consume-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.7rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.consume-item:hover .consume-overlay {
  opacity: 1;
}

/* ---- contact ---- */

.contact-section-wrapper {
  display: flex;
  gap: 4rem;
  width: 100%;
  height: 80vh;
  align-items: flex-start;
}

.contact-left-panel {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.contact-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: lowercase;
}

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

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

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.form-row .form-group {
  flex: 1;
}

.contact-form label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-family: Inter, sans-serif;
  text-transform: lowercase;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  font-family: Inter, sans-serif;
  color: inherit;
  border-radius: 0;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.app-container.light-mode .contact-form input,
.app-container.light-mode .contact-form textarea {
  border-color: rgba(0, 0, 0, 0.2);
}

.contact-form textarea {
  height: 200px;
  resize: none;
  overflow-y: auto;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #888;
}

.submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 0.8rem 2rem;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  transition: all 0.2s;
  border-radius: 0;
}

.app-container.light-mode .submit-btn {
  border-color: rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.app-container.light-mode .submit-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #000;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form-actions {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.contact-local-time {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #666;
  text-transform: lowercase;
}

.app-container.light-mode .contact-local-time {
  color: #888;
}

.contact-right-panel {
  flex: 1;
  height: 100%;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-right-panel.expanded {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  border-radius: 0;
}

.app-container.light-mode .contact-right-panel {
  border-color: rgba(0, 0, 0, 0.1);
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container canvas,
.mapboxgl-map {
  border-radius: 0 !important;
}

.map-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.map-btn {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  text-transform: lowercase;
  font-size: 0.9rem;
  border-radius: 0;
  transition: all 0.2s;
}

.map-btn:hover {
  background: #fff;
  color: #000;
  border-color: #000;
}

.app-container.light-mode .map-btn {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  border-color: rgba(0, 0, 0, 0.2);
}

.app-container.light-mode .map-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.custom-marker {
  width: 12px;
  height: 12px;
  background-color: #0af;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
  pointer-events: none;
}

.error-text {
  color: #ff4d4d;
  font-size: 0.9rem;
}

#form-success {
  color: #4ade80;
  font-size: 0.95rem;
  font-family: "Playfair Display", serif;
}

/* ---- image modal ---- */

.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  cursor: zoom-out;
}

.image-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0.25rem 0.5rem;
}

.image-modal-close:hover {
  opacity: 1;
}

.image-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  cursor: default;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-details {
  padding-top: 1rem;
  width: 100%;
  text-align: left;
  color: #fff;
}

.modal-details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: "Playfair Display", serif;
  text-transform: lowercase;
}

.modal-details p {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: Inter, sans-serif;
}

/* ---- mobile ---- */

.mobile-header,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    background: transparent;
  }

  .mobile-theme-btn,
  .hamburger-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
  }

  .mobile-menu-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(5, 5, 5, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 5rem 2rem 2rem;
  }

  .app-container.light-mode .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.98);
  }

  .mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav ul {
    list-style: none;
    text-align: center;
  }

  .mobile-nav ul li {
    margin-bottom: 1.5rem;
  }

  .mobile-nav-link {
    background: none;
    border: none;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
  }

  .mobile-nav-link.active,
  .mobile-nav-link:hover {
    color: inherit;
  }

  .sidebar {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding-top: 70px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .scroll-content {
    padding: 0 1rem 2rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-wrapper {
    min-height: auto;
    padding: 2.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  #about {
    padding-top: 1rem;
    display: block;
  }

  .about-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .name-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    min-width: 0 !important;
    max-width: none !important;
    line-height: 1.15;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .about-image-wrapper {
    position: static;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }

  .image-interaction-container {
    width: 72px;
    height: 72px;
  }

  .profile-image-rect {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: center top;
  }

  .about-content {
    width: 100%;
    max-width: 100%;
  }

  .about-text {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .highlight-text {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    max-width: 100%;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .about-description-list {
    margin: 1rem 0 1.5rem;
    gap: 0.75rem;
  }

  .about-description-list li {
    font-size: 0.95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .social-links-about {
    margin-top: 1.25rem;
    gap: 1.25rem;
  }

  #say-hi {
    padding-bottom: 3rem;
  }

  .contact-section-wrapper {
    flex-direction: column;
    height: auto;
    min-height: auto;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .contact-left-panel {
    width: 100%;
    max-width: 100%;
    order: 1;
    box-sizing: border-box;
  }

  .contact-header h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    margin-bottom: 1.25rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .contact-form {
    width: 100%;
    gap: 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-row .form-group {
    width: 100%;
    min-width: 0;
  }

  .contact-form label {
    font-size: 0.85rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 0.875rem;
  }

  .contact-form textarea {
    min-height: 120px;
    height: auto;
  }

  .contact-form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .contact-local-time {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .contact-right-panel {
    width: 100%;
    height: min(52vh, 320px);
    min-height: 220px;
    order: 2;
    flex: none;
  }

  .contact-right-panel.expanded {
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
  }

  .map-controls {
    top: 10px;
    right: 10px;
  }

  .map-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .projects-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .consume-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .city-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  .city-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .city-item img {
    height: 120px;
  }

  .carousel-nav-btn {
    width: 32px;
    height: 32px;
  }

  .life-carousel-card {
    min-width: min(280px, 85vw);
  }
}

@media (max-width: 480px) {
  .name-title {
    font-size: 1.5rem !important;
  }

  .about-image-wrapper,
  .image-interaction-container {
    width: 60px;
    height: 60px;
  }

  .profile-image-rect {
    width: 60px !important;
    height: 60px !important;
  }

  .mobile-nav-link {
    font-size: 1.5rem;
  }

  .consume-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .contact-right-panel {
    height: min(48vh, 280px);
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .city-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto;
  }

  .city-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .city-item img {
    height: auto;
    max-height: 400px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 180px;
    padding: 2rem 1.5rem;
  }

  .main-content {
    margin-left: 180px;
    padding: 0;
  }

  .scroll-content {
    padding: 0 2rem;
  }

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

  .consume-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-section-wrapper {
    flex-direction: column;
    height: auto;
    min-height: auto;
    gap: 2rem;
  }

  .contact-left-panel,
  .contact-right-panel {
    width: 100%;
    max-width: 100%;
  }

  .contact-right-panel {
    height: min(50vh, 400px);
    min-height: 300px;
  }
}
