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

:root {
  --bg: #04040f;
  --bg-2: #07071a;
  --bg-card: rgba(10, 10, 24, 0.75);
  --border: rgba(108, 99, 255, 0.18);
  --border-hi: rgba(108, 99, 255, 0.6);
  --accent: #6c63ff;
  --accent-2: #a78bfa;
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
  --accent-glow: rgba(108, 99, 255, 0.4);
  --text: #eeeef8;
  --text-muted: #6a6a95;
  --green: #22c55e;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 20px;
  --radius-sm: 13px;
  --glass: blur(28px) saturate(180%);
}

html { scroll-behavior: smooth; }

/* Hide default cursor on non-touch devices */
@media (hover: hover) {
  * { cursor: none !important; }
}

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

/* ===== Scroll Progress Bar ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent-2), var(--accent-pink));
  background-size: 200% 100%;
  animation: progress-shimmer 3s linear infinite;
  z-index: 99999;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(108,99,255,0.5);
  transition: width 0.08s linear;
}
@keyframes progress-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ===== Custom Cursor ===== */
.cursor-dot {
  position: fixed;
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}
.cursor-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(108, 99, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.34,1.56,0.64,1),
              height 0.35s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.3s,
              background 0.3s;
}
.cursor-ring.expand {
  width: 60px; height: 60px;
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.07);
}
.cursor-dot.clicking { transform: translate(-50%, -50%) scale(0.5); }
.cursor-ring.clicking { transform: translate(-50%, -50%) scale(0.85); }

/* ===== Ambient Background ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 8%,  rgba(108,99,255,0.09) 0%, transparent 100%),
    radial-gradient(ellipse 55% 40% at 85% 88%, rgba(34,211,238,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 40% 35% at 55% 55%, rgba(167,139,250,0.04) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* ===== Shooting Stars ===== */
.shooting-star {
  position: fixed;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.85), rgba(108,99,255,0.6), transparent);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: shoot linear infinite;
}
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0,0) rotate(var(--angle)); }
  5%   { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--angle)); }
}

/* ===== Aurora Blobs ===== */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.aurora-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(108,99,255,0.22), transparent 70%);
  top: -20%; left: 5%;
  animation: aurora-float 11s ease-in-out infinite;
}
.aurora-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(34,211,238,0.14), transparent 70%);
  top: 10%; right: -8%;
  animation: aurora-float 14s ease-in-out infinite reverse;
}
.aurora-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(244,114,182,0.1), transparent 70%);
  bottom: 5%; left: 25%;
  animation: aurora-float 9s ease-in-out infinite 3s;
}
@keyframes aurora-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(70px,-50px) scale(1.1); }
  66%     { transform: translate(-45px,65px) scale(0.9); }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent), var(--accent-cyan));
  border-radius: 3px;
}

/* ===== Utility ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(108,99,255,0.55));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 60px var(--accent-glow), 0 12px 32px rgba(0,0,0,0.5);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px) scale(1.04);
  background: rgba(108,99,255,0.09);
  box-shadow: 0 0 30px rgba(108,99,255,0.22);
}
.btn-cv {
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-cv:hover {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.12);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
}

/* ===== Section Title with Shimmer ===== */
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 52px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
  background: linear-gradient(
    100deg,
    var(--text) 0%,
    var(--text) 38%,
    var(--accent-2) 48%,
    var(--accent-cyan) 52%,
    var(--text) 62%,
    var(--text) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 0;
  width: 55%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(108,99,255,0.6);
}

/* ===== Section Numbers ===== */
.section-num {
  position: absolute;
  top: -10px; right: 0;
  font-family: var(--mono);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(108,99,255,0.08);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -4px;
}

section { padding: 100px 0; }

/* ===== Badge ===== */
.badge {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.badge-green {
  background: rgba(34,197,94,0.1);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  box-shadow: 0 0 16px rgba(34,197,94,0.15);
}

/* ===== Card Tags ===== */
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card-tags span {
  background: rgba(108,99,255,0.07);
  color: var(--accent-2);
  border: 1px solid rgba(108,99,255,0.2);
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-family: var(--mono);
  transition: all 0.25s ease;
}
.card-tags span:hover {
  background: rgba(108,99,255,0.18);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108,99,255,0.2);
}

/* ===== Tilt Light ===== */
.tilt-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ===== Animated Glow Border on hover ===== */
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(108,99,255,0.25), 0 20px 60px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 50px rgba(108,99,255,0.55), 0 0 80px rgba(34,211,238,0.15), 0 20px 60px rgba(0,0,0,0.5); }
}

/* ===== Navbar ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s ease;
}
#navbar.scrolled {
  background: rgba(4, 4, 15, 0.85);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(108,99,255,0.09);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 7px 14px;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(108,99,255,0.18);
  -webkit-text-fill-color: var(--accent);
}
.nav-logo:hover {
  background: rgba(108,99,255,0.18);
  box-shadow: 0 0 38px rgba(108,99,255,0.38);
  transform: scale(1.05);
}
.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 9px;
  transition: all 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 0 20px var(--accent-glow);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 35px var(--accent-glow) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 100px 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-visual {
  position: relative;
  flex-shrink: 0;
  width: 340px; height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Hero entrance animations */
.hero-badge   { animation: hero-up   0.9s cubic-bezier(0.34,1.56,0.64,1) 0.3s both; }
.hero-content h1 { animation: hero-left 0.9s cubic-bezier(0.34,1.2,0.64,1)  0.5s both; }
.hero-title   { animation: hero-up   0.8s ease 0.75s both; }
.hero-sub     { animation: hero-up   0.8s ease 0.9s  both; }
.hero-actions { animation: hero-up   0.8s ease 1.05s both; }
.hero-stats   { animation: hero-up   0.8s ease 1.2s  both; }
.hero-visual  { animation: hero-right 1s cubic-bezier(0.34,1.2,0.64,1)  0.4s both; }

@keyframes hero-up    { from { opacity:0; transform: translateY(35px); }  to { opacity:1; transform: translateY(0); } }
@keyframes hero-left  { from { opacity:0; transform: translateX(-45px); } to { opacity:1; transform: translateX(0); } }
@keyframes hero-right { from { opacity:0; transform: translateX(45px); }  to { opacity:1; transform: translateX(0); } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.24);
  color: var(--green);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 26px;
  box-shadow: 0 0 28px rgba(34,197,94,0.12);
}
.hero-badge::before { content: '●'; font-size: 0.5rem; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero-content h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: -2px;
  color: var(--text);
}

.hero-title {
  font-size: 1.05rem;
  color: var(--accent-2);
  margin-bottom: 20px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  min-height: 1.6em;
}
/* Typing cursor */
.hero-title .cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--accent-2);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 44px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(108,99,255,0.6));
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.3px; }

/* ===== Avatar ===== */
.avatar-ring {
  width: 230px; height: 230px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-cyan), var(--accent-pink), var(--accent-2), var(--accent));
  animation: none;
  box-shadow:
    0 0 60px var(--accent-glow),
    0 0 120px rgba(108,99,255,0.18),
    0 0 200px rgba(108,99,255,0.08);
  position: relative; z-index: 1;
}
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(108,99,255,0.22);
  animation: none;
}
.avatar-ring::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(34,211,238,0.14);
  animation: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.floating-tag {
  position: absolute;
  background: rgba(8,8,22,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108,99,255,0.22);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 9px 17px;
  border-radius: 13px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(108,99,255,0.12);
}
.tag-1 { top: 20px;  right: -30px; animation: float-tag 3.2s ease-in-out infinite; }
.tag-2 { bottom: 55px; right: -40px; animation: float-tag 3.2s ease-in-out infinite 1.1s; }
.tag-3 { bottom: 5px;  left: -20px; animation: float-tag 3.2s ease-in-out infinite 2.2s; }
@keyframes float-tag {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

/* ===== About ===== */
#about { background: linear-gradient(180deg, transparent, rgba(108,99,255,0.03) 50%, transparent); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 1rem; line-height: 1.85; }
.about-text strong { color: var(--text); }

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

.info-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}
.info-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-6px) scale(1.02);
  animation: glow-pulse 2s ease-in-out infinite;
}
.info-icon { font-size: 1.4rem; flex-shrink: 0; position: relative; z-index: 1; }
.info-card strong { display: block; font-size: 0.77rem; color: var(--text-muted); margin-bottom: 3px; position: relative; z-index: 1; }
.info-card span { font-size: 0.88rem; color: var(--text); position: relative; z-index: 1; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 38px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(108,99,255,0.2), transparent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(108,99,255,0.3);
}
.timeline-item { position: relative; margin-bottom: 44px; }
.timeline-dot {
  position: absolute;
  left: -31px; top: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 2px solid var(--bg);
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 1;
}
.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(108,99,255,0.35);
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}
.timeline-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.35s ease, border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.timeline-card:hover {
  border-color: var(--border-hi);
  transform: translateX(8px) translateY(-3px);
  animation: glow-pulse 2s ease-in-out infinite;
}
.timeline-card:hover::before { opacity: 1; }
.timeline-card.current {
  border-color: rgba(108,99,255,0.32);
  box-shadow: 0 0 40px rgba(108,99,255,0.08);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.card-header h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.role-type { font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }
.company { color: var(--accent-2); font-size: 0.88rem; margin-bottom: 3px; font-weight: 500; }
.location-date { color: var(--text-muted); font-size: 0.8rem; font-family: var(--mono); }
.card-bullets { list-style: none; padding: 0; }
.card-bullets li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 9px;
  line-height: 1.65;
}
.card-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
  -webkit-text-fill-color: var(--accent);
}

/* ===== Projects ===== */
#projects { background: linear-gradient(180deg, transparent, rgba(34,211,238,0.02) 50%, transparent); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s;
}
.project-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.07), rgba(34,211,238,0.03), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.project-card:hover {
  border-color: var(--border-hi);
  animation: glow-pulse 2s ease-in-out infinite;
}
.project-card:hover::before { opacity: 1; }

.project-icon { font-size: 2.8rem; margin-bottom: 18px; display: block; position: relative; z-index: 1; filter: drop-shadow(0 0 14px rgba(108,99,255,0.45)); }
.project-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; line-height: 1.45; position: relative; z-index: 1; }
.project-card p { color: var(--text-muted); font-size: 0.87rem; line-height: 1.75; position: relative; z-index: 1; }
.project-card .card-tags { position: relative; z-index: 1; }

/* ===== Skills ===== */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.skill-group h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 22px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pills span {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 11px;
  font-size: 0.84rem;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}
.skill-pills span::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-pills span:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(108,99,255,0.28), 0 0 20px rgba(108,99,255,0.15);
}
.skill-pills span:hover::before { opacity: 1; }
.skill-pills.soft span:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: 0 10px 30px rgba(167,139,250,0.28);
}

/* ===== Certifications ===== */
#certifications { background: linear-gradient(180deg, transparent, rgba(108,99,255,0.03) 50%, transparent); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.cert-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 15px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.cert-card:hover {
  border-color: var(--border-hi);
  transform: translateX(8px) translateY(-3px);
  animation: glow-pulse 2s ease-in-out infinite;
}
.cert-icon { font-size: 1.9rem; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(108,99,255,0.4)); position: relative; z-index: 1; }
.cert-card h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 5px; line-height: 1.4; position: relative; z-index: 1; }
.cert-card p { font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono); position: relative; z-index: 1; }

.cert-featured {
  border-color: rgba(251, 146, 60, 0.5) !important;
  background: linear-gradient(135deg, rgba(251,146,60,0.07), rgba(239,68,68,0.05), var(--bg-card)) !important;
  grid-column: 1 / -1;
}
.cert-featured:hover { border-color: rgba(251,146,60,0.9) !important; box-shadow: 0 0 32px rgba(251,146,60,0.2) !important; }
.cert-featured h4 { font-size: 1rem; }
.cert-level {
  display: inline-block;
  background: rgba(251,146,60,0.15);
  color: #fb923c;
  border: 1px solid rgba(251,146,60,0.4);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 6px;
  font-family: var(--mono);
  font-weight: 600;
}
.cert-num { color: #fb923c; font-weight: 600; }
.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #fb923c;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: opacity 0.2s;
}
.cert-verify:hover { opacity: 0.75; text-decoration: underline; }

/* ===== Education ===== */
.edu-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 650px;
  transition: transform 0.35s ease, border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.edu-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-6px);
  animation: glow-pulse 2s ease-in-out infinite;
}
.edu-icon { font-size: 3.2rem; flex-shrink: 0; filter: drop-shadow(0 0 16px rgba(108,99,255,0.5)); position: relative; z-index: 1; }
.edu-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 7px; position: relative; z-index: 1; }

/* ===== Contact ===== */
#contact { background: linear-gradient(180deg, transparent, rgba(108,99,255,0.04) 50%, transparent); text-align: center; }
#contact .section-title { margin: 0 auto 16px; display: block; }
#contact .section-title::after { left: 50%; transform: translateX(-50%); width: 40%; }
.contact-sub { color: var(--text-muted); max-width: 520px; margin: 0 auto 52px; font-size: 1rem; line-height: 1.78; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 840px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 17px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.contact-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-8px) scale(1.02);
  animation: glow-pulse 2s ease-in-out infinite;
}
.contact-icon { font-size: 2rem; flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(108,99,255,0.4)); position: relative; z-index: 1; }
.contact-card strong { display: block; font-size: 0.77rem; color: var(--text-muted); margin-bottom: 3px; position: relative; z-index: 1; }
.contact-card span { font-size: 0.88rem; position: relative; z-index: 1; }
.contact-card-cv {
  border-color: rgba(34, 211, 238, 0.3) !important;
  background: rgba(34, 211, 238, 0.05) !important;
}
.contact-card-cv:hover {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.25) !important;
  animation: none !important;
}
.contact-card-cv .contact-icon { filter: drop-shadow(0 0 12px rgba(34,211,238,0.5)); }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--text-muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34,1.2,0.64,1);
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible    { opacity: 1; transform: translate(0,0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  #hero { flex-direction: column; text-align: center; padding: 120px 24px 80px; max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 260px; height: 260px; }
  .avatar-ring { width: 185px; height: 185px; }
  .tag-1 { right: -10px; } .tag-2 { right: -15px; } .tag-3 { left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .section-num { display: none; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(4, 4, 15, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .about-cards { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .timeline { padding-left: 28px; }
  section { padding: 72px 0; }
  #hero { padding: 110px 20px 70px; }
}

@media (hover: none) {
  * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}
