/* ============================================
   JATIN VOHRA PORTFOLIO — style.css
   Theme: Lovable-inspired Purple Gradient
   Fonts: Syne + Inter + JetBrains Mono
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ===================== TOKENS ===================== */
:root {
  --bg:         #0f0f1a;
  --bg2:        #13131f;
  --bg3:        #1c1c2e;
  --surface:    rgba(255,255,255,0.04);
  --surface2:   rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.14);
  --text:       #f0eeff;
  --text2:      #9d9aba;
  --text3:      #5a5878;
  --purple:     #a78bfa;
  --purple2:    #7c5cfc;
  --cyan:       #67e8f9;
  --glow-p:     rgba(167,139,250,0.25);
  --glow-p2:    rgba(124,92,252,0.2);
  --card:       rgba(15,15,26,0.88);
  --nav-bg:     rgba(15,15,26,0.72);
  --grad:       linear-gradient(135deg, #a78bfa 0%, #7c5cfc 50%, #67e8f9 100%);
  --grad2:      linear-gradient(135deg, #7c5cfc, #a78bfa);
  --blob1:      rgba(124,92,252,0.32);
  --blob2:      rgba(167,139,250,0.22);
  --blob3:      rgba(103,232,249,0.13);
  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  22px;
  --radius-xl:  30px;
}

[data-theme="light"] {
  --bg:         #faf8ff;
  --bg2:        #f2eeff;
  --bg3:        #e9e0ff;
  --surface:    rgba(124,92,252,0.05);
  --surface2:   rgba(124,92,252,0.09);
  --border:     rgba(124,92,252,0.12);
  --border2:    rgba(124,92,252,0.22);
  --text:       #1a0a3c;
  --text2:      #5c4a82;
  --text3:      #9b86c4;
  --purple:     #7c3aed;
  --purple2:    #6d28d9;
  --cyan:       #0891b2;
  --glow-p:     rgba(124,58,237,0.2);
  --glow-p2:    rgba(109,40,217,0.15);
  --card:       rgba(255,255,255,0.88);
  --nav-bg:     rgba(250,248,255,0.82);
  --grad:       linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #0891b2 100%);
  --grad2:      linear-gradient(135deg, #6d28d9, #7c3aed);
  --blob1:      rgba(167,139,250,0.28);
  --blob2:      rgba(124,58,237,0.18);
  --blob3:      rgba(8,145,178,0.1);
}

/* ===================== RESET ===================== */

/* ===================== PAGE LOADER ===================== */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo {
  font-family: 'Syne', sans-serif;
  font-size: 5rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 2rem; overflow: hidden;
}
.loader-j {
  display: inline-block;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: loaderJ 0.7s cubic-bezier(0.34,1.5,0.64,1) 0.1s both;
}
.loader-v {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: loaderV 0.7s cubic-bezier(0.34,1.5,0.64,1) 0.25s both;
}
.loader-dot {
  display: inline-block; color: #4ade80; -webkit-text-fill-color: #4ade80;
  animation: loaderDot 0.5s cubic-bezier(0.34,1.8,0.64,1) 0.45s both;
}
@keyframes loaderJ { from{opacity:0;transform:translateX(-60px) rotate(-8deg)} to{opacity:1;transform:translateX(0) rotate(0)} }
@keyframes loaderV { from{opacity:0;transform:translateX(60px) rotate(8deg)} to{opacity:1;transform:translateX(0) rotate(0)} }
@keyframes loaderDot { from{opacity:0;transform:scale(0) rotate(180deg)} to{opacity:1;transform:scale(1) rotate(0)} }
.loader-bar-wrap { width: 180px; height: 3px; background: var(--surface2); border-radius: 3px; margin: 0 auto 1rem; overflow: hidden; }
.loader-bar { height: 100%; background: linear-gradient(90deg, var(--purple2), var(--purple), var(--cyan)); border-radius: 3px; animation: loaderFill 1.2s ease 0.5s both; }
@keyframes loaderFill { from{width:0%} to{width:100%} }
.loader-text { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--text3); text-transform: uppercase; animation: fadeIn 0.4s ease 0.5s both; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ===================== THEME TOGGLE ANIMATION ===================== */
.theme-btn { position: relative; overflow: visible; }

/* Burst circle from button */
.theme-burst {
  position: fixed; z-index: 9997;
  width: 0; height: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: themeBurst 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes themeBurst {
  0%   { width:0; height:0; opacity:0.6; background:rgba(167,139,250,0.4); }
  100% { width:300px; height:300px; opacity:0; background:rgba(167,139,250,0); }
}

/* Sweep overlay */
.theme-sweep {
  position: fixed; inset: 0; z-index: 9996;
  pointer-events: none;
  animation: themeSweep 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes themeSweep {
  0%   { opacity:0; clip-path:circle(0% at 50% 50%); }
  40%  { opacity:0.12; }
  100% { opacity:0; clip-path:circle(100% at 50% 50%); }
}

/* Exploding particles */
.theme-particle {
  position: fixed; z-index: 9998;
  width: 6px; height: 6px; border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  animation: themeParticle 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes themeParticle {
  0%   { transform: translate(-50%,-50%) translate(0,0) scale(1); opacity:1; }
  100% { transform: translate(-50%,-50%) translate(var(--dx),var(--dy)) scale(0); opacity:0; }
}
.nav-logo { animation: navLogoIn 0.8s cubic-bezier(0.34,1.5,0.64,1) 1.8s both; }
@keyframes navLogoIn { from{opacity:0;transform:translateX(-20px) scale(0.8)} to{opacity:1;transform:translateX(0) scale(1)} }
.nav-links li { animation: navLinkIn 0.5s ease both; }
.nav-links li:nth-child(1){animation-delay:1.85s} .nav-links li:nth-child(2){animation-delay:1.95s}
.nav-links li:nth-child(3){animation-delay:2.05s} .nav-links li:nth-child(4){animation-delay:2.15s}
.nav-links li:nth-child(5){animation-delay:2.25s} .nav-links li:nth-child(6){animation-delay:2.35s}
@keyframes navLinkIn { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }


/* ===================== FONT AWESOME ICONS ===================== */
.afc-icon i {
  font-size: 1.9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-icon i {
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cert-icon i {
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.edu-icon i {
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fab-icon-open i,
.fab-icon-close i {
  font-size: 1.3rem;
  color: #fff;
}
.cl-icon i {
  font-size: 0.95rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-primary i,
.btn-ghost i {
  font-size: 0.85rem;
}
.nav-cta i { font-size: 0.78rem; }
.scroll-cue i {
  font-size: 0.8rem;
  color: var(--purple);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text);
  overflow-x: hidden; transition: background 0.4s, color 0.4s;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple2); border-radius: 4px; }

/* ===================== LAYOUT ===================== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
section { position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg2) 20%, var(--bg2) 80%, transparent); }

/* ===================== TYPOGRAPHY ===================== */
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--purple); letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 0.55rem; }
.section-desc { color: var(--text2); font-size: 0.95rem; line-height: 1.75; margin-top: 0.7rem; max-width: 480px; }
.section-header { margin-bottom: 3rem; }
.title-split { font-family: 'Syne', sans-serif; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.55rem; color: var(--text); }
.title-split .col { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.title-underline { width: 56px; height: 3px; background: var(--grad); border-radius: 2px; margin-bottom: 2rem; }

/* ===================== CANVAS & BLOBS ===================== */
#canvas-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.65; }
.blob { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(100px); animation: blobDrift 16s ease-in-out infinite; }
.blob-1 { width: 700px; height: 700px; background: var(--blob1); top: -200px; left: -180px; }
.blob-2 { width: 600px; height: 600px; background: var(--blob2); bottom: -150px; right: -150px; animation-delay: 5s; }
.blob-3 { width: 450px; height: 450px; background: var(--blob3); top: 40%; right: 10%; animation-delay: 10s; }
@keyframes blobDrift { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(28px,-28px) scale(1.07)} 66%{transform:translate(-22px,18px) scale(0.93)} }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== NAVBAR ===================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem; background: var(--nav-bg);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border); transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 30px rgba(100,60,220,0.1); }
.nav-logo { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text2); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.theme-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); border-radius: 50%; color: var(--text2); font-size: 1rem; transition: all 0.22s; }
.theme-btn:hover { border-color: var(--purple); color: var(--purple); }
.nav-cta { font-size: 0.85rem; font-weight: 600; background: var(--grad2); color: #fff; padding: 0.48rem 1.25rem; border-radius: 100px; transition: all 0.22s; display: none; }
@media(min-width:768px){ .nav-cta { display: inline-block; } }
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 22px var(--glow-p2); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span { display: block; width: 21px; height: 2px; background: var(--text2); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)} .hamburger.open span:nth-child(2){opacity:0} .hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
@media(max-width:767px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 1.5rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); padding: 1.75rem 2.5rem; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
}

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  position: relative; z-index: 1; overflow: hidden;
}

/* Split layout — left text, right photo */
.hero-split {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
}

@media(max-width: 820px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-photo-wrap { order: -1; margin: 0 auto; }
  .hero-role { justify-content: center; }
  .hero-btns { justify-content: center; }
}

/* Left content */
.hero-content { position: relative; z-index: 1; }

.hero-hello { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.25em; color: var(--text3); text-transform: uppercase; margin-bottom: 1rem; animation: fadeUp 0.7s ease 0.1s both; display: block; }
.hero-name { font-family: 'Syne', sans-serif; font-size: clamp(3.2rem, 8vw, 6rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 1.1rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: fadeUp 0.7s ease 0.22s both; }
.hero-role { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 1rem; font-weight: 400; color: var(--text2); margin-bottom: 1.3rem; animation: fadeUp 0.7s ease 0.38s both; }
.role-sep { color: var(--text3); }
.hero-desc { font-size: 1rem; color: var(--text2); max-width: 480px; margin: 0 0 2.4rem; line-height: 1.78; animation: fadeUp 0.7s ease 0.52s both; }
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; animation: fadeUp 0.7s ease 0.66s both; }

/* ---- Profile Photo ---- */
.hero-photo-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  animation: fadeUp 0.9s ease 0.5s both;
}

/* Outer rotating ring */
.hero-photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, var(--purple), var(--cyan), var(--purple2)) border-box;
  animation: ringRotate 6s linear infinite;
}
.hero-photo-ring-2 {
  inset: -26px;
  border-width: 1.5px;
  opacity: 0.4;
  animation: ringRotate 10s linear infinite reverse;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Glow behind photo */
.hero-photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,0.35) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Photo frame */
.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(167,139,250,0.4);
  box-shadow:
    0 0 0 1px rgba(124,92,252,0.2),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(124,92,252,0.1);
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-photo-frame:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--purple), 0 28px 70px rgba(0,0,0,0.55);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.95) contrast(1.05);
  transition: filter 0.4s ease;
}
.hero-photo-frame:hover .hero-photo { filter: brightness(1.05) contrast(1.08); }

/* Small floating dots around photo */
.hero-photo-wrap::before,
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--purple);
  animation: orbitDot 4s ease-in-out infinite;
}
.hero-photo-wrap::before { width: 10px; height: 10px; top: 12%; right: -4%; opacity: 0.7; }
.hero-photo-wrap::after  { width: 7px;  height: 7px;  bottom: 18%; left: -3%; background: var(--cyan); opacity: 0.6; animation-delay: 2s; }
@keyframes orbitDot {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.btn-primary { display: inline-flex; align-items: center; gap: 0.45rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; background: var(--grad2); color: #fff; padding: 0.78rem 1.7rem; border-radius: 100px; border: none; transition: all 0.22s; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 10px 28px var(--glow-p2); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.45rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--text); background: var(--surface2); border: 1px solid var(--border2); padding: 0.78rem 1.7rem; border-radius: 100px; transition: all 0.22s; }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.18em; animation: scrollBounce 2.5s ease-in-out infinite; }
.scroll-line { width: 1px; height: 38px; background: linear-gradient(to bottom, var(--purple), transparent); }
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

/* ===================== ABOUT ===================== */
#about { padding: 8rem 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
@media(max-width:768px){ .about-grid { grid-template-columns: 1fr; gap: 3rem; } }
.about-bio p { color: var(--text2); font-size: 0.95rem; line-height: 1.82; margin-bottom: 1rem; }
.about-bio strong { color: var(--text); }
.about-bio em { color: var(--purple); font-style: normal; }
/* About section — text left, cards right, vertically centered */
#about { padding: 8rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media(max-width:768px){ .about-grid { grid-template-columns: 1fr; gap: 3rem; } }

.about-left { display: flex; flex-direction: column; }

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-self: center;
}
.about-feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  text-align: center;
  transition: all 0.28s;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.about-feature-card:hover {
  border-color: rgba(167,139,250,0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  background: rgba(124,92,252,0.06);
}
.afc-icon { font-size: 2rem; margin-bottom: 0.7rem; display: block; line-height: 1; }
.afc-title { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0.28rem; }
.afc-sub { font-size: 0.73rem; color: var(--text2); line-height: 1.45; }

/* ===================== SKILLS ===================== */
#skills { padding: 8rem 0; }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.1rem; }
@media(max-width:640px){ .skills-grid { grid-template-columns: 1fr; } }
.skill-card { background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem; transition: all 0.28s; }
.skill-card:hover { border-color: rgba(167,139,250,0.3); transform: translateY(-4px); box-shadow: 0 18px 48px rgba(0,0,0,0.2); }
.skill-card-header { display: flex; align-items: center; gap: 0.78rem; margin-bottom: 1.1rem; }
.skill-icon { width: 35px; height: 35px; background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(167,139,250,0.1)); border: 1px solid rgba(167,139,250,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.skill-card h3 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 0.71rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; padding: 0.24rem 0.76rem; color: var(--text2); transition: all 0.2s; cursor: default; }
.tag:hover { border-color: rgba(167,139,250,0.35); color: var(--purple); background: rgba(167,139,250,0.07); }

/* ===================== PROJECTS ===================== */
#projects { padding: 8rem 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1.2rem; }
.project-card { background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; position: relative; overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.project-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(124,92,252,0.06), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(167,139,250,0.3); box-shadow: 0 22px 55px rgba(0,0,0,0.22); }
.project-card:hover::before { opacity: 1; }
.project-num { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--purple); letter-spacing: 0.15em; margin-bottom: 0.85rem; position: relative; z-index: 1; }
.project-arrow { position: absolute; top: 1.4rem; right: 1.4rem; width: 33px; height: 33px; background: var(--surface2); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 0.88rem; transition: all 0.25s; }
.project-card:hover .project-arrow { background: var(--purple2); border-color: var(--purple2); color: #fff; transform: translate(2px,-2px); }
.project-title { font-family: 'Syne', sans-serif; font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; position: relative; z-index: 1; }
.project-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.68; margin-bottom: 1.1rem; flex: 1; position: relative; z-index: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.stack-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; background: rgba(124,92,252,0.1); border: 1px solid rgba(124,92,252,0.22); color: var(--purple); border-radius: 6px; padding: 0.18rem 0.55rem; }
.project-features { position: relative; z-index: 1; }
.project-features li { font-size: 0.82rem; color: var(--text2); padding-left: 1.1rem; position: relative; margin-bottom: 0.22rem; line-height: 1.55; }
.project-features li::before { content: '→'; position: absolute; left: 0; color: var(--purple); font-size: 0.66rem; top: 0.22rem; }
.project-links { margin-top: 1.05rem; padding-top: 0.85rem; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.project-link { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text3); transition: color 0.2s; }
.project-link:hover { color: var(--purple); }

/* ===================== EXPERIENCE ===================== */
#experience { padding: 8rem 0; }
.timeline { position: relative; padding-left: 1.7rem; border-left: 1px solid rgba(124,92,252,0.2); }
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -2.15rem; top: 0.45rem; width: 13px; height: 13px; border-radius: 50%; background: var(--grad2); box-shadow: 0 0 14px var(--glow-p); }
.exp-card { background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; transition: all 0.28s; }
.exp-card:hover { border-color: rgba(167,139,250,0.28); transform: translateX(6px); }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 0.45rem; }
.exp-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
.exp-company { color: var(--purple); font-size: 0.84rem; font-weight: 500; margin-bottom: 0.85rem; }
.exp-date { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--purple); background: rgba(124,92,252,0.1); border: 1px solid rgba(124,92,252,0.2); padding: 0.22rem 0.78rem; border-radius: 100px; white-space: nowrap; }
.exp-list li { font-size: 0.84rem; color: var(--text2); padding-left: 1.15rem; position: relative; margin-bottom: 0.35rem; line-height: 1.62; }
.exp-list li::before { content: '▸'; position: absolute; left: 0; color: var(--purple); font-size: 0.66rem; top: 0.3rem; }

/* ===================== CERTIFICATIONS ===================== */
#certifications { padding: 8rem 0; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1.05rem; }
.cert-card { background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.34,1.2,0.64,1); cursor: pointer; }
.cert-card:hover { border-color: rgba(167,139,250,0.45); transform: translateY(-6px) scale(1.02); box-shadow: 0 22px 55px rgba(124,58,237,0.2); }
.cert-card:hover .cert-badge { opacity: 1; transform: translateY(0); }
.cert-card:hover .cert-click-hint { opacity: 1; }
.cert-badge { position: absolute; top: 0.9rem; right: 0.9rem; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; background: linear-gradient(135deg, var(--purple2), var(--purple)); color: #fff; padding: 0.18rem 0.55rem; border-radius: 100px; opacity: 0; transform: translateY(-4px); transition: all 0.25s ease; }
.cert-icon { font-size: 1.85rem; margin-bottom: 0.82rem; display: block; line-height: 1; }
.cert-issuer { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--purple); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.28rem; }
.cert-name { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 0.5rem; }
.cert-click-hint { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text3); opacity: 0; transition: opacity 0.2s; }

/* ---- CERT INLINE VIEWER ---- */
.cert-inline-overlay {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.cert-inline-overlay.open { opacity: 1; pointer-events: all; }

.cert-inline-box {
  width: 100%; max-width: 860px;
  height: 88vh;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(28px);
  transition: transform 0.45s cubic-bezier(0.34,1.3,0.64,1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.65);
}
.cert-inline-overlay.open .cert-inline-box { transform: scale(1) translateY(0); }

.cert-inline-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--bg3); flex-shrink: 0; gap: 1rem;
}
.cert-inline-info { flex: 1; min-width: 0; }
.cert-inline-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 0.2rem;
}
.cert-inline-title {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cert-inline-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.cert-inline-dl {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  background: linear-gradient(135deg, var(--purple2), var(--purple));
  color: #fff; border: none; border-radius: 8px;
  padding: 0.45rem 1.1rem; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.cert-inline-dl:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cert-inline-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.cert-inline-close:hover { background: rgba(240,113,108,0.15); border-color: #f0716c; color: #f0716c; }

.cert-inline-body {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #111118;
}
.cert-inline-body embed,
.cert-inline-body iframe,
.cert-inline-body img { width:100%; height:100%; border:none; display:block; }
.cert-inline-body img { object-fit: contain; }

.cert-inline-loading {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  color: var(--text2); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
}
.cert-spin {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border2); border-top-color: var(--purple);
  animation: certSpinAnim 0.8s linear infinite;
}
@keyframes certSpinAnim { to { transform: rotate(360deg); } }

.cert-fallback {
  text-align: center; padding: 3rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.cert-fall-icon { font-size: 4rem; }
.cert-fall-name { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.cert-fall-issuer { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--purple); letter-spacing: 0.12em; text-transform: uppercase; }
.cert-fall-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.7; max-width: 420px; margin: 0.5rem auto; }
.cert-fall-hint { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text3); margin-top: 0.5rem; }
.cert-fall-hint code { color: var(--purple); background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 0.1rem 0.4rem; }
.cert-verified { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); border-radius: 100px; padding: 0.3rem 0.85rem; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: #4ade80; }

/* ===================== EDUCATION ===================== */
#education { padding: 8rem 0; }
.edu-list { display: flex; flex-direction: column; gap: 0.95rem; }
.edu-card { background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.45rem 1.7rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; transition: all 0.28s; }
.edu-card:hover { border-color: rgba(167,139,250,0.28); transform: translateX(6px); }
.edu-icon { font-size: 1.45rem; width: 46px; height: 46px; background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(167,139,250,0.1)); border: 1px solid rgba(167,139,250,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.edu-info { flex: 1; min-width: 150px; }
.edu-school { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
.edu-degree { font-size: 0.8rem; color: var(--text2); }
.edu-score-wrap { text-align: right; flex-shrink: 0; }
.edu-score { font-family: 'Syne', sans-serif; font-size: 1.12rem; font-weight: 800; color: var(--purple); display: block; }
.edu-cgpa { font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; color: var(--text3); margin-top: 0.1rem; display: block; }
.edu-year { font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; color: var(--text3); margin-top: 0.1rem; display: block; }

/* ===================== GITHUB ===================== */
#github { padding: 8rem 0; }
.github-card { background: var(--card); backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.4rem; text-align: center; }
.github-sub { color: var(--text2); font-size: 0.86rem; margin-bottom: 1.8rem; }
.github-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.05rem; margin-bottom: 1.8rem; }
@media(max-width:580px){ .github-stats { grid-template-columns: repeat(2,1fr); } }
.gh-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 0.85rem; transition: all 0.25s; }
.gh-stat:hover { border-color: rgba(167,139,250,0.3); transform: translateY(-3px); }
.gh-num { font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800; display: block; margin-bottom: 0.3rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gh-label { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--text3); letter-spacing: 0.05em; }
.github-chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; margin-bottom: 1.5rem; overflow: hidden; }
.github-chart img { width: 100%; border-radius: 6px; opacity: 0.82; }
.github-cta { display: inline-flex; align-items: center; gap: 0.42rem; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--purple); border: 1px solid rgba(124,92,252,0.28); padding: 0.58rem 1.5rem; border-radius: 100px; transition: all 0.22s; }
.github-cta:hover { background: rgba(124,92,252,0.1); transform: translateY(-2px); border-color: var(--purple); }

/* ===================== FLOATING CHATBOT ===================== */
.chat-fab { position: fixed; bottom: 2rem; right: 2rem; z-index: 1100; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--purple2), var(--purple)); border: none; box-shadow: 0 8px 28px var(--glow-p); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s; }
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 12px 36px var(--glow-p); }
.chat-fab:active { transform: scale(0.96); }
.fab-icon-open, .fab-icon-close { position: absolute; font-size: 1.55rem; transition: opacity 0.25s, transform 0.25s; line-height: 1; }
.fab-icon-close { opacity: 0; transform: rotate(-90deg); font-size: 1.2rem; color: #fff; font-style: normal; }
.chat-fab.open .fab-icon-open { opacity: 0; transform: rotate(90deg); }
.chat-fab.open .fab-icon-close { opacity: 1; transform: rotate(0deg); }
.fab-badge { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; background: #ef4444; border: 2px solid var(--bg); border-radius: 50%; font-size: 0.6rem; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) 1.5s both; transition: opacity 0.2s, transform 0.2s; }
.chat-fab.open .fab-badge { opacity: 0; transform: scale(0); }
@keyframes badgePop { from{transform:scale(0)} to{transform:scale(1)} }
.chat-popup { position: fixed; bottom: 5.5rem; right: 2rem; z-index: 1099; width: 340px; max-height: 520px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); border: 1px solid var(--border2); opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; transform-origin: bottom right; transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.chat-popup.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.chat-popup-inner { display: flex; flex-direction: column; height: 100%; background: var(--card); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.chat-popup-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.1rem; background: linear-gradient(135deg, var(--purple2), var(--purple)); flex-shrink: 0; }
.chat-popup-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.82rem; color: #fff; flex-shrink: 0; }
.chat-popup-info { flex: 1; }
.chat-popup-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; color: #fff; }
.chat-popup-status { font-size: 0.65rem; color: rgba(255,255,255,0.75); margin-top: 0.06rem; display: flex; align-items: center; gap: 0.35rem; }
.online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: onlinePulse 2s ease-in-out infinite; }
@keyframes onlinePulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.chat-popup-close { background: rgba(255,255,255,0.15); border: none; border-radius: 50%; width: 28px; height: 28px; color: #fff; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; cursor: pointer; }
.chat-popup-close:hover { background: rgba(255,255,255,0.28); }
.chat-messages { height: 240px; min-height: 240px; max-height: 240px; overflow-y: scroll; overflow-x: hidden; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--purple2); border-radius: 3px; }
.bubble { max-width: 85%; padding: 0.62rem 0.9rem; font-size: 0.82rem; line-height: 1.6; white-space: pre-wrap; animation: fadeUp 0.3s ease; }
.bubble.bot { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px 12px 12px 3px; color: var(--text); align-self: flex-start; }
.bubble.user { background: linear-gradient(135deg, var(--purple2), var(--purple)); color: #fff; font-weight: 500; border-radius: 12px 12px 3px 12px; align-self: flex-end; }
.typing-bubble { display: flex; gap: 4px; align-items: center; padding: 0.62rem 0.9rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px 12px 12px 3px; align-self: flex-start; }
.typing-bubble span { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); animation: typeDot 1.2s ease-in-out infinite; }
.typing-bubble span:nth-child(2){animation-delay:0.18s} .typing-bubble span:nth-child(3){animation-delay:0.36s}
@keyframes typeDot { 0%,60%,100%{transform:translateY(0);opacity:0.4} 30%{transform:translateY(-4px);opacity:1} }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.38rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.suggest-btn { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; padding: 0.24rem 0.7rem; color: var(--text2); transition: all 0.18s; cursor: pointer; }
.suggest-btn:hover { border-color: var(--purple); color: var(--purple); }
.chat-input-row { display: flex; gap: 0.5rem; padding: 0.75rem 0.9rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 0.58rem 0.85rem; color: var(--text); font-family: inherit; font-size: 0.82rem; outline: none; transition: border-color 0.2s; }
.chat-input:focus { border-color: var(--purple2); }
.chat-send { background: linear-gradient(135deg, var(--purple2), var(--purple)); border: none; border-radius: 9px; padding: 0.58rem 1rem; color: #fff; font-weight: 700; font-size: 1rem; transition: all 0.2s; cursor: pointer; }
.chat-send:hover { transform: scale(1.07); box-shadow: 0 5px 18px var(--glow-p); }
@media(max-width:480px){ .chat-popup{width:calc(100vw - 2rem);right:1rem;bottom:5rem} .chat-fab{bottom:1.2rem;right:1.2rem} }

/* ===================== BLOG ===================== */
#blog { padding: 8rem 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.15rem; }
.blog-card { background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.65rem; position: relative; transition: all 0.3s cubic-bezier(0.34,1.2,0.64,1); display: flex; flex-direction: column; gap: 0.6rem; cursor: pointer; }
.blog-card:hover { border-color: rgba(167,139,250,0.38); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.28); }
.blog-card:hover .blog-read-btn { color: var(--purple); }
.blog-card-top { display: flex; justify-content: space-between; align-items: center; }
.blog-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--purple); letter-spacing: 0.1em; text-transform: uppercase; }
.blog-read { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--text3); background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; padding: 0.15rem 0.55rem; }
.blog-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.38; }
.blog-excerpt { font-size: 0.81rem; color: var(--text2); line-height: 1.65; flex: 1; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.7rem; border-top: 1px solid var(--border); margin-top: 0.2rem; }
.blog-date { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--text3); }
.blog-read-btn { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--text2); transition: color 0.2s; }
.blog-modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.blog-modal-overlay.open { opacity: 1; pointer-events: all; }
.blog-modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 24px; width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto; position: relative; transform: translateY(40px) scale(0.96); transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1); scrollbar-width: thin; scrollbar-color: var(--purple2) transparent; }
.blog-modal-overlay.open .blog-modal { transform: translateY(0) scale(1); }
.blog-modal::-webkit-scrollbar { width: 3px; }
.blog-modal::-webkit-scrollbar-thumb { background: var(--purple2); border-radius: 3px; }
.blog-modal-close { position: sticky; top: 1rem; float: right; margin: 1rem 1rem 0 0; width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border2); color: var(--text); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; z-index: 10; }
.blog-modal-close:hover { background: rgba(167,139,250,0.15); border-color: var(--purple); color: var(--purple); }
.blog-modal-content { padding: 2rem 2.5rem 2.5rem; clear: both; }
.article-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--purple); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.article-title { font-family: 'Syne', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 1rem; letter-spacing: -0.02em; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.article-meta span { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--text3); }
.article-body h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 1.8rem 0 0.7rem; letter-spacing: -0.015em; }
.article-body h3 { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--purple); margin: 1.4rem 0 0.5rem; }
.article-body p { font-size: 0.93rem; color: var(--text2); line-height: 1.85; margin-bottom: 1rem; }
.article-body ul { margin: 0.5rem 0 1rem 1.2rem; }
.article-body ul li { font-size: 0.92rem; color: var(--text2); line-height: 1.75; margin-bottom: 0.4rem; position: relative; padding-left: 0.5rem; }
.article-body ul li::marker { color: var(--purple); }
.article-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 0.12rem 0.45rem; color: var(--cyan); }
.article-body pre { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1rem 0 1.3rem; }
.article-body pre code { background: none; border: none; padding: 0; font-size: 0.82rem; color: var(--cyan); line-height: 1.7; }
.article-callout { background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(103,232,249,0.05)); border: 1px solid rgba(167,139,250,0.2); border-left: 3px solid var(--purple); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: 0.9rem; color: var(--text2); line-height: 1.7; }
.article-divider { border: none; height: 1px; background: var(--border); margin: 1.5rem 0; }
@media(max-width:600px){ .blog-modal-content{padding:1.25rem 1.25rem 2rem} .article-title{font-size:1.3rem} }

/* ===================== CONTACT ===================== */
#contact { padding: 8rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-info h3 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 0.72rem; }
.contact-info p { color: var(--text2); font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.7rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.68rem; }
.contact-link { display: flex; align-items: center; gap: 0.88rem; font-size: 0.87rem; color: var(--text2); transition: color 0.2s; }
.contact-link:hover { color: var(--purple); }
.cl-icon { width: 40px; height: 40px; background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(167,139,250,0.08)); border: 1px solid rgba(124,92,252,0.18); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; flex-shrink: 0; transition: all 0.2s; }
.contact-link:hover .cl-icon { border-color: var(--purple); background: rgba(124,92,252,0.18); }
.contact-form-wrap { background: var(--card); backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; color: var(--text3); letter-spacing: 0.14em; margin-bottom: 0.42rem; }
.form-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.92rem; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.87rem; outline: none; transition: border-color 0.2s, background 0.2s; }
.form-input:focus { border-color: var(--purple2); background: var(--surface2); }
.form-textarea { resize: vertical; min-height: 112px; }
.form-submit { width: 100%; background: var(--grad2); color: #fff; border: none; border-radius: var(--radius-sm); padding: 0.85rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.93rem; transition: all 0.22s; cursor: pointer; }
.form-submit:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow-p2); }
.form-submit.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.form-success {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.85rem; padding: 2.5rem 1.5rem; text-align: center;
}
.form-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(34,197,94,0.12); border: 2px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #4ade80;
  animation: successPop 0.5s cubic-bezier(0.34,1.6,0.64,1) both;
}
@keyframes successPop { from{transform:scale(0)} to{transform:scale(1)} }
.form-success p { color: var(--text2); font-size: 0.92rem; line-height: 1.6; }

/* ===================== FOOTER ===================== */
footer { padding: 2.5rem 2rem; border-top: 1px solid var(--border); text-align: center; position: relative; z-index: 1; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.75rem; margin-bottom: 1rem; }
.footer-links a { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--text3); letter-spacing: 0.06em; transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text3); }
.footer-copy span { color: var(--purple); }

/* ===================== MOBILE ===================== */
@media(max-width:480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 290px; justify-content: center; }
  .about-cards-grid { grid-template-columns: 1fr 1fr; }
  .github-stats { grid-template-columns: repeat(2,1fr); }
}
