/* ===== Variables ===== */
:root {
  --bg: #06060a;
  --bg-elevated: #0c0c12;
  --bg-card: #0f0f16;
  --surface: #14141f;
  --border: #1e1e2e;
  --text: #e4e4e9;
  --text-muted: #8b8b9a;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --accent-glow: rgba(0, 212, 170, 0.25);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  /* Fluid spacing — scales with viewport */
  --space-xs: clamp(6px, 1.5vw, 10px);
  --space-sm: clamp(12px, 2.5vw, 20px);
  --space-md: clamp(20px, 4vw, 32px);
  --space-lg: clamp(32px, 6vw, 48px);
  --space-xl: clamp(48px, 8vw, 80px);
  --space-2xl: clamp(64px, 12vw, 120px);
  --container-padding: clamp(16px, 4vw, 24px);
  --touch-min: 44px;
  --grid-line: rgba(0, 212, 170, 0.04);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

main {
  overflow-x: hidden;
  min-width: 0;
}

body {
  direction: ltr;
  text-align: left;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: min(1100px, 100vw);
  margin-inline: auto;
  padding-inline-start: max(var(--container-padding), env(safe-area-inset-left));
  padding-inline-end: max(var(--container-padding), env(safe-area-inset-right));
  min-width: 0;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  direction: inherit;
  padding-top: env(safe-area-inset-top, 0px);
  min-height: var(--header-h);
}

/* Nav follows document direction: LTR = logo left / links right, RTL = logo right / links left */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  height: var(--header-h);
  direction: inherit;
  min-width: 0;
  gap: 12px;
}

.logo {
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity var(--transition);
  flex-shrink: 0;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
}

.logo:hover { opacity: 0.8; }

.logo-first { color: var(--text); font-weight: 700; }
.logo-last  { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin:18px 10px 0 0;
  letter-spacing: 0.05em;
}

.hero-name {
  font-size: clamp(2.25rem, 8vw + 1rem, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-role {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: min(480px, 100%);
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 0.95rem);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

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

.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections ===== */
.section {
  padding: var(--space-2xl) 0;
  border-top: none;
  position: relative;
  overflow: hidden;
  /* No border/shadow/separate background — sections blend into one continuous flow */
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  background: none;
  backdrop-filter: none;
}

.section .container {
  position: relative;
  z-index: 1;
}

/* Section background patterns — each section has its own grid style */
.section.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0,212,170,0.04) 0%, transparent 100%);
  opacity: 1;
}

.section.skills::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,170,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: 0 0, 22px 22px;
  opacity: 0.7;
  mix-blend-mode: lighten;
}

.section.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgb(37 37 37 / 6%) 0%, transparent 100%);
  opacity: 1;
}

.section.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mix-blend-mode: lighten;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0%, var(--grid-line) 50%, transparent 100%);
  background-size: 120px 100%;
  opacity: 0.5;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--accent);
  text-shadow: 0 2px 16px var(--accent-glow);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: min(560px, 100%);
  overflow-wrap: break-word;
  font-size: 1.1rem;
  font-weight: 500;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-md);
  min-width: 0;
}

.about-text,
.about-visual {
  min-width: 0;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text p:last-child {
  color: var(--text-muted);
}

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  min-width: 0;
  max-width: 100%;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-title {
  margin-inline-start: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-content code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-keyword { color: #c678dd; }
.code-type { color: #e5c07b; }
.code-string { color: #98c379; }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: 0;
  min-width: 0;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  min-width: 0;
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 40px var(--accent-glow);
  transform: translateY(-4px);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Projects ===== */

.projects-title {
  text-align: center;
}

.projects-subtitle {
  text-align: center;
  margin-inline: auto;
}

/* Filter Tabs */
.project-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 22px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-height: 36px;
}

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

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

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-md);
  margin-top: 0;
  min-width: 0;
}

/* Project Card — new layout */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-width: 0;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent);
}

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

/* Card Header: Logo + Badge */
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.project-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.project-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.project-logo-fallback {
  font-size: 22px;
  line-height: 1;
}

/* Badges */
.project-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.enterprise-badge {
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.personal-badge {
  background: rgba(139, 139, 154, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(139, 139, 154, 0.2);
}

/* Card Body */
.project-body {
  padding: 18px 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 3px 9px;
  background: var(--surface);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border: 1px solid var(--border);
}

/* Card Footer: links + role */
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.project-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: min(480px, 100%);
  margin-inline: auto;
  overflow-wrap: break-word;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch-min);
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-link:focus-visible,
.nav-links a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
}

.contact-icon {
  font-size: 0.9rem;
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-muted);
  overflow-wrap: break-word;
}

/* ===== Responsive ===== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .nav-links {
    gap: 24px;
  }

  .about-grid {
    gap: var(--space-md);
  }

  .skill-card,
  .project-card {
    padding: var(--space-md);
  }
}

/* Tablets — single column about, mobile-style nav from 900px */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-visual {
    order: -1;
  }

  .code-window {
    max-width: 100%;
  }

  .code-content {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    padding: var(--space-sm);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  }
}

/* Mobile menu + compact layout — from 900px use hamburger to avoid nav overflow */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    inset-inline-end: 0;
    width: min(320px, 85vw);
    max-width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    background: var(--bg-elevated);
    border-inline-start: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    z-index: 101;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: var(--space-sm) 0;
  }

  .nav-toggle {
    display: flex;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    align-items: center;
    justify-content: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-toggle span {
    transition: var(--transition);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .contact-links {
    flex-direction: column;
    width: 100%;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
  }

  .project-card .project-body,
  .project-card .project-footer {
    padding-inline: var(--space-md);
  }
}

/* Smaller tablets and large phones */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .hero-name {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }
}

/* Menu overlay when open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition);
  cursor: pointer;
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .nav-overlay.visible {
    display: block;
  }
}

@media (min-width: 901px) {
  .nav-overlay {
    display: none !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --header-h: 56px;
  }

  .hero-name {
    font-size: clamp(1.9rem, 11vw, 2.75rem);
  }

  .hero-greeting {
    font-size: 0.9rem;
  }

  .hero-role {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
  }

  .section-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .skill-card {
    padding: var(--space-sm);
  }

  .skill-icon {
    width: 42px;
    height: 42px;
    font-size: 0.8rem;
  }

  .footer {
    padding: var(--space-md) 0;
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  }
}

/* Very small screens (320px–400px) */
@media (max-width: 380px) {
  :root {
    --header-h: 52px;
  }

  .hero-name {
    font-size: clamp(1.65rem, 12vw, 2.25rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    padding: 12px 20px;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .contact-link {
    padding: 14px 18px;
  }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Large screens — optional refinements */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}


/* ===== Experience Accordion ===== */
.section.experience::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none; background:linear-gradient(180deg,rgba(0,212,170,0.03) 0%,transparent 100%); }
.accordion { display:flex; flex-direction:column; gap:12px; margin-top:var(--space-lg); }
.acc-item { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:border-color var(--transition),box-shadow var(--transition); }
.acc-item.open { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent),0 8px 32px var(--accent-glow); }
.acc-trigger { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; background:none; border:none; cursor:pointer; font-family:var(--font-sans); color:var(--text); text-align:left; transition:background var(--transition); }
.acc-trigger:hover { background:rgba(255,255,255,0.02); }
.acc-left { display:flex; align-items:center; gap:16px; min-width:0; }
.acc-company-dot { width:10px; height:10px; border-radius:50%; background:var(--border); border:2px solid var(--border); flex-shrink:0; transition:var(--transition); }
.acc-company-dot.current { background:var(--accent); border-color:var(--accent); box-shadow:0 0 8px var(--accent); }
.acc-item.open .acc-company-dot:not(.current) { background:var(--accent); border-color:var(--accent); }
.acc-info { display:flex; flex-direction:column; gap:3px; min-width:0; }
.acc-company { font-size:1.05rem; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acc-role { font-size:0.82rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acc-right { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.acc-period { font-size:0.8rem; color:var(--text-muted); font-family:var(--font-mono); white-space:nowrap; }
.acc-badge { font-size:0.68rem; font-weight:600; padding:3px 9px; border-radius:100px; text-transform:uppercase; letter-spacing:0.05em; font-family:var(--font-mono); }
.current-badge { background:rgba(0,212,170,0.15); color:var(--accent); border:1px solid rgba(0,212,170,0.3); }
.acc-chevron { color:var(--text-muted); transition:transform var(--transition); flex-shrink:0; }
.acc-item.open .acc-chevron { transform:rotate(180deg); color:var(--accent); }
.acc-body { max-height:0; overflow:hidden; transition:max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.acc-item.open .acc-body { max-height:600px; }
.acc-content { padding:20px 24px 24px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:20px; }
.acc-achievements h4 { font-size:0.8rem; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:12px; font-family:var(--font-mono); }
.acc-achievements ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.acc-achievements ul li { font-size:0.9rem; color:var(--text-muted); padding-left:16px; position:relative; line-height:1.6; }
.acc-achievements ul li::before { content:''; position:absolute; left:0; top:9px; width:5px; height:5px; border-radius:50%; background:var(--accent); opacity:0.7; }
.acc-tech { display:flex; flex-wrap:wrap; gap:7px; }
.acc-tech span { font-size:0.72rem; padding:3px 10px; background:var(--surface); border:1px solid var(--border); border-radius:5px; color:var(--text-muted); font-family:var(--font-mono); }
@media(max-width:600px){ .acc-trigger{padding:16px 18px;flex-wrap:wrap;gap:10px;} .acc-right{gap:8px;} .acc-content{padding:16px 18px 20px;} }

/* ── Hero Stats Bar ──────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: 16px 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 28px;
}

.hero-stat:first-child { padding-left: 0; }

.stat-number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-stats { gap: 12px; }
  .hero-stat { padding: 0 18px; }
  .hero-stat:first-child { padding-left: 0; }
  .stat-number { font-size: 1.4rem; }
}

/* ── About Highlights ────────────────────────────────── */
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.about-highlight div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-highlight strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.about-highlight span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Skills Tiers ────────────────────────────────────── */
.skills-tier {
  margin-bottom: var(--space-lg);
}

.skills-tier-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 18px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.primary-skills {
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.secondary-skills {
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}

.skill-primary {
  border-color: rgba(0, 212, 170, 0.2);
}

.skill-primary:hover {
  border-color: var(--accent);
}

.skill-secondary {
  opacity: 0.85;
}

.skill-secondary:hover {
  opacity: 1;
}

/* Skill progress bar */
.skill-level {
  margin-top: 12px;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 2px;
  transition: width 1s ease;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  opacity: 0.7;
  cursor: default;
}

/* ── Contact Improvements ────────────────────────────── */
.contact-link-primary {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.4);
  color: var(--accent);
}

.contact-link-primary:hover {
  background: rgba(0, 212, 170, 0.18);
  box-shadow: 0 0 30px var(--accent-glow);
}

.contact-link-cv {
  background: var(--surface);
  border-style: dashed;
  border-color: var(--text-muted);
}

.contact-link-cv:hover {
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent);
}

/* About grid — two columns on large screens */
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}