/* ═══════════════════════════════════════════
   DEEPAK KUMAR — PORTFOLIO CSS
   Premium Dark Theme with Neon Accents
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .hero-orb { display: none; }
  .noise-overlay { display: none; }
  .hero-bg-grid { display: none; }
  .fab-pulse { display: none; }
  .hero-img-frame { animation: none !important; }
  .img-badge { animation: none !important; }
  .scroll-line { animation: none !important; }
}

* {
  will-change: auto;
}

html {
  scroll-behavior: smooth;
}
:root {
  --bg-primary: #05060f;
  --bg-secondary: #0c0e1e;
  --bg-card: #111328;
  --bg-card-hover: #161932;

  --accent-violet: #7B5CF5;
  --accent-cyan: #22D4FD;
  --accent-pink: #F72585;
  --accent-lime: #39FF14;
  --accent-amber: #FFB800;

  --gradient-hero: linear-gradient(135deg, #7B5CF5 0%, #22D4FD 50%, #F72585 100%);
  --gradient-card: linear-gradient(135deg, rgba(123,92,245,0.15), rgba(34,212,253,0.08));
  --gradient-btn: linear-gradient(135deg, #7B5CF5, #22D4FD);

  --text-primary: #F0F2FF;
  --text-secondary: #8B90B8;
  --text-muted: #5A5F80;

  --border-subtle: rgba(123,92,245,0.18);
  --border-card: rgba(255,255,255,0.07);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-glow: 0 0 40px rgba(123,92,245,0.25);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.5);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-violet); color: #fff; }

/* ─── CUSTOM CURSOR (desktop only) ─── */
@media (hover: hover) {
  .cursor-dot {
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform 0.1s;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(123,92,245,0.6);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
  }
  body { cursor: none; }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-violet); border-radius: 4px; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(5,6,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  transition: var(--transition);
}
.nav.scrolled { padding: 0.8rem 3rem; background: rgba(5,6,15,0.97); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dot { color: var(--accent-cyan); -webkit-text-fill-color: var(--accent-cyan); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-btn);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-resume-btn {
  padding: 0.55rem 1.4rem;
  background: var(--gradient-btn);
  border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(123,92,245,0.35);
}
.nav-resume-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(123,92,245,0.5); }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; position: relative; overflow: hidden; }

/* ─── SECTION LABELS ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before { content: '//'; opacity: 0.5; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.section-title em { font-style: italic; color: var(--accent-violet); }
.section-sub { font-size: 1rem; color: var(--text-secondary); margin-bottom: 3rem; }
.text-center { text-align: center; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient-btn);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  border-radius: 50px; border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(123,92,245,0.35);
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(123,92,245,0.55); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-primary); font-weight: 600; font-size: 0.95rem;
  border-radius: 50px;
  border: 1.5px solid var(--border-subtle);
  cursor: pointer; transition: var(--transition);
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover { border-color: var(--accent-violet); background: rgba(123,92,245,0.1); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.fade-in-right { opacity: 0; transform: translateX(40px); animation: fadeInRight 0.9s 0.3s forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { to { opacity: 1; transform: translateX(0); } }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6rem 3rem 4rem;
  position: relative; overflow: hidden;
  gap: 3rem;
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,92,245,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,92,245,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none; will-change: transform;
  animation: orbFloat 10s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.orb1 { width: 400px; height: 400px; background: rgba(123,92,245,0.18); top: -80px; left: -80px; animation-delay: 0s; }
.orb2 { width: 300px; height: 300px; background: rgba(34,212,253,0.12); top: 30%; right: 5%; animation-delay: 3s; }
.orb3 { width: 250px; height: 250px; background: rgba(247,37,133,0.09); bottom: 10%; left: 30%; animation-delay: 6s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(15px,-20px) scale(1.04); }
}

.noise-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content { flex: 1; max-width: 600px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--accent-lime);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s forwards;
}
.badge-dot {
  width: 7px; height: 7px; background: var(--accent-lime);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(57,255,20,0.4); } 70% { box-shadow: 0 0 0 8px rgba(57,255,20,0); } }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800; line-height: 1.05;
  display: flex; flex-direction: column;
  margin-bottom: 1rem;
}
.hero-name .line-reveal {
  display: inline-block;
  background: var(--gradient-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0; transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
}
.hero-name .delay-1 { animation-delay: 0.2s; }

.hero-role {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: clamp(1rem, 3vw, 1.2rem); color: var(--text-secondary);
  margin-bottom: 1.2rem;
  opacity: 0; animation: fadeInUp 0.8s 0.4s forwards;
  flex-wrap: wrap;
}
.role-prefix { color: var(--text-muted); }
.typed-text { color: var(--accent-cyan); font-weight: 600; }
.cursor-blink { color: var(--accent-cyan); animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  color: var(--text-secondary); font-size: 1rem; line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  background: var(--gradient-btn);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.stat-divider { width: 1px; height: 36px; background: var(--border-card); }

/* ── HERO IMAGE ── */
.hero-image-wrap {
  flex: 0 0 360px; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-img-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(ellipse at center, rgba(123,92,245,0.28), rgba(34,212,253,0.1) 50%, transparent 70%);
  animation: orbFloat 7s ease-in-out infinite;
  border-radius: 50%;
}
.hero-img-frame {
  position: relative;
  width: 320px; height: 380px;
  border-radius: 42% 58% 54% 46% / 46% 46% 54% 54%;
  border: 2px solid rgba(123,92,245,0.45);
  overflow: hidden;
  background: var(--gradient-card);
  box-shadow:
    0 0 0 8px rgba(123,92,245,0.07),
    0 0 0 18px rgba(34,212,253,0.04),
    0 25px 70px rgba(123,92,245,0.38),
    0 50px 100px rgba(0,0,0,0.55);
  animation: morphShape 9s ease-in-out infinite;
  will-change: border-radius;
}
@keyframes morphShape {
  0%,100% { border-radius: 42% 58% 54% 46% / 46% 46% 54% 54%; }
  25%      { border-radius: 55% 45% 42% 58% / 55% 44% 56% 45%; }
  50%      { border-radius: 46% 54% 60% 40% / 50% 60% 40% 50%; }
  75%      { border-radius: 60% 40% 46% 54% / 40% 55% 45% 60%; }
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.03);
}
.hero-img-placeholder {
  display: none; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 4rem; font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.img-badge {
  position: absolute;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(12,14,30,0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 50px; font-size: 0.76rem; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite;
}
.img-badge-1 { top: 24px; right: -24px; animation-delay: 0s; }
.img-badge-2 { bottom: 110px; left: -36px; animation-delay: 1.5s; }
.img-badge-3 { bottom: 28px; right: -16px; animation-delay: 3s; }
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 3rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted); letter-spacing: 0.15em;
}
.scroll-line {
  width: 2px; height: 44px;
  background: linear-gradient(to bottom, var(--accent-violet), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about { background: var(--bg-secondary); }
.about-parallax-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(123,92,245,0.07), transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(34,212,253,0.05), transparent 60%);
  pointer-events: none;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; margin-top: 1rem;
}
.about-text p { color: var(--text-secondary); margin-bottom: 1.1rem; font-size: 0.97rem; }
.about-highlights { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.8rem; }
.highlight-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.highlight-item:hover { border-color: var(--border-subtle); background: rgba(123,92,245,0.07); }
.h-icon { font-size: 1.3rem; }
.highlight-item strong { font-size: 0.88rem; display: block; margin-bottom: 0.15rem; }
.highlight-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.about-visual { display: flex; justify-content: center; align-items: center; }
.about-card-stack { position: relative; width: 300px; height: 380px; }
.about-card { position: absolute; width: 100%; border-radius: var(--radius-lg); }
.card-back { background: rgba(123,92,245,0.1); border: 1px solid rgba(123,92,245,0.18); height: 340px; top: 28px; left: 18px; transform: rotate(4deg); }
.card-mid { background: rgba(34,212,253,0.06); border: 1px solid rgba(34,212,253,0.13); height: 340px; top: 14px; left: 9px; transform: rotate(2deg); }
.card-front {
  background: var(--bg-card); border: 1px solid var(--border-card);
  height: 340px; top: 0; left: 0; padding: 1.8rem;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.card-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-btn); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: #fff; }
.card-name { font-weight: 700; font-size: 0.95rem; }
.card-role { font-size: 0.78rem; color: var(--text-secondary); }
.card-divider { height: 1px; background: var(--border-card); margin: 0.7rem 0; }
.card-info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; font-size: 0.78rem; }
.ci-label { color: var(--text-muted); }
.ci-val { color: var(--text-secondary); text-align: right; font-size: 0.75rem; }
.status-open { color: var(--accent-lime) !important; }
.card-skills-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.card-tag { padding: 0.18rem 0.55rem; background: rgba(123,92,245,0.15); border: 1px solid rgba(123,92,245,0.3); border-radius: 20px; font-size: 0.7rem; color: var(--accent-violet); }

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
.skills { background: var(--bg-primary); }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 1rem; }
.skill-card {
  padding: 1.6rem; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border-card);
  transition: var(--transition); position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-btn); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--border-subtle); box-shadow: var(--shadow-glow); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.skill-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.skill-tags span { padding: 0.22rem 0.65rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-card); border-radius: 20px; font-size: 0.72rem; color: var(--text-secondary); }
.skill-bar-wrap { height: 3px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.skill-bar { height: 100%; border-radius: 4px; width: 0; background: var(--gradient-btn); transition: width 1.2s cubic-bezier(0.25,0.46,0.45,0.94); }

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.projects { background: var(--bg-secondary); }
.projects-bg-accent { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-hero); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1rem; }
.project-card {
  padding: 1.8rem; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border-card);
  transition: var(--transition); position: relative; overflow: hidden;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(123,92,245,0.4); box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 35px rgba(123,92,245,0.1); }
.featured-card { grid-column: 1 / -1; }
.proj-accent-bar { height: 3px; border-radius: 3px; margin-bottom: 1.4rem; }
.proj-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.proj-number { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.proj-link-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(123,92,245,0.15); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; color: var(--accent-violet); font-size: 1rem; transition: var(--transition); cursor: pointer; }
.proj-link-btn:hover { background: var(--accent-violet); color: #fff; transform: rotate(45deg); }
.proj-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.7rem; }
.proj-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.1rem; line-height: 1.65; }
.proj-impact { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.impact-chip { padding: 0.28rem 0.75rem; background: rgba(34,212,253,0.08); border: 1px solid rgba(34,212,253,0.2); border-radius: 20px; font-size: 0.7rem; color: var(--accent-cyan); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj-tags span { padding: 0.22rem 0.65rem; background: rgba(123,92,245,0.1); border: 1px solid rgba(123,92,245,0.25); border-radius: 20px; font-size: 0.7rem; color: var(--accent-violet); }

/* ═══════════════════════════════════════════
   EDUCATION / TIMELINE
═══════════════════════════════════════════ */
.education { background: var(--bg-primary); }
.timeline { position: relative; max-width: 780px; margin: 2rem auto 0; }
.timeline-line { position: absolute; left: 20px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(to bottom, var(--accent-violet), var(--accent-cyan), transparent); }
.timeline-item { display: flex; gap: 2rem; margin-bottom: 2rem; position: relative; }
.timeline-dot { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--accent-violet); box-shadow: 0 0 14px rgba(123,92,245,0.4); transition: var(--transition); z-index: 1; }
.timeline-item:hover .timeline-dot { background: var(--accent-violet); transform: scale(1.15); }
.timeline-card { flex: 1; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); transition: var(--transition); }
.timeline-card:hover { border-color: var(--border-subtle); transform: translateX(5px); }
.tc-year { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-cyan); margin-bottom: 0.4rem; }
.timeline-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.tc-school { font-size: 0.82rem; color: var(--accent-violet); margin-bottom: 0.7rem; }
.timeline-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.9rem; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tc-tags span { padding: 0.18rem 0.55rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border-card); border-radius: 20px; font-size: 0.7rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact { background: var(--bg-secondary); }
.contact-bg-orb { position: absolute; width: 500px; height: 500px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(123,92,245,0.09), transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.6rem; }
.ci-icon { font-size: 1.3rem; }
.ci-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.2rem; font-family: var(--font-mono); letter-spacing: 0.1em; }
.contact-item a, .contact-item span { font-size: 0.92rem; color: var(--text-secondary); transition: var(--transition); }
.contact-item a:hover { color: var(--accent-cyan); }
.download-resume-btn { margin-top: 1rem; }
.contact-form-wrap { padding: 1.8rem; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.45rem; font-family: var(--font-mono); }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border-card); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.88rem; transition: var(--transition); outline: none; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-violet); background: rgba(123,92,245,0.05); }
.form-success { display: none; text-align: center; color: var(--accent-lime); font-size: 0.88rem; margin-top: 1rem; }

/* ─── FOOTER ─── */
.footer { padding: 1.8rem 0; border-top: 1px solid var(--border-card); background: var(--bg-primary); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer p { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--accent-cyan); }

/* ═══════════════════════════════════════════
   AI CHATBOT
═══════════════════════════════════════════ */
.chatbot-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 2000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-btn);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.4rem;
  box-shadow: 0 8px 28px rgba(123,92,245,0.45);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.chatbot-fab:hover { transform: scale(1.1) translateY(-3px); }
.fab-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(123,92,245,0.45); animation: fabPulse 2.5s ease-in-out infinite; }
@keyframes fabPulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.3); opacity: 0; } }

.chatbot-window {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 1999;
  width: 340px; max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0,0,0,0.6), 0 0 35px rgba(123,92,245,0.1);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  overflow: hidden;
}
.chatbot-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.chat-header { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; background: linear-gradient(135deg,rgba(123,92,245,0.2),rgba(34,212,253,0.1)); border-bottom: 1px solid var(--border-card); }
.chat-avatar { font-size: 1.6rem; }
.chat-title { font-weight: 700; font-size: 0.9rem; }
.chat-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--text-muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-lime); animation: pulse 2s infinite; }
.chat-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; transition: var(--transition); padding: 4px; }
.chat-close:hover { color: var(--text-primary); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; scrollbar-width: thin; scrollbar-color: var(--accent-violet) transparent; -webkit-overflow-scrolling: touch; }
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble { max-width: 82%; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.83rem; line-height: 1.6; }
.chat-msg.bot .msg-bubble { background: rgba(255,255,255,0.06); border: 1px solid var(--border-card); border-bottom-left-radius: 4px; }
.chat-msg.user .msg-bubble { background: var(--gradient-btn); color: #fff; border-bottom-right-radius: 4px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.suggestion-btn { padding: 0.38rem 0.85rem; font-size: 0.73rem; background: rgba(123,92,245,0.12); border: 1px solid rgba(123,92,245,0.3); border-radius: 20px; color: var(--accent-violet); cursor: pointer; transition: var(--transition); font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
.suggestion-btn:hover { background: rgba(123,92,245,0.25); }
.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 0.4rem; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typingBounce 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,80%,100% { transform: scale(1); opacity: 0.4; } 40% { transform: scale(1.3); opacity: 1; } }
.chat-input-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-top: 1px solid var(--border-card); }
.chat-input-row input { flex: 1; padding: 0.6rem 0.9rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-card); border-radius: 50px; color: var(--text-primary); font-family: var(--font-body); font-size: 0.83rem; outline: none; transition: var(--transition); }
.chat-input-row input:focus { border-color: var(--accent-violet); }
#chatSend { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-btn); border: none; color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0; }
#chatSend:hover { transform: scale(1.1); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav { padding: 1rem 2rem; }
  .nav.scrolled { padding: 0.7rem 2rem; }
  .nav-links { gap: 1.8rem; }
  .hero { padding: 6rem 2rem 4rem; gap: 2rem; }
  .hero-image-wrap { flex: 0 0 280px; }
  .hero-img-frame { width: 260px; height: 320px; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .about-card-stack { width: 260px; height: 340px; }
  .card-front { height: 310px; }
  .card-back, .card-mid { height: 310px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0.9rem 1.2rem; }
  .nav.scrolled { padding: 0.7rem 1.2rem; }
  .nav-links, .nav-resume-btn { display: none; }
  .hamburger { display: block; }

  .hero {
    flex-direction: column-reverse;
    padding: 5rem 1.2rem 3rem;
    text-align: center;
    gap: 2rem;
    min-height: auto;
    padding-top: 4.5rem;
  }
  .hero-content { max-width: 100%; }
  .hero-badge { justify-content: center; margin: 0 auto 1.2rem; }
  .hero-role { justify-content: center; }
  .hero-sub { font-size: 0.95rem; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: 1.2rem; padding: 0.9rem 1.2rem; }
  .stat-num { font-size: 1.6rem; }

  .hero-image-wrap { flex: unset; width: 100%; justify-content: center; }
  .hero-img-frame { width: 220px; height: 270px; }
  .hero-img-glow { inset: -20px; }
  .img-badge { display: none; }

  .scroll-hint { display: none; }

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

  .skills-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .skill-card { padding: 1.2rem; }
  .skill-icon { font-size: 1.5rem; }
  .skill-card h3 { font-size: 0.92rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: 1; }
  .project-card { padding: 1.4rem; }

  .timeline-item { gap: 1.2rem; }
  .timeline-dot { flex: 0 0 34px; height: 34px; }
  .timeline-card { padding: 1.2rem; }

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

  .chatbot-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 5rem;
    max-height: 70vh;
  }

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

  .section { padding: 3.5rem 0; }
  .section-title { font-size: clamp(1.6rem,6vw,2.2rem); }
  .section-sub { font-size: 0.93rem; margin-bottom: 2rem; }
}

@media (max-width: 420px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; }
  .stat-divider { display: none; }
  .hero-img-frame { width: 190px; height: 240px; }
  .btn-primary, .btn-outline { padding: 0.75rem 1.5rem; font-size: 0.88rem; }
}
