/* ========================================
   THOMAS TALAS PORTFOLIO v2
   ======================================== */

:root {
  --bg: #050508;
  --bg-dark: #030305;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-solid: #0c0c12;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e8e8ec;
  --text-secondary: #8b8b9e;
  --text-dim: #4a4a5e;
  --accent: #635bff;
  --accent-2: #7c3aed;
  --accent-light: #a78bfa;
  --glow: rgba(99, 91, 255, 0.12);
  --glow-strong: rgba(99, 91, 255, 0.25);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, var(--bg) 100%);
}

::selection {
  background: var(--accent);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ========================================
   PARTICLE CANVAS
   ======================================== */

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ========================================
   AMBIENT GLOW ORBS
   ======================================== */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  animation: orbFade 2s ease forwards;
}

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

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.12) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: orbDrift1 25s ease-in-out infinite alternate, orbFade 2s ease forwards;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  top: 30%;
  right: -8%;
  animation: orbDrift2 30s ease-in-out infinite alternate, orbFade 2s ease 0.5s forwards;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: 15%;
  animation: orbDrift3 22s ease-in-out infinite alternate, orbFade 2s ease 1s forwards;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.08) 0%, transparent 70%);
  top: 60%;
  right: 20%;
  animation: orbDrift4 28s ease-in-out infinite alternate, orbFade 2s ease 0.3s forwards;
}

.orb-5 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  top: 5%;
  right: 30%;
  animation: orbDrift5 35s ease-in-out infinite alternate, orbFade 2s ease 0.8s forwards;
}

@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, 60px) scale(1.1); }
  100% { transform: translate(-40px, 120px) scale(0.95); }
}

@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 80px) scale(1.15); }
  100% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(50px, -70px) scale(1.08); }
  100% { transform: translate(-70px, 30px) scale(1.05); }
}

@keyframes orbDrift4 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, -50px) scale(1.12); }
  100% { transform: translate(60px, 70px) scale(0.92); }
}

@keyframes orbDrift5 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, 40px) scale(1.06); }
  100% { transform: translate(-50px, -30px) scale(1.1); }
}

/* Subtle noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   NAV
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.9);
}

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

.nav-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo:hover { color: var(--accent-light); }

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

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

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(5, 5, 8, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin-bottom: 28px; }

.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-menu a:hover { color: var(--accent-light); }

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 24px 80px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.06);
  margin-bottom: 32px;
  font-family: var(--mono);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

.hero-typed-wrap {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

.typed-text {
  color: var(--accent-light);
  font-weight: 600;
}

.typed-cursor {
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

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

.btn-primary:hover {
  background: #7c74ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-strong);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.95rem;
}

/* Tech marquee */
.hero-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--bg-dark);
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  overflow: visible;
}

/* ========================================
   ABOUT
   ======================================== */

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

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1rem;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.info-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  background: var(--surface-hover);
}

.info-card-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--mono);
}

.info-card-value {
  font-weight: 600;
  font-size: 0.92rem;
}

/* ========================================
   EXPERIENCE
   ======================================== */

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 64px;
}

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}

.exp-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.exp-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 4px;
}

.exp-header {
  margin-bottom: 16px;
}

.exp-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.exp-company {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.exp-bullets {
  margin-bottom: 16px;
}

.exp-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--glow);
  color: var(--accent-light);
  font-family: var(--mono);
  border: 1px solid rgba(99, 91, 255, 0.1);
}

/* Education */
.edu-block { margin-top: 8px; }

.edu-card {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.edu-main h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.edu-school {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========================================
   PROJECTS
   ======================================== */

/* Featured */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.project-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.project-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.project-featured-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.project-featured-content p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Code window */
.code-window {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-window pre {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.code-kw { color: #c792ea; }
.code-fn { color: #82aaff; }
.code-str { color: #c3e88d; }
.code-key { color: #89ddff; }

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.project-card:hover .project-card-glow {
  opacity: 1;
}

.project-card-content {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 2;
}

.project-card:hover .project-card-content {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-card-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.project-type {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-card-content p {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

/* ========================================
   SKILLS
   ======================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-group {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}

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

.skill-group h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--glow);
  transform: translateY(-2px);
}

/* ========================================
   MUSIC / VIBES
   ======================================== */

.music-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
  margin-top: -28px;
}

.music-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.spotify-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-solid);
}

.spotify-embed iframe {
  display: block;
  border-radius: var(--radius-lg);
}

.music-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.music-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.music-note svg {
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
  cursor: default;
}

.genre-chip:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--glow);
  transform: translateY(-2px);
}

/* Animated EQ bars */
.music-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.eq-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1)  { animation-duration: 0.8s;  height: 60%; }
.eq-bar:nth-child(2)  { animation-duration: 1.1s;  height: 40%; }
.eq-bar:nth-child(3)  { animation-duration: 0.9s;  height: 80%; }
.eq-bar:nth-child(4)  { animation-duration: 1.3s;  height: 30%; }
.eq-bar:nth-child(5)  { animation-duration: 0.7s;  height: 70%; }
.eq-bar:nth-child(6)  { animation-duration: 1.0s;  height: 50%; }
.eq-bar:nth-child(7)  { animation-duration: 1.2s;  height: 90%; }
.eq-bar:nth-child(8)  { animation-duration: 0.6s;  height: 35%; }
.eq-bar:nth-child(9)  { animation-duration: 1.1s;  height: 65%; }
.eq-bar:nth-child(10) { animation-duration: 0.85s; height: 45%; }
.eq-bar:nth-child(11) { animation-duration: 1.0s;  height: 75%; }
.eq-bar:nth-child(12) { animation-duration: 0.75s; height: 55%; }

@keyframes eqBounce {
  0%   { transform: scaleY(0.3); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0.5); }
}

/* ========================================
   CONTACT
   ======================================== */

.contact-wrap {
  text-align: center;
  max-width: 660px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  text-align: left;
  color: var(--text);
}

.contact-item svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--glow);
}

.contact-item-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

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

.footer-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--mono);
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .section { padding: 80px 0; }
  .section-title { margin-bottom: 36px; }

  .hero-content { padding: 80px 16px 60px; }

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

  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exp-date { padding-top: 0; }

  .project-featured {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .music-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .edu-card { flex-direction: column; }

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

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }

  .btn { padding: 10px 20px; font-size: 0.82rem; }
  .btn-lg { padding: 14px 28px; }

  .project-card-content { padding: 22px; }
  .skill-group { padding: 22px; }
  .exp-item { padding: 22px; }

  .code-window pre { font-size: 0.7rem; }
}
