/* ============================================
   Argon Bhujel Portfolio — Premium Dark Theme
   ============================================ */

:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --bg-card: #111118;
  --bg-glass: rgba(17, 17, 24, 0.65);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 212, 255, 0.25);
  --text: #f0f0f5;
  --text-muted: #8b8b9e;
  --text-dim: #5c5c70;
  --primary: #00d4ff;
  --primary-dim: rgba(0, 212, 255, 0.15);
  --primary-glow: rgba(0, 212, 255, 0.35);
  --secondary: #a855f7;
  --secondary-dim: rgba(168, 85, 247, 0.15);
  --gradient: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.12);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, textarea { font-family: inherit; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 8, 0.92);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 0.15rem;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-dim);
}
.nav-cta {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient);
  color: #050508;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
.btn-full { width: 100%; }

/* Section Common */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 212, 255, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #a0e8ff 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-roles {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.hero-roles span { color: var(--primary); opacity: 0.6; margin: 0 0.25rem; }
.hero-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.hero-tech {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.hero-socials {
  display: flex;
  gap: 0.75rem;
}
.hero-socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.hero-socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-3px);
}
.hero-socials svg { width: 18px; height: 18px; }

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrapper {
  position: relative;
  width: min(420px, 100%);
}
.hero-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}
.hero-frame {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 4px;
  background: var(--gradient);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  display: block;
}
.floating-badge {
  position: absolute;
  z-index: 2;
  padding: 0.4rem 0.85rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow);
  animation: float 3.5s ease-in-out infinite;
}
.badge-1 { top: 12%; left: -8%; animation-delay: 0s; }
.badge-2 { top: 28%; right: -10%; animation-delay: 0.6s; }
.badge-3 { bottom: 22%; left: -12%; animation-delay: 1.2s; }
.badge-4 { bottom: 10%; right: -6%; animation-delay: 1.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.about-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.1);
  pointer-events: none;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.about-img-frame:hover .about-photo {
  transform: scale(1.03);
}
.about-text {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-info {
  display: grid;
  gap: 1.15rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.info-item {
  display: grid;
  gap: 0.2rem;
}
.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.info-value {
  font-size: 0.95rem;
  color: var(--text);
}
.info-value a {
  color: var(--primary);
}
.info-value a:hover { text-decoration: underline; }
.info-value.available {
  color: #34d399;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  background: var(--bg-card);
}
.gallery-item:nth-child(1) { grid-row: span 1; }
.gallery-item:nth-child(2) { grid-row: span 1; }
.gallery-item:nth-child(3) { grid-row: span 1; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover figcaption { opacity: 1; }
.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}
.gallery-item.placeholder img {
  object-fit: contain;
  padding: 2rem;
  opacity: 0.6;
}

/* ========== SKILLS ========== */
.skills-categories {
  display: grid;
  gap: 1.5rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.skill-cat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}
.skill-icon {
  color: var(--primary);
  font-size: 0.9rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  padding: 0.4rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.skill-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-2px);
}

/* ========== EXPERIENCE ========== */
.timeline {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  z-index: 1;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition);
}
.timeline-content:hover { border-color: var(--border-hover); }
.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.timeline-date {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
}
.timeline-company {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.timeline-company a { color: var(--primary); }
.timeline-company a:hover { text-decoration: underline; }
.timeline-duties {
  display: grid;
  gap: 0.4rem;
}
.timeline-duties li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.timeline-duties li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.project-visual {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-visual-1 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.project-visual-2 { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.project-visual-3 { background: linear-gradient(135deg, #134e4a, #0f766e, #14b8a6); }
.project-visual-4 { background: linear-gradient(135deg, #3b0764, #6b21a8, #a855f7); }
.project-visual-5 { background: linear-gradient(135deg, #1e3a5f, #1e40af, #3b82f6); }
.project-placeholder {
  text-align: center;
  z-index: 1;
}
.project-initial {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.03em;
}
.project-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}
.project-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
.project-category {
  padding: 0.3rem 0.7rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.project-tech span {
  padding: 0.25rem 0.55rem;
  background: var(--bg-elevated);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
}
.project-features {
  margin-bottom: 1.25rem;
  display: grid;
  gap: 0.3rem;
}
.project-features li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.project-features li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.project-links {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border-radius: 12px;
  margin-bottom: 1.15rem;
  color: var(--primary);
}
.service-icon svg { width: 24px; height: 24px; }
.service-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========== EDUCATION ========== */
.education-card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}
.edu-degree {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.edu-school {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.edu-year {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--primary-dim);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.edu-training h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.edu-training ul {
  display: grid;
  gap: 0.4rem;
}
.edu-training li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}
.edu-training li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

/* ========== GITHUB ========== */
.github-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.github-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.github-content { position: relative; z-index: 1; }
.github-bio {
  max-width: 560px;
  margin: 1rem auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.github-featured {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.github-featured a {
  color: var(--primary);
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  background: var(--primary-dim);
  border-radius: 6px;
}
.github-featured a:hover { background: rgba(0, 212, 255, 0.25); }
.github-card .btn svg { flex-shrink: 0; }

/* ========== TESTIMONIAL ========== */
.testimonial {
  padding: 4rem 0;
}
.testimonial-card {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.testimonial-card cite span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 1.5rem;
}
.contact-item {
  display: grid;
  gap: 0.3rem;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.contact-item a,
.contact-item span {
  font-size: 1rem;
  color: var(--text);
}
.contact-item a:hover { color: var(--primary); }
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.contact-socials a {
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.contact-socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-dim);
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.15rem;
}
.form-group {
  display: grid;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #f87171;
}
.error-msg {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1em;
}
.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.5em;
}
.form-status.success { color: #34d399; }
.form-status.error { color: #f87171; }

/* ========== FOOTER ========== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-content {
  display: grid;
  gap: 0.4rem;
}
.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-built,
.footer-made {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-site {
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 0.5rem;
  display: inline-block;
}
.footer-site:hover { text-decoration: underline; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  box-shadow: var(--shadow);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-dim);
}
.back-to-top svg { width: 20px; height: 20px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 0; }
  .hero-intro { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-image-wrapper { width: min(320px, 85%); }
  .floating-badge { display: none; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image { max-width: 360px; margin-inline: auto; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    z-index: 1000;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 4.5rem 0; }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .github-card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.5rem; }
  .timeline-marker { left: -1.5rem; }
  .contact-form { padding: 1.5rem; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Multi-page additions ===== */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 212, 255, 0.07) 0%, transparent 60%);
}
.page-hero .section-subtitle {
  max-width: 560px; margin-inline: auto; color: var(--text-muted); font-size: 1.05rem; margin-top: 0.75rem;
}
.home-about-teaser {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center;
}
.teaser-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.5rem 0;
  font-size: 0.9rem; color: var(--text-muted);
}
.teaser-meta strong { color: var(--primary); font-weight: 500; }
.projects-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.services-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.cta-band {
  text-align: center; padding: 4rem 2rem;
  background: var(--gradient-soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem;
}
.cta-band p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 480px; margin-inline: auto; }
.cta-band .btn { margin: 0 0.35rem 0.5rem; }
@media (max-width: 992px) {
  .home-about-teaser { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-about-teaser .about-img-frame { max-width: 360px; margin-inline: auto; }
}

.footer-bam {
  color: var(--primary);
  font-weight: 600;
}
.footer-bam:hover { text-decoration: underline; }
.project-visual img.project-shot {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.project-visual.has-image { padding: 0; }
.project-visual.has-image .project-placeholder { display: none; }
