/* =====================================================
   TEJAMANIKANTA GUDLA — style.css  (Dark Premium v3)
   ===================================================== */

/* ----- GOOGLE FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Background palette */
  --bg-primary: #050816;
  --bg-secondary: #0d1130;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  /* Gradient accents */
  --grad-main: linear-gradient(135deg, #a855f7 0%, #6366f1 40%, #22d3ee 100%);
  --grad-alt: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #6366f1 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  /* Solid accents */
  --accent: #a855f7;
  --accent2: #22d3ee;
  --accent3: #6366f1;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* Borders / glow */
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.35);
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.25);
  --glow-cyan: 0 0 30px rgba(34, 211, 238, 0.2);

  /* Sizing */
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: rgba(168, 85, 247, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#a855f7, #22d3ee);
  border-radius: 3px;
}

/* ----- TYPOGRAPHY ----- */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

ul {
  list-style: none;
}

/* ----- CONTAINER ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

/* Section headers */
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.section-title span {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- NAVIGATION ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.nav-link.active {
  color: var(--accent);
}

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

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

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--nav-h) 2rem 0;
}

/* Mesh gradient blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(168, 85, 247, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(34, 211, 238, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 60% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2)
  }
}

.hero-name {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-name-accent {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-roles {
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease 0.4s both;
}

#role-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent2);
  letter-spacing: 0.03em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-summary strong {
  color: var(--text-primary);
}

/* Chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.6s both;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.chip:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text-primary);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.7s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.55), 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:active {
  transform: translateY(0px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

.btn-secondary:active {
  transform: translateY(0px);
}

/* Social links */
.hero-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.8s both;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ----- HERO PHOTO ----- */
.hero-content {
  display: flex;
  align-items: center;
  gap: 5rem;
  text-align: left;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.3s both;
  margin: 0 auto;
}

/* Outer rotating gradient ring */
.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #a855f7, #6366f1, #22d3ee, #a855f7);
  animation: spinRing 8s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
}

.hero-photo-ring2 {
  inset: -22px;
  background: conic-gradient(from 180deg, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.3));
  animation: spinRing 12s linear infinite reverse;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-photo-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.35), 0 0 120px rgba(34, 211, 238, 0.15);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  filter: brightness(1.03) contrast(1.02);
  image-rendering: high-quality;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-photo-frame:hover .hero-photo {
  transform: scale(1.20);
}

.hero-photo-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(5, 8, 22, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(10px);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 2;
}

/* Override hero text alignment */
.hero-text .hero-badge,
.hero-text .hero-chips,
.hero-text .hero-cta,
.hero-text .hero-social {
  justify-content: flex-start;
}

.hero-text .hero-summary {
  margin: 0 0 1.5rem;
  max-width: 560px;
}

.hero-text .hero-name {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

/* Tablet: stack vertically */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    align-items: center;
  }

  .hero-text .hero-badge,
  .hero-text .hero-chips,
  .hero-text .hero-cta,
  .hero-text .hero-social {
    justify-content: center;
  }

  .hero-text .hero-summary {
    margin: 0 auto 1.5rem;
  }

  .hero-photo-wrap {
    width: 240px;
    height: 240px;
  }

  .hero-photo-frame {
    width: 220px;
    height: 220px;
  }
}

/* iPad/Medium tablets */
@media (max-width: 768px) {
  .hero-photo-wrap {
    width: 200px;
    height: 200px;
  }

  .hero-photo-frame {
    width: 180px;
    height: 180px;
  }
}

/* Phones/Small devices */
@media (max-width: 640px) {
  .hero-photo-wrap {
    width: 160px;
    height: 160px;
  }

  .hero-photo-frame {
    width: 145px;
    height: 145px;
    border-width: 2px;
  }

  .hero-photo-ring {
    inset: -8px;
  }

  .hero-photo-ring2 {
    inset: -16px;
  }
}

/* Small phones (iPhone SE, etc) */
@media (max-width: 480px) {
  .hero-photo-wrap {
    width: 140px;
    height: 140px;
  }

  .hero-photo-frame {
    width: 130px;
    height: 130px;
    border-width: 2px;
  }

  .hero-photo-ring {
    inset: -6px;
  }

  .hero-photo-ring2 {
    inset: -12px;
  }
}

/* Scroll indicator */

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeUp 1s ease 1.2s both;
}

.scroll-indicator {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1
  }

  70% {
    transform: translateY(10px);
    opacity: 0
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ----- ABOUT ----- */
.about-section {
  background: var(--bg-primary);
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

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

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

.about-lead {
  font-size: 1.15rem !important;
  color: var(--text-primary) !important;
  font-weight: 500;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transition: var(--transition);
}

.tag:hover {
  background: rgba(168, 85, 247, 0.2);
}

/* Stat cards */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
  display: inline-block;
  width: auto;
}

.stat-number span {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ----- SKILLS ----- */
.skills-section {
  background: var(--bg-secondary);
}

.skills-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.skills-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}

.skill-tab:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.skill-tab.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--accent);
}

.skill-tab-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  transition: var(--transition);
}

.skill-tab-icon svg {
  width: 16px;
  height: 16px;
}

.skill-tab.active .skill-tab-icon {
  background: rgba(168, 85, 247, 0.2);
}

.skill-tab-label {
  font-size: 0.85rem;
}

.skills-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  min-height: 280px;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.skill-bar-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-bar-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-bar-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.skill-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: var(--grad-main);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.skill-pills-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.pill-cyan {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.pill-purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

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

.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent2) 50%, transparent 100%);
  opacity: 0.3;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.timeline-dot.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.timeline-dot svg {
  width: 14px;
  height: 14px;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(168, 85, 247, 0.25);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  color: var(--accent);
}

/* Job header */
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.job-company {
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.job-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.job-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.job-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-badge.current {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.job-description ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.job-description li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}

.job-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.1rem;
}

.job-description li strong {
  color: var(--text-primary);
}

.job-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-tag {
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
}

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

.projects-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 20% 60%, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  transform-style: preserve-3d;
  cursor: default;
  position: relative;
}

.project-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(168, 85, 247, 0.1);
}

.project-bar {
  height: 3px;
  width: 100%;
}

.project-bar {
  background: var(--grad-main);
}

.project-bar.b2 {
  background: var(--grad-alt);
}

.project-bar.b3 {
  background: var(--grad-green);
}

.project-bar.b4 {
  background: var(--grad-warm);
}

.project-inner {
  padding: 1.75rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.project-icon svg {
  width: 20px;
  height: 20px;
}

.project-featured-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.project-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.project-link svg {
  width: 14px;
  height: 14px;
}

.project-link:hover {
  color: var(--accent2);
  gap: 0.6rem;
}

.projects-more {
  display: flex;
  justify-content: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline svg {
  width: 18px;
  height: 18px;
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ----- EDUCATION ----- */
.education-section {
  background: var(--bg-primary);
}

.education-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.edu-card.primary {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.06);
}

.edu-card.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.edu-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.edu-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.edu-icon svg {
  width: 22px;
  height: 22px;
}

.edu-content {
  flex: 1;
}

.edu-degree {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.edu-field {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.edu-school {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.edu-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.edu-coursework {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.contact-intro {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-intro p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), var(--glow-purple);
}

.contact-card:hover::before {
  opacity: 0.04;
}

.contact-card.no-link {
  cursor: default;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: rgba(168, 85, 247, 0.25);
}

.contact-card-icon.linkedin {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.3);
  color: #0a66c2;
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-arrow {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.contact-arrow svg {
  width: 16px;
  height: 16px;
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ----- FOOTER ----- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Space Grotesk';
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ----- ENHANCED INTERACTIVITY ----- */

/* Smooth transitions for all interactive elements */
button, a, [role="button"] {
  transition: all var(--transition);
}

/* Enhanced link hover effects */
a:not(.btn):not(.icon):not(.social-link):not(.nav-link):not(.footer-links a) {
  position: relative;
}

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

a:not(.btn):not(.icon):not(.social-link):not(.nav-link):not(.footer-links a):hover::after {
  width: 100%;
}

/* Social link enhancement */
.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(168, 85, 247, 0.2);
}

/* Card enhancement */
.project-card,
.timeline-item,
.edu-card {
  transition: all var(--transition);
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.project-card:hover::before {
  left: 100%;
}

/* Input and form enhancements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
  outline: none;
}

/* Typing animation for text */
.hero-summary {
  min-height: 60px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .skills-layout {
    grid-template-columns: 220px 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .skills-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .skill-tab {
    width: auto;
    flex: 1;
    min-width: 120px;
  }

  .skill-tab-label {
    font-size: 0.78rem;
  }

  .timeline-item {
    grid-template-columns: 32px 1fr;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 64px;
  }

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

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}