/* ============================================
   CSS Custom Properties & Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1424;
  --bg-card: rgba(13, 20, 36, 0.7);
  --bg-card-hover: rgba(18, 28, 50, 0.85);
  --border: rgba(99, 179, 255, 0.12);
  --border-hover: rgba(99, 179, 255, 0.3);

  --accent: #3b8bff;
  --accent-2: #00e5ff;
  --accent-glow: rgba(59, 139, 255, 0.25);
  --accent-light: rgba(59, 139, 255, 0.1);

  --text-primary: #eaf2ff;
  --text-second: #8ba8cc;
  --text-muted: #4a6080;

  --cyan: #00e5ff;
  --purple: #a78bfa;
  --green: #34d399;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-base: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(99, 179, 255, 0.08) inset;
  --shadow-glow: 0 0 40px rgba(59, 139, 255, 0.18);
}

html {
  scroll-behavior: smooth;
}

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

/* ============================================
   Animated Background
   ============================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59, 139, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 139, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 20s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #1a4fd8, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00b4d8, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation-delay: -8s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -15s;
  animation-duration: 25s;
}

@keyframes drift {

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

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

  66% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 12, 20, 0.92);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(59, 139, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 139, 255, 0.08);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-second);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-light);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
}

.nav-link.cta-btn:hover {
  background: #5a9fff;
  box-shadow: 0 0 20px rgba(59, 139, 255, 0.4);
}

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

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

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Reveal Animation
   ============================================ */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), transform 0.7s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}

.reveal.visible,
.reveal-item.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 5vw 4rem;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.07);
  margin-bottom: 1.25rem;
  white-space: nowrap;
  /* prevents badge from growing taller on long text */
  /* Lock height: prevents shift when typing slot is empty between transitions */
  min-height: 2rem;
}

/* Typing slot — always occupies at least 1 character height */
.hero-badge span {
  display: inline-block;
  min-height: 1.2em;
  min-width: 2px;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

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

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-second);
  margin-bottom: 1.75rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-second);
  text-decoration: none;
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.contact-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.contact-chip:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-light);
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #1d6ff6);
  color: #fff;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 20px rgba(59, 139, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 139, 255, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(99, 179, 255, 0.4);
  background: rgba(99, 179, 255, 0.07);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

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

/* ============================================
   Network Graph (Hero Visual)
   ============================================ */
.hero-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(600px, 48vw);
}

.network-graph {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  opacity: 0.9;
  will-change: transform;
  transform: translateZ(0);
}

.network-graph svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ============================================
   Summary / Stats Section
   ============================================ */
.summary-section {
  position: relative;
  z-index: 1;
  padding: 4rem 5vw;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(59, 139, 255, 0.04), transparent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.summary-stat {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.summary-stat:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-plus {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  vertical-align: top;
  margin-top: 0.2rem;
}

.stat-label {
  display: block;
  color: var(--text-second);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-text {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  color: var(--text-second);
  font-size: 1.0rem;
  line-height: 1.85;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  border: 1px solid rgba(59, 139, 255, 0.3);
  background: rgba(59, 139, 255, 0.08);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

/* ============================================
   Timeline (Experience)
   ============================================ */
.timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 1.75rem;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(59, 139, 255, 0.5);
  flex-shrink: 0;
  z-index: 1;
}

.marker-line {
  flex: 1;
  width: 2px;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(59, 139, 255, 0.4), rgba(59, 139, 255, 0.05));
  margin-top: 6px;
}

.timeline-card {
  flex: 1;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  will-change: transform;
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.job-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.job-period,
.job-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.job-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.job-badge.current {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.job-bullets li {
  font-size: 0.9rem;
  color: var(--text-second);
  line-height: 1.6;
  padding-left: 1.125rem;
  position: relative;
}

.job-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.06);
  transition: background var(--transition), border-color var(--transition);
}

.tech-tag:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
}

/* ============================================
   Skills Section
   ============================================ */
.skills-section {
  background: linear-gradient(180deg, transparent, rgba(59, 139, 255, 0.03), transparent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  will-change: transform;
}

.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-3px);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  border: 1px solid rgba(59, 139, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.skill-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

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

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tags span {
  font-size: 0.8rem;
  color: var(--text-second);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.skill-card:hover .skill-tags span {
  border-color: rgba(59, 139, 255, 0.2);
}

/* ============================================
   Certifications Section
   ============================================ */
.certs-section {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04), transparent);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}

.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cert-card.expired {
  opacity: 0.65;
}

.cert-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo svg {
  width: 22px;
  height: 22px;
}

.cert-logo.cisco {
  background: rgba(0, 165, 224, 0.15);
  color: #00a5e0;
}

.cert-logo.azure {
  background: rgba(0, 114, 204, 0.15);
  color: #0072cc;
}

.cert-logo.aviatrix {
  background: rgba(255, 160, 0, 0.15);
  color: #ffa000;
}

.cert-logo.juniper {
  background: rgba(132, 189, 0, 0.15);
  color: #84bd00;
}

.cert-info h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--text-second);
}

.expired-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  margin-left: 0.3rem;
  text-transform: uppercase;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 0.875rem;
}

.project-card h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-second);
  line-height: 1.65;
}

/* ============================================
   Education Section
   ============================================ */
.edu-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.edu-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.edu-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.edu-content {
  flex: 1;
}

.edu-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.edu-field {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.edu-university {
  font-size: 0.9rem;
  color: var(--text-second);
  margin-bottom: 0.25rem;
}

.edu-details {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--border), rgba(99, 179, 255, 0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(59, 139, 255, 0.04), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid rgba(59, 139, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: rgba(59, 139, 255, 0.2);
  border-color: rgba(59, 139, 255, 0.5);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-card-value {
  font-size: 0.875rem;
  color: var(--text-second);
  word-break: break-all;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.825rem;
  background: rgba(8, 12, 20, 0.9);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding-top: 7rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-contacts,
  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 0 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .nav-links.open {
    transform: none;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .hero-name {
    font-size: 3rem;
  }

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

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-marker {
    flex-direction: row;
    padding-top: 0;
  }

  .marker-line {
    width: 40px;
    height: 2px;
    min-height: unset;
    margin-top: 0;
    margin-left: 6px;
  }

  .edu-card {
    flex-wrap: wrap;
  }

  .edu-year {
    display: none;
  }
}

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .card-header {
    flex-direction: column;
  }

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

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-second);
  margin-right: 0.5rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-light);
}

/* ============================================
   Light Mode Theme
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f0f4ff;
  --bg-secondary: #e4ecfb;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border: rgba(59, 139, 255, 0.2);
  --border-hover: rgba(59, 139, 255, 0.5);
  --accent: #1a5fd8;
  --accent-2: #0ea5e9;
  --accent-glow: rgba(26, 95, 216, 0.2);
  --accent-light: rgba(26, 95, 216, 0.08);
  --text-primary: #0d1a2e;
  --text-second: #3a5275;
  --text-muted: #7090b0;
  --cyan: #0369a1;
  --purple: #7c3aed;
  --green: #15803d;
  --shadow-card: 0 4px 24px rgba(59, 139, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --shadow-glow: 0 0 40px rgba(26, 95, 216, 0.12);
}

[data-theme="light"] body {
  background: var(--bg-primary);
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(59, 139, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 139, 255, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .orb-1 {
  background: radial-gradient(circle, #93c5fd, transparent 70%);
  opacity: 0.25;
}

[data-theme="light"] .orb-2 {
  background: radial-gradient(circle, #bae6fd, transparent 70%);
  opacity: 0.25;
}

[data-theme="light"] .orb-3 {
  background: radial-gradient(circle, #c4b5fd, transparent 70%);
  opacity: 0.15;
}

[data-theme="light"] .navbar {
  background: rgba(240, 244, 255, 0.82);
  border-bottom-color: var(--border);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 244, 255, 0.96);
}

[data-theme="light"] .nav-logo {
  border-color: rgba(26, 95, 216, 0.35);
  background: rgba(26, 95, 216, 0.08);
}

[data-theme="light"] .footer {
  background: rgba(240, 244, 255, 0.95);
}

[data-theme="light"] .expired-badge {
  color: #c2410c;
  background: rgba(194, 65, 12, 0.1);
  border-color: rgba(194, 65, 12, 0.3);
}

/* ============================================
   Blog / Articles Section
   ============================================ */
.blog-section {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04), transparent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.08);
  display: inline-block;
  align-self: flex-start;
}

.blog-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--text-second);
  line-height: 1.7;
  flex: 1;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.blog-read {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px dashed var(--border);
  background: transparent;
  cursor: default;
}

/* ============================================
   Print / PDF Stylesheet
   ============================================ */
@media print {
  * {
    animation: none !important;
    transition: none !important;
  }

  /* Force all reveal elements visible — JS may not have triggered for off-screen elements */
  .reveal,
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  /* Force readable dark text */
  body,
  p,
  li,
  h1,
  h2,
  h3,
  h4,
  span,
  div {
    color: #111 !important;
    -webkit-text-fill-color: initial !important;
  }

  .section-title,
  .job-title,
  .company-name,
  .hero-name .accent,
  .stat-number,
  .stat-plus {
    color: #1a5fd8 !important;
    -webkit-text-fill-color: #1a5fd8 !important;
  }

  .hero-name {
    -webkit-text-fill-color: #0d1a2e !important;
    color: #0d1a2e !important;
  }

  .bg-grid,
  .bg-orbs,
  .hero-visual,
  .navbar,
  .hero-cta,
  .hero-badge,
  .btn-primary,
  .btn-secondary,
  #download-cv-btn,
  .theme-toggle,
  .hamburger {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  main {
    padding: 0;
  }

  .hero {
    min-height: auto;
    padding: 1.5rem 2rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 2px solid #1a5fd8;
  }

  .hero-name {
    font-size: 28pt;
    color: #0d1a2e;
    -webkit-text-fill-color: #0d1a2e;
  }

  .hero-name .accent {
    background: none;
    -webkit-text-fill-color: #1a5fd8;
  }

  .hero-tagline {
    font-size: 10pt;
    color: #3a5275;
    margin-bottom: 0.5rem;
  }

  .hero-contacts {
    gap: 0.5rem;
  }

  .contact-chip {
    border: none;
    padding: 0;
    color: #3a5275;
    font-size: 9pt;
  }

  .contact-chip svg {
    width: 12px;
    height: 12px;
  }

  .summary-section,
  .section {
    padding: 1rem 0;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 16pt;
    color: #0d1a2e;
  }

  .section-tag {
    display: none;
  }

  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .summary-stat {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
  }

  .stat-number {
    font-size: 18pt;
    color: #1a5fd8;
    -webkit-text-fill-color: #1a5fd8;
  }

  .stat-label {
    font-size: 8pt;
    color: #555;
  }

  .stat-plus {
    font-size: 14pt;
    color: #1a5fd8;
  }

  .summary-text {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    color: #333;
  }

  .timeline-item {
    margin-bottom: 1rem;
  }

  .timeline-marker {
    display: none;
  }

  .timeline-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: none;
  }

  .job-title {
    font-size: 12pt;
    color: #0d1a2e;
  }

  .company-name {
    font-size: 10pt;
    color: #1a5fd8;
  }

  .job-period,
  .job-location {
    font-size: 9pt;
    color: #555;
  }

  .job-badge {
    display: none;
  }

  .job-bullets li {
    font-size: 10pt;
    color: #333;
  }

  .tech-tags {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .skill-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    box-shadow: none;
  }

  .skill-category {
    font-size: 10pt;
    color: #0d1a2e;
  }

  .skill-icon {
    width: 28px;
    height: 28px;
  }

  .skill-tags span {
    font-size: 8pt;
    color: #3a5275;
    border: 1px solid #ddd;
    padding: 0.15rem 0.4rem;
  }

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

  .cert-card {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 6px;
  }

  .cert-info h4 {
    font-size: 10pt;
    color: #0d1a2e;
  }

  .cert-info p {
    font-size: 9pt;
    color: #555;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .project-card {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 6px;
  }

  .project-icon {
    font-size: 1.2rem;
  }

  .project-card h4 {
    font-size: 10pt;
  }

  .project-card p {
    font-size: 9pt;
    color: #555;
  }

  .edu-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: none;
  }

  .blog-section,
  .contact-section {
    display: none;
  }

  .footer {
    border-top: 1px solid #ddd;
    padding: 0.5rem;
    font-size: 9pt;
    color: #666;
  }

  a {
    color: #1a5fd8 !important;
    text-decoration: none;
  }

  @page {
    margin: 1.5cm;
    size: A4;
  }
}