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

:root {
  --bg-primary: #050b15;
  --bg-secondary: #0a1628;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 179, 237, 0.3);

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --accent2: #06b6d4;
  --accent3: #8b5cf6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #4b5563;

  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;

  --section-gap: 120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================
   UTILITIES
   ============================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* =============================
   NAVIGATION
   ============================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding var(--transition), background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 11, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo .dot {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-item.contact-btn {
  background: var(--accent);
  color: white;
  padding: 8px 18px;
}

.nav-item.contact-btn:hover {
  background: var(--accent-light);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 4px;
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}

/* =============================
   HERO
   ============================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6, transparent);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: 10%;
  right: -5%;
  animation-delay: 3s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-10px, 15px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

/* Split layout when avatar is present */
.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  text-align: left;
  max-width: 1100px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text .hero-stats {
  justify-content: flex-start;
}

.hero-text .hero-cta {
  justify-content: flex-start;
}

/* Hero Avatar */
.hero-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.hero-avatar-ring {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
  animation: avatarRingSpin 8s linear infinite;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), 0 0 80px rgba(59, 130, 246, 0.1);
}

@keyframes avatarRingSpin {
  0% {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
  }

  33% {
    background: linear-gradient(225deg, #06b6d4, #8b5cf6, #3b82f6);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
  }

  66% {
    background: linear-gradient(315deg, #8b5cf6, #3b82f6, #06b6d4);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
  }

  100% {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
  }
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-primary);
}

.hero-avatar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
}

.badge-sep {
  color: var(--border-hover);
}

/* About Avatar */
.about-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  display: block;
}

.about-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3b82f6, #06b6d4, #8b5cf6, #3b82f6);
  z-index: -1;
  animation: avatarRingSpin 6s linear infinite;
  opacity: 0.6;
  filter: blur(4px);
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }

  50% {
    box-shadow: 0 0 16px rgba(34, 197, 94, 1);
  }
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

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

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  opacity: 0.5;
  animation: fadeInUp 1s ease 1s both;
}

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

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), 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;
  }
}

/* =============================
   ABOUT
   ============================= */
.about-section {
  background: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.about-text strong {
  color: var(--text-primary);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-item svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

/* Terminal Card */
.terminal-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.845rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #1e2433;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f57;
}

.terminal-dot.yellow {
  background: #ffbd2e;
}

.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  font-size: 0.75rem;
  color: #4b5563;
  margin-left: auto;
}

.terminal-body {
  padding: 20px;
  line-height: 2;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt {
  color: var(--accent);
  user-select: none;
}

.cmd {
  color: #a5f3fc;
}

.terminal-output {
  color: #d1d5db;
  padding-left: 4px;
}

.key {
  color: #f9a8d4;
}

.val {
  color: #86efac;
}

.cursor {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* =============================
   SKILLS
   ============================= */
.skills-section {
  background: var(--bg-primary);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.skill-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 18px;
}

.skill-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.skill-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

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

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.tag.accent {
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

/* =============================
   EXPERIENCE
   ============================= */
.experience-section {
  background: var(--bg-secondary);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.marker-dot.current {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.marker-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.4), transparent);
  margin: 8px 0;
  min-height: 40px;
}

.timeline-content {
  padding-bottom: 48px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
}

.tc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tc-company {
  font-size: 0.9rem;
  color: var(--accent-light);
  margin-top: 4px;
  font-weight: 500;
}

.tc-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.tc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tc-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.tc-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 2px;
}

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

/* =============================
   CERTIFICATIONS
   ============================= */
.certs-section {
  background: var(--bg-primary);
}

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

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.cert-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.cert-icon {
  color: var(--accent-light);
  flex-shrink: 0;
}

.cert-body {
  flex: 1;
}

.cert-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-org {
  font-size: 0.825rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cert-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: white;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  height: fit-content;
}

.cert-badge.rh {
  background: #cc0000;
}

.cert-badge.gl {
  background: var(--accent3);
}

/* =============================
   ACHIEVEMENTS
   ============================= */
.achievements-section {
  background: var(--bg-secondary);
}

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

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.achievement-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.achievement-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

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

.achievement-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(59, 130, 246, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.achievement-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.achievement-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================
   EDUCATION
   ============================= */
.education-section {
  background: var(--bg-primary);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition);
}

.edu-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.edu-icon {
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 4px;
}

.edu-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.edu-year {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2px 10px;
  border-radius: 100px;
}

/* =============================
   CONTACT
   ============================= */
.contact-section {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* LinkedIn badge card */
.linkedin-badge-card {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  cursor: default;
}

.linkedin-badge-card:hover {
  transform: translateY(-4px);
}

.linkedin-badge-card .badge-LI-profile-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.contact-card:hover .contact-arrow {
  color: var(--accent-light);
  transform: translateX(4px);
}

/* =============================
   FOOTER
   ============================= */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-role {
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================
   ANIMATIONS
   ============================= */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-split {
    gap: 40px;
  }

  .hero-avatar-ring {
    width: 240px;
    height: 240px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  :root {
    --section-gap: 72px;
  }

  /* ---- Nav ---- */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 11, 21, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  /* ---- Hero ---- */
  .hero {
    padding: 100px 16px 64px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    order: 2;
  }

  .hero-avatar-wrap {
    order: 1;
  }

  .hero-avatar-ring {
    width: 180px;
    height: 180px;
  }

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

  .hero-summary {
    margin: 0 auto 36px;
    font-size: 0.97rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
    margin-bottom: 36px;
  }

  .stat-divider {
    display: none;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ---- About ---- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ---- Skills ---- */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Timeline ---- */
  .timeline-item {
    grid-template-columns: 28px 1fr;
    gap: 16px;
  }

  .timeline-card {
    padding: 20px;
  }

  .tc-header {
    flex-direction: column;
    gap: 6px;
  }

  /* ---- Certs ---- */
  .certs-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Achievements ---- */
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Education ---- */
  .education-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Contact ---- */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .linkedin-badge-card {
    padding: 16px;
  }

  .linkedin-badge-card .badge-base {
    width: 100%;
  }

  /* ---- Footer ---- */
  .footer-content {
    gap: 6px;
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  :root {
    --section-gap: 60px;
  }

  .hero {
    padding: 90px 12px 56px;
  }

  .hero-avatar-ring {
    width: 150px;
    height: 150px;
  }

  .hero-avatar-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .skill-card,
  .cert-card,
  .achievement-card,
  .edu-card {
    padding: 20px;
  }

  .contact-card {
    padding: 18px;
    gap: 12px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .contact-value {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .terminal-card {
    font-size: 0.75rem;
  }

  .terminal-body {
    padding: 14px;
    line-height: 1.8;
  }

  .about-avatar {
    width: 110px;
    height: 110px;
  }

  .about-avatar-wrap {
    width: 110px;
    height: 110px;
  }
}