/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #F7F5FF;
  --bg-secondary: #EEEAFD;
  --bg-card: #FDFCFF;
  --bg-glass: rgba(250,248,255,0.75);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #6366F1;
  --accent2: #8B5CF6;
  --accent3: #A855F7;
  --gradient: linear-gradient(135deg, #6366F1, #8B5CF6, #A855F7);
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(99,102,241,0.06);
  --shadow-md: 0 4px 24px rgba(99,102,241,0.08);
  --shadow-lg: 0 8px 40px rgba(99,102,241,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1200px;
}

/* ===== RESET & BASE ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--gradient); border-radius: 2px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 600px; margin-bottom: 48px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  position: relative; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient); border-radius: 2px;
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}
.nav-cta {
  padding: 8px 20px; border-radius: var(--radius-full);
  background: var(--gradient); color: #fff;
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(168,85,247,0.05) 0%, transparent 40%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  font-size: 0.85rem; font-weight: 500; color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; margin-bottom: 8px;
}
.hero-role {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600; color: var(--text-secondary);
  margin-bottom: 24px; min-height: 2.2em;
}
.hero-role .typed-cursor {
  color: var(--accent); font-weight: 300;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 560px; margin-bottom: 36px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(99,102,241,0.4); }
.btn-secondary {
  background: var(--bg-card); color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-social { display: flex; gap: 16px; }
.hero-social a {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); transition: var(--transition);
}
.hero-social a:hover {
  color: var(--accent); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.hero-social a svg { width: 20px; height: 20px; }
.hero-float {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px; border-radius: 50%;
  background: var(--gradient); opacity: 0.06;
  filter: blur(80px); pointer-events: none;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.about-image-accent {
  position: absolute; inset: -12px; border-radius: 20px;
  background: var(--gradient); opacity: 0.08; z-index: -1;
}
.about-text p { color: var(--text-secondary); margin-bottom: 20px; font-size: 1.05rem; }
.about-focus { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.focus-tag {
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.12);
  color: var(--accent);
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 32px;
}
.stat-card {
  text-align: center; padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ===== EDUCATION ===== */
.education-timeline { position: relative; padding-left: 32px; margin-top: 48px; }
.education-timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.edu-item { position: relative; margin-bottom: 32px; }
.edu-item::before {
  content: ''; position: absolute; left: -29px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gradient); border: 3px solid var(--bg-primary);
}
.edu-item h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.edu-meta {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px;
}
.edu-item p { font-size: 0.95rem; color: var(--text-secondary); }

/* ===== EXPERIENCE ===== */
.experience-card {
  padding: 40px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  position: relative; overflow: hidden;
}
.experience-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--gradient);
}
.experience-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.exp-header h3 { font-size: 1.3rem; }
.exp-company { color: var(--accent); font-weight: 600; font-size: 1.05rem; }
.exp-meta { font-size: 0.9rem; color: var(--text-muted); }
.exp-points { display: flex; flex-direction: column; gap: 12px; }
.exp-points li {
  position: relative; padding-left: 20px;
  color: var(--text-secondary); font-size: 0.95rem;
}
.exp-points li::before {
  content: '▹'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ===== PROJECTS ===== */
.project-filters {
  display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient); color: #fff;
  border-color: transparent;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.featured { grid-column: span 2; }
.project-image {
  width: 100%; height: 220px; object-fit: cover;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.project-content { padding: 28px; }
.project-content h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project-desc { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tech-tag {
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(99,102,241,0.06);
  color: var(--accent);
}
.project-links { display: flex; gap: 12px; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: var(--transition);
}
.project-link:hover { color: var(--accent); border-color: var(--accent); }
.project-link svg { width: 16px; height: 16px; }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.skill-category {
  padding: 32px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition);
}
.skill-category:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.skill-category h3 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.skill-category h3 .cat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.08); font-size: 1.1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 500;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid transparent;
  transition: var(--transition);
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(99,102,241,0.04); }

/* ===== RESUME ===== */
.resume-section { background: var(--bg-secondary); }
.resume-container {
  max-width: 800px; margin: 0 auto; text-align: center;
}
.resume-embed {
  width: 100%; height: 1000px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  margin-bottom: 24px;
}
.resume-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CERTIFICATIONS ===== */
.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.cert-card {
  padding: 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); text-align: center;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.08); margin: 0 auto 16px;
  font-size: 1.4rem;
}
.cert-card h4 { font-size: 1rem; margin-bottom: 6px; }
.cert-card .cert-issuer { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.cert-card .cert-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.82rem; color: var(--accent); font-weight: 500;
}
.cert-card .cert-link:hover { text-decoration: underline; }

/* ===== ACHIEVEMENTS ===== */
.achievements-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-top: 48px;
}
.achievement-card {
  padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-align: center; transition: var(--transition);
}
.achievement-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.achievement-card .ach-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: var(--accent);
}
.achievement-card .ach-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.08); color: var(--accent); flex-shrink: 0;
}
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: 0.9rem; font-weight: 600; }
.contact-item p { font-size: 0.85rem; color: var(--text-secondary); }
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  background: var(--bg-card); color: var(--text-primary);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 6px; color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  opacity: 0; transform: translateY(20px);
  transition: var(--transition); z-index: 999;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.back-to-top svg { width: 22px; height: 22px; }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .project-card.featured { grid-column: span 1; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column; gap: 24px;
    background: var(--bg-card); padding: 80px 32px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { max-width: 300px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .hero-float { display: none; }
  .resume-embed { height: 600px; }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: var(--gradient);
  width: 0%; transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

/* ===== ANIMATED GRADIENT BG ===== */
body {
  background: linear-gradient(135deg, #F7F5FF 0%, #EDE9FE 25%, #F7F5FF 50%, #F0ECFF 75%, #F7F5FF 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== WAVE SECTION DIVIDERS ===== */
.wave-divider {
  position: relative; width: 100%; overflow: hidden;
  line-height: 0; margin-top: -1px;
}
.wave-divider svg { display: block; width: 100%; height: 60px; }
.wave-divider.flip { transform: rotate(180deg); margin-top: 0; margin-bottom: -1px; }

/* ===== ANIMATED GRADIENT BORDER on featured cards ===== */
.project-card.featured {
  position: relative; border: none;
  background: var(--bg-card);
}
.project-card.featured::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, #6366F1, #8B5CF6, #A855F7, #EC4899, #6366F1);
  background-size: 300% 300%;
  animation: borderGlow 4s ease infinite;
  z-index: -1;
}
.project-card.featured::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  z-index: -1;
}
@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== STAGGERED REVEAL ===== */
.reveal { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }

/* ===== GLOWING FOCUS TAGS ===== */
.focus-tag {
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.focus-tag:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 16px rgba(99,102,241,0.2), inset 0 0 8px rgba(99,102,241,0.05);
  transform: translateY(-2px);
}
.focus-tag::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.focus-tag:hover::after { transform: translateX(100%); }

/* ===== TECH TAGS GLOW ===== */
.tech-tag:hover {
  background: rgba(99,102,241,0.12);
  box-shadow: 0 0 12px rgba(99,102,241,0.15);
  transform: translateY(-1px);
}

/* ===== SKILL TAGS SHIMMER ===== */
.skill-tag { position: relative; overflow: hidden; }
.skill-tag::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.08), transparent);
  transition: left 0.5s ease;
}
.skill-tag:hover::after { left: 100%; }

/* ===== SECTION TITLE UNDERLINE ANIMATION ===== */
.section-title { position: relative; display: inline-block; }
.section-title::after {
  content: ''; display: block;
  width: 0; height: 3px; margin-top: 8px;
  background: var(--gradient); border-radius: 3px;
  transition: width 0.6s ease;
}
.section-title.active::after { width: 60px; }

/* ===== STAT CARD PULSE ON HOVER ===== */
.stat-card:hover .stat-number {
  animation: statPulse 0.5s ease;
}
@keyframes statPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ===== PROJECT IMAGE OVERLAY ===== */
.project-image { position: relative; overflow: hidden; }
.project-image i { z-index: 1; transition: transform 0.3s ease; }
.project-card:hover .project-image i { transform: scale(1.2) rotate(5deg); }

/* ===== BLOG SECTION ===== */
.blog-grid { display: grid; gap: 32px; }
.blog-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-image { height: 200px; display: flex; align-items: center; justify-content: center; }
.blog-content { padding: 32px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.blog-date { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.blog-tag {
  font-size: 0.75rem; padding: 3px 10px; border-radius: var(--radius-full);
  background: rgba(99,102,241,0.08); color: var(--accent); font-weight: 500;
}
.blog-content h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-primary); }
.blog-excerpt { color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.blog-body {
  display: none; color: var(--text-secondary); line-height: 1.8;
  padding-top: 20px; border-top: 1px solid var(--border); margin-bottom: 20px;
}
.blog-body.open { display: block; animation: fadeUp 0.4s ease; }
.blog-body h4 {
  font-size: 1.1rem; color: var(--text-primary); margin: 24px 0 10px;
  font-family: 'Space Grotesk', sans-serif;
}
.blog-body h4:first-child { margin-top: 0; }
.blog-body ul { padding-left: 20px; margin: 12px 0; }
.blog-body li { margin-bottom: 8px; }
.blog-body strong { color: var(--text-primary); }
.blog-toggle { margin-top: 8px; }
.blog-toggle.expanded i::before { content: "\f00d"; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hamburger visible */
  .hamburger { display: flex; z-index: 1001; }

  /* Hamburger → X animation */
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Mobile nav menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0; padding: 16px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; animation: fadeUp 0.3s ease; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }

  /* Responsive grids */
  .section { padding: 60px 0; }
  .about-grid { grid-template-columns: 1fr !important; }
  .about-image-wrap { max-width: 300px; margin: 0 auto; }
  .stats-row { flex-wrap: wrap; }
  .projects-grid { grid-template-columns: 1fr !important; }
  .skills-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .hero-content h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
}
