/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
  --cyan: hsl(220, 70%, 40%);
  --cyan-light: hsl(205, 65%, 52%);
  --cyan-glow: hsla(205, 70%, 55%, 0.28);
  --purple: hsl(210, 70%, 45%);
  --purple-light: hsl(200, 65%, 58%);
  --purple-glow: hsla(200, 70%, 60%, 0.25);
  --bg-dark: #080818;
  --bg-section: #0a0a20;
  --bg-card: #0f0f28;
  --bg-card-hover: #151535;
  --elevation-1: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.25);
  --elevation-2: 0 4px 6px rgba(0,0,0,0.25), 0 10px 25px rgba(0,0,0,0.2);
  --elevation-3: 0 10px 20px rgba(0,0,0,0.3), 0 20px 40px rgba(0,0,0,0.25);
  --glow-subtle: 0 0 20px rgba(100, 150, 220, 0.15);
  --text-primary: #e8e8f0;
  --text-secondary: #9898b8;
  --text-muted: #6868a0;
  --border: rgba(255, 255, 255, 0.06);
  --gradient: linear-gradient(145deg, hsl(220, 70%, 42%), hsl(210, 70%, 50%));
  --gradient-text: linear-gradient(145deg, hsl(205, 65%, 55%), hsl(200, 70%, 62%));
  --nav-height: 70px;
  --container-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(220, 70%, 35%), hsl(210, 70%, 42%));
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, hsl(205, 65%, 48%), hsl(200, 70%, 55%));
}

::-webkit-scrollbar-corner {
  background: var(--bg-dark);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: hsl(220, 70%, 38%) var(--bg-dark);
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

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

ul {
  list-style: none;
}

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

/* ========================================
   CURSOR GLOW
   ======================================== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, hsla(187, 74%, 50%, 0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1001;
  width: 0%;
  transition: width 0.05s linear;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  padding: 6px 16px;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--cyan-glow);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
}

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

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

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

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--text-primary);
}

.mobile-cv-btn {
  background: var(--gradient);
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fff;
  background-clip: unset;
  color: #fff;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 16px;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.3px),
    radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.4px),
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 44% 22%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 52% 10%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.4px),
    radial-gradient(circle at 60% 18%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 68% 8%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 90% 32%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 12% 52%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 26% 58%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 64%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 54% 58%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 62%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 86% 56%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 86%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 90%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1.2px),
    radial-gradient(circle at 26% 36%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.2px),
    radial-gradient(circle at 32% 22%, rgba(80, 130, 200, 0.24) 0 1px, transparent 1.3px),
    radial-gradient(circle at 48% 14%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.4px),
    radial-gradient(circle at 62% 26%, rgba(100, 90, 180, 0.24) 0 1px, transparent 1.3px),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.20) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 44%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 18%, rgba(70, 120, 190, 0.22) 0 1px, transparent 1.4px),
    radial-gradient(circle at 18% 64%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 78%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px),
    radial-gradient(circle at 58% 68%, rgba(90, 85, 165, 0.20) 0 1px, transparent 1.4px),
    radial-gradient(circle at 84% 76%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(900px 540px at 20% 25%, rgba(70, 120, 190, 0.10) 0%, transparent 62%),
    radial-gradient(760px 520px at 80% 30%, rgba(90, 85, 165, 0.10) 0%, transparent 65%),
    linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.07) 45%, rgba(60, 110, 180, 0.06) 50%, rgba(80, 75, 155, 0.05) 55%, transparent 70%),
    radial-gradient(1200px 700px at 50% 100%, rgba(0, 0, 0, 0.50) 0%, transparent 65%);
  opacity: 0.92;
  filter: saturate(1.05);
  animation: hero-twinkle 7.5s ease-in-out infinite;
}

@keyframes hero-twinkle {
  0%, 100% {
    opacity: 0.90;
    filter: saturate(1.05) brightness(1);
  }
  45% {
    opacity: 0.94;
    filter: saturate(1.10) brightness(1.03);
  }
  70% {
    opacity: 0.91;
    filter: saturate(1.06) brightness(1.01);
  }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.25) 62%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.85;
}

@media (pointer: fine) {
  .hero {
    --spotlight-x: 50vw;
    --spotlight-y: 40vh;
  }

  .hero::after {
    background:
      radial-gradient(520px 520px at var(--spotlight-x) var(--spotlight-y), rgba(255, 255, 255, 0.07) 0%, transparent 62%),
      radial-gradient(circle at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.25) 62%, rgba(0, 0, 0, 0.55) 100%);
  }
}

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

.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* Comets */
.comet-wrapper {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.comet {
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(220, 235, 255, 0.95);
  box-shadow:
    0 0 6px 2px rgba(200, 220, 255, 0.9),
    0 0 20px 4px rgba(140, 180, 230, 0.6),
    0 0 40px 8px rgba(100, 150, 220, 0.3);
}

.comet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(220, 235, 255, 0.9) 0%,
    rgba(180, 210, 250, 0.5) 25%,
    rgba(140, 180, 230, 0.2) 50%,
    transparent 100%);
  transform: translateY(-50%);
  transform-origin: left center;
  border-radius: 1px;
}

/* Tail rotations for each direction (tail trails behind head) */
.comet-wrapper.comet-fly-br .comet::after {
  transform: translateY(-50%) rotate(-45deg);
}

.comet-wrapper.comet-fly-bl .comet::after {
  transform: translateY(-50%) rotate(-135deg);
}

.comet-wrapper.comet-fly-r .comet::after {
  transform: translateY(-50%) rotate(0deg);
}

.comet-wrapper.comet-fly-d .comet::after {
  transform: translateY(-50%) rotate(-90deg);
}

@keyframes comet-fly-br {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  5% { opacity: 1; transform: translate(-15px, 15px) scale(1); }
  95% { opacity: 1; transform: translate(-320px, 320px) scale(1); }
  100% { opacity: 0; transform: translate(-350px, 350px) scale(0.8); }
}

@keyframes comet-fly-bl {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  5% { opacity: 1; transform: translate(15px, 15px) scale(1); }
  95% { opacity: 1; transform: translate(320px, 320px) scale(1); }
  100% { opacity: 0; transform: translate(350px, 350px) scale(0.8); }
}

@keyframes comet-fly-r {
  0% { opacity: 0; transform: translateX(0) scale(0.8); }
  5% { opacity: 1; transform: translateX(-20px) scale(1); }
  95% { opacity: 1; transform: translateX(-400px) scale(1); }
  100% { opacity: 0; transform: translateX(-430px) scale(0.8); }
}

@keyframes comet-fly-d {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  5% { opacity: 1; transform: translateY(20px) scale(1); }
  95% { opacity: 1; transform: translateY(350px) scale(1); }
  100% { opacity: 0; transform: translateY(380px) scale(0.8); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.hero-avatar {
  width: clamp(128px, 16vw, 190px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 12px;
  position: relative;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.hero-avatar::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -12px;
  height: 20px;
  border-radius: 999px;
  background: transparent;
  filter: blur(12px);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
}

.hero-avatar:hover {
  transform: translateY(-2px) scale(1.03);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
  object-position: 50% 20%;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.52));
  transition: filter 0.25s ease;
}

.hero-avatar:hover img {
  filter: saturate(1.05) contrast(1.02) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(100, 150, 220, 0.08);
  border: 1px solid rgba(100, 150, 220, 0.2);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 600;
  color: rgba(160, 190, 235, 0.9);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-name {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text-primary);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(100, 150, 220, 0.1);
}

.hero-surname {
  display: inline-block;
  color: rgba(220, 225, 240, 0.95);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-wrapper {
  height: 50px;
  overflow-x: hidden;
  overflow-y: hidden;
  margin-bottom: 18px;
}

.hero-title-carousel {
  position: relative;
  height: 50px;
  text-align: center;
}

.carousel-item {
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.carousel-item.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline {
  font-size: 15px;
  color: rgba(160, 165, 185, 0.92);
  max-width: 560px;
  margin: 0 auto 34px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 4px 20px rgba(100, 150, 220, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), 0 8px 30px rgba(100, 150, 220, 0.35);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(100, 150, 220, 0.08);
  transform: translateY(-2px);
  border-color: rgba(100, 150, 220, 0.3);
  box-shadow: 0 4px 16px rgba(100, 150, 220, 0.15);
}

.btn-download {
  background: rgba(60, 120, 190, 0.06);
  color: var(--cyan-light);
  border: 1px solid rgba(60, 120, 190, 0.4);
}

.btn-download:hover {
  background: rgba(60, 120, 190, 0.14);
  transform: translateY(-2px);
  border-color: rgba(100, 150, 220, 0.55);
  box-shadow: 0 4px 16px rgba(100, 150, 220, 0.2);
}

.btn-download svg {
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(120, 130, 160, 0.75);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  animation: fade-bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(120, 130, 160, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(140, 180, 220, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

@keyframes fade-bounce {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ========================================
   SECTIONS (SHARED)
   ======================================== */
.section {
  padding: 120px 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section-heading {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.section-number {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ========================================
   STORY / TIMELINE
   ======================================== */
.story-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 48px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--cyan);
  z-index: 1;
  transition: background 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--elevation-1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 150, 220, 0.25), transparent);
  opacity: 0.6;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 150, 220, 0.25);
  box-shadow: var(--elevation-2), var(--glow-subtle);
}

.timeline-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   EXPERIENCE
   ======================================== */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.exp-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--elevation-1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 150, 220, 0.3), transparent);
  opacity: 0.6;
}

.exp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 150, 220, 0.25);
  box-shadow: var(--elevation-2), var(--glow-subtle);
}

.exp-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.exp-card:hover .exp-card-accent {
  opacity: 1;
}

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

.exp-company {
  font-size: 20px;
  font-weight: 700;
  color: var(--purple-light);
}

.exp-role {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.exp-period {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.exp-list {
  margin-bottom: 16px;
}

.exp-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.6;
}

.exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

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

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(60, 120, 190, 0.12);
  color: var(--cyan-light);
  border: 1px solid rgba(60, 120, 190, 0.22);
}

/* ========================================
   FEATURED PROJECTS
   ======================================== */
.featured-project {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--elevation-2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.featured-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0.9;
}

.featured-project:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 150, 220, 0.3);
  box-shadow: var(--elevation-3), 0 0 30px rgba(100, 150, 220, 0.12);
}

.featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg-dark);
  background: var(--gradient);
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.featured-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.featured-layout .featured-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.featured-video {
  flex-shrink: 0;
}

.featured-video h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-align: center;
}

.video-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.video-portrait {
  width: 190px;
}

.video-wrapper video,
.video-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 11px;
}

.featured-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.featured-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.featured-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 800px;
}

.featured-highlights {
  display: flex;
  gap: 32px;
  margin-top: auto;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.highlight-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-architecture {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  overflow: visible;
}

.featured-architecture h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.arch-desktop-chip {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 10px;
  line-height: 1.4;
}

.arch-desktop-chip svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.arch-node {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 18px;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.3s;
}

.arch-node:hover {
  border-color: var(--cyan);
}

.arch-node {
  animation: node-glow 4s ease-in-out infinite;
}

.arch-flow .arch-node:nth-child(1) { animation-delay: 0s; }
.arch-flow .arch-node:nth-child(3) { animation-delay: 0.6s; }
.arch-flow .arch-node:nth-child(5) { animation-delay: 1.2s; }
.arch-flow .arch-node:nth-child(7) { animation-delay: 1.8s; }
.arch-flow .arch-node:nth-child(9) { animation-delay: 2.4s; }

@keyframes node-glow {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 1px rgba(100, 150, 220, 0.12), 0 0 18px rgba(100, 150, 220, 0.10);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles .particle {
    animation: none;
    opacity: 0;
  }

  .comet-wrapper {
    animation: none !important;
    opacity: 0;
  }

  .cursor-glow {
    display: none;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .carousel-item {
    transition: none;
  }

  .arch-node {
    animation: none;
  }
}

.arch-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.arch-detail {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.arch-arrow {
  color: var(--cyan);
  flex-shrink: 0;
  position: relative;
  width: 40px;
  height: 20px;
  overflow: visible;
}

.arch-arrow svg {
  display: none;
}

/* Request dot: cyan, goes left → right */
.arch-arrow::before {
  content: '';
  position: absolute;
  top: calc(50% - 5px);
  left: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-light);
  box-shadow: 0 0 6px var(--cyan-glow), 0 0 12px var(--cyan-glow);
  animation: data-send 1.2s ease-in-out infinite;
  opacity: 0;
}

/* Response dot: purple, goes right → left */
.arch-arrow::after {
  content: '';
  position: absolute;
  top: calc(50% + 3px);
  left: calc(100% + 4px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 6px var(--purple-glow), 0 0 12px var(--purple-glow);
  animation: data-return 1.2s ease-in-out infinite;
  animation-delay: 0.6s;
  opacity: 0;
}

.arch-flow .arch-arrow:nth-child(2)::before { animation-delay: 0s; }
.arch-flow .arch-arrow:nth-child(2)::after { animation-delay: 0.6s; }
.arch-flow .arch-arrow:nth-child(4)::before { animation-delay: 0.2s; }
.arch-flow .arch-arrow:nth-child(4)::after { animation-delay: 0.8s; }
.arch-flow .arch-arrow:nth-child(6)::before { animation-delay: 0.4s; }
.arch-flow .arch-arrow:nth-child(6)::after { animation-delay: 1s; }
.arch-flow .arch-arrow:nth-child(8)::before { animation-delay: 0.6s; }
.arch-flow .arch-arrow:nth-child(8)::after { animation-delay: 1.2s; }

.arch-risk-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  grid-template-rows: auto 36px auto;
  column-gap: 0;
  row-gap: 0;
  align-items: center;
}

.arch-risk-grid .arch-node {
  position: relative;
  z-index: 1;
}

.risk-mobile { grid-column: 1; grid-row: 1 / 4; align-self: center; }
.risk-core   { grid-column: 3; grid-row: 1; }
.risk-ai     { grid-column: 3; grid-row: 3; }
.risk-mcp    { grid-column: 5; grid-row: 3; }

@media (max-width: 768px) {
  .featured-layout {
    flex-direction: column;
  }

  .featured-video {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .video-portrait {
    width: 220px;
  }
}

/* PPE Architecture Grid */
.arch-ppe-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  grid-template-rows: auto 16px auto;
  align-items: center;
  gap: 0;
  position: relative;
}

.arch-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.conn-path {
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(100, 150, 220, 0.24));
}

.conn-particle {
  filter: drop-shadow(0 0 3px rgba(140, 190, 240, 0.75));
}

.arch-ppe-grid .arch-node {
  position: relative;
  z-index: 1;
}

/* Generic anchor bullets (work for any architecture grid) */
.arch-node[data-conn*="source"]::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(100, 150, 220, 0.6);
  border: 2px solid rgba(140, 180, 230, 0.9);
  box-shadow: 0 0 0 2px rgba(10, 10, 32, 0.75), 0 0 10px rgba(100, 150, 220, 0.5);
  z-index: 2;
}

 .arch-risk-grid .risk-mcp[data-conn*="source"]::after {
   right: auto;
   left: -4px;
 }

.arch-node[data-conn*="target-"]::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120, 170, 200, 0.5);
  border: 2px solid rgba(150, 190, 230, 0.8);
  box-shadow: 0 0 0 2px rgba(10, 10, 32, 0.75), 0 0 10px rgba(120, 170, 200, 0.35);
  z-index: 2;
}

.ppe-mobile   { grid-column: 1; grid-row: 1; }
.ppe-arrow-mc { grid-column: 2; grid-row: 1; }
.ppe-core     { grid-column: 3; grid-row: 1 / 4; }
.ppe-arrow-mf { grid-column: 4; grid-row: 1; }
.ppe-face     { grid-column: 5; grid-row: 1 / 4; }
.ppe-arrow-fv { grid-column: 6; grid-row: 1 / 4; }
.ppe-vector   { grid-column: 7; grid-row: 1 / 4; }
.ppe-web      { grid-column: 1; grid-row: 3; }
.ppe-arrow-wc { grid-column: 2; grid-row: 3; }
.ppe-arrow-wf { grid-column: 4; grid-row: 3; }

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-tech span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(90, 85, 165, 0.12);
  color: var(--purple-light);
  border: 1px solid rgba(90, 85, 165, 0.18);
}

.other-projects-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 24px;
  margin-top: 16px;
}

/* ========================================
   PROJECTS
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--elevation-1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, box-shadow;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 150, 220, 0.2), transparent);
  opacity: 0.5;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 150, 220, 0.22);
  background: rgba(12, 14, 34, 0.92);
  box-shadow: var(--elevation-2), var(--glow-subtle);
}

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

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(60, 120, 190, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.project-card:hover .project-icon {
  background: rgba(60, 120, 190, 0.22);
}

.project-icon svg {
  width: 24px;
  height: 24px;
  color: var(--cyan-light);
}

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

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tech span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(90, 85, 165, 0.12);
  color: var(--purple-light);
  border: 1px solid rgba(90, 85, 165, 0.18);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-light);
  transition: gap 0.3s;
}

.project-link:hover {
  gap: 10px;
}

/* ========================================
   SKILLS
   ======================================== */
.skills-universe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.skill-category:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.skill-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.skill-orbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-orb {
  position: relative;
}

.skill-orb span {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.skill-orb .orb-fill {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.skill-orb .orb-fill::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--gradient);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-orb.animated .orb-fill::after {
  width: calc(var(--level) * 1%);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: var(--elevation-1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 150, 220, 0.25), transparent);
  opacity: 0.5;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 150, 220, 0.35);
  box-shadow: var(--elevation-2), var(--glow-subtle);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(60, 120, 190, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.contact-card:hover .contact-card-icon {
  background: rgba(60, 120, 190, 0.22);
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cyan-light);
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 2px;
  word-break: break-all;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(18, 18, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(232, 232, 240, 0.92);
  backdrop-filter: blur(16px);
  cursor: pointer;
  z-index: 1200;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px var(--cyan-glow);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(60, 120, 190, 0.32);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .hero {
    padding: 0 16px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 8px;
  }

  .hero-avatar {
    width: 100px;
    margin: 0 auto 14px;
  }

  .hero-greeting {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-name {
    font-size: clamp(28px, 10vw, 42px);
    margin-bottom: 14px;
  }

  .hero-title-wrapper {
    height: 42px;
    margin-bottom: 14px;
  }

  .carousel-item {
    font-size: 16px;
    line-height: 42px;
  }

  .hero-tagline {
    font-size: 14px;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 0 8px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-card {
    padding: 20px;
  }

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

  .featured-project {
    padding: 24px;
  }

  .featured-title {
    font-size: 22px;
  }

  .featured-highlights {
    gap: 20px;
  }

  .highlight-number {
    font-size: 22px;
  }

  .arch-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .arch-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .arch-ppe-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .arch-risk-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .arch-desktop-chip {
    display: inline-flex;
  }

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

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

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

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

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-greeting {
    font-size: 14px;
  }

  .carousel-item {
    font-size: 18px;
  }

  .timeline-line {
    left: 14px;
  }

  .timeline-dot {
    left: 6px;
    width: 16px;
    height: 16px;
  }

  .timeline-item {
    padding-left: 44px;
  }
}
