*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0b;
  --surface: #111114;
  --border: #1f1f26;
  --gold: #c9a84c;
  --gold-dim: #8a6e2f;
  --cream: #f0e8d5;
  --muted: #6b6b7a;
  --white: #f8f6f1;
  --accent: #3a7bd5;
}
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  z-index: 9999;
  transition: width 0.1s ease;
}
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 998;
  transition: transform 0.4s ease, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}
.cursor-ring.hover-effect {
  width: 50px;
  height: 50px;
  background: rgba(201,168,76,0.1);
  border-color: var(--cream);
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
nav.scrolled {
  border-color: var(--border);
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
/* ✅ NAV RESUME BUTTON */
.nav-resume-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  background: rgba(201,168,76,0.05);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
  position: relative;
  z-index: 1000;
}
.nav-resume-btn:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-1px);
}
.nav-resume-btn svg { flex-shrink: 0; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  top: 50%; left: 60%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  position: relative;
}
.hero-content { position: relative; max-width: 600px; }

/* HERO PHOTO */
.hero-photo-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}
.hero-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--gold-dim);
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.hero-photo:hover {
  filter: grayscale(0%);
  transform: translateY(-4px);
}
.hero-photo-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 300px;
  height: 300px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  opacity: 0.3;
  z-index: -1;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.2em;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
}
.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  font-weight: 300;
  margin-top: 2rem;
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
/* CURRENTLY BUILDING */
.currently-building {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.65); }
}
.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 2px;
}
.tag.active {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}
.hero-cta {
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.btn-primary {
  padding: 0.85rem 2.2rem;
  background: var(--gold);
  color: var(--bg);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  z-index: 1000;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--cream); transform: translateY(-2px); }
.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* ✅ HERO RESUME BUTTON */
.btn-resume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
  position: relative;
  z-index: 1000;
}
.btn-resume:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.05);
  transform: translateY(-2px);
}
.btn-resume svg { flex-shrink: 0; }

/* SECTION COMMON */
section { padding: 7rem 4rem; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1; max-width: 60px;
  height: 1px;
  background: var(--gold-dim);
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-top: 4rem;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #b0adb8;
  margin-bottom: 1.4rem;
}
.about-text p strong { color: var(--white); font-weight: 400; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-box {
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 4px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}
.stat-box:hover { border-color: var(--gold-dim); }
.stat-box:hover::before { transform: scaleY(1); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
}
.stat-desc {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* EXPERIENCE */
.experience { background: var(--surface); }
.timeline { margin-top: 4rem; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--border), transparent);
}
.timeline-item {
  padding: 0 0 4rem 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s, transform 0.6s;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  position: absolute;
  left: -5px; top: 6px;
  width: 11px; height: 11px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.timeline-role {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-company {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.timeline-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #9a97a6;
  max-width: 600px;
}

/* SKILLS */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.skill-card {
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.3s;
}
.skill-card.visible { opacity: 1; transform: translateY(0); }
.skill-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
.skill-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.skill-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.skill-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  background: rgba(201,168,76,0.07);
  color: var(--gold);
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.2);
}

/* PROJECTS */
.projects { background: var(--surface); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.3s;
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover { border-color: var(--gold-dim); transform: translateY(-6px); }
.project-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.project-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.project-icon { font-size: 1.5rem; }
.project-body { padding: 2rem; }
.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.project-desc {
  font-size: 0.9rem;
  color: #9a97a6;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 2px;
}

/* VENTURES */
.venture-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  transition: border-color 0.3s;
}
.venture-card:hover { border-color: var(--gold-dim); }
.venture-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.venture-desc {
  font-size: 0.95rem;
  color: #9a97a6;
  line-height: 1.8;
  max-width: 560px;
}
.venture-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 2px;
  white-space: nowrap;
}

/* CONNECT */
.connect {
  text-align: center;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}
.connect::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}
.connect h2 { margin-bottom: 1.5rem; }
.connect > p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ✅ CONTACT FORM */
.contact-form {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  transition: border-color 0.3s;
}
.contact-form:focus-within {
  border-color: var(--gold-dim);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  font-size: 0.85rem;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.03);
}
.form-group textarea { min-height: 130px; }
.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.form-submit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.form-message {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.form-success {
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}
.form-error {
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.3);
  color: #e08080;
}

.social-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.social-link {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  position: relative;
  z-index: 1000;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-link:hover { color: var(--gold); border-color: var(--gold-dim); transform: translateY(-3px); }
.social-link svg { width: 16px; height: 16px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* TESTIMONIAL */
#testimonial { background: var(--surface); }
.testimonial-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 2.5rem 3rem;
  background: var(--bg);
  border-radius: 4px;
  max-width: 700px;
  margin-top: 3rem;
  position: relative;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--gold-dim); }
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: -1.5rem;
}
.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 1.75rem;
}
.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.testimonial-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.testimonial-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  transform: translateY(-1px);
}

/* LIGHT MODE VARIABLES */
[data-theme="light"] {
  --bg: #f5f2eb;
  --surface: #edeae0;
  --border: #d4cfc4;
  --gold: #a07830;
  --gold-dim: #c9a84c;
  --cream: #1a1208;
  --muted: #7a7060;
  --white: #1a1208;
  --accent: #3a7bd5;
}

/* SMOOTH TRANSITION ON THEME SWITCH */
body {
  transition: background 0.4s ease, color 0.4s ease;
}

/* SCROLL ANIMATIONS */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-left] {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate-left].visible {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate-left] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
/* PROJECT LINKS */
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.project-link-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  background: var(--gold);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.project-link-btn:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.project-link-btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.project-link-btn.ghost:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: transparent;
}

@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .nav-resume-btn { font-size: 0; padding: 0.45rem 0.6rem; }
  .nav-resume-btn svg { width: 14px; height: 14px; }
  section, .hero { padding: 5rem 1.5rem 4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .venture-card { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .hero-cta { gap: 1rem; flex-direction: column; align-items: flex-start; }
 .hero-wrapper { flex-direction: column; gap: 2.5rem; }
 .hero-photo-wrapper { width: 200px; height: 200px; }
 .hero-photo { width: 200px; height: 200px; }
 .hero-photo-ring { width: 200px; height: 200px; }

  /* ✅ ISSUE #3 — Mobile skills grid fix */
  .skills-layout {
    grid-template-columns: 1fr;
  }
  .skill-card {
    padding: 1.5rem;
  }
  .skill-items {
    gap: 0.4rem;
  }
  .skill-pill {
    font-size: 0.58rem;
    padding: 0.25rem 0.6rem;
  }
  .leetcode-stats img {
    max-width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .timeline-item {
    padding: 0 0 3rem 2rem;
  }
  .testimonial-card {
    padding: 1.5rem;
  }
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }
  h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
}
