/* ============================================
   Murugappan P — Portfolio
   Vanilla CSS · Light/Dark · Blue + Violet
   ============================================ */

:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-accent-soft: linear-gradient(135deg, rgba(59,130,246,.15) 0%, rgba(139,92,246,.15) 100%);

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0a14;
  --bg-elevated: #14142b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.15);
  --noise-opacity: 0.03;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.12);
  --noise-opacity: 0.015;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background var(--transition), color var(--transition);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: none; }
input, textarea { font: inherit; cursor: none; }

@media (max-width: 900px) {
  body, button, input, textarea { cursor: auto; }
}

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

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { position: relative; width: 80px; height: 80px; }
.loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--accent-blue);
  border-right-color: var(--accent-violet);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   CURSOR
   ============================================ */
.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9000;
  border-radius: 50%;
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  will-change: transform;
}
.cursor {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent-violet);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-violet);
  transform: translate(-50%, -50%);
}
.cursor.cursor-active {
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-blue);
}
@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 8000;
  transition: width 0.1s ease;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
  background: transparent;
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.logo-text .dot { color: var(--accent-violet); }

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card-hover); }
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { background: var(--bg-card-hover); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: all var(--transition); }
[data-theme="dark"] .icon-sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .icon-moon { opacity: 1; transform: rotate(0); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 280px;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    padding: 40px;
    transition: right var(--transition);
    gap: 16px;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 18px; padding: 12px 20px; }
  .nav-toggle { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45); }

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-strong); transform: translateY(-2px); }

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

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: 0;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.subtitle-line {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 8px;
}

.rotating-text {
  display: inline-block;
  vertical-align: bottom;
  height: 1.2em;
  overflow: hidden;
  position: relative;
}
.rotating-text span {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  animation: rotate-words 8s ease-in-out infinite;
}
@keyframes rotate-words {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-100%); }
  50%, 70% { transform: translateY(-200%); }
  75%, 95% { transform: translateY(-300%); }
  100% { transform: translateY(-400%); }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.hero-socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.hero-socials a:hover {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}
.hero-socials svg { width: 18px; height: 18px; }

/* scroll-hint removed — was overlapping hero socials */

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-violet);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: relative;
  perspective: 1000px;
}
.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
  border: 1px solid var(--border);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-glow {
  position: absolute;
  inset: -2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  filter: blur(30px);
  opacity: 0.4;
}
.about-image:hover .image-frame { transform: rotateY(-5deg) rotateX(2deg); }

.floating-badge {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 2;
  backdrop-filter: blur(10px);
}
.floating-badge strong {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.floating-badge span { font-size: 12px; color: var(--text-muted); }
.badge-1 { top: 20px; right: -30px; animation: float 4s ease-in-out infinite; }
.badge-2 { bottom: 30px; left: -30px; animation: float 4s ease-in-out infinite 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-content { display: flex; flex-direction: column; gap: 24px; }
.about-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
}
.about-content p { color: var(--text-muted); line-height: 1.7; }
.about-content strong { color: var(--text); font-weight: 600; }

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.meta-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition);
}
.meta-item:hover { border-color: var(--accent-violet); transform: translateY(-2px); }
.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-violet);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.meta-value { font-weight: 600; font-size: 15px; }
.meta-sub { font-size: 12px; color: var(--text-muted); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat { text-align: center; }
.stat strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 1.25rem; color: var(--accent-violet); font-weight: 700; }
.stat p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-meta { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .floating-badge { display: none; }
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent-soft);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.skill-card:hover { border-color: var(--accent-violet); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.skill-card:hover::before { opacity: 1; }
.skill-card > * { position: relative; z-index: 1; }

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}
.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-list li {
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: all var(--transition);
}
.skill-card:hover .skill-list li { border-color: var(--border-strong); color: var(--text); }
.skill-card-cta p { color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-list { display: flex; flex-direction: column; gap: 60px; }

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.project-card:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.project-card:nth-child(even) .project-visual { order: 2; }
.project-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.project-num {
  position: absolute;
  top: 24px; right: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.project-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--gradient-accent-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-shape {
  width: 60%;
  aspect-ratio: 1;
  position: relative;
  animation: morph 8s ease-in-out infinite;
}
.project-shape::before, .project-shape::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.6;
}
.shape-mass::before { animation: morph-1 6s ease-in-out infinite; }
.shape-mass::after { animation: morph-1 6s ease-in-out infinite reverse; opacity: 0.4; }
.shape-vault::before {
  border-radius: 20%;
  animation: morph-2 6s ease-in-out infinite;
  background: linear-gradient(135deg, var(--accent-blue), #06b6d4);
}
.shape-vault::after {
  border-radius: 30%;
  animation: morph-2 6s ease-in-out infinite reverse;
  opacity: 0.4;
  background: linear-gradient(135deg, var(--accent-violet), #ec4899);
}
.shape-nav::before {
  animation: morph-3 6s ease-in-out infinite;
  background: linear-gradient(135deg, #10b981, var(--accent-blue));
}
.shape-nav::after {
  border-radius: 30%;
  animation: morph-3 6s ease-in-out infinite reverse;
  opacity: 0.4;
}

@keyframes morph-1 {
  0%, 100% { border-radius: 50%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(180deg) scale(0.95); }
}
@keyframes morph-2 {
  0%, 100% { border-radius: 20%; transform: rotate(45deg); }
  50% { border-radius: 50%; transform: rotate(225deg); }
}
@keyframes morph-3 {
  0%, 100% { border-radius: 50% 50% 80% 20%; transform: rotate(0deg); }
  50% { border-radius: 80% 20% 50% 50%; transform: rotate(180deg); }
}
@keyframes morph {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.project-info { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-violet);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-info h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.project-info p { color: var(--text-muted); line-height: 1.7; }

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tech span {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.project-links { margin-top: 8px; }
.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.project-links a svg { width: 16px; height: 16px; }
.project-links a:hover {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .project-card:nth-child(even) .project-visual { order: 0; }
}

/* ============================================
   TIMELINE / EXPERIENCE
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-violet), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 60px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-violet);
  z-index: 1;
}
.timeline-marker::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.timeline-content {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.timeline-content:hover {
  border-color: var(--accent-violet);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-violet);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-content h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.timeline-content ul { display: flex; flex-direction: column; gap: 8px; }
.timeline-content li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}
.timeline-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-violet);
}
.timeline-content strong { color: var(--text); }

/* ============================================
   ACHIEVEMENTS
   ============================================ */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.achievement-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.achievement-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.ach-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
}
.achievement-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.achievement-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 14px;
}
.ach-stack {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-violet);
}

.cert-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cert-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cert-card:hover { border-color: var(--accent-violet); transform: translateY(-2px); }
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-violet);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cert-card h4 { font-size: 15px; font-weight: 600; line-height: 1.3; }

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

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 4px; }
.contact-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item:last-child { border-bottom: none; }
.ci-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-violet);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ci-value {
  font-size: 16px;
  font-weight: 500;
  transition: color var(--transition);
}
a.ci-value:hover { color: var(--accent-violet); }

.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input, .form-group textarea {
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all var(--transition);
  resize: vertical;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-violet);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

.form-status {
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.form-status.show {
  max-height: 80px;
  padding: 12px 16px;
  opacity: 1;
}
.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}
.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.form-status.info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--accent-blue);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand strong { display: block; font-weight: 600; }
.footer-brand span { font-size: 13px; color: var(--text-muted); }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}
.footer-socials svg { width: 16px; height: 16px; }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .footer-content { flex-direction: column; text-align: center; }
}

/* ============================================
   REVEAL ANIMATIONS (set by JS)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: var(--accent-violet);
  color: white;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-violet); }
