:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elevated: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --primary: #3b82f6;
  --primary-2: #8b5cf6;
  --success: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.20), transparent 28%), var(--bg);
  color: var(--text);
  cursor: none;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: none; }

body.menu-open { overflow: hidden; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 2000;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease-out;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 40px);
  margin: 0 auto;
  max-width: 100%;
  background: rgba(9, 9, 11, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
  transition: transform 0.25s ease;
}
.logo:hover .logo-icon { transform: scale(1.08) rotate(-8deg); }
.logo-dot { color: #7dd3fc; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); text-shadow: 0 0 20px rgba(255,255,255,0.14); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }
.header-controls { display: flex; align-items: center; gap: 12px; }
.lang-switcher { position: relative; }
.lang-toggle,
.menu-toggle,
.carousel-btn,
.modal-close,
.form-submit,
.social-link,
.project-link {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.lang-toggle,
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
}
.lang-toggle:hover,
.menu-toggle:hover,
.lang-toggle.active,
.menu-toggle.active {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 20px rgba(255,255,255,0.05);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 96px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.lang-switcher.open .lang-menu { display: flex; }
.lang-option {
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
}
.lang-option:hover { background: rgba(255,255,255,0.08); }
.menu-toggle { display: none; }
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-panel {
  width: min(90vw, 360px);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(9,9,11,0.9);
  box-shadow: var(--shadow);
}
.mobile-nav-panel .nav-links { flex-direction: column; align-items: flex-start; gap: 16px; font-size: 1.1rem; }
.mobile-nav-panel .nav-links a { color: var(--text); }

main { width: min(var(--max-width), calc(100% - 32px)); margin: 0 auto; padding: 56px 0 40px; }
section { padding: 32px 0; }
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78vh;
  padding: 56px 0 42px;
}
.hero-copy {
  width: min(760px, 100%);
  text-align: center;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.8rem; font-weight: 700; }
.hero h1, .section-heading h2, .certifications-header h3, .contact-card h2 { font-family: 'Space Grotesk', 'Segoe UI', sans-serif; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.05; margin: 0 0 14px; }
.gradient-text { background: linear-gradient(90deg, #60a5fa, #a78bfa); -webkit-background-clip: text; color: transparent; }
.hero-role {
  display: inline-block;
  min-height: 34px;
  margin: 0 0 16px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: #dbeafe;
  font-weight: 600;
}
.hero-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; justify-content: center; }
.hero-highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.highlight-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #dbeafe;
  font-size: 0.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 18px 36px rgba(59,130,246,0.28); }
.btn-secondary { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.glass-card,
.timeline-card,
.cert-card,
.project-card,
.contact-card,
.modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.about {
  padding: 36px 0 24px;
}
.about-box {
  padding: 28px;
  border-radius: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.about-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59,130,246,0.16), transparent 38%);
  pointer-events: none;
}
.about-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,0.14);
  color: #7dd3fc;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(125, 211, 252, 0.2);
}
.about-intro-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #e5eefc;
  line-height: 1.8;
  font-size: 1.04rem;
  max-width: 860px;
}
.about-intro-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}
.about-intro-card .glass-card {
  padding: 24px;
  border-radius: 20px;
}
.about-intro-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.about-intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.about-stats {
  display: grid;
  gap: 12px;
}
.stat-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.stat-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.stat-card span { color: var(--muted); font-size: 0.95rem; }
.timeline {
  position: relative;
  margin: 28px 0 38px;
  padding: 8px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(59,130,246,0.6), rgba(139,92,246,0.16));
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.timeline-item:nth-child(odd) .timeline-card { grid-column: 1; }
.timeline-item:nth-child(odd) .timeline-dot { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-card { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-dot { grid-column: 2; }
.timeline-card {
  padding: 20px 22px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), transparent 70%);
  pointer-events: none;
}
.timeline-year {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.14);
  color: #7dd3fc;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.timeline-card h4 { margin: 0 0 6px; font-size: 1.08rem; position: relative; z-index: 1; }
.timeline-card .company { color: #cbd5e1; margin-bottom: 8px; position: relative; z-index: 1; }
.timeline-card p { margin: 0; color: var(--muted); line-height: 1.7; position: relative; z-index: 1; }
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px rgba(59,130,246,0.16), 0 0 16px rgba(59,130,246,0.42);
  justify-self: center;
}
.certifications { margin-top: 24px; }
.certifications-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.carousel-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.28); }
.certifications-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.certifications-carousel::-webkit-scrollbar { height: 8px; }
.certifications-carousel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 999px; }
.cert-card {
  padding: 20px;
  border-radius: 20px;
  scroll-snap-align: start;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.24); }
.cert-card h4 { margin: 0 0 8px; font-size: 1.05rem; }
.cert-card .issuer { color: #93c5fd; margin-bottom: 10px; }
.cert-card .date { color: var(--muted); font-family: 'Roboto Mono', monospace; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.skill-group {
  padding: 20px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.skill-group h4 {
  margin: 0 0 14px;
  font-size: 1rem;
}
.skill-list {
  display: grid;
  gap: 12px;
}
.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skill-item .skill-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #dbeafe;
  font-size: 0.95rem;
}
.skill-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.skill-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.contact-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
}
.meta-item a { color: inherit; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.25); }
.project-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-media--compact {
  aspect-ratio: 4 / 3;
  padding: 14px 14px 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.project-media--compact img {
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.75);
}
.project-card:hover .project-media img { transform: scale(1.1); }
.project-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  background: rgba(9,9,11,0.73);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
}
.project-content { padding: 18px 18px 20px; }
.project-content h4 { margin: 0 0 10px; font-size: 1.12rem; }
.project-content p {
  margin: 0 0 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.62;
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tech-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #dbeafe;
  font-size: 0.8rem;
}
.project-links { display: flex; flex-wrap: wrap; gap: 10px; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
}
.project-link:hover { background: rgba(255,255,255,0.08); }
.contact-card {
  padding: 28px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}
.contact-card p { color: var(--muted); line-height: 1.7; }
.form-grid { display: grid; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { color: #dbeafe; font-size: 0.95rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(96,165,250,0.6);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.16);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-submit { padding: 13px 16px; border-radius: 999px; }
.form-submit:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.26); }
.form-success {
  margin: 0;
  color: #86efac;
  font-size: 0.95rem;
}
.social-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; }
.social-link:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.24); }
footer {
  padding: 20px 0 40px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(14px);
  z-index: 1500;
}
.modal.active { display: flex; }
.modal-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 760px);
  border-radius: 24px;
  overflow: auto;
  padding: 24px;
  animation: popIn 0.28s ease;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
}
.modal-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 18px; margin-bottom: 18px; }
.modal-body h3 { margin: 0 0 10px; font-size: 1.5rem; }
.modal-body p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-actions .project-link { background: rgba(255,255,255,0.05); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.typing-cursor { animation: blink 1s step-end infinite; }

@keyframes bob {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 920px) {
  .about-intro-card,
  .contact-card { grid-template-columns: 1fr; }
  .skills-grid,
  .projects-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 28px 1fr; }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card { grid-column: 2; }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { grid-column: 1; justify-self: center; }
}
@media (max-width: 760px) {
  .site-header { border-radius: 24px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 32px; }
  .section-heading { flex-direction: column; align-items: start; }
  .certifications-header { flex-direction: column; align-items: start; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .modal-card { padding: 20px; }
}
