/* ============================================================
   DESIGN SYSTEM — ROOT TOKENS
   ============================================================ */
:root {
  /* Colors */
  --bg-primary: #0a0514;
  --bg-secondary: #110924;
  --bg-alt: #0c061c;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);

  --accent-1: #9d4edd;
  /* vibrant purple */
  --accent-2: #f472b6;
  /* neon pinkish violet */
  --accent-3: #c084fc;
  /* light purple */
  --gold: #f59e0b;
  --green: #10b981;
  --red-soft: #ef4444;

  --text-primary: #f0f4ff;
  --text-secondary: #a78bfa;
  --text-muted: #6b5a8e;

  /* Typography */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: 100px;
  --container: 1100px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-mid: 0.3s ease;
  --t-slow: 0.6s ease;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(157, 78, 221, 0.15);
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 3px;
}

/* ============================================================
   UTILITY — GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: rgba(79, 142, 247, 0.25);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-mid);
  border: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.5);
}

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

.btn-ghost:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(79, 142, 247, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--accent-1);
  border: 1.5px solid var(--accent-1);
  padding: 9px 22px;
}

.btn-outline:hover {
  background: var(--accent-1);
  color: #fff;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.tag:hover {
  background: rgba(79, 142, 247, 0.12);
  color: var(--accent-1);
  border-color: rgba(79, 142, 247, 0.3);
}

.tag-primary {
  background: rgba(79, 142, 247, 0.15);
  border-color: rgba(79, 142, 247, 0.3);
  color: var(--accent-1);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.05);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all var(--t-mid);
}

#navbar.scrolled {
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-right: auto;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-mid);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 142, 247, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
    var(--bg-primary);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-name-accent {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent-2);
  min-height: 2em;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

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

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s 0.4s ease both;
}

/* Stats Row */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 36px;
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.8s 0.5s ease both;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

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

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

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

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  animation: fadeIn 1s 1.2s ease both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce-arrow 1.6s infinite;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: rotate(45deg) translateY(4px);
    opacity: 1;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

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

.about-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--t-mid);
}

.about-link:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(79, 142, 247, 0.08);
}

.about-card {
  padding: 28px;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  font-size: 1.1rem;
  color: var(--accent-1);
  margin-top: 2px;
  width: 20px;
  flex-shrink: 0;
}

.info-icon.accent {
  color: var(--accent-2);
}

.info-icon.gold {
  color: var(--gold);
}

.info-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   EXPERIENCE — TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
}

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

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.5);
}

.timeline-card {
  padding: 28px 32px;
}

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

.exp-company {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exp-role {
  font-size: 0.95rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-top: 4px;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.exp-date,
.exp-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
}

.exp-bullets {
  list-style: none;
  margin-bottom: 20px;
}

.exp-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-size: 0.7rem;
  top: 3px;
}

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

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

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  opacity: 0;
  transition: opacity var(--t-mid);
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 142, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon {
  font-size: 1.2rem;
  color: var(--accent-1);
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--t-fast);
}

.icon-btn:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: rgba(79, 142, 247, 0.1);
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.project-subtitle {
  font-size: 0.82rem;
  color: var(--accent-2);
  font-style: italic;
  margin-bottom: 4px;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-bullets {
  list-style: none;
  margin-bottom: 16px;
}

.project-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-size: 0.75rem;
  top: 1px;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

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

.project-card-featured {
  grid-column: span 2;
}

.project-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.project-meta-row .project-tags {
  margin-top: 0;
}

.project-repo-labels {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-end;
}

.repo-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.repo-label:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(79, 142, 247, 0.08);
}

.tag-purple {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
  color: #9b5cf6;
}

.tag-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* Featured card badge offset (has 3 icon-btns) */
.project-card-featured .project-badge {
  right: 124px;
}

.project-badge {
  position: absolute;
  top: 16px;
  right: 60px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.project-badge.live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-card {
  padding: 28px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.ach-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ach-icon-wrap.lc {
  background: rgba(255, 161, 22, 0.12);
  border: 1px solid rgba(255, 161, 22, 0.2);
}

.ach-icon-wrap.cf {
  background: rgba(30, 117, 255, 0.12);
  border: 1px solid rgba(30, 117, 255, 0.2);
}

.ach-icon-wrap.cc {
  background: rgba(102, 205, 170, 0.12);
  border: 1px solid rgba(102, 205, 170, 0.2);
}

.ach-platform-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ach-platform-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
}

.cf-text {
  color: #1e75ff;
}

.cc-text {
  color: #66cdaa;
}

.ach-body {
  flex: 1;
}

.ach-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ach-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

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

.ach-link {
  font-size: 0.82rem;
  color: var(--accent-1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t-fast);
}

.ach-link:hover {
  gap: 8px;
}

.ach-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.ach-badge.knight {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ach-badge.specialist {
  background: rgba(30, 117, 255, 0.12);
  color: #5b9ef7;
  border: 1px solid rgba(30, 117, 255, 0.25);
}

.ach-badge.star3 {
  background: rgba(102, 205, 170, 0.12);
  color: #66cdaa;
  border: 1px solid rgba(102, 205, 170, 0.25);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-group {
  padding: 24px;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.skill-group-header h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-group-icon {
  color: var(--accent-1);
  font-size: 1rem;
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: rgba(79, 142, 247, 0.07);
  border: 1px solid rgba(79, 142, 247, 0.15);
  color: var(--text-secondary);
  transition: all var(--t-fast);
  cursor: default;
}

.skill-tag:hover {
  background: rgba(79, 142, 247, 0.14);
  color: var(--accent-1);
  border-color: rgba(79, 142, 247, 0.35);
  transform: scale(1.04);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.cert-card {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--t-mid);
}

.cert-card:hover {
  text-decoration: none;
}

.cert-oracle-logo {
  flex-shrink: 0;
}

.cert-body {
  flex: 1;
}

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

.cert-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cert-link {
  font-size: 0.8rem;
  color: var(--accent-1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(79, 142, 247, 0.08) 0%, transparent 70%),
    var(--bg-primary);
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.7;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  gap: 10px;
  transition: all var(--t-mid);
}

.contact-card:hover {
  text-decoration: none;
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--accent-1);
}

.contact-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.contact-cta {
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 24px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-copy strong {
  color: var(--text-secondary);
}

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

.footer-social a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--t-fast);
}

.footer-social a:hover {
  color: var(--accent-1);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .skill-group[style*="span 2"] {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px 24px;
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px 28px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

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

  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    order: -1;
  }

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

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

  .project-card-featured {
    grid-column: span 1;
  }

  .project-card-featured .project-badge {
    right: 60px;
  }

  .project-meta-row {
    flex-direction: column;
  }

  .project-repo-labels {
    align-self: flex-start;
  }

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

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

  .skill-group[style*="span 2"] {
    grid-column: span 2;
  }

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

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

  .exp-header {
    flex-direction: column;
    gap: 8px;
  }

  .exp-meta {
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-group[style*="span 2"] {
    grid-column: span 1;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-stats {
    width: 100%;
  }

  .stat-card {
    width: 100%;
  }
}