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

:root {
  --bg: #0a0a0f;
  --bg-surface: #111118;
  --bg-card: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #8b8ba0;
  --text-muted: #55556a;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-linkedin: #0077b5;
  --accent-github: #333;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Navigation ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: 6rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 8px #6ee7b7;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ── Avatar / Visual ── */
.hero-visual {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  padding: 3px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background-clip: padding-box;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text-primary);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--border);
  transform: translate(-50%, -50%);
  animation: spin linear infinite;
}

.orbit-1 {
  width: 200px;
  height: 200px;
  animation-duration: 8s;
}

.orbit-2 {
  width: 260px;
  height: 260px;
  animation-duration: 14s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

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

/* ── Projects Section ── */
.projects-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.projects-inner {
  max-width: 1100px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
  text-align: left;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow);
}

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

.project-card-more:hover {
  border-color: rgba(110, 118, 129, 0.4);
}

.project-card-more::before {
  background: linear-gradient(135deg, rgba(110, 118, 129, 0.06), transparent);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-icon svg {
  width: 20px;
  height: 20px;
}

.project-icon-dim {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.project-lang {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-lang="javascript"] { background: rgba(247, 223, 30, 0.12); color: #f7df1e; }
[data-lang="typescript"] { background: rgba(49, 120, 198, 0.15); color: #5b9bd5; }
[data-lang="python"]     { background: rgba(55, 118, 171, 0.15); color: #4b8bbe; }
[data-lang="react"]      { background: rgba(97, 218, 251, 0.12); color: #61dafb; }

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  position: relative;
  z-index: 1;
}

.project-footer {
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.project-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.project-card:hover .project-link {
  color: #818cf8;
}

/* ── GitHub Activity ── */
.activity-wrap {
  margin-top: 3rem;
  text-align: left;
}

.activity-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.activity-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
}

.activity-chart img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ── Skills Section ── */
.skills-section {
  padding: 0 2rem 6rem;
  position: relative;
  z-index: 1;
}

.skills-inner {
  max-width: 1100px;
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: filter 0.2s ease, transform 0.2s ease;
  cursor: default;
  user-select: none;
}

.skill-badge:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

[data-skill="typescript"] { background: rgba(49, 120, 198, 0.15); color: #5b9bd5; border-color: rgba(49, 120, 198, 0.25); }
[data-skill="javascript"] { background: rgba(247, 223, 30, 0.12); color: #f7df1e; border-color: rgba(247, 223, 30, 0.2); }
[data-skill="python"]     { background: rgba(55, 118, 171, 0.15); color: #4b8bbe; border-color: rgba(55, 118, 171, 0.25); }
[data-skill="react"]      { background: rgba(97, 218, 251, 0.12); color: #61dafb; border-color: rgba(97, 218, 251, 0.2); }
[data-skill="node"]       { background: rgba(104, 160, 99, 0.15); color: #68a063; border-color: rgba(104, 160, 99, 0.25); }
[data-skill="webex"]      { background: rgba(0, 191, 165, 0.12); color: #00bfa5; border-color: rgba(0, 191, 165, 0.2); }
[data-skill="github"]     { background: rgba(255, 255, 255, 0.06); color: #d0d7de; border-color: rgba(255, 255, 255, 0.12); }
[data-skill="html"]       { background: rgba(227, 76, 38, 0.12); color: #e34c26; border-color: rgba(227, 76, 38, 0.2); }
[data-skill="netlify"]    { background: rgba(0, 173, 159, 0.12); color: #00ad9f; border-color: rgba(0, 173, 159, 0.2); }

/* ── Connect Section ── */
.connect-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.connect-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04) 50%, transparent);
  pointer-events: none;
}

.section-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.card-linkedin::before {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.08), transparent);
}

.card-github::before {
  background: linear-gradient(135deg, rgba(110, 118, 129, 0.1), transparent);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card-linkedin:hover {
  border-color: rgba(0, 119, 181, 0.4);
}

.card-github:hover {
  border-color: rgba(110, 118, 129, 0.4);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-linkedin .card-icon {
  background: rgba(0, 119, 181, 0.15);
  color: #0e8fcb;
}

.card-github .card-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #d0d7de;
}

.card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.card-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.card:hover .card-arrow {
  color: var(--text-secondary);
  transform: translateX(4px);
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
    padding-top: 8rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .cards-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: 180px;
    height: 180px;
  }

  .avatar-ring {
    width: 140px;
    height: 140px;
  }

  .orbit-1 { width: 160px; height: 160px; }
  .orbit-2 { width: 210px; height: 210px; }
}
