/* =============================================
   ANDREA BINI — PORTFOLIO
   Design System & Styles
   ============================================= */

/* === TOKENS === */
:root {
  --navy: #0a0f23;
  --navy-mid: #111827;
  --navy-card: #161d32;
  --indigo: #4f46e5;
  --indigo-lite: #6366f1;
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --white: #ffffff;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --bg: #0a0f23;
  --bg-alt: #0e1428;
  --card: #161d32;
  --border: rgba(255,255,255,.08);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.3);

  --speed: 0.3s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--indigo);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus {
  top: 16px;
}
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 15, 35, 0.88);
  backdrop-filter: blur(12px);
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  transition: all var(--speed) var(--ease);
}
.lang-switcher a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.lang-switcher a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--indigo), var(--indigo-lite));
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* === CONTAINER === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  transition:
    background var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
.nav.scrolled {
  background: rgba(10, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    var(--shadow);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--indigo-lite), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links li a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition:
    color var(--speed),
    background var(--speed);
}
.nav__links li a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}
.nav__cta {
  background: linear-gradient(
    135deg,
    var(--indigo),
    var(--indigo-lite)
  ) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
}
.nav__cta:hover {
  opacity: 0.9;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--speed);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% 40%,
      rgba(79, 70, 229, 0.35) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 60%,
      rgba(6, 182, 212, 0.2) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, #0a0f23 0%, #0d1530 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.6);
  animation: float var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 1;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  padding: 120px 32px 80px;
}
.hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero__avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--indigo), var(--cyan)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero__avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-glow);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero__text {
  flex: 1;
}
.hero__greeting {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero__roles {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 16px 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--indigo-lite);
  min-height: 28px;
}
.hero__cursor {
  animation: blink 1s step-end infinite;
  color: var(--cyan);
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.hero__tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 520px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.badge {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition:
    background var(--speed),
    border-color var(--speed);
}
.badge:hover {
  background: rgba(79, 70, 229, 0.3);
  border-color: var(--indigo-lite);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  border: 2px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-lite));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.5);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 9px 20px;
  font-size: 0.82rem;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* =============================================
   STATS
   ============================================= */
.stats {
  background: linear-gradient(135deg, var(--indigo), #7c3aed);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stats__item {
  text-align: center;
  color: white;
}
.stats__num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}
.stats__suffix {
  font-size: 1.8rem;
  font-weight: 700;
  opacity: 0.8;
}
.stats__item p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 100px 0;
  background: var(--navy);
}
.section--dark {
  background: var(--navy-mid);
}
.section--alt {
  background: var(--bg-alt);
}
.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__header--light {
  color: white;
}
.section__tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo-lite);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 16px;
}
.section__tag--light {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--white);
}
.section__title--light {
  color: var(--white);
}
.section__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================
   ABOUT
   ============================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.about__text p {
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}
.about__text strong {
  color: var(--white);
}
.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.about__highlight {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--navy-card);
  border: 1px solid var(--border);
  transition:
    transform var(--speed),
    box-shadow var(--speed);
}
.about__highlight:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(99,102,241,.3);
}
.about__highlight-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.about__highlight strong {
  display: block;
  color: var(--white);
  margin-bottom: 2px;
}
.about__highlight p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.about__card {
  position: sticky;
  top: 100px;
}
.about__card-inner {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.about__info {
  padding: 24px;
}
.about__info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.about__info-item:last-of-type {
  border-bottom: none;
}
.about__info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cyan);
}
.about__info-item > span:last-child {
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

/* =============================================
   TIMELINE (EXPERIENCE)
   ============================================= */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--indigo),
    var(--cyan),
    transparent
  );
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.timeline__item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline__dot {
  position: absolute;
  left: -36px;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.2),
    0 0 0 8px rgba(79, 70, 229, 0.07);
  transition: transform var(--speed);
}
.timeline__item:hover .timeline__dot {
  transform: scale(1.3);
}
.timeline__content {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition:
    transform var(--speed),
    box-shadow var(--speed),
    border-color var(--speed);
}
.timeline__content:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(79, 70, 229, 0.3);
}
.timeline__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline__company {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
}
.timeline__period {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.timeline__role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}
.timeline__location {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.timeline__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.timeline__bullets li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.timeline__bullets li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--indigo-lite);
  font-weight: 700;
}
.timeline__bullets strong {
  color: var(--white);
}
.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.timeline__tags span {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.15);
  color: var(--indigo-lite);
  border: 1px solid rgba(79, 70, 229, 0.25);
  letter-spacing: 0.3px;
}

/* =============================================
   SKILLS
   ============================================= */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.skill-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--speed),
    box-shadow var(--speed),
    border-color var(--speed);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}
.skill-card:hover::before {
  transform: scaleX(1);
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}
.skill-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.skill-card li {
  font-size: 0.875rem;
  color: rgba(255,255,255,.65);
  padding: 5px 0;
  padding-left: 12px;
  position: relative;
}
.skill-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--indigo-lite);
  font-weight: 900;
}

/* LANGUAGES */
.languages {
  max-width: 640px;
  margin: 0 auto;
}
.languages__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 32px;
}
.languages__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lang-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
}
.lang-bar__label span:last-child {
  color: var(--text-muted);
  font-weight: 400;
}
.lang-bar__track {
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.lang-bar__fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  width: 0 !important;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   EDUCATION
   ============================================= */
.edu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.edu-card {
  display: flex;
  gap: 20px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--speed),
    box-shadow var(--speed);
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.edu-card__logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-card__logo svg {
  width: 56px;
  height: 56px;
}
.edu-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.edu-card__degree {
  font-size: 0.875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
}
.edu-card__degree em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 600;
}
.edu-card__period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.edu-card__detail {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}
.edu-card__detail strong {
  color: var(--white);
}

/* =============================================
   CERTIFICATIONS
   ============================================= */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--speed),
    box-shadow var(--speed);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cert-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}
.cert-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.cert-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  font-family: var(--font-serif);
}
.cert-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
  line-height: 1.5;
}
.cert-card__issuer {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo-lite);
  margin-bottom: 4px;
}
.cert-card__date {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cert-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(34,197,94,.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.3);
}

/* =============================================
   REFERENCES
   ============================================= */
.refs__grid {
  display: grid;
  justify-content: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.ref-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  position: relative;
  transition:
    transform var(--speed),
    background var(--speed);
}
.ref-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}
.ref-card__quote {
  position: absolute;
  top: 24px;
  left: 32px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--indigo-lite);
  opacity: 0.3;
  user-select: none;
}
.ref-card__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 28px;
  padding-top: 16px;
}
.ref-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ref-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.ref-card__author strong {
  color: var(--white);
  font-size: 1rem;
}
.ref-card__author p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: linear-gradient(135deg, #0a0f23 0%, #1a1040 50%, #0a1628 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(79, 70, 229, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 50%,
      rgba(6, 182, 212, 0.15) 0%,
      transparent 50%
    );
}
.contact .section__header {
  position: relative;
}
.contact .section__title {
  color: var(--white);
}
.contact__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
}
.contact__cards {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 200px;
  text-align: center;
  transition: all var(--speed) var(--ease);
  cursor: pointer;
}
.contact-card:hover {
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.3);
}
.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-lite);
  margin-bottom: 4px;
  transition: background var(--speed);
}
.contact-card:hover .contact-card__icon {
  background: var(--indigo);
  color: white;
}
.contact-card strong {
  color: var(--white);
  font-size: 0.95rem;
}
.contact-card span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #050a14;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer__legal {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--speed);
}
.footer__legal a:hover {
  color: var(--white);
}
.footer__cookie-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--speed);
}
.footer__cookie-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.footer__linkedin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--indigo-lite);
  transition: color var(--speed);
}
.footer__linkedin:hover {
  color: var(--cyan);
}

/* =============================================
   PRIVACY PAGE
   ============================================= */
.privacy-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0f23 0%, #101931 100%);
}
.privacy {
  padding: 120px 0 80px;
}
.privacy__header {
  margin-bottom: 32px;
}
.privacy__header p {
  color: rgba(255, 255, 255, 0.68);
}
.privacy__content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.privacy__content h2 {
  font-family: var(--font-serif);
  color: var(--white);
  margin: 28px 0 8px;
  font-size: 1.35rem;
}
.privacy__content h2:first-child {
  margin-top: 0;
}
.privacy__content p,
.privacy__content li {
  color: rgba(255, 255, 255, 0.75);
}
.privacy__content ul {
  list-style: disc;
  padding-left: 20px;
}
.privacy__back {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================================
   COOKIE CONSENT
   ============================================= */
.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  background: rgba(10, 15, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--speed) var(--ease),
    opacity var(--speed) var(--ease);
}
.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
}
.cookie-consent__content p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  font-size: 0.9rem;
}
.cookie-consent__content a {
  color: var(--cyan);
}
.cookie-consent__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-consent .btn--sm,
.cookie-modal .btn--sm {
  width: auto;
  margin-top: 0;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 22, 0.7);
}
.cookie-modal[hidden] {
  display: none;
}
.cookie-modal__panel {
  width: min(560px, 100%);
  background: #10192f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.cookie-modal__panel h2 {
  font-family: var(--font-serif);
  color: var(--white);
  margin-bottom: 6px;
}
.cookie-modal__panel p {
  color: rgba(255, 255, 255, 0.72);
}
.cookie-modal__options {
  margin: 18px 0 20px;
  display: grid;
  gap: 10px;
}
.cookie-modal__options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .lang-switcher {
    top: 12px;
    right: 12px;
  }
  .hero__content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 100px;
  }
  .hero__avatar {
    width: 160px;
    height: 160px;
  }
  .hero__tagline,
  .hero__badges,
  .hero__actions {
    justify-content: center;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__card {
    position: static;
  }
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .edu__grid {
    grid-template-columns: 1fr;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 35, 0.97);
    padding: 20px;
    gap: 4px;
  }
}
@media (max-width: 600px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
  .certs__grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 24px;
  }
  .timeline__content {
    padding: 18px 16px;
  }
  .timeline__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ref-card {
    padding: 28px 20px;
  }
  .contact-card {
    min-width: 140px;
    padding: 20px 16px;
  }
  .contact__cards {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .contact-card {
    width: 100%;
    max-width: 320px;
  }
  .hero__content {
    padding: 100px 20px 60px;
  }
  .stats__num {
    font-size: 2.6rem;
  }
  .stats__suffix {
    font-size: 1.4rem;
  }
  .edu-card {
    flex-direction: column;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-consent__content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .privacy__content {
    padding: 22px;
  }
}

/* === ANIMATE ON SCROLL === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
