/* ============================================
   Hareram Gupta — Portfolio Stylesheet
   ============================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent-secondary: #06b6d4;
  --accent-tertiary: #8b5cf6;

  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #818cf8, #c084fc, #22d3ee);

  --health: #10b981;
  --edu: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent-light); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  transition: opacity 0.3s;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav__link--cta {
  background: var(--gradient);
  color: white !important;
  margin-left: 8px;
}

.nav__link--cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent-light);
  background: var(--bg-glass);
}

.btn--full { width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -10%;
  right: -5%;
  opacity: 0.15;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  bottom: 10%;
  left: -10%;
  opacity: 0.1;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__desc strong {
  color: var(--text-primary);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Photo */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.hero-photo__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.35;
  z-index: 0;
  animation: photoGlow 4s ease-in-out infinite;
}

@keyframes photoGlow {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.05); }
}

.hero-photo__ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  z-index: 1;
  animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.hero-photo__frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
}

.hero-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-photo:hover .hero-photo__img {
  transform: scale(1.03);
}

.hero-photo__badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: floatBadge 3s ease-in-out infinite;
}

.hero-photo__badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.hero-photo__badge--top {
  top: 8%;
  right: -8%;
  animation-delay: 0s;
}

.hero-photo__badge--left {
  top: 42%;
  left: -12%;
  animation-delay: 1s;
}

.hero-photo__badge--bottom {
  bottom: 10%;
  right: -4%;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hero Profile Card */
.hero-profile-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-profile-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.hero-profile-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.hero-profile-card__header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.hero-profile-card__header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-profile-card__status {
  margin-left: auto;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #22c55e;
  white-space: nowrap;
}

.hero-profile-card__body {
  padding: 18px 22px 22px;
}

.hero-profile-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.hero-profile-card__row:last-of-type {
  border-bottom: none;
  padding-bottom: 14px;
}

.hero-profile-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.hero-profile-card__value {
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
}

.hero-profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-profile-card__tags span {
  padding: 4px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Legacy profile card (kept for reference) */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.profile-card__avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.profile-card__header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.profile-card__header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-card__status {
  margin-left: auto;
  font-size: 0.75rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.profile-card__body {
  padding: 20px 24px;
}

.code-block {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-block__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.code-block__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-block__bar span:nth-child(1) { background: #ef4444; }
.code-block__bar span:nth-child(2) { background: #f59e0b; }
.code-block__bar span:nth-child(3) { background: #22c55e; }

.code-block pre {
  padding: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.code-kw { color: #c084fc; }
.code-var { color: #67e8f9; }
.code-key { color: #818cf8; }
.code-str { color: #86efac; }

.profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px 20px;
}

.profile-card__tags span {
  padding: 4px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section__tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

/* ============================================
   About
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}

.about__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__profile {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.about__photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s ease;
}

.about__photo-wrap:hover .about__photo {
  transform: scale(1.04);
}

.about__photo-accent {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(6,182,212,0.2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about__credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.credential:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.credential__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.credential strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.credential span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about__content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about__content strong {
  color: var(--text-primary);
}

.about__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

a.info-value:hover {
  color: var(--accent-light);
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.value-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-light);
}

.value-card__icon-emoji {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Skills
   ============================================ */
.skills {
  background: var(--bg-secondary);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.skill-category {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.skill-category:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.skill-category__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-category__icon {
  font-size: 1.5rem;
}

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.skill-tags span:hover {
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.skills__bars {
  max-width: 700px;
  margin: 0 auto;
}

.skill-bar {
  margin-bottom: 24px;
}

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-bar__header span:last-child {
  color: var(--accent-light);
}

.skill-bar__track {
  height: 6px;
  background: var(--bg-glass);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Projects
   ============================================ */
.project {
  position: relative;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 48px;
  overflow: hidden;
}

.project:last-child {
  margin-bottom: 0;
}

.project__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project__badge--health {
  background: rgba(16, 185, 129, 0.15);
  color: var(--health);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project__badge--edu {
  background: rgba(245, 158, 11, 0.15);
  color: var(--edu);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.project__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.project__grid--reverse .project__visual {
  order: 2;
}

.project__grid--reverse .project__content {
  order: 1;
}

.project__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.project__tagline {
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 16px;
}

.project__desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project__features {
  margin-bottom: 24px;
}

.project__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project__features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 700;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project__tech span {
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
}

/* Architecture Diagram */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-layer {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.arch-layer--client {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
}

.arch-layer--cognitive {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.arch-layer--data {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}

.arch-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.arch-nodes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.arch-node {
  padding: 8px 14px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.arch-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.arch-agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.arch-agent {
  padding: 10px 12px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
}

.arch-agent strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.arch-agent small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Edu Dashboard Visual */
.edu-dashboard {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.edu-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.edu-dashboard__live {
  font-size: 0.7rem;
  color: #22c55e;
  font-weight: 500;
}

.edu-dashboard__live::before {
  content: '● ';
}

.edu-dashboard__roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.edu-role {
  padding: 16px;
  background: var(--bg-secondary);
}

.edu-role h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.edu-role--principal h4 { color: var(--accent-light); }
.edu-role--faculty h4 { color: var(--health); }
.edu-role--student h4 { color: var(--edu); }

.edu-role ul li {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 12px;
  position: relative;
}

.edu-role ul li::before {
  content: '•';
  position: absolute;
  left: 0;
}

.edu-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.edu-metric {
  padding: 16px;
  background: var(--bg-secondary);
  text-align: center;
}

.edu-metric__val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-light);
}

.edu-metric__lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   Timeline
   ============================================ */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.timeline-col__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  margin-bottom: 32px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline__dot--edu {
  background: var(--accent-secondary);
  box-shadow: 0 0 0 2px var(--accent-secondary);
}

.timeline__card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.timeline__card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.timeline__date {
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 500;
}

.timeline__card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 6px 0;
}

.timeline__org {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline__card p:last-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   Contact
   ============================================ */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.contact__info .section__tag {
  margin-bottom: 12px;
}

.contact__profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contact__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
}

.contact__profile h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact__profile p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

.contact__info .section__title {
  text-align: left;
  margin-bottom: 16px;
}

.contact__info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.contact__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-light);
}

.contact__link:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateX(4px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  min-height: 20px;
}

.form-note.success { color: #22c55e; }
.form-note.error { color: #ef4444; }

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero__content,
  .about__grid,
  .project__grid,
  .timeline-grid,
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__profile {
    position: static;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-photo__badge--top { right: 0; }
  .hero-photo__badge--left { left: 0; }
  .hero-photo__badge--bottom { right: 0; }

  .project__grid--reverse .project__visual,
  .project__grid--reverse .project__content {
    order: unset;
  }

  .hero__visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .hero-photo__badge {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .hero-photo__badge--left {
    left: 0;
    top: auto;
    bottom: 28%;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__stats {
    gap: 24px;
  }

  .about__info,
  .about__cards {
    grid-template-columns: 1fr;
  }

  .project {
    padding: 28px;
  }

  .project__badge {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
  }

  .arch-agents {
    grid-template-columns: 1fr;
  }

  .edu-dashboard__roles {
    grid-template-columns: 1fr;
  }

  .contact__wrapper {
    padding: 32px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }
}
