/* =============================================
   ARADHY NIMKAR — PORTFOLIO STYLESHEET
   ============================================= */

/* ---- CSS VARIABLES ---- */
:root {
  --bg-primary: #050811;
  --bg-secondary: #0a0f1e;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;

  --grad-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --grad-glow: linear-gradient(135deg, #1d4ed8, #7c3aed);
  --grad-text: linear-gradient(135deg, #60a5fa, #a78bfa);
  --grad-hero: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);

  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(59,130,246,0.4);

  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --shadow-glow-strong: 0 0 60px rgba(139,92,246,0.25);

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

  --nav-h: 72px;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

/* ---- CANVAS PARTICLES ---- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- CURSOR GLOW ---- */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 3px; }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section-pad { padding: 100px 0; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(5,8,17,0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: auto;
}
.logo-bracket { color: var(--accent-blue); }
.logo-text { color: var(--accent-purple); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.4);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Hero Left */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
  margin-bottom: 16px;
}
.greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.name-line {
  display: block;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.name-first { color: var(--text-primary); }
.name-last {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 1.15rem;
  font-weight: 500;
}
.role-prefix { color: var(--text-secondary); }
.role-typewriter {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  min-height: 1.5em;
  border-right: 2px solid var(--accent-cyan);
  padding-right: 4px;
  animation: blink-cursor 0.75s step-end infinite;
}
@keyframes blink-cursor {
  from,to { border-color: var(--accent-cyan); }
  50% { border-color: transparent; }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}
.company-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}
.company-link:hover { text-decoration: underline; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.5);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border-accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(59,130,246,0.1);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* Hero Right — Avatar */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-wrapper {
  position: relative;
  width: 380px; height: 380px;
}
.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin-ring linear infinite;
}
.ring-1 {
  width: 340px; height: 340px;
  border-color: rgba(59,130,246,0.3);
  animation-duration: 20s;
}
.ring-2 {
  width: 390px; height: 390px;
  border-color: rgba(139,92,246,0.2);
  border-style: dashed;
  animation-duration: 30s;
  animation-direction: reverse;
}
.ring-3 {
  width: 440px; height: 440px;
  border-color: rgba(6,182,212,0.1);
  animation-duration: 45s;
}
@keyframes spin-ring { to { transform: translate(-50%,-50%) rotate(360deg); } }

.avatar-glow {
  position: absolute;
  width: 300px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.1) 50%, transparent 70%);
  filter: blur(20px);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.05); }
}

.avatar-img {
  position: absolute;
  width: 280px; height: 280px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59,130,246,0.4);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.08), 0 20px 60px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Tech orbs */
.tech-orbs { position: absolute; inset: 0; }
.orb {
  position: absolute;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbit-float ease-in-out infinite;
  transition: transform 0.3s;
  cursor: default;
}
.orb:hover { transform: scale(1.2) !important; }
.orb img { width: 28px; height: 28px; object-fit: contain; }
.orb-1 { top: 5%; left: 50%; animation-duration: 4s; animation-delay: 0s; }
.orb-2 { top: 25%; right: 3%; animation-duration: 3.5s; animation-delay: 0.5s; }
.orb-3 { bottom: 15%; right: 8%; animation-duration: 5s; animation-delay: 1s; }
.orb-4 { bottom: 5%; left: 50%; animation-duration: 4.2s; animation-delay: 1.5s; }
.orb-5 { bottom: 25%; left: 3%; animation-duration: 3.8s; animation-delay: 2s; }
.orb-6 { top: 25%; left: 5%; animation-duration: 4.5s; animation-delay: 0.8s; }
@keyframes orbit-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  z-index: 2;
  animation: fade-up 2s ease-in-out infinite;
}
@keyframes fade-up {
  0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-6px); }
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--accent-blue);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--bg-secondary); }

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

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.detail-icon { font-size: 1.1rem; }

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.info-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.info-card:hover::before { transform: scaleX(1); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   SKILLS
   ============================================= */
.skills { background: var(--bg-primary); }

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

.skill-category { }
.skill-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  transition: border-color 0.3s, background 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
}
.skill-chip img, .skill-chip .text-icon {
  width: 24px; height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.skill-chip:hover {
  border-color: var(--accent-blue);
  background: rgba(59,130,246,0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}
.skill-chip.featured {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.05);
}
.chip-level {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 4px;
}

/* Skill bars */
.skill-bars-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.skill-bars-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}
.skill-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.skill-bar-item { }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.bar-pct {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.animated { width: var(--w); }

/* =============================================
   PROJECTS
   ============================================= */
.projects { background: var(--bg-secondary); }

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-strong);
}
.project-card.featured-project {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(139,92,246,0.05));
  border-color: rgba(59,130,246,0.25);
}

.proj-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-primary);
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.proj-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.proj-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-meta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.proj-company {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proj-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.proj-arch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.arch-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}
.arch-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-purple);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tech-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-blue);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  padding: 4px 10px;
  border-radius: 6px;
}

.proj-links { display: flex; gap: 12px; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.proj-link:hover { transform: translateY(-1px); opacity: 0.85; }
.proj-link.primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.proj-link.secondary {
  border: 1px solid var(--border-accent);
  color: var(--accent-blue);
}

/* =============================================
   EXPERIENCE
   ============================================= */
.experience { background: var(--bg-primary); }

.timeline { position: relative; padding-left: 32px; }
.timeline-line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  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: -40px;
  top: 20px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}
.timeline-dot.pulse {
  animation: tl-pulse 2s ease-in-out infinite;
}
@keyframes tl-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(59,130,246,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.timeline-header h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.tl-company {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 500;
}
.tl-period { text-align: right; flex-shrink: 0; }
.tl-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.tl-dates {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tl-points {
  list-style: none;
  margin-bottom: 20px;
}
.tl-points li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.7;
}
.tl-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.tl-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-tech span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 6px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--bg-secondary); }

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}
.contact-card-icon { font-size: 1.5rem; }
.contact-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
}
.btn-icon { font-size: 1.1rem; transition: transform 0.2s; }
.form-submit:hover .btn-icon { transform: translateX(4px); }

.form-success {
  display: none;
  text-align: center;
  padding: 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-weight: 500;
  font-size: 0.9rem;
}
.form-success.visible { display: block; }

/* Inline link */
.inline-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.inline-link:hover { text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  position: relative;
  z-index: 2;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-blue); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-right { order: -1; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-badge { display: inline-flex; }
  .avatar-wrapper { width: 300px; height: 300px; }
  .avatar-img { width: 220px; height: 220px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-bars { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured-project { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5,8,17,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta.open { display: block; margin: 12px 24px 0; }
}

@media (max-width: 600px) {
  .section-pad { padding: 64px 0; }
  .hero-roles { flex-direction: column; align-items: center; gap: 4px; }
  .timeline-header { flex-direction: column; }
  .tl-period { text-align: left; }
  .skills-grid { gap: 24px; }
  .contact-form { padding: 24px; }
  .skill-bars-section { padding: 24px; }
}
