/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; }

/* ===== CANVAS ===== */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
section, nav, footer { position: relative; z-index: 1; }

/* ===== NOISE OVERLAY ===== */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: .45;
}

/* ===== CUSTOM CURSOR ===== */

#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--cyan); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s ease, height .2s ease, background .2s ease, opacity .2s ease;
  mix-blend-mode: screen;
  box-shadow: 0 0 8px var(--cyan), 0 0 22px rgba(0,212,255,0.55);
}
#cursor-trail {
  position: fixed; width: 40px; height: 40px;
  border: 1.5px solid rgba(0,212,255,0.6);
  border-radius: 50%; pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%);
  transition: width .35s ease, height .35s ease, border-color .3s ease, opacity .3s ease;
  animation: magneticPulse 2.5s ease-in-out infinite;
}
#cursor-dot {
  position: fixed; width: 4px; height: 4px;
  background: #fff; border-radius: 50%; pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  animation: dotPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px #fff;
}
body.cursor-hover #cursor       { width: 18px; height: 18px; background: rgba(0,212,255,0.28); box-shadow: 0 0 18px var(--cyan), 0 0 44px rgba(0,212,255,0.4); }
body.cursor-hover #cursor-trail { width: 54px; height: 54px; border-color: rgba(247,37,133,0.7); animation: none; }
body.cursor-click #cursor       { width: 22px; height: 22px; background: rgba(0,212,255,0.52); }
body.cursor-click #cursor-trail { width: 64px; height: 64px; }
.cursor-particle {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  pointer-events: none; z-index: 9995; transform: translate(-50%,-50%);
  animation: trailFade 0.6s ease-out forwards;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 4.5rem;
  background: transparent; backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}
#navbar.scrolled {
  padding: .8rem 4.5rem;
  background: rgba(11,13,23,0.92); backdrop-filter: blur(28px) saturate(1.5);
  border-bottom: 1px solid rgba(0,212,255,0.08);
  box-shadow: 0 4px 40px rgba(0,0,0,0.55);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  letter-spacing: .06em;
  color: var(--text);
}
.nav-logo .bracket { -webkit-text-fill-color: var(--cyan); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  transition: color .25s; position: relative; font-weight: 500;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1.5px;
  background: var(--grad-border); border-radius: 2px;
  transition: width .38s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cyan); }
.nav-menu-btn { display: none; color: var(--cyan); font-size: 1.5rem; background: none; border: none; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(11,13,23,0.98); backdrop-filter: blur(28px);
  padding: 2rem 2rem; flex-direction: column; gap: 1.3rem;
  z-index: 99; border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; animation: fadeSlideDown .3s ease both; }
.mobile-menu a {
  color: var(--muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.04); transition: color .2s;
}
.mobile-menu a:hover { color: var(--cyan); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.6rem; background: var(--grad-main);
  background-size: 200% auto;
  border: none; color: #fff;
  font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius-pill); position: relative; overflow: hidden;
  transition: background-position .6s ease, box-shadow .35s ease, transform .25s ease;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 30px rgba(247,37,133,0.4), 0 0 50px rgba(124,58,237,0.2);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.6rem; background: transparent;
  border: 1.5px solid rgba(255,255,255,0.22); color: var(--text);
  font-family: var(--font-body); font-size: .88rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius-pill); transition: all .35s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-tag {
  display: inline-block; margin-bottom: 1.25rem;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .12em;
  text-transform: lowercase; color: var(--cyan); font-weight: 500;
  background: rgba(0,245,255,0.05); padding: .2rem .8rem; border-radius: 4px;
}
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.5rem; line-height: 1;
  color: var(--text);
}
/* Section title underline */
.section-header h2 + .section-divider,
.section-divider {
  display: block; width: 80px; height: 3px;
  border-radius: 4px; margin: 0 auto 1.6rem;
  background: var(--grad-main);
  animation: underlineSlide .6s ease both;
}
.section-header p { color: var(--muted2); max-width: 500px; margin: 0 auto; font-size: .97rem; line-height: 1.8; }

/* Accent spans — gradient text */
.accent {
  background: var(--grad-text); background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent-cyan  { color: var(--cyan); }
.accent-pink  { color: var(--pink); }
.accent-purple{ color: var(--purple); }

/* ===== HERO CODE WINDOW ===== */
.hero-code-window {
  background: rgba(17, 20, 37, 0.65);
  backdrop-filter: blur(12px) saturate(1.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card), 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden; min-width: 340px; max-width: 500px;
  font-family: var(--font-mono); font-size: .85rem;
  animation: slideInRight 1.1s cubic-bezier(.22,.8,.2,1) .5s both;
}
.code-window-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.1rem; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: .45rem; }
.code-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  transition: transform .25s ease;
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-window-bar:hover .code-dots span:nth-child(1) { transform: scale(1.2); }
.code-filename { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.code-body { padding: 1.4rem 1.6rem; line-height: 1.8; }
.code-line { display: block; animation: codeTyping .4s ease both; }
.code-line:nth-child(1)  { animation-delay: .7s; }
.code-line:nth-child(2)  { animation-delay: .85s; }
.code-line:nth-child(3)  { animation-delay: 1.0s; }
.code-line:nth-child(4)  { animation-delay: 1.15s; }
.code-line:nth-child(5)  { animation-delay: 1.3s; }
.code-line:nth-child(6)  { animation-delay: 1.45s; }
.code-line:nth-child(7)  { animation-delay: 1.6s; }
.code-line:nth-child(8)  { animation-delay: 1.75s; }
.code-line:nth-child(9)  { animation-delay: 1.9s; }
.code-line:nth-child(10) { animation-delay: 2.05s; }
.code-line:nth-child(11) { animation-delay: 2.2s; }
.ck { color: #c792ea; } /* keywords  */
.cf { color: #82aaff; } /* functions */
.cs { color: #c3e88d; } /* strings   */
.cm { color: #546e7a; } /* muted/indent */
.ca { color: var(--cyan); } /* accent=cyan */

/* ===== ABOUT AVATAR ===== */
.about-avatar {
  width: 270px; height: 270px; border-radius: 50%; background: var(--bg2);
  margin: 0 auto 2.5rem; display: flex; align-items: center; justify-content: center;
  position: relative; animation: glowPulse 3.5s ease-in-out infinite;
}
.about-avatar::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--cyan) 0%, var(--purple) 33%, var(--pink) 66%, var(--cyan) 100%);
  z-index: -1; animation: spinBorder 6s linear infinite;
}
.about-avatar::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg2); z-index: 0;
}
.avatar-initials {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 800;
  color: var(--text);
  position: relative; z-index: 1; letter-spacing: .12em;
}
.avatar-orbit {
  position: absolute; width: 100%; height: 100%; animation: orbitDot 7s linear infinite;
}
.avatar-orbit::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 13px;
  background: var(--grad-main);
  border-radius: 50%; transform: translate(-50%,-50%);
  box-shadow: 0 0 14px var(--purple), 0 0 28px rgba(124,58,237,.5);
}
.about-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(0,212,255,0.07); pointer-events: none; animation: pulseRing 3s ease-in-out infinite; }
.r1 { inset: -28px; animation-delay: 0s; }
.r2 { inset: -54px; animation-delay: .7s; opacity: .5; }
.r3 { inset: -82px; animation-delay: 1.4s; opacity: .25; }

/* ===== ABOUT STATS ===== */
.about-stats { display: flex; gap: 1rem; justify-content: center; margin-top: 1.3rem; flex-wrap: wrap; }
.stat-card {
  background: linear-gradient(135deg, var(--card) 0%, rgba(19,22,39,.9) 100%);
  border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 1.1rem 1.5rem;
  text-align: center; min-width: 84px; transition: all .35s ease; cursor: default;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,.06), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(0,212,255,.32); box-shadow: 0 14px 36px rgba(0,0,0,.4), 0 0 24px rgba(0,212,255,.1); }
.stat-card:hover::before { opacity: 1; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: .67rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; margin-top: .3rem; }

/* ===== ABOUT CONTENT ===== */
.about-content h2 { font-family: var(--font-display); font-size: clamp(1.9rem,4vw,2.5rem); font-weight: 800; letter-spacing: .03em; margin-bottom: 1.4rem; }
.about-content p { color: var(--muted2); line-height: 1.9; margin-bottom: 1.3rem; font-size: .97rem; }
.about-content strong { color: var(--text); font-weight: 600; }
.about-badges { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.3rem; }
.badge {
  padding: .4rem 1.1rem;
  background: rgba(0,212,255,.05);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: var(--radius-pill);
  font-size: .78rem; color: var(--cyan); letter-spacing: .05em;
  transition: all .32s ease;
}
.badge:hover { background: rgba(0,212,255,.12); border-color: rgba(0,212,255,.4); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,212,255,.12); }

/* ===== SKILLS ===== */
.skills-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 2rem; }
.skill-category {
  background: linear-gradient(145deg, var(--card) 0%, rgba(16,18,31,.85) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.4rem;
  position: relative; overflow: hidden; transition: all .38s cubic-bezier(.4,0,.2,1);
}
.skill-category::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-border);
  transform: scaleX(0); transition: transform .4s ease; transform-origin: left;
}
/* ===== SKILLS REDESIGN — 4 CATEGORIES ===== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category-box {
  background: rgba(8, 10, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-category-box:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.skill-category-box::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--grad-main); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.skill-category-box:hover::before { transform: scaleX(1); }

.skill-category-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.skills-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1.2rem;
}

.skill-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: 1.4rem .8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
  text-align: center;
}

.skill-icon-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.skill-icon-card i {
  font-size: 2.2rem;
}

.skill-icon-card span {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.05em;
}

.skill-icon-card:hover span {
  color: var(--text);
}

@media (max-width: 900px) {
  .skills-container { grid-template-columns: 1fr; gap: 1.5rem; }
}
.devicon-express-original, .devicon-github-original { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.theme-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
  font-size: 1.1rem;
}
.theme-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); border-color: var(--cyan); }
body.light-mode .theme-btn { background: rgba(0,0,0,0.05); }

/* ===== FEATURED PROJECTS LIST ===== */
.featured-projects-list {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-project {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.featured-project.alternate {
  flex-direction: row-reverse;
}

.fp-image {
  flex: 1.1;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 16 / 10;
}

.fp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.fp-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

.featured-project:hover .fp-image {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-hover);
}

.featured-project:hover .fp-image img {
  transform: scale(1.05);
}

.featured-project:hover .fp-glow {
  opacity: 1;
}

.fp-content {
  flex: 0.9;
  z-index: 2;
}

.featured-project h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 1rem 0 1.2rem;
  color: var(--text);
  line-height: 1.2;
}

.featured-project p {
  font-size: 1.05rem;
  color: var(--muted2);
  line-height: 1.8;
  margin-bottom: 2rem;
  background: rgba(8, 10, 18, 0.5);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  margin-left: -2rem;
  width: calc(100% + 4rem);
}

.featured-project.alternate p {
  margin-left: 2rem;
}

.featured-project:hover h3 {
  color: var(--cyan);
}

.project-card {
  /* Keep existing project card styles for compatibility or other grid uses */
  background: linear-gradient(145deg, var(--card), rgba(13,16,32,.95));
  border: 1px solid rgba(0,212,255,.1); border-radius: var(--radius-xl);
  padding: 2.5rem; position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .38s ease, border-color .38s;
  /* cursor removed */
}
.project-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,212,255,.1) 0%, transparent 58%);
  opacity: 0; transition: opacity .42s;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(0,212,255,.28); }

.card-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-border);
  transform: scaleX(0); transform-origin: center; transition: transform .48s ease;
}
.project-card:hover .card-glow { transform: scaleX(1); }
.featured-card { border-color: rgba(124,58,237,.18); }
.featured-card .card-glow { background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan)); }
.featured-card:hover { border-color: rgba(124,58,237,.38); }

.card-number {
  position: absolute; top: 1.4rem; right: 1.8rem;
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800;
  color: rgba(0,212,255,.05); line-height: 1; user-select: none; transition: color .3s;
}
.project-card:hover .card-number { color: rgba(0,212,255,.1); }
.card-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(124,58,237,.08));
  border: 1px solid rgba(0,212,255,.22); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.55rem;
  margin-bottom: 1.5rem; transition: all .38s; position: relative; overflow: hidden;
}
.card-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,.18), transparent);
  opacity: 0; transition: opacity .3s;
}
.project-card:hover .card-icon { transform: scale(1.13) rotateY(12deg); border-color: rgba(0,212,255,.5); box-shadow: 0 0 24px rgba(0,212,255,.18); }
.project-card:hover .card-icon::after { opacity: 1; }

.card-tag {
  display: inline-block; padding: .22rem .82rem;
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.32);
  border-radius: var(--radius-pill); font-size: .7rem; color: #b794f4;
  letter-spacing: .1em; margin-bottom: 1rem; text-transform: uppercase;
}
.project-card h3 {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 700;
  letter-spacing: .04em; margin-bottom: .75rem; transition: color .3s;
}
.project-card:hover h3 { color: var(--cyan); }
.project-card p { font-size: .88rem; color: var(--muted2); line-height: 1.85; margin-bottom: 1.5rem; }
.card-tech { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.tech-pill {
  padding: .22rem .7rem;
  background: rgba(16,18,31,.9);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-pill);
  font-size: .68rem; color: var(--muted2); transition: all .28s;
}
.project-card:hover .tech-pill { border-color: rgba(0,212,255,.2); color: var(--text); }
.card-links { display: flex; gap: .85rem; flex-wrap: wrap; }
.card-link {
  padding: .44rem .98rem; border: 1px solid rgba(0,212,255,.28);
  border-radius: var(--radius-sm); font-size: .74rem; color: var(--cyan);
  letter-spacing: .07em; text-transform: uppercase; transition: all .28s;
}
.card-link:hover { background: rgba(0,212,255,.1); border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,212,255,.12); }
.card-link.demo { border-color: rgba(247,37,133,.32); color: var(--pink); }
.card-link.demo:hover { background: rgba(247,37,133,.1); box-shadow: 0 4px 18px rgba(247,37,133,.18); }

/* ===== EDUCATION TIMELINE ===== */
.timeline { max-width: 820px; margin: 0 auto; position: relative; padding-left: 2.4rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), rgba(247,37,133,.2));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 3.8rem; padding-left: 2.8rem; }
.timeline-dot {
  position: absolute; left: -2.7rem; top: .55rem; width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 22px rgba(0,212,255,.75), 0 0 44px rgba(0,212,255,.25);
  border: 2px solid var(--bg); transition: transform .32s ease;
}
.timeline-item:hover .timeline-dot { transform: scale(1.35); }
.timeline-line { display: none; }
.timeline-card {
  background: linear-gradient(145deg, var(--card), rgba(13,16,32,.92));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.1rem 2.4rem; transition: all .38s ease; position: relative; overflow: hidden;
}
/* Left accent bar */
.timeline-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-main);
  transform: scaleY(0); transform-origin: top; transition: transform .42s ease;
}
.timeline-item:hover .timeline-card { border-color: rgba(0,212,255,.26); box-shadow: 0 14px 44px rgba(0,0,0,.38), 0 0 32px rgba(0,212,255,.07); transform: translateX(7px); }
.timeline-item:hover .timeline-card::before { transform: scaleY(1); }
/* Progress bar inside edu cards */
.edu-progress {
  height: 4px; border-radius: 4px; margin-top: 1.2rem;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  width: 0; transition: width 1.4s cubic-bezier(.22,.8,.2,1);
}
.timeline-item.visible .edu-progress { width: var(--fill, 100%); }
.timeline-period { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; display: block; margin-bottom: .6rem; }
.timeline-card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.timeline-institution { font-size: .9rem; color: #b794f4; margin-bottom: .7rem; font-weight: 500; }
.timeline-desc { font-size: .87rem; color: var(--muted2); line-height: 1.85; }
.timeline-badge {
  display: inline-block; margin-top: 1rem; padding: .3rem .85rem;
  background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.24);
  border-radius: var(--radius-pill); font-size: .7rem; color: var(--cyan);
}

/* ===== CERTIFICATIONS & AWARDS ===== */
#certs { padding: 9rem 2rem; max-width: 1200px; margin: 0 auto; }
.certs-container { display: flex; flex-direction: column; gap: 4.5rem; }
.certs-group h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 2.5rem; display: flex; align-items: center; gap: .8rem;
}
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.8rem; }

.cert-card {
  background: rgba(17, 20, 37, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex; gap: 1.5rem; align-items: center;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.cert-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), transparent);
  opacity: 0; transition: opacity .4s;
}
.cert-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  background: rgba(17, 20, 37, 0.6);
}
.cert-card:hover::before { opacity: 1; }

.cert-icon {
  width: 54px; height: 54px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  transition: all .3s ease;
}
.cert-card:hover .cert-icon {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  transform: rotate(8deg);
}

.cert-info h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.cert-info p { font-size: .85rem; color: var(--muted2); line-height: 1.4; margin-bottom: .8rem; }
.cert-tag, .cert-badge {
  display: inline-block; padding: .25rem .75rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: .65rem; color: var(--cyan); letter-spacing: .05em; text-transform: uppercase;
  font-weight: 600;
}
.cert-badge { background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.3); color: #b794f4; }

@media (max-width: 600px) {
  .cert-card { flex-direction: column; text-align: center; padding: 2.2rem 1.5rem; }
  .certs-grid { grid-template-columns: 1fr; }
}

/* ===== CONTACT ===== */
.contact-sub { color: var(--muted2); max-width: 540px; margin: 0 auto 3.8rem; line-height: 1.85; font-size: .98rem; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; max-width: 1060px; margin: 0 auto; text-align: left; }
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-info-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: linear-gradient(145deg, var(--card), rgba(13,16,32,.88));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem;
  transition: all .32s ease;
}
.contact-info-card:hover { border-color: rgba(0,212,255,.28); transform: translateX(6px); box-shadow: 0 10px 28px rgba(0,0,0,.32); }
.contact-info-icon { font-size: 1.4rem; min-width: 32px; }
.contact-info-label { display: block; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.contact-info-value { font-size: .93rem; color: var(--text); transition: color .2s; }
a.contact-info-value:hover { color: var(--cyan); }
.contact-socials { display: flex; gap: 1rem; margin-top: .9rem; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border: 1px solid rgba(0,212,255,.15);
  border-radius: var(--radius-md); color: var(--muted); font-size: 1.45rem;
  transition: all .32s ease; position: relative; overflow: hidden;
}
.social-link::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-main); opacity: 0; transition: opacity .32s;
}
.social-link:hover { border-color: var(--cyan); color: #fff; transform: translateY(-5px) scale(1.06); box-shadow: var(--shadow-cyan); }
.social-link:hover::before { opacity: .18; }

/* ===== FORM ===== */
.contact-form {
  background: linear-gradient(145deg, var(--card), rgba(13,16,32,.97));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2.9rem; position: relative; overflow: hidden;
}
.contact-form::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 290px; height: 290px;
  background: radial-gradient(circle, rgba(0,212,255,.07) 0%, transparent 70%); pointer-events: none;
}
.contact-form::after {
  content: ''; position: absolute; bottom: -80px; left: -80px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%); pointer-events: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-bottom: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,.03); border: 1px solid rgba(0,212,255,.1);
  border-radius: var(--radius-md); padding: .95rem 1.15rem; color: var(--text);
  font-family: var(--font-body); font-size: .92rem;
  transition: border-color .3s, box-shadow .3s, background .3s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group textarea:focus {
  border-color: rgba(0,212,255,.5); box-shadow: 0 0 0 4px rgba(0,212,255,.07);
  background: rgba(0,212,255,.02);
}
.form-group textarea { resize: vertical; min-height: 125px; }
.form-submit {
  width: 100%; padding: 1.05rem;
  background: var(--grad-main); background-size: 200% auto;
  border: none; color: #fff;
  font-family: var(--font-display); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  border-radius: var(--radius-md); position: relative; overflow: hidden;
  transition: background-position .6s ease, box-shadow .35s ease, transform .25s ease;
  box-shadow: 0 4px 20px rgba(0,212,255,.22);
}
.form-submit:hover {
  background-position: right center;
  box-shadow: 0 6px 30px rgba(247,37,133,.4);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  text-align: center; padding: 2.8rem 2rem;
  border-top: 1px solid rgba(0,212,255,.06);
  color: var(--muted); font-size: .8rem; letter-spacing: .07em;
  background: linear-gradient(to top, rgba(0,212,255,.015), transparent);
}
footer .accent { -webkit-text-fill-color: transparent; }
