/* ============================================
   SIMONE FERRARI — PERSONAL SITE
   Design: Electric Italian Bold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;900&family=Figtree:wght@300;400;500;600&display=swap');

/* ── VARIABLES ─────────────────────────────── */
:root {
  --bg:      #07090F;
  --bg2:     #0D1020;
  --bg3:     #141728;
  --c1:      #FF4B2B;
  --c2:      #D946EF;
  --c3:      #06B6D4;
  --c4:      #A855F7;
  --gold:    #FBBF24;
  --text:    #EEF2FF;
  --text2:   #8892A4;
  --border:  rgba(255,255,255,0.07);
  --grad:    linear-gradient(135deg, #FF4B2B 0%, #D946EF 50%, #06B6D4 100%);
  --grad2:   linear-gradient(135deg, #A855F7 0%, #06B6D4 100%);
  --r:       1rem;
  --r2:      1.5rem;
  --shadow:  0 25px 60px rgba(0,0,0,0.6);
  --glow1:   0 0 40px rgba(255,75,43,0.3);
  --glow2:   0 0 40px rgba(6,182,212,0.25);
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--c2); border-radius: 10px; }

/* ── SELECTION ─────────────────────────────── */
::selection { background: var(--c2); color: white; }

/* ── TYPOGRAPHY ────────────────────────────── */
.display { font-family: 'Unbounded', sans-serif; }
h1,h2,h3,h4 { font-family: 'Unbounded', sans-serif; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; color: var(--text2); }

/* ── GRADIENT TEXT ─────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text2 {
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 7rem 0;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,75,43,0.12);
  border: 1px solid rgba(255,75,43,0.25);
  color: var(--c1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.section-tag.blue { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.25); color: var(--c3); }
.section-tag.purple { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.25); color: var(--c4); }
.section-header { margin-bottom: 4rem; }
.section-header p { max-width: 600px; margin-top: 1rem; font-size: 1.1rem; }
.section-header-single-line { max-width: none; white-space: nowrap; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 8px 30px rgba(255,75,43,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,75,43,0.5);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--c3);
  color: var(--c3);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ── CARDS ─────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.card:hover::before { opacity: 0.04; }
.card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card > * { position: relative; z-index: 1; }

.card-gradient {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── BADGE / CHIP ───────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  white-space: nowrap;
}
.badge.c1 { background: rgba(255,75,43,0.12); border-color: rgba(255,75,43,0.2); color: var(--c1); }
.badge.c2 { background: rgba(217,70,239,0.12); border-color: rgba(217,70,239,0.2); color: var(--c2); }
.badge.c3 { background: rgba(6,182,212,0.12); border-color: rgba(6,182,212,0.2); color: var(--c3); }
.badge.c4 { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.2); color: var(--c4); }
.badge.gold { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.2); color: var(--gold); }

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(20px);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--grad);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.25s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-link.active { color: white; }
.nav-cta {
  background: var(--grad);
  color: white !important;
  padding: 0.5rem 1.2rem !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,9,15,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text2);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: white; }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  background: none;
  color: var(--text2);
}

/* ── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #FF4B2B, transparent 70%);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #D946EF, transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: 2s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  top: 50%; left: 40%;
  animation-delay: 4s;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-content { }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-dot {
  width: 10px; height: 10px;
  background: var(--c3);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--c3);
  animation: pulse 2s infinite;
}
.hero-eyebrow span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.05em;
}
.hero-name {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-name .line1 {
  display: block;
  font-size: clamp(3.3rem, 8.6vw, 7.1rem);
  font-weight: 900;
  color: white;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-name .line2 {
  display: block;
  font-size: clamp(3.3rem, 8.6vw, 7.1rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-bio {
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 620px;
  text-align: justify;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}
.hero-stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 0.3rem;
}

/* ── HERO PHOTO ─────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: fadeIn 1.2s 0.5s forwards;
}
.photo-frame {
  position: relative;
  width: 380px; height: 420px;
}
.photo-ring {
  position: absolute;
  inset: -3px;
  border-radius: 2.5rem;
  background: var(--grad);
  z-index: 0;
  animation: rotate-slow 8s linear infinite;
}
.photo-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--bg);
  border-radius: 2.2rem;
}
.photo-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 2.2rem;
  filter: grayscale(20%) contrast(1.05);
}
.photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 2.2rem;
  background: linear-gradient(to top, rgba(7,9,15,0.4) 0%, transparent 60%);
}
.float-badge {
  position: absolute;
  z-index: 3;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow);
}
.float-badge .icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.float-badge-1 { top: 10%; left: -80px; animation-delay: 0s; }
.float-badge-2 { bottom: 25%; left: -70px; animation-delay: 1.5s; }
.float-badge-3 { top: 20%; right: -75px; animation-delay: 1s; }
.float-badge-4 { bottom: 10%; right: -60px; animation-delay: 2.5s; }

/* ── ABOUT SECTION ──────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--r2);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(10%);
}
.about-copy {
  text-align: justify;
  text-wrap: pretty;
}
.section-header-interests {
  max-width: 880px;
  text-align: justify;
  text-wrap: pretty;
  white-space: nowrap;
}
.about-img-deco {
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r2) + 2px);
  background: var(--grad2);
  z-index: -1;
  opacity: 0.6;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.cert-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  transition: all 0.3s;
}
.cert-item:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.cert-title { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.cert-org  { font-size: 0.75rem; color: var(--text2); }
.cert-score{ font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-top: 0.3rem; }

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.interest-card {
  padding: 1.75rem;
}
.interest-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255,75,43,0.16), rgba(168,85,247,0.16));
}
.interest-title {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.interest-desc {
  font-size: 0.95rem;
  text-align: justify;
  text-wrap: pretty;
}
.interest-desc a {
  color: var(--c3);
}
.interest-desc a:hover {
  color: var(--text);
}

/* ── EXPERIENCE ─────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c1), var(--c2), var(--c3), transparent);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: none; }
.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid var(--bg);
  box-shadow: var(--glow1);
}
.timeline-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  transition: all 0.4s;
}
.timeline-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.timeline-company { font-size: 0.85rem; color: var(--text2); display: flex; align-items: center; gap: 0.5rem; }
.timeline-role {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.timeline-date {
  font-size: 0.78rem;
  color: var(--text2);
  background: var(--bg3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.timeline-desc { font-size: 0.92rem; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── SKILLS ─────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-category {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.75rem;
  transition: all 0.4s;
}
.skill-category:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); box-shadow: var(--shadow); }
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.skill-cat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--bg3);
  flex-shrink: 0;
}
.skill-cat-name { font-family: 'Unbounded', sans-serif; font-size: 0.85rem; font-weight: 700; }
.skill-items { display: flex; flex-direction: column; gap: 0.75rem; }
.skill-item { }
.skill-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.skill-item-name { font-size: 0.88rem; font-weight: 500; }
.skill-item-level { font-size: 0.75rem; color: var(--text2); }
.skill-bar {
  height: 4px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  width: 0;
  transition: width 1.2s ease;
}

/* ── SERVICES SECTION ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.service-title { margin-bottom: 0.75rem; font-size: 1.05rem; }
.service-desc {
  font-size: 0.9rem;
  text-align: justify;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ── CONTACT ────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all 0.3s;
  color: var(--text);
}
.contact-link:hover { border-color: rgba(255,255,255,0.15); transform: translateX(6px); }
.contact-link-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-link-text { font-size: 0.85rem; color: var(--text2); }
.contact-link-val { font-size: 0.95rem; font-weight: 600; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text2); }
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  resize: none;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--c3);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
}
.form-textarea { height: 130px; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(6,182,212,0.1);
  border-radius: var(--r);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--c3);
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-copy { font-size: 0.85rem; color: var(--text2); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { font-size: 0.85rem; color: var(--text2); transition: color 0.2s; }
.footer-link:hover { color: var(--text); }
.footer-socials { display: flex; gap: 0.75rem; }
.social-btn {
  width: 38px; height: 38px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--text2);
  transition: all 0.25s;
}
.social-btn:hover { background: var(--grad); border-color: transparent; color: white; transform: translateY(-2px); }

/* ── CTA SECTION ────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(255,75,43,0.08) 0%, rgba(217,70,239,0.08) 50%, rgba(6,182,212,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 1rem;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 300px;
  background: radial-gradient(ellipse, rgba(217,70,239,0.2), transparent 70%);
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-section p { max-width: 500px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── DIVIDER ────────────────────────────────── */
.grad-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c2), transparent);
  border: none;
  margin: 0;
}

/* ── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── PAGE HERO ──────────────────────────────── */
.page-hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(217,70,239,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,75,43,0.06) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin-top: 1rem; }
.page-hero-single-line { max-width: none; white-space: nowrap; }

/* ── EDUCATION ──────────────────────────────── */
.edu-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.edu-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: all 0.4s;
}
.edu-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); box-shadow: var(--shadow); }
.edu-year {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 0.1em;
  padding: 0.5rem 0;
}
.edu-degree { font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.edu-school { font-size: 0.9rem; color: var(--text2); margin-bottom: 0.75rem; }
.edu-score {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(251,191,36,0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

/* ── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px var(--c3); opacity: 1; }
  50%       { box-shadow: 0 0 25px var(--c3); opacity: 0.7; }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ── STATS COUNTER ──────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,0.12); }
.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.82rem; color: var(--text2); }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-roles  { justify-content: center; }
  .hero-bio { max-width: 100%; text-align: left; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .section-header-single-line { white-space: normal; }
  .page-hero-single-line { white-space: normal; }
  .section-header-interests { white-space: normal; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.2rem; }
  .section { padding: 5rem 0; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 3rem 1.5rem; margin: 0; border-radius: 0; }
}
