/* ===== ROOT DESIGN TOKENS ===== */
:root {
  --void: #050508;
  --deep-space: #0D0D1A;
  --nebula: #12122A;
  --violet: #7C3AED;
  --violet-light: #A78BFA;
  --violet-soft: #C4B5FD;
  --violet-glow: rgba(124, 58, 237, 0.4);
  --violet-glow-sm: rgba(124, 58, 237, 0.2);
  --star-white: #F8F8FF;
  --moon-gray: #94A3B8;
  --dust-gray: #4B5563;
  --border: rgba(124, 58, 237, 0.2);
  --border-hover: rgba(124, 58, 237, 0.5);
  --glass: rgba(13, 13, 26, 0.6);
  --success: #10B981;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius-card: 16px;
  --radius-btn: 9999px;
  --radius-input: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background-color: var(--void);
  color: var(--star-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #A78BFA, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  color: var(--moon-gray);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--star-white);
  background: rgba(124, 58, 237, 0.12);
}

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--violet), #6D28D9);
  color: white;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 0 20px var(--violet-glow-sm);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--violet-glow);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--violet) 0%, #6D28D9 100%);
  color: white;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.55);
}

.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--violet-light);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--violet-light);
  color: var(--star-white);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION COMMON ===== */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--violet-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--moon-gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.txt-violet {
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  min-height: calc(100vh - 72px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-name {
  font-size: clamp(54px, 7vw, 86px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  color: var(--star-white);
}

.nm-violet {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #6D28D9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--moon-gray);
  line-height: 1.6;
}

.hero-tagline {
  font-size: 16px;
  color: var(--dust-gray);
  line-height: 1.7;
  font-family: var(--mono);
  border-left: 2px solid var(--violet);
  padding-left: 16px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ===== ORBIT RING ===== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-container {
  position: relative;
  width: 460px;
  height: 460px;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 320px;
  height: 320px;
  border-width: 2px;
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), inset 0 0 30px rgba(124, 58, 237, 0.1);
  animation: ring-spin 20s linear infinite, ring-glow 3s ease-in-out infinite;
}

.ring-2 {
  width: 260px;
  height: 260px;
  border-width: 1px;
  border-color: rgba(167, 139, 250, 0.35);
  animation: ring-spin 14s linear infinite reverse;
  border-style: dashed;
}

.ring-3 {
  width: 380px;
  height: 380px;
  border-width: 1px;
  border-color: rgba(124, 58, 237, 0.15);
  animation: ring-spin 30s linear infinite;
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ring-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), inset 0 0 30px rgba(124, 58, 237, 0.1); }
  50% { box-shadow: 0 0 60px rgba(124, 58, 237, 0.7), inset 0 0 50px rgba(124, 58, 237, 0.2); }
}

.portal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124,58,237,0.25) 0%, rgba(13,13,26,0.95) 70%);
  border: 2px solid rgba(124, 58, 237, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(124,58,237,0.35), inset 0 0 40px rgba(124,58,237,0.1);
  animation: core-pulse 4s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(124,58,237,0.35), inset 0 0 40px rgba(124,58,237,0.1); }
  50% { box-shadow: 0 0 100px rgba(124,58,237,0.6), inset 0 0 60px rgba(124,58,237,0.2); }
}

.core-initials {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #C4B5FD, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

/* Orbit Paths — all share ONE keyframe, same speed, staggered by negative delay */
.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  /* 8 icons × 45° apart = 360°. Each delay = -(index/8) × duration */
  animation: orbit 18s linear infinite;
}

/* Stagger each icon 45° ahead using negative delay (delay = -(i/8) × 18s) */
.orbit-path-1 { animation-delay:    0s; }
.orbit-path-2 { animation-delay: -2.25s; }
.orbit-path-3 { animation-delay: -4.5s; }
.orbit-path-4 { animation-delay: -6.75s; }
.orbit-path-5 { animation-delay:  -9s; }
.orbit-path-6 { animation-delay: -11.25s; }
.orbit-path-7 { animation-delay: -13.5s; }
.orbit-path-8 { animation-delay: -15.75s; }

@keyframes orbit {
  from { transform: rotate(0deg)   translateX(160px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

.orbit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--deep-space);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: var(--transition);
  box-shadow: 0 0 16px var(--icon-color, rgba(124,58,237,0.4)), 0 0 0 2px rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}

.orbit-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  /* Boost brightness so dark logos pop on the deep-space background */
  filter: brightness(1.6) drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
  transition: filter 0.3s ease;
}

/* GitHub icon is pure black — invert it to white so it's visible */
.orbit-icon[title="GitHub"] img {
  filter: invert(1) brightness(1.8) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scroll-bounce 2s ease-in-out infinite;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--violet));
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SKILLS ===== */
.skills-section {
  background: linear-gradient(180deg, var(--void) 0%, rgba(13,13,26,0.5) 50%, var(--void) 100%);
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 80px;
}



.category-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--violet-light);
  margin-bottom: 24px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: var(--transition);
  cursor: default;
  min-width: 100px;
}

.skill-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.skill-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--moon-gray);
  white-space: nowrap;
}

.skill-card:hover {
  border-color: var(--border-hover);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.skill-card:hover span { color: var(--star-white); }

.ai-icon {
  font-size: 32px;
  line-height: 1;
}

.ai-card { background: rgba(124, 58, 237, 0.05); }

/* Proficiency Bars */
.proficiency-section {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px;
}

.bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}



.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.bar-pct {
  color: var(--violet-light);
  font-family: var(--mono);
  font-size: 13px;
}

.bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBE SECTION ===== */
.globe-section {
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.05) 0%, transparent 70%);
}

.globe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.globe-canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe-canvas {
  width: 420px;
  height: 420px;
  border-radius: 50%;
}

.globe-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: globe-pulse 4s ease-in-out infinite;
}

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

.globe-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
}

.stat-icon { font-size: 28px; flex-shrink: 0; }

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--star-white);
  font-family: var(--mono);
  letter-spacing: -1px;
}

.stat-suffix {
  font-size: 22px;
  font-weight: 700;
  color: var(--violet-light);
  margin-top: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--moon-gray);
  flex: 1;
  font-weight: 500;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--moon-gray);
}

.feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== PROJECTS ===== */


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

.project-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}

.featured-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, var(--glass) 100%);
  border-color: rgba(124, 58, 237, 0.35);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--violet-light);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-btn);
}

.project-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}

.project-card:hover .project-glow { opacity: 1; }

.project-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon { font-size: 26px; }

.project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--star-white);
  letter-spacing: -0.3px;
}

.project-desc {
  font-size: 14px;
  color: var(--moon-gray);
  line-height: 1.7;
  flex: 1;
}

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

.tag {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--violet-soft);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-btn);
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
}

.live-link {
  background: linear-gradient(135deg, var(--violet), #6D28D9);
  color: white;
}

.live-link:hover {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.code-link {
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--violet-light);
}

.code-link:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--violet-light);
  transform: translateY(-1px);
}

/* ===== CONTACT ===== */
.contact-section {
  background: radial-gradient(ellipse at bottom center, rgba(124,58,237,0.06) 0%, transparent 70%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--violet-light);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dust-gray);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--star-white);
  transition: color 0.2s;
}

a.contact-value:hover { color: var(--violet-light); }

.social-links {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moon-gray);
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: var(--violet-light);
  color: var(--violet-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

/* Contact Form */
.contact-form {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--moon-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-input);
  color: var(--star-white);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: var(--transition);
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dust-gray);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  background: rgba(5, 5, 8, 0.8);
}

.form-success {
  display: none;
  text-align: center;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
}

.form-success.visible { display: block; animation: fade-in 0.4s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  padding: 80px 0 40px;
  z-index: 2;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--dust-gray);
  line-height: 1.7;
}

.footer-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--violet-light);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--dust-gray);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--violet-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--dust-gray);
}

.footer-copy.muted { opacity: 0.6; }

.heart { color: var(--violet-light); }

/* ===== LOAD ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  /* Increased duration from 0.8s to 1.4s for a slower fade */
  animation: fade-in-up 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Increased stagger gaps for a more dramatic entrance */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ===== RESPONSIVE ===== */

/* Prevent horizontal overflow on all screens */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding-top: 40px;
  }
  .hero-content { align-items: center; }
  .hero-tagline { text-align: left; }
  .orbit-container { width: 360px; height: 360px; }
  .ring-1 { width: 260px; height: 260px; }
  .ring-2 { width: 200px; height: 200px; }
  .ring-3 { width: 310px; height: 310px; }
  @keyframes orbit {
    from { transform: rotate(0deg)   translateX(130px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
  }
  .globe-layout { grid-template-columns: 1fr; }
  .globe-canvas-wrap { order: -1; }
  #globe-canvas { width: 340px !important; height: 340px !important; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-container { gap: 0; }
  .nav-cta { margin-left: auto; padding: 8px 18px; font-size: 13px; }
  .hero-name { font-size: 52px; letter-spacing: -2px; }
  .hero-title { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  /* Orbit — scale down for tablet-portrait */
  .orbit-container { width: 300px; height: 300px; }
  .ring-1 { width: 210px; height: 210px; }
  .ring-2 { width: 165px; height: 165px; }
  .ring-3 { width: 255px; height: 255px; }
  .portal-core { width: 120px; height: 120px; }
  .core-initials { font-size: 28px; }
  @keyframes orbit {
    from { transform: rotate(0deg)   translateX(105px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(105px) rotate(-360deg); }
  }

  /* Globe */
  #globe-canvas { width: 280px !important; height: 280px !important; }

  .projects-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .contact-form { padding: 28px; }
  .proficiency-section { padding: 28px; }
  .section-sub { font-size: 16px; }
  .section-header { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero-name { font-size: 42px; letter-spacing: -1.5px; }
  .hero-title { font-size: 14px; }
  .hero-tagline { font-size: 13px; }

  /* Orbit — compact for small phones */
  .orbit-container { width: 260px; height: 260px; }
  .ring-1 { width: 180px; height: 180px; }
  .ring-2 { width: 140px; height: 140px; }
  .ring-3 { width: 220px; height: 220px; }
  .portal-core { width: 100px; height: 100px; }
  .core-initials { font-size: 22px; }
  .orbit-icon { width: 36px; height: 36px; }
  .orbit-icon img { width: 20px; height: 20px; }
  @keyframes orbit {
    from { transform: rotate(0deg)   translateX(90px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
  }

  /* Globe */
  #globe-canvas { width: 240px !important; height: 240px !important; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; letter-spacing: -0.5px; }
  .section-header { margin-bottom: 36px; }

  /* Skills */
  .skills-grid { gap: 10px; }
  .skill-card { min-width: 80px; padding: 14px 16px; }
  .skill-card span { font-size: 11px; }

  /* Globe stats */
  .stat-card { padding: 16px 18px; gap: 14px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 13px; }
  .globe-stats { gap: 16px; }

  /* Projects */
  .project-card { padding: 24px 20px; }

  /* Contact */
  .contact-form { padding: 20px 16px; }
  .contact-item { gap: 14px; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer { padding: 60px 0 32px; }

  /* Nav */
  #navbar { padding: 0 16px; }
}

