@charset "UTF-8";

:root {
  --bg: #0f1115;
  --bg-soft: #12151b;
  --bg-elevated: #141821;
  --surface: rgba(23, 26, 33, 0.82);
  --surface-strong: rgba(23, 26, 33, 0.96);
  --border: #2a2f3a;
  --text: #f5f7fa;
  --text-muted: #9ca3af;
  --title: #f5f7fa;
  --accent: #0a84ff;
  --accent-strong: #409cff;
  --accent-deep: #88c3ff;
  --success: #34c759;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(52, 199, 89, 0.07), transparent 24%),
    linear-gradient(180deg, #0f1115 0%, #101319 46%, #0d1014 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.shot-grid img,
.portrait-wrap img {
  cursor: zoom-in;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  overflow: clip;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: padding 0.25s ease, background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  padding: 0.7rem 0;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42, 47, 58, 0.92);
}

.shell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--title);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.24), rgba(64, 156, 255, 0.08));
  border: 1px solid rgba(64, 156, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(64, 156, 255, 0.55));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--title);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switcher a:hover,
.lang-switcher a.is-current {
  color: var(--title);
  background: rgba(10, 132, 255, 0.14);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  position: absolute;
  left: 0.85rem;
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--title);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span:first-child {
  top: 1.15rem;
}

.nav-toggle span:last-child {
  top: 1.75rem;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.3rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.3rem) rotate(-45deg);
}

.hero {
  padding: 2rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy,
.hero-panel,
.soft-card,
.timeline-card,
.project-card,
.intro-card,
.achievement-panel,
.contact-card {
  position: relative;
}

.eyebrow,
.section-kicker,
.project-label,
.meta-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero-copy h1,
.section h2,
.contact-card h2 {
  margin: 0;
  color: var(--title);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 13ch;
  margin-top: 1rem;
  font-size: clamp(2.45rem, 5.2vw, 4.6rem);
}

.hero-text,
.intro-card p,
.timeline-card p,
.project-copy p,
.contact-card p,
.soft-card p {
  color: var(--text-muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  font-size: 1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #2f95ff);
  color: #f5f7fa;
}

.button-primary:hover {
  color: #f5f7fa;
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--title);
}

.hero-points {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.55rem;
  padding-top: 5px;
  color: var(--text);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--success));
}

.hero-panel {
  display: grid;
  gap: 1.3rem;
}

.portrait-card,
.intro-card,
.soft-card,
.timeline-card,
.project-card,
.achievement-panel,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.portrait-card {
  padding: 1.2rem;
}

.portrait-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(180deg, #1a2230 0%, #131821 100%);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.meta-value {
  margin: 0.3rem 0 0;
  font-weight: 700;
  color: var(--title);
}

.stat-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  color: var(--title);
  font-size: 1.35rem;
}

.stat-card span {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.section {
  padding: 2.8rem 0;
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.section-head h2,
.intro-card h2,
.contact-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.section-head.compact {
  margin-bottom: 0.8rem;
}

.intro-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  padding: 1.8rem;
}

.intro-card h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.08;
  max-width: 24ch;
}

.intro-card p {
  margin: 0;
}

.service-grid,
.project-grid,
.skills-layout {
  display: grid;
  gap: 1.2rem;
}

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

.soft-card {
  padding: 1.6rem;
}

.soft-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.7rem;
  height: 3.7rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.18), rgba(64, 156, 255, 0.08));
  border: 1px solid rgba(64, 156, 255, 0.18);
  font-size: 1.15rem;
}

.soft-card h3,
.timeline-card h3,
.project-card h3 {
  margin: 0;
  color: var(--title);
  font-size: 1.35rem;
}

.soft-card p {
  margin-bottom: 0;
}

.service-grid .soft-card {
  text-align: center;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-card {
  padding: 1.6rem;
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.role,
.period {
  color: var(--text-muted);
}

.role {
  margin: 0.45rem 0 0;
  font-weight: 700;
}

.period {
  white-space: nowrap;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.tag-row.large span {
  min-height: 2.4rem;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
  padding: 1.4rem;
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  align-items: center;
}

.project-copy a {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.shot-grid img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  background: linear-gradient(180deg, #18202c 0%, #121821 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shot-grid img:hover,
.portrait-wrap img:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
}

.shot-grid-three img:nth-child(2) {
  margin-top: 2rem;
}

.achievement-panel,
.contact-card {
  padding: 1.8rem;
}

.achievement-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.achievement-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
}

.achievement-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
}

.section-contact {
  padding-bottom: 4rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-card h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.contact-actions {
  justify-content: flex-start;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 10, 14, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1320px);
  max-height: 88vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(23, 26, 33, 0.96);
  color: var(--title);
  box-shadow: var(--shadow-soft);
}

.lightbox-close:hover {
  background: rgba(34, 39, 49, 0.98);
}

@media (max-width: 1080px) {
  .hero-grid,
  .intro-card,
  .project-card.featured,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .header-tools {
    gap: 0.75rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(23, 26, 33, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .lang-switcher {
    margin-left: auto;
  }

  .hero {
    padding-top: 1rem;
  }

  .project-grid,
  .skills-layout,
  .portrait-meta,
  .stat-cloud,
  .shot-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .timeline-top {
    flex-direction: column;
  }

  .period {
    white-space: normal;
  }

  .shot-grid img {
    min-height: 260px;
  }

  .shot-grid-three img:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .site-header {
    padding-top: 0.8rem;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .lang-switcher a {
    min-width: 2.25rem;
    min-height: 2rem;
    padding: 0.3rem 0.58rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-text {
    font-size: 0.96rem;
  }

  .section {
    padding: 2.1rem 0;
  }

  .portrait-card,
  .intro-card,
  .soft-card,
  .timeline-card,
  .project-card,
  .achievement-panel,
  .contact-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .shot-grid img {
    min-height: 220px;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 0.6rem;
    right: 0.6rem;
  }
}
