:root {
  --bg-color: #020305;
  --accent-cyan: #00d4ff;
  --accent-blue: #0055ff;
  --accent-steel: #334155;
  --text-main: #e2e8f0;
  --text-dim: #475569;
  --card-bg: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(10, 10, 15, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --transition: all 0.25s ease;
  --font-family: 'Outfit', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  /* Fallback to monospace if not loaded */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg-color);
}

body {
  font-family: var(--font-family);
  background: transparent;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND — Dot Grid + Depth Orbs ===== */
.tactical-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;

  /* Base: near-black dark */
  background-color: #03050a;

  /* Dot grid — exact same hue as the navbar (#00d4ff = rgba 0,212,255) */
  background-image:
    radial-gradient(circle, rgba(0, 212, 255, 0.22) 1px, transparent 1px);
  background-size: 38px 38px;
}

/* 2. Depth orbs — large blurred glows that sit behind the grid for 3D feel */
.topo-contours {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Orb 1 — top-left, cyan */
.topo-contours::before {
  content: '';
  position: absolute;
  width: 65vw;
  height: 65vw;
  top: -20vw;
  left: -15vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18) 0%, transparent 65%);
  filter: blur(80px);
  animation: orbBreath1 20s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* Orb 2 — bottom-right, deep blue */
.topo-contours::after {
  content: '';
  position: absolute;
  width: 75vw;
  height: 75vw;
  bottom: -28vw;
  right: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 70, 255, 0.15) 0%, transparent 65%);
  filter: blur(100px);
  animation: orbBreath2 26s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes orbBreath1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  100% {
    transform: translate(4vw, 6vh) scale(1.08);
    opacity: 1;
  }
}

@keyframes orbBreath2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-5vw, -4vh) scale(1.1);
    opacity: 0.9;
  }
}

/* Vignette — now fully transparent, no gradient, dots visible edge to edge */
.vignette-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}


/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg,
      var(--accent-cyan),
      var(--accent-blue),
      #00aaff,
      var(--accent-cyan),
      var(--accent-blue));
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  20% {
    background-position: 100% 20%;
  }

  40% {
    background-position: 30% 100%;
  }

  60% {
    background-position: 100% 80%;
  }

  80% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.toggle-y {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.toggle-y.active {
  opacity: 1;
}

/* ===== PILL-SHAPED PROGRESS BAR NAVIGATION ===== */
.progress-nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 520px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  z-index: 999;
  background: rgba(8, 8, 10, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 99px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: visible;
  animation: navGlow 8s infinite alternate ease-in-out;
}

@keyframes navGlow {

  0%,
  100% {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 15px rgba(0, 212, 255, 0.1);
  }

  50% {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 15px rgba(0, 102, 255, 0.1);
  }
}

.progress-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  z-index: 1;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  opacity: 0;
  background: linear-gradient(90deg,
      rgba(0, 98, 255, 0.6),
      rgba(0, 242, 255, 0.6));
  border-right: 3px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.8), inset 0 0 10px rgba(0, 242, 255, 0.5);
  transition: width 0.1s ease, opacity 0.1s ease;
  z-index: 2;
}

.progress-labels {
  display: flex;
  gap: 35px;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease 0.5s, visibility 0.8s ease 0.5s;
}

.progress-nav.loading .progress-labels {
  opacity: 0;
  visibility: hidden;
  transition: none;
  /* Instant hide when loading starts */
}

.loading-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-cyan);
  font-weight: 800;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.progress-nav.loading .loading-status {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.progress-step {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.progress-step:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.2);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.progress-step.active {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.6), inset 0 0 15px rgba(0, 212, 255, 0.3);
  text-shadow: 0 0 10px rgba(255, 255, 255, 1);
}

/* Sections */
section {
  padding: 120px 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-badge {
  background: var(--glass-bg);
  color: var(--accent-cyan);
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
  border: 1px solid var(--glass-border);
  animation: fadeInDown 1s ease-out;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.9;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 3.5rem;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-motto {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #fff;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 3.5rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.valve-link {
  text-decoration: none;
  font-weight: inherit;
  font-style: inherit;
  color: #ff3333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.valve-link:hover {
  text-shadow: 0 0 15px #ff3333;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Buttons */
.btn {
  padding: 1.2rem 3rem;
  border-radius: 0;
  /* Pure Industrial Sharpness */
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--accent-steel);
  position: relative;
}

.btn-primary {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-primary:hover {
  background: var(--accent-cyan);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--accent-steel);
}

.btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}

/* Expertise Cards */
.section-header {
  margin-bottom: 6rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.section-header p {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--accent-blue);
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.skill-category {
  padding: 3rem;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  border-radius: 0;
  /* Industrial sharp */
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--accent-cyan);
}

.skill-category h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
}

.skill-list li {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-category:hover .skill-list li {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.4);
  border-bottom-color: rgba(0, 212, 255, 0.3);
}

.skill-list li:hover {
  color: var(--accent-cyan) !important;
  text-shadow: 0 0 15px rgba(0, 212, 255, 1) !important;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  transform: translateX(-85px);
  /* Centers the cards themselves since padding-left is 170px */
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 130px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  padding-left: 170px;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 127px;
  top: 48px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--company-color, var(--accent-cyan));
  box-shadow: 0 0 10px var(--company-color, var(--accent-cyan));
  z-index: 2;
  transition: all 0.4s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.5);
  box-shadow: 0 0 15px var(--company-color, var(--accent-cyan));
}

.timeline-date {
  position: absolute;
  left: 0;
  top: 38px;
  width: 110px;
  text-align: right;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  margin-bottom: 0;
  display: block;
  background: transparent;
  padding: 0;
  border: none;
}

/* Progressions */
.timeline-progression {
  position: relative;
  padding-left: 170px;
  margin-bottom: 24px;
  margin-top: -12px;
  height: 32px;
  display: flex;
  align-items: center;
}

.timeline-progression::before {
  content: '';
  position: absolute;
  left: 129px;
  /* Timeline line 130px, so 129px aligns perfectly given width */
  top: -12px;
  bottom: -12px;
  width: 4px;
  background: linear-gradient(to top, transparent, #0066ff, transparent);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.8);
  z-index: 3;
}

.progression-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(0, 102, 255, 0.5);
  position: absolute;
  left: 115px;
  /* Centers the 32px circle on 131px timeline center */
  z-index: 4;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
  backdrop-filter: blur(5px);
}

.progression-arrow span {
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 10px #0066ff;
  animation: floatUp 1.5s ease-in-out infinite;
}


@keyframes floatUp {

  0%,
  100% {
    transform: translateY(3px);
  }

  50% {
    transform: translateY(-3px);
  }
}

.experience-card {
  padding: 2.5rem 3rem;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Card Details - Always Visible */
.card-details {
  opacity: 1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.card-details h4 {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.card-details ul {
  list-style: none;
  padding: 0;
}

.card-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.card-details li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--company-color, var(--accent-blue));
  font-family: var(--font-mono);
  font-weight: 800;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: radial-gradient(circle 250px at calc(100% - 2rem) 2rem, var(--company-color, transparent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.experience-card:hover {
  border-color: var(--company-color, var(--accent-cyan));
}

.experience-card:hover::before {
  opacity: 0.15;
  /* Soft glow effect */
}

.company-logo-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.company-logo {
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
  opacity: 0.5;
  transition: all 0.4s ease;
  filter: grayscale(100%) brightness(1.5);
}

.experience-card:hover .company-logo-btn {
  border-color: var(--company-color);
  box-shadow: 0 0 20px var(--company-color), inset 0 0 10px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.experience-card:hover .company-logo {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

/* Base temporary colors, change these as needed based on logos */
.timeline-item.dedagroup {
  --company-color: #00d15e;
  /* Deda tech green */
}

.timeline-item.euroinformatica {
  --company-color: #0066ff;
}

.timeline-item.soc {
  --company-color: #00ffaa;
}

.timeline-item.soluzioneufficio {
  --company-color: #ffaa00;
}

.timeline-item.eduforma {
  --company-color: #9b51e0;
  /* Eduforma purple */
}

.timeline-item.early-career {
  --company-color: #3498db;
  /* Grey/Blue for early background */
}

/* Fix for JPG with white background: invert it so white becomes black, then screen-blend to remove it */
.timeline-item.soluzioneufficio .company-logo-btn {
  background: rgba(255, 255, 255, 0.05);
  mix-blend-mode: normal;
}

.timeline-item.soluzioneufficio .company-logo {
  filter: invert(1) grayscale(100%) brightness(2);
  mix-blend-mode: screen;
  opacity: 0.6;
  width: 100px;
  height: 40px;
  object-fit: contain;
}

.experience-card:hover .timeline-item.soluzioneufficio .company-logo,
.timeline-item.soluzioneufficio .experience-card:hover .company-logo {
  filter: invert(1) grayscale(0%) brightness(1.4);
  opacity: 1;
}

.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.card-meta {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 800;
  display: block;
}

.experience-card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-top: 2rem;
  max-width: 800px;
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: none;
  padding: 0 20px;
}

.cert-card {
  padding: 32px 20px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 8px;
  transition: all 0.4s ease-out;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 0.6 / 1;
  min-height: 320px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Check Point certifications - Pink */
.cert-card:nth-child(1),
.cert-card:nth-child(2),
.cert-card:nth-child(3) {
  border-color: rgba(255, 105, 180, 0.4);
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(255, 105, 180, 0.03) 100%);
}

/* Trend Micro certification - Red */
.cert-card:nth-child(4) {
  border-color: rgba(220, 20, 60, 0.4);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(220, 20, 60, 0.03) 100%);
}

.cert-badge {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 18px;
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.6s ease-out;
  z-index: 0;
}

.cert-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: 0;
  border-radius: 8px;
}

/* Check Point hover effects - Pink glow */
.cert-card:nth-child(1):hover,
.cert-card:nth-child(2):hover,
.cert-card:nth-child(3):hover {
  border-color: rgba(255, 105, 180, 1);
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.2) 0%, rgba(255, 105, 180, 0.1) 100%);
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 16px 48px rgba(255, 105, 180, 0.5), 0 0 32px rgba(255, 105, 180, 0.3);
}

.cert-card:nth-child(1):hover .cert-badge,
.cert-card:nth-child(2):hover .cert-badge,
.cert-card:nth-child(3):hover .cert-badge {
  transform: scale(1.2);
  filter: drop-shadow(0 0 16px rgba(255, 105, 180, 0.8));
}

/* Trend Micro hover effects - Red glow */
.cert-card:nth-child(4):hover {
  border-color: rgba(220, 20, 60, 1);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2) 0%, rgba(220, 20, 60, 0.1) 100%);
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 16px 48px rgba(220, 20, 60, 0.5), 0 0 32px rgba(220, 20, 60, 0.3);
}

.cert-card:nth-child(4):hover .cert-badge {
  transform: scale(1.2);
  filter: drop-shadow(0 0 16px rgba(220, 20, 60, 0.8));
}

.cert-card:hover::before {
  transform: translateX(100%);
  opacity: 1;
}

.cert-card:hover::after {
  opacity: 1;
}

.cert-card h3 {
  font-size: 0.87rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  max-width: 100%;
  word-wrap: break-word;
}

/* Check Point - Pink text on hover */
.cert-card:nth-child(1) h3,
.cert-card:nth-child(2) h3,
.cert-card:nth-child(3) h3 {
  color: rgba(255, 105, 180, 0.9);
  transition: color 0.3s ease-out;
}

.cert-card:nth-child(1):hover h3,
.cert-card:nth-child(2):hover h3,
.cert-card:nth-child(3):hover h3 {
  color: #ff69b4;
  text-shadow: 0 0 14px rgba(255, 105, 180, 0.7);
}

/* Trend Micro - Red text on hover */
.cert-card:nth-child(4) h3 {
  color: rgba(220, 20, 60, 0.9);
  transition: color 0.3s ease-out;
}

.cert-card:nth-child(4):hover h3 {
  color: #dc143c;
  text-shadow: 0 0 14px rgba(220, 20, 60, 0.7);
}

.cert-issuer {
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease-out;
}

/* Check Point - Issuer color on hover */
.cert-card:nth-child(1):hover .cert-issuer,
.cert-card:nth-child(2):hover .cert-issuer,
.cert-card:nth-child(3):hover .cert-issuer {
  color: rgba(255, 105, 180, 0.8);
}

/* Trend Micro - Issuer color on hover */
.cert-card:nth-child(4):hover .cert-issuer {
  color: rgba(220, 20, 60, 0.8);
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 2rem;
  line-height: 0.95;
}

.contact-info p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 500px;
  margin-bottom: 4rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1rem;
  border: 1px solid var(--glass-border);
}

.contact-detail a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-detail a:hover {
  color: var(--accent-cyan);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE — Tablet (≤900px) ===== */
@media (max-width: 900px) {
  .progress-nav {
    min-width: auto;
    width: calc(100% - 40px);
    max-width: 600px;
    padding: 0 16px;
  }

  .progress-labels {
    gap: 16px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE — Mobile (≤640px) ===== */
@media (max-width: 640px) {

  /* NAVBAR — compact fit, all 5 buttons visible on one line */
  .progress-nav {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    min-width: unset;
    max-width: 420px;
    height: 44px;
    padding: 0 6px;
    overflow: hidden;
    /* clip the fill bar, buttons fit inside */
    border-radius: 99px;
  }

  .progress-labels {
    gap: 2px;
    padding: 0 2px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .progress-step {
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    padding: 5px 8px;
    white-space: nowrap;
    border-radius: 99px;
  }

  /* HERO */
  .hero {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.4rem, 13vw, 4rem);
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 8px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* SECTIONS */
  .expertise,
  .experience,
  .certifications,
  .contact {
    padding: 60px 20px;
  }

  .section-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  /* SKILLS GRID */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* TIMELINE — full reset to simple vertical layout on mobile */
  .timeline {
    transform: none;
    /* remove the desktop -85px translateX offset */
    max-width: 100%;
    padding-left: 0;
  }

  .timeline::before {
    left: 16px;
    /* thin vertical line on far left */
  }

  .timeline-item {
    padding-left: 40px;
    /* just enough room for the dot on the left */
    margin-bottom: 32px;
  }

  .timeline-marker {
    left: 11px;
    /* sits on the vertical line */
    top: 20px;
  }

  /* Date moves from absolute sidebar to inline block above the card */
  .timeline-date {
    position: static;
    /* no longer absolutely positioned */
    display: block;
    width: auto;
    text-align: left;
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .timeline-content {
    padding: 0;
    /* content is just the card, no extra wrapper padding */
  }

  .experience-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  /* Pull logo out of absolute flow → bottom of card */
  .experience-card .company-logo-btn {
    position: static;
    align-self: flex-start;
    margin-top: 1.5rem;
    order: 10;
  }

  /* Progression arrow stays centred on the left line */
  .timeline-progression {
    padding-left: 40px;
    margin-bottom: 16px;
  }

  .timeline-progression::before {
    left: 14px;
  }

  .progression-arrow {
    left: 0px;
    width: 28px;
    height: 28px;
  }

  /* CERTIFICATIONS */
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cert-card {
    aspect-ratio: auto;
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .cert-badge {
    width: 60px;
    height: 60px;
  }

  /* CONTACT */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* FOOTER */
  .site-footer {
    padding: 2rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ===== RESPONSIVE — Very small phones (≤390px) ===== */
@media (max-width: 390px) {
  .hero-title {
    font-size: clamp(2rem, 14vw, 3rem);
  }

  .certifications-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== FOOTER ===== */
.site-footer {
  padding: 4rem;
  text-align: center;
  color: var(--text-dim);
  border-top: 1px solid var(--glass-border);
}

/* ===== UTILITY ===== */
.btn-block {
  display: block;
  text-align: center;
}