/* ============================================================
   PORTFOLIO — VIP EDITORIAL DARK LUXURY
   Syne Display | Inter Body | JetBrains Mono | Cormorant Italic
   ============================================================ */

/* Fonts loaded via HTML <link> for best performance */

/* ====== CSS Variables ====== */
:root {
  --bg: #050505;
  --bg-surface: #0a0a0a;
  --bg-card: #0d0d0d;
  --fg: #ece7df;
  --fg-muted: #555555;
  --fg-dim: #242424;
  --accent: #c8f53a;
  --accent-glow: rgba(200, 245, 58, 0.18);
  --accent-2: #aae320;
  --blue: #4f6ef7;
  --border: rgba(255, 255, 255, 0.055);
  --border-hover: rgba(255, 255, 255, 0.11);
  --radius: 4px;
  --radius-lg: 12px;
  --maxW: 1300px;
  /* NEW PREMIUM FONT SYSTEM (Inter only) */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: var(--font-display);
  --font-mono: var(--font-main);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* ====== Noise Texture ====== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}



/* ====== Container ====== */
.container {
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 0 48px;
}

/* ====== NAVIGATION ====== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

#nav.scrolled {
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 18px 48px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-brand .nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.nav-brand-text {
  color: var(--fg);
}

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

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 8px 18px;
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
  opacity: 0;
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--fg);
  transform: scale(1.03);
}

/* ====== HERO SECTION ====== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 140px;
  position: relative;
  overflow: hidden;
}

/* VIP selection color */
::selection {
  background: var(--accent);
  color: var(--bg);
}

::-moz-selection {
  background: var(--accent);
  color: var(--bg);
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.hero-bg-orb-1 {
  width: 700px;
  height: 700px;
  background: var(--accent);
  top: -250px;
  right: -150px;
  opacity: 0.07;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.hero-bg-orb-2 {
  width: 500px;
  height: 500px;
  background: #4f6ef7;
  bottom: -100px;
  left: -200px;
  opacity: 0.07;
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 40px) scale(1.12);
  }
}

.hero-top-label {
  position: absolute;
  top: 110px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 300px;
  z-index: 3;
}

.hero-label-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
}

.hero-avatar-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
}

.hero-avatar-block img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-avatar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-avatar-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-avatar-role {
  font-size: 0.65rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* Hero Center */
.hero-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxW);
  margin: 0 auto;
}

.hero-number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-muted);
  letter-spacing: 0.2em;
  margin-bottom: 36px;
  display: block;
  text-transform: uppercase;
}

/* ====== THE BIG EDITORIAL TITLE (Cabinet Grotesk display) ====== */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 9.5vw, 148px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  overflow: hidden;
  margin-bottom: 0;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease-expo);
}

.hero-title-word.highlight {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  text-shadow: 0 0 100px rgba(200, 245, 58, 0.25);
}

.hero-title-accent {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  -webkit-text-stroke: 1.5px rgba(200, 245, 58, 0.5);
  color: transparent;
  letter-spacing: -0.03em;
}

.hero-loaded .hero-title-word {
  transform: translateY(0);
}

.hero-title-line:nth-child(2) .hero-title-word {
  transition-delay: 0.1s;
}

.hero-title-line:nth-child(3) .hero-title-word {
  transition-delay: 0.2s;
}

/* Hero animated divider */
.hero-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(200, 245, 58, 0.06));
  margin: 40px 0 36px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

.hero-loaded .hero-divider {
  width: 100%;
}

/* Hero bottom row */
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 1.1s, transform 0.8s ease 1.1s;
}

.hero-loaded .hero-bottom {
  opacity: 1;
  transform: translateY(0);
}

.hero-desc {
  max-width: 440px;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.85;
  font-weight: 300;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

.hero-desc .highlight {
  color: var(--fg);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0;
  animation: fadeInHint 0.6s ease 2s forwards;
}

@keyframes fadeInHint {
  to {
    opacity: 1;
  }
}

.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0.2;
  }
}

/* ====== BUTTONS ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.2s var(--ease-smooth), box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(200, 245, 58, 0.15);
}

.btn-primary .btn-arrow {
  font-size: 1rem;
  transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
  transform: translate(4px, -4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

/* ====== MARQUEE STRIP ====== */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-right: 64px;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ====== SECTION BASE ====== */
section {
  padding: 130px 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 80px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  gap: 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  /* Syne for section titles — bold, geometric, modern */
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.04em;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.section-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s;
  flex-shrink: 0;
}

.section-link:hover {
  color: var(--fg);
  gap: 16px;
}

/* ====== ABOUT SECTION ====== */
#about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.about-text-block .lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 32px;
  font-style: normal;
  letter-spacing: -0.03em;
}

.about-text-block p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.9;
  margin-bottom: 18px;
  font-weight: 300;
}

.about-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.about-tag-item {
  background: var(--bg-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s;
}

.about-tag-item:hover {
  background: #141414;
}

.about-tag-icon {
  font-size: 1.3rem;
}

.about-tag-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.about-tag-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

/* Right column: stats (grid layout) */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0;
}

.about-stat {
  background: var(--bg-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.3s;
}

.about-stat:hover {
  background: #141414;
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-align: left;
  line-height: 1.4;
  font-weight: 400;
}

/* Premium Interactive Avatar Card */
.about-avatar-card {
  background: rgba(18, 18, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), transform 0.15s ease-out !important;
  will-change: transform;
}

.about-avatar-card:hover {
  border-color: rgba(200, 245, 58, 0.35);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(200, 245, 58, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-avatar-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  background: #080808;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.about-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.02) brightness(0.95);
  transition: transform 0.6s var(--ease-smooth), filter 0.6s var(--ease-smooth);
}

.about-avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(200, 245, 58, 0.15) 0%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-smooth);
}

.about-avatar-card:hover .about-avatar-img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05) brightness(1.02);
}

.about-avatar-card:hover .about-avatar-glow {
  opacity: 1;
}

.about-avatar-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-avatar-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-transform: uppercase;
}

.about-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-avatar-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
}

.about-avatar-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-avatar-meta-item .meta-label {
  color: var(--fg-muted);
  font-weight: 500;
}

.about-avatar-meta-item .meta-value {
  color: var(--fg);
  font-weight: 600;
  text-align: right;
}

.about-avatar-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.about-avatar-roles .role-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ====== PROJECTS SECTION ====== */
#projects {
  background: var(--bg);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.filter-btn:hover {
  color: var(--fg);
  border-color: var(--border-hover);
}

.filter-btn.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* Project List */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-item {
  background: var(--bg-card);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  padding: 32px 40px;
  gap: 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease-smooth);
  cursor: pointer;
}

/* Left accent bar */
.project-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease-smooth);
  border-radius: 0 2px 2px 0;
}

.project-item:hover {
  background: #111111;
}

.project-item:hover::before {
  transform: scaleY(1);
}

/* Shimmer sweep */
.project-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 245, 58, 0.025), transparent);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.4s, transform 0.7s;
}

.project-item:hover::after {
  opacity: 1;
  transform: translateX(100%);
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  transition: color 0.3s;
}

.project-item:hover .project-num {
  color: var(--accent);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-name {
  /* Syne for project name — strong, distinctive */
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  transition: color 0.3s;
}

.project-item:hover .project-name {
  color: var(--accent);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s;
}

.project-item:hover .project-tag {
  color: var(--fg-muted);
  border-color: var(--border-hover);
}

.project-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.project-thumb {
  width: 110px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.9) rotate(-2deg);
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
  filter: grayscale(15%);
  flex-shrink: 0;
}

.project-item:hover .project-thumb {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.project-links-row {
  display: flex;
  gap: 8px;
}

.project-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-muted);
  font-size: 0.8rem;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.2s;
}

.project-link-btn:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.project-item.hidden {
  display: none;
}

.project-click-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
  white-space: nowrap;
}

.project-item:hover .project-click-hint {
  color: var(--accent);
}

.project-click-hint::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ====== SKILLS SECTION ====== */
#skills {
  background: var(--bg-surface);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skill-category {
  background: var(--bg-card);
  padding: 40px;
  transition: background 0.3s;
}

.skill-category:hover {
  background: #131313;
}

.skill-category-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category-title::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.skill-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
}

.skill-item-bar-wrap {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  max-width: 130px;
}

.skill-item-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7ddc1f);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}

.skill-item-bar.animated {
  transform: scaleX(1);
}

/* Skills belt marquee */
.skills-marquee-wrap {
  margin-top: 56px;
  overflow: hidden;
  position: relative;
}

.skills-marquee-wrap::before,
.skills-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.skills-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-surface), transparent);
}

.skills-marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-surface), transparent);
}

.skills-marquee-inner {
  display: inline-flex;
  gap: 12px;
  padding: 18px 0;
  animation: marqueeScroll 22s linear infinite;
}

.skill-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--fg-muted);
  background: var(--bg-card);
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.skill-pill:hover {
  color: var(--fg);
  border-color: var(--border-hover);
}

.skill-pill .skill-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ====== EDUCATION SECTION ====== */
#education {
  background: var(--bg);
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.education-item {
  background: var(--bg-card);
  padding: 44px 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  transition: background 0.3s;
}

.education-item:hover {
  background: #111111;
}

.education-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}

.education-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.education-school {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.education-major {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

.education-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  flex-shrink: 0;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
}

/* ====== CV SECTION ====== */
#cv {
  background: var(--bg-surface);
}

.cv-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cv-left {
  background: var(--bg-card);
  padding: 64px;
}

.cv-right {
  background: linear-gradient(135deg, #0f1a10 0%, #070e08 100%);
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.cv-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.cv-desc {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.85;
  margin-bottom: 36px;
  font-weight: 300;
}

.cv-stat-row {
  display: flex;
  gap: 44px;
  margin-top: 36px;
}

.cv-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
}

.cv-stat-label {
  font-size: 0.68rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.cv-right-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.cv-right-text {
  font-size: 1.05rem;
  color: var(--fg);
  line-height: 1.65;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.2s;
}

.btn-download:hover {
  background: var(--fg);
  transform: translateY(-2px);
}

/* ====== CONTACT SECTION ====== */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-tagline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.25;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.contact-tagline em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.contact-tagline span {
  color: var(--accent);
  font-style: normal;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.85;
  font-weight: 300;
}

.contact-email-block {
  margin-top: 52px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.3s, background 0.3s;
}

.contact-email-block:hover {
  border-color: var(--border-hover);
  background: #111111;
}

.contact-email-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-email-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.contact-email-addr {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.btn-copy-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 100px;
  transition: all 0.3s;
}

.btn-copy-email:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.contact-social-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-social-item {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  transition: background 0.3s;
}

.contact-social-item:hover {
  background: #111111;
}

.contact-social-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--fg-muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.contact-social-item:hover .contact-social-icon {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.contact-social-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-social-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}

.contact-social-handle {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.contact-social-arrow {
  font-size: 0.8rem;
  color: var(--fg-muted);
  transition: transform 0.3s, color 0.3s;
}

.contact-social-item:hover .contact-social-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

/* ====== MUSIC PLAYER ====== */
#music-player {
  background: var(--bg-surface);
  padding: 80px 0;
  position: relative;
}

.music-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.music-header-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-live-dot {
  width: 7px;
  height: 7px;
  background: #e25a5a;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.music-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.music-art-col {
  border-right: 1px solid var(--border);
}

.music-art-col .img-area {
  width: 200px;
  height: 200px;
  overflow: hidden;
}

.music-art-col .img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-info-col {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.music-song-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
}

.music-artist-name {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.progress-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

#main-audio {
  display: none;
}

.song-timer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px 24px;
  position: relative;
}

.controls .material-icons {
  font-size: 1.2rem !important;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.controls .material-icons:hover {
  color: var(--fg);
}

.main-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.play-pause {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.play-pause:hover {
  background: var(--fg);
  transform: scale(1.06);
}

.play-pause .material-icons {
  color: var(--bg) !important;
  font-size: 1.5rem !important;
}

.side-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 70px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.music-list {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 340px;
  max-height: 400px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.music-list.visible {
  display: flex;
}

.music-list .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.music-list .header .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.music-list .header .material-icons {
  font-size: 1rem !important;
  color: var(--fg-muted) !important;
  cursor: pointer;
}

#close {
  cursor: pointer !important;
}

.music-list .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.music-list .search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.82rem;
  flex: 1;
}

.music-list ul {
  overflow-y: auto;
  flex: 1;
}

.music-list ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.music-list ul li:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}

.music-list ul li.playing {
  color: var(--accent);
}

.music-list ul li img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-center {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

/* ====== SCROLL REVEAL ====== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ====== KEYFRAME — filter animation ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links a.active {
  color: var(--fg) !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  :root {
    --maxW: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

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

  .cv-block {
    grid-template-columns: 1fr;
  }

  .cv-right {
    min-height: 240px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  #nav {
    padding: 20px 24px;
  }

  #nav.scrolled {
    padding: 14px 24px;
  }

  #hero {
    padding: 100px 24px 130px;
  }

  .hero-top-label {
    top: 84px;
    right: 24px;
    max-width: 200px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-scroll-hint {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .project-item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 24px 20px;
  }

  .project-right {
    display: none;
  }

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

  .education-item {
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 28px 24px;
  }

  .education-period {
    display: none;
  }

  .cv-left,
  .cv-right {
    padding: 36px;
  }

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

  section {
    padding: 80px 0;
  }

  .music-body {
    grid-template-columns: 1fr;
  }

  .music-art-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .music-art-col .img-area {
    width: 100%;
    height: 200px;
  }

  footer {
    padding: 24px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .about-tags-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .cv-stat-row {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(48px, 13vw, 80px);
  }

  .contact-email-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====== UTILITY ====== */
.small {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.text-accent {
  color: var(--accent);
}