/* ── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  --bg: #050810;
  --bg2: #080c14;
  --card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --gold: #D4AF37;
  --gold2: #F5D060;
  --gold-dim: rgba(212,175,55,0.15);
  --white: #ffffff;
  --muted: rgba(255,255,255,0.45);
  --font: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Touch Device: Disable Custom Cursor ────────────────────────────────────── */
body.touch-device {
  cursor: auto !important;
}
body.touch-device #cursor,
body.touch-device #cursor-follower {
  display: none !important;
}
body.touch-device .btn-primary,
body.touch-device .btn-ghost,
body.touch-device .nav-cta,
body.touch-device .link-btn {
  cursor: pointer !important;
}

/* ── Custom Cursor ─────────────────────────────────────────────────────────── */
#cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 16px; height: 16px;
  background: var(--gold2);
}

/* ── Loader ───────────────────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: #030508;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loader-logo {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  opacity: 0;
}

.loader-logo span { color: var(--gold); }

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 2px;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  background: rgba(5,8,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
}

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: rgba(5,8,16,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  transition: color 0.3s;
}

.mobile-link:hover { color: var(--gold); }

.mobile-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 24px;
  border-radius: 100px;
  text-align: center;
  margin-top: 8px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #050810;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: none;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,175,55,0.4);
}

.btn-primary.large { padding: 18px 36px; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
  cursor: none;
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.05);
}

.btn-ghost.large { padding: 18px 36px; font-size: 1rem; }

.btn-arrow { transition: transform 0.3s; }
.btn-primary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

/* ── Gradient text ──────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section shared ───────────────────────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 28px;
}

.line-wrap {
  overflow: hidden;
  display: block;
}

.line {
  display: block;
  transform: translateY(110%);
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
}

.stat { text-align: left; }

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.stat p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero card */
.hero-right { opacity: 0; }

.hero-card-wrap {
  position: relative;
}

.hero-card {
  background: rgba(13,21,37,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #febc2e; }
.card-dots span:nth-child(3) { background: #28c840; }

.card-title {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.card-code {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.code-line { display: flex; gap: 6px; flex-wrap: wrap; }
.code-line.pl { padding-left: 20px; }

.code-blue { color: #60a5fa; }
.code-white { color: rgba(255,255,255,0.8); }
.code-green { color: #86efac; }
.code-orange { color: #fca5a5; }
.code-yellow { color: #fde68a; }
.code-purple { color: #c4b5fd; }

.card-footer {
  padding: 12px 20px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  background: rgba(13,21,37,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.badge-1 { top: -20px; right: 20px; }
.badge-2 { bottom: 40px; right: -20px; }
.badge-3 { bottom: -20px; left: 20px; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── About ─────────────────────────────────────────────────────────────────── */
.about-section {
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-section .section-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 { margin-bottom: 20px; }

.about-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-desc strong { color: var(--gold); font-weight: 700; }

.about-text .btn-primary { margin-top: 12px; }

.image-frame {
  position: relative;
  width: 300px;
  height: 350px;
  margin: 0 auto;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.03));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.15);
}

.image-border {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 32px;
  pointer-events: none;
}

/* ── Skills ────────────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.skill-card:hover {
  border-color: rgba(212,175,55,0.25);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
}

/* ── Experience / Timeline ─────────────────────────────────────────────────── */
.experience-section {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.005);
}

.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(212,175,55,0.1));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s;
}

.timeline-content:hover {
  border-color: rgba(212,175,55,0.2);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.timeline-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 100px;
}

.timeline-company {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.timeline-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-date i { font-size: 0.8rem; }

.timeline-list {
  margin-bottom: 20px;
}

.timeline-list li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.timeline-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.18);
  color: var(--gold);
}

/* ── Education ─────────────────────────────────────────────────────────────── */
.education-section {
  border-top: 1px solid var(--border);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.edu-card:hover {
  border-color: rgba(212,175,55,0.2);
  transform: translateY(-4px);
}

.edu-icon {
  width: 48px;
  height: 48px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.edu-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.edu-school {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.edu-location,
.edu-date {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.edu-meta {
  margin: 12px 0;
}

.edu-cgpa {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 100px;
}

.edu-detail {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.edu-grades {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.edu-grades .grade {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.18);
  color: var(--gold);
}

/* ── Certifications ────────────────────────────────────────────────────────── */
.cert-section {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.005);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.cert-card:hover {
  border-color: rgba(212,175,55,0.2);
  transform: translateY(-4px);
}

.cert-badge {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
}

.cert-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.cert-level {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.cert-score,
.cert-year {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Featured Projects ────────────────────────────────────────────────────── */
.featured-projects-section {
  border-top: 1px solid var(--border);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.featured-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
  border-color: rgba(212,175,55,0.2);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.featured-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
}

.featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
}

.featured-placeholder i {
  font-size: 3rem;
  opacity: 0.6;
}

.featured-placeholder span {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.featured-placeholder.guestvue {
  background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(96,165,250,0.02));
  color: #60a5fa;
}

.featured-content {
  padding: 28px;
}

.featured-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.featured-role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.featured-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.featured-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.highlight i {
  color: #4ade80;
  font-size: 0.75rem;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.featured-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.18);
  color: var(--gold);
}

.featured-links {
  display: flex;
  gap: 12px;
}

/* ── GitHub Projects ─────────────────────────────────────────────────────────── */
.projects-section {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.005);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  color: var(--muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(212,175,55,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(40px);
}

.project-card:hover {
  border-color: rgba(212,175,55,0.2);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: rgba(255,255,255,0.03);
  display: block;
}

.card-content { padding: 24px; }

.card-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.card-content p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(212,175,55,0.07);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(212,175,55,0.18);
  text-transform: capitalize;
}

.card-links {
  display: flex;
  gap: 12px;
}

.link-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.link-btn:hover { color: var(--gold); }

.link-btn.primary-link {
  color: var(--gold);
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
}

.link-btn.primary-link:hover {
  background: rgba(212,175,55,0.15);
}

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-section {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-desc {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.contact-info-card:hover {
  border-color: rgba(212,175,55,0.2);
  transform: translateY(-4px);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.1rem;
  color: var(--gold);
}

.contact-info-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: white;
}

.contact-info-card a,
.contact-info-card span {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s;
}

.contact-info-card a:hover { color: var(--gold); }

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-links a {
  width: 48px;
  height: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--muted);
  transition: all 0.3s;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.15);
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--muted);
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-inner > p:last-child {
  font-size: 0.85rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ── Reveal class ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ── Text center ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-center h2 { margin-left: auto; margin-right: auto; }
.text-center .contact-desc { margin-left: auto; margin-right: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-right { display: none; }
  .about-section .section-inner { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 80px 24px; }
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .desktop-only { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .contact-actions { flex-direction: column; align-items: center; }
  .timeline { padding-left: 24px; }
  .edu-grid { grid-template-columns: 1fr; }
  .featured-highlights { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
}