/* =============================================
   ARVIND KUMAR PORTFOLIO — style.css
   ============================================= */

/* Google Font already linked in HTML */

/* ---- CSS Variables ---- */
:root {
  --bg-dark: #060610;
  --bg-card: #0d0d20;
  --bg-card-hover: #121230;
  --accent-1: #7c3aed;
  /* Vivid violet */
  --accent-2: #06b6d4;
  /* Cyan */
  --accent-3: #f59e0b;
  /* Amber */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border: rgba(124, 58, 237, 0.18);
  --glow-violet: rgba(124, 58, 237, 0.35);
  --glow-cyan: rgba(6, 182, 212, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) var(--bg-card);
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

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

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 3px;
}

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-1);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all .25s ease;
  mix-blend-mode: screen;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 18px;
  height: 18px;
  background: var(--accent-1);
}

body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 54px;
  height: 54px;
  border-color: var(--accent-2);
}

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

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: background var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
}

.nav.scrolled {
  background: rgba(6, 6, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.logo-bracket {
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  font-size: .9rem;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}

.nav-cta:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: -50px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: 40%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes orbFloat {

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

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  flex: 1;
  max-width: 620px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

  50% {
    opacity: .5;
    transform: scale(.8);
  }
}

.hero-name {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
}

.greeting {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: .1em;
}

.name-main {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 30%, var(--accent-1) 70%, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.roles-prefix {
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
}

.roles-carousel {
  position: relative;
  height: 1.8em;
  margin-top: 5px;
  overflow: hidden;
  flex: 1;
}

.role {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent-2);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .4s ease, transform .4s ease;
  white-space: nowrap;
}

.role.active {
  opacity: 1;
  transform: translateY(0);
}

.role.exit {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.link-accent {
  color: var(--accent-1);
  font-weight: 600;
  transition: color var(--transition);
}

.link-accent:hover {
  color: var(--accent-2);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-violet);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-violet);
}

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

.btn-ghost:hover {
  border-color: var(--accent-1);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- Hero Visual / Avatar ---- */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  width: 340px;
  height: 340px;
  z-index: 1;
}

.avatar-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 60px auto 0;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin linear infinite;
}

.ring-1 {
  inset: -12px;
  border: 2px solid transparent;
  border-top-color: var(--accent-1);
  border-right-color: var(--accent-1);
  animation-duration: 6s;
}

.ring-2 {
  inset: -24px;
  border: 1px solid transparent;
  border-bottom-color: var(--accent-2);
  border-left-color: var(--accent-2);
  animation-duration: 10s;
  animation-direction: reverse;
}

.ring-3 {
  inset: -38px;
  border: 1px solid transparent;
  border-top-color: rgba(245, 158, 11, 0.4);
  animation-duration: 16s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.avatar-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-violet), transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

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

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-1);
  position: relative;
  z-index: 1;
}

.avatar-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 12px var(--glow-violet);
}

.avatar-badge svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: rgba(13, 13, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: floatCard 5s ease-in-out infinite;
}

.lang-icon {
  font-size: 1.1rem;
}

.card-python {
  top: 20px;
  left: -20px;
  animation-delay: 0s;
}

.card-linux {
  top: 40px;
  right: -30px;
  animation-delay: -1s;
}

.card-networking {
  bottom: 50px;
  right: -20px;
  animation-delay: -2s;
}

.card-hardware {
  bottom: -20px;
  left: 80px;
  animation-delay: -3s;
}

.card-sql {
  bottom: 40px;
  left: -30px;
  animation-delay: -4s;
}

@keyframes floatCard {

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

  50% {
    transform: translateY(-10px);
  }
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease .5s both;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent-1));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
  padding: .3rem .8rem;
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .2);
  border-radius: 999px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 50%, var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---- About Section ---- */
.about {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04) 50%, transparent);
}

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

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.about-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

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

.social-link:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

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

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.info-card:hover {
  border-color: var(--accent-1);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--glow-violet);
}

.info-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.info-card strong {
  display: block;
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: .15rem;
}

.info-card span {
  font-size: .85rem;
  color: var(--text-secondary);
}

/* ---- Skills Section (Solar System) ---- */
.skills {
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.04) 50%, transparent);
  overflow: hidden;
}

.solar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.solar-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-width: 450px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.solar-system {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Sun */
.solar-sun {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2), inset 0 0 20px rgba(124, 58, 237, 0.1);
  transition: all var(--transition);
}

.solar-sun:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--glow-violet), inset 0 0 30px rgba(124, 58, 237, 0.3);
  border-color: var(--accent-1);
}

.sun-emoji {
  font-size: 1.4rem;
  margin-bottom: 0px;
}

.sun-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Specific sun glows */
.sun-lang {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.sun-lang:hover {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
  border-color: var(--accent-2);
}

.sun-tools {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.sun-domains {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.sun-domains:hover {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
}


/* Orbit Rings */
.o-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin-top: calc(var(--r) * -1);
  margin-left: calc(var(--r) * -1);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Planet Animation Track */
.p-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: orbit var(--dur) linear infinite;
  animation-delay: var(--dly);
}

@keyframes orbit {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Planet Wrapper (handles positioning and counter-rotation) */
.planet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: auto;
  cursor: pointer;
  animation: counter-orbit var(--dur) linear infinite;
  animation-delay: var(--dly);
  z-index: 15;
}

@keyframes counter-orbit {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* Planet Badge (the visual text box) */
.planet-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 14, 0.9);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--clr);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
}

/* Tiny glowing dot next to the text for extra flair */
.planet-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr);
  box-shadow: 0 0 8px var(--clr);
  margin-right: 6px;
  vertical-align: middle;
}

.planet:hover .planet-badge {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 20px var(--clr);
  background: var(--bg-card);
  z-index: 20;
}

@media (max-width: 768px) {
  .solar-wrap {
    max-width: 350px;
  }

  .o-ring {
    transform: scale(0.85);
  }
}

@media (max-width: 480px) {
  .solar-wrap {
    max-width: 300px;
  }

  .o-ring {
    transform: scale(0.7);
  }
}

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

.project-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-6px);
}

.project-card.featured {
  grid-column: span 2;
}

.project-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--glow-violet), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

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

.project-icon {
  font-size: 2.2rem;
}

.project-links {
  display: flex;
  gap: .5rem;
}

.proj-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

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

.proj-link:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

.project-badge {
  display: inline-block;
  padding: .2rem .65rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: .6rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .6rem;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tech-tag {
  padding: .25rem .7rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: #a78bfa;
  font-family: var(--font-mono);
}

.projects-cta {
  text-align: center;
}

/* ---- Contact Section ---- */
.contact {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04) 50%, transparent);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--accent-1);
  background: var(--bg-card-hover);
  transform: translateX(5px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-sm);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-1);
}

.contact-details strong {
  display: block;
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: .15rem;
}

.contact-details a {
  font-size: .85rem;
  color: var(--accent-2);
  transition: color var(--transition);
}

.contact-details a:hover {
  color: var(--accent-1);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: .95rem;
  transition: all var(--transition);
  resize: none;
  cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-note {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand p {
  font-family: var(--font-main);
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .3rem;
  font-weight: 400;
}

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

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ---- Scroll Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* ---- Mobile Hamburger ---- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 6, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 1rem 2rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    flex-direction: column-reverse;
    padding-top: 100px;
    text-align: center;
    gap: 2rem;
  }

  .hero-visual {
    width: 240px;
    height: 240px;
  }

  .avatar-container {
    width: 160px;
    height: 160px;
    margin: 30px auto 0;
  }

  .card-python {
    top: 0;
    left: -10px;
  }

  .card-js {
    top: 30px;
    right: -10px;
    font-size: .8rem;
  }

  .card-os {
    bottom: 20px;
    left: 5px;
    font-size: .8rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-roles {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 5rem 1.25rem;
  }

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

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

/* =============================================
   EXPERIENCE / TIMELINE SECTION
   ============================================= */

.experience {
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.04) 50%, transparent);
}

/* Timeline wrapper */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical spine line */
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom,
      var(--accent-2),
      var(--accent-1) 50%,
      rgba(124, 58, 237, 0.15));
  border-radius: 2px;
}

/* Each row */
.timeline-item {
  position: relative;
  display: flex;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* ---- Dot + pulse ---- */
.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
}

.timeline-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--glow-violet);
  position: relative;
  z-index: 1;
}

/* Pulse ring — only shown on .ongoing */
.timeline-pulse {
  display: none;
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  animation: timelinePulse 2s ease-out infinite;
}

.timeline-marker.ongoing .timeline-dot {
  background: linear-gradient(135deg, #10b981, var(--accent-2));
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.timeline-marker.ongoing .timeline-pulse {
  display: block;
}

@keyframes timelinePulse {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* ---- Card ---- */
.timeline-card {
  flex: 1;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--glow-violet), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.timeline-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glow-violet);
}

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

/* ---- Header row ---- */
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

/* Org badges */
.timeline-orgs {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.org-x {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.org-badge {
  padding: .28rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Per-org colour palettes */
.org-niit {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .35);
  color: #34d399;
}

.org-cisco {
  background: rgba(30, 136, 229, .12);
  border: 1px solid rgba(30, 136, 229, .35);
  color: #64b5f6;
}

.org-bharatcares {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #fbbf24;
}

.org-ibm {
  background: rgba(30, 136, 229, .12);
  border: 1px solid rgba(30, 136, 229, .35);
  color: #64b5f6;
}

.org-codeprefer {
  background: rgba(168, 85, 247, .12);
  border: 1px solid rgba(168, 85, 247, .35);
  color: #c084fc;
}

/* Status pills */
.timeline-status {
  padding: .28rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-ongoing {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #34d399;
}

.status-completed {
  background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .3);
  color: var(--accent-2);
}

.status-certified {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .3);
  color: var(--accent-3);
}

/* Text */
.timeline-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .6rem;
}

.timeline-desc {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.timeline-desc strong {
  color: var(--text-primary);
}

/* Meta row */
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.meta-item {
  font-size: .8rem;
  font-family: var(--font-mono);
  padding: .25rem .7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .timeline::before {
    left: 14px;
  }

  .timeline-marker {
    width: 30px;
    padding-top: 18px;
  }

  .timeline-item {
    gap: 1.25rem;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
   CERTIFICATES & ACHIEVEMENTS SECTION
   ============================================= */

.achievements {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.05) 50%, transparent);
}

/* Sub headings */
.achieve-sub-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.achieve-inst {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: -.75rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ---- Certificate card ---- */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.achieve-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}

.achieve-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px var(--glow-violet);
}

.achieve-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--glow-violet), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

/* cert-card specific layout */
.cert-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  align-items: flex-start;
}

.cert-icon-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .2), rgba(6, 182, 212, .15));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-big-icon {
  font-size: 2rem;
}

.cert-content {
  flex: 1;
}

.cert-issuer {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: .65rem;
}

.org-yuwaah {
  background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .3);
  color: var(--accent-2);
}

.cert-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

.cert-course {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-1);
  margin-bottom: .6rem;
  font-family: var(--font-mono);
}

.cert-desc {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---- Trophy grid ---- */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trophy-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.trophy-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Gold */
.trophy-card.gold {
  border-color: rgba(234, 179, 8, .35);
  background: linear-gradient(160deg, rgba(234, 179, 8, .06), var(--bg-card));
}

.trophy-card.gold:hover {
  box-shadow: 0 16px 40px rgba(234, 179, 8, .25);
}

.trophy-card.gold .achieve-card-glow {
  background: radial-gradient(ellipse at top, rgba(234, 179, 8, .2), transparent 65%);
}

.trophy-card.gold:hover .achieve-card-glow {
  opacity: 1;
}

/* Silver */
.trophy-card.silver {
  border-color: rgba(148, 163, 184, .35);
  background: linear-gradient(160deg, rgba(148, 163, 184, .06), var(--bg-card));
}

.trophy-card.silver:hover {
  box-shadow: 0 16px 40px rgba(148, 163, 184, .2);
}

.trophy-card.silver .achieve-card-glow {
  background: radial-gradient(ellipse at top, rgba(148, 163, 184, .18), transparent 65%);
}

.trophy-card.silver:hover .achieve-card-glow {
  opacity: 1;
}

/* Bronze */
.trophy-card.bronze {
  border-color: rgba(180, 83, 9, .35);
  background: linear-gradient(160deg, rgba(180, 83, 9, .07), var(--bg-card));
}

.trophy-card.bronze:hover {
  box-shadow: 0 16px 40px rgba(180, 83, 9, .2);
}

.trophy-card.bronze .achieve-card-glow {
  background: radial-gradient(ellipse at top, rgba(180, 83, 9, .18), transparent 65%);
}

.trophy-card.bronze:hover .achieve-card-glow {
  opacity: 1;
}

/* Medal emoji */
.trophy-medal {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: .25rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4));
  animation: medalBob 3s ease-in-out infinite;
}

@keyframes medalBob {

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

  50% {
    transform: translateY(-6px);
  }
}

.trophy-card.silver .trophy-medal {
  animation-delay: -1s;
}

.trophy-card.bronze .trophy-medal {
  animation-delay: -2s;
}

/* Position text */
.trophy-position {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

.gold .trophy-position {
  color: #eab308;
}

.silver .trophy-position {
  color: #94a3b8;
}

.bronze .trophy-position {
  color: #b45309;
}

.trophy-position sup {
  font-size: .65em;
  font-weight: 700;
  vertical-align: super;
}

/* Year badge */
.trophy-year {
  font-size: .8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 999px;
  letter-spacing: .08em;
}

.gold .trophy-year {
  background: rgba(234, 179, 8, .15);
  border: 1px solid rgba(234, 179, 8, .35);
  color: #eab308;
}

.silver .trophy-year {
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .3);
  color: #94a3b8;
}

.bronze .trophy-year {
  background: rgba(180, 83, 9, .12);
  border: 1px solid rgba(180, 83, 9, .3);
  color: #d97706;
}

.trophy-event {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: .3rem;
}

.trophy-institute {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Ribbon banner at bottom */
.trophy-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .35rem 0;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-align: center;
}

.gold-ribbon {
  background: linear-gradient(90deg, #78350f, #eab308, #78350f);
  color: #fff;
}

.silver-ribbon {
  background: linear-gradient(90deg, #334155, #94a3b8, #334155);
  color: #fff;
}

.bronze-ribbon {
  background: linear-gradient(90deg, #431407, #b45309, #431407);
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .trophy-grid {
    grid-template-columns: 1fr;
  }

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

  .cert-icon-wrap {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .achieve-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   EDUCATION SECTION
   ============================================= */

.education {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.05) 50%, transparent);
}

.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.edu-item {
  display: flex;
  gap: 2rem;
  position: relative;
}

/* ---- Left connector column ---- */
.edu-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 60px;
}

.edu-node {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.edu-node-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.edu-node-active {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, .15), rgba(6, 182, 212, .1));
  box-shadow: 0 0 20px rgba(16, 185, 129, .4);
}

.edu-node-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, .5);
  animation: eduPulse 2.2s ease-out infinite;
}

@keyframes eduPulse {
  0% {
    transform: scale(1);
    opacity: .8;
  }

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

.edu-line {
  flex: 1;
  width: 2px;
  min-height: 32px;
  background: linear-gradient(to bottom, var(--accent-1), rgba(124, 58, 237, .12));
  border-radius: 1px;
  margin: 4px 0;
}

/* ---- Card ---- */
.edu-card {
  flex: 1;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.edu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--glow-violet), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.edu-card:hover {
  border-color: var(--accent-1);
  transform: translateX(6px);
  box-shadow: 0 10px 35px var(--glow-violet);
}

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

.edu-card-active {
  border-color: rgba(16, 185, 129, .4);
  background: linear-gradient(150deg, rgba(16, 185, 129, .05), var(--bg-card));
}

.edu-card-active:hover {
  border-color: #10b981;
  box-shadow: 0 10px 35px rgba(16, 185, 129, .2);
}

/* Top row */
.edu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.edu-card-top>div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Level badges */
.edu-level-badge {
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-school {
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #fbbf24;
}

.badge-diploma {
  background: rgba(124, 58, 237, .12);
  border: 1px solid rgba(124, 58, 237, .3);
  color: #a78bfa;
}

.badge-btech {
  background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .3);
  color: var(--accent-2);
}

.edu-status {
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.badge-completed {
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .25);
  color: var(--accent-2);
}

.badge-ongoing {
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #34d399;
}

/* Grade bubble */
.edu-grade {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--font-mono);
  padding: 0 .75rem;
}

.grade-perfect {
  background: linear-gradient(135deg, rgba(234, 179, 8, .2), rgba(234, 179, 8, .08));
  border: 1px solid rgba(234, 179, 8, .4);
  color: #eab308;
  box-shadow: 0 0 12px rgba(234, 179, 8, .25);
}

.grade-good {
  background: linear-gradient(135deg, rgba(6, 182, 212, .15), rgba(6, 182, 212, .05));
  border: 1px solid rgba(6, 182, 212, .35);
  color: var(--accent-2);
  box-shadow: 0 0 10px rgba(6, 182, 212, .2);
}

.edu-degree {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .6rem;
  line-height: 1.4;
}

.edu-spec {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-1);
  font-family: var(--font-mono);
}

.edu-institution {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.edu-loc-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-2);
}

.edu-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.edu-highlight {
  font-size: .8rem;
  font-family: var(--font-mono);
  padding: .22rem .7rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .edu-item {
    gap: 1rem;
  }

  .edu-node {
    width: 42px;
    height: 42px;
  }

  .edu-node-icon {
    font-size: 1.2rem;
  }

  .edu-connector {
    width: 44px;
  }

  .edu-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .edu-degree {
    font-size: 1.05rem;
  }

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

@media (max-width: 480px) {
  .edu-item {
    gap: .6rem;
  }
}