/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06070f;
  --bg-soft: #0c0e1a;
  --card: rgba(20, 22, 36, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f5fa;
  --text-dim: #9097b3;
  --text-mute: #5a607a;
  --accent: #00d4ff;
  --accent-2: #a855f7;
  --accent-3: #14f195;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
  --gradient-text: linear-gradient(135deg, #00d4ff 0%, #a855f7 70%);
  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.25);
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Gradient text shared by hero h1, section titles, stat numbers */
.gradient,
.stat-num {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gradient { display: inline-block; }

/* Shared "glass card" surface used by stats, services, info,
   tech, timeline, projects, education, contact */
.stat-card,
.service-card,
.about-info,
.tech-card,
.timeline-card,
.project-card,
.edu-card,
.contact-card,
.social-link {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
}


/* ---------- Cursor ---------- */
.cursor-blob {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), rgba(0, 212, 255, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  will-change: left, top;
}
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
  will-change: left, top;
}
.cursor-dot.hover {
  width: 40px; height: 40px;
  background: var(--accent-2);
}


/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
section {
  padding: 120px 0;
  position: relative;
}


/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(6, 7, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--card-border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #0a0b15;
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--gradient);
  color: #0a0b15 !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}


/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}
.aurora-blob.b1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
  top: 10%; left: -10%;
}
.aurora-blob.b2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
  top: 30%; right: -15%;
  animation-delay: -7s;
}
.aurora-blob.b3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.2), transparent 70%);
  bottom: 0; left: 30%;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.05); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}
.grid-bg {
  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;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(20, 22, 36, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 24px;
}
.hero-role {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--text-dim);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  min-height: 1.5em;
}
.hero-role .typed { color: var(--accent); }
.hero-role .cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient);
  color: #0a0b15;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan), var(--glow-purple);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.scroll-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}


/* ---------- Section header ---------- */
.section-head {
  margin-bottom: 64px;
  max-width: 700px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.section-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}


/* ---------- Stats ---------- */
.stats { padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--glow-cyan);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.92rem;
}


/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.about-text strong {
  color: var(--text);
  font-weight: 600;
}
.about-info {
  border-radius: 24px;
  padding: 36px;
  position: relative;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}
.info-value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.info-value.available { color: var(--accent-3); }


/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px;
  border-radius: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: var(--glow-purple);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); font-size: 0.96rem; }


/* ---------- Tech stack ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.tech-card {
  padding: 24px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-align: center;
}
.tech-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--glow-cyan);
}
.tech-card i { font-size: 3rem; line-height: 1; }
.tech-card i.express-white,
.tech-card i.github-white { color: #fff; }
.tech-card span {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}


/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 32px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 50%, transparent 100%);
}
.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 22px; top: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}
.timeline-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.timeline-card {
  border-radius: 16px;
  padding: 24px 28px;
  transition: transform 0.3s, border-color 0.3s;
}
.timeline-card:hover {
  transform: translateX(4px);
  border-color: rgba(0, 212, 255, 0.3);
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-block;
}
.timeline-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline-company {
  color: var(--text-mute);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.timeline-card p { color: var(--text-dim); font-size: 0.95rem; }


/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--glow-purple);
}
.project-preview {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
  border-bottom: 1px solid var(--card-border);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-preview-icon {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 20px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-cyan);
  color: #0a0b15;
}
.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project-body p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin-bottom: 20px;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: gap 0.2s, color 0.2s;
  align-self: flex-start;
}
.project-link:hover {
  color: var(--accent);
  gap: 12px;
}


/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.edu-card {
  padding: 28px;
  border-radius: 18px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.edu-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--glow-cyan);
}
.edu-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.edu-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.edu-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.edu-type.diploma {
  background: rgba(20, 241, 149, 0.1);
  color: var(--accent-3);
  border: 1px solid rgba(20, 241, 149, 0.2);
}
.edu-type.corso {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.edu-type.cert {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.edu-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  line-height: 1.3;
}
.edu-org {
  color: var(--text-mute);
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.edu-card p { color: var(--text-dim); font-size: 0.9rem; }
.edu-card strong { color: var(--text); }


/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-head {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}
.contact-head .section-tag {
  justify-content: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 48px;
}
.contact-card {
  padding: 36px 24px;
  border-radius: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--glow-cyan);
}
.contact-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #0a0b15;
  box-shadow: var(--glow-cyan);
}
.contact-card h3 { font-size: 1.1rem; }
.contact-card .contact-value {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.social-link {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.social-link:hover {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--glow-cyan);
}


/* ---------- Footer ---------- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  text-align: center;
  color: var(--text-mute);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-line {
  font-family: 'JetBrains Mono', monospace;
}
.footer-line.muted {
  color: var(--text-mute);
  opacity: 0.6;
}


/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; }


/* ---------- Accessibility & misc ---------- */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text);
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; right: 24px;
    background: rgba(12, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 28px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-toggle { display: block; }
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-blob, .cursor-dot { display: none; }
  section { padding: 80px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .timeline::before { left: 18px; }
  .timeline-item { padding-left: 56px; }
  .timeline-dot { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* About photo */
.about-grid:has(.about-photo) {
  grid-template-columns: 0.9fr 1.2fr 1fr;
  gap: 56px;
}
.about-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-photo:hover img {
  transform: scale(1.03);
}
@media (max-width: 900px) {
  .about-grid:has(.about-photo) {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-photo {
    max-width: 360px;
    margin: 0 auto;
  }
}
