:root {
  --bg: #090d14;
  --bg-alt: #0f1623;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #aab4c5;
  --primary: #4f8cff;
  --primary-2: #8b5cf6;
  --success: #2dd4bf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%),
    var(--bg);
}

.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  z-index: -2;
  opacity: 0.35;
  animation: floatOrb 14s ease-in-out infinite;
}
.orb-1 {
  width: 260px; height: 260px; left: -60px; top: 16vh;
  background: rgba(79, 140, 255, 0.25);
}
.orb-2 {
  width: 340px; height: 340px; right: -120px; top: 55vh;
  background: rgba(139, 92, 246, 0.18);
  animation-delay: -5s;
}

.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 13, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.05em; }
.logo span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease, transform 0.2s ease; }
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }

.lang-btn, .menu-toggle {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}
.lang-btn { border-radius: 999px; padding: 8px 14px; font-weight: 800; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 14px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; border-radius: 999px; background: var(--text); }

.section { padding: 96px 0; scroll-margin-top: 92px; }
.alt { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); }

.hero { min-height: calc(100vh - 74px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--success); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.78rem; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.8rem); line-height: 0.95; letter-spacing: -0.085em; margin-bottom: 24px; }
.hero h1 span { display: block; color: #dfe8f7; }
.hero h1 strong {
  display: block;
  background: linear-gradient(135deg, #ffffff, #9ec1ff, #b69cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-description { color: var(--muted); font-size: 1.1rem; max-width: 650px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-actions.center { justify-content: center; }
.social-links { display: flex; gap: 18px; flex-wrap: wrap; }
.social-links a {
  color: var(--muted); font-weight: 700; display: inline-flex; gap: 8px; align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover { color: var(--primary); transform: translateY(-2px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: transform 0.55s ease;
}
.btn:hover::after { transform: translateX(110%); }
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; box-shadow: 0 14px 35px rgba(79, 140, 255, 0.28);
}
.btn.secondary { border: 1px solid var(--card-border); background: rgba(255,255,255,0.06); color: var(--text); }
.btn.secondary:hover { border-color: rgba(79, 140, 255, 0.45); background: rgba(79, 140, 255, 0.10); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px;
}
.hero-stats div, .glass-card {
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); border-radius: var(--radius);
}
.hero-stats div { padding: 18px; }
.hero-stats strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.hero-stats span { color: var(--muted); font-size: 0.93rem; }

.tech-cloud {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px;
}
.tech-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #dbe6fa;
  animation: floatPill 5s ease-in-out infinite;
}
.tech-pill:nth-child(2n) { animation-delay: -1s; }
.tech-pill:nth-child(3n) { animation-delay: -2s; }
.tech-pill:nth-child(4n) { animation-delay: -3s; }

.hero-photo-card,
.about-box,
.education-card,
.contact-box,
.card,
.project-card,
.timeline-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-card {
  backdrop-filter: blur(12px);
}

.hero-photo-card {
  position: relative; padding: 16px; min-height: 640px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.hero-photo-card::before {
  content: "";
  position: absolute; inset: -30% auto auto -30%; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(79, 140, 255, 0.18);
  filter: blur(25px);
}
.hero-main-photo {
  height: 100%; min-height: 610px; width: 100%; object-fit: cover; object-position: center top;
  border-radius: calc(var(--radius) - 8px);
}
.hero-float-photo {
  position: absolute; right: 18px; bottom: 106px; width: 180px; height: 260px;
  object-fit: cover; object-position: center; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.16); box-shadow: var(--shadow);
  animation: floatCard 6s ease-in-out infinite;
}
.status-card {
  position: absolute; left: 20px; bottom: 20px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; background: rgba(9, 13, 20, 0.82); border: 1px solid var(--card-border);
  border-radius: 18px; max-width: 320px;
}
.status-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--success); margin-top: 5px;
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12);
  animation: pulseDot 2s ease-in-out infinite;
}
.status-card strong { display: block; font-size: 0.96rem; margin-bottom: 2px; }
.status-card p { color: var(--muted); font-size: 0.92rem; }

.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.section-title { max-width: 760px; margin-bottom: 36px; }
.section-title p {
  color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; margin-bottom: 10px;
}
.section-title h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.06em; }
.about-box { padding: 34px; color: var(--muted); font-size: 1.06rem; }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 24px; color: var(--text); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
}

.photo-stack { display: grid; gap: 16px; }
.stack-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack-photo {
  border-radius: var(--radius); border: 1px solid var(--card-border);
  box-shadow: var(--shadow); object-fit: cover; width: 100%;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.stack-photo:hover { transform: translateY(-4px) scale(1.01); filter: brightness(1.05); }
.stack-photo.large { height: 470px; object-position: center top; }
.stack-photo.small { height: 210px; object-position: center; opacity: 0.9; }

.timeline { display: grid; gap: 18px; }
.timeline-item { position: relative; padding: 28px 28px 28px 60px; }
.dot {
  position: absolute; left: 24px; top: 33px; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
  box-shadow: 0 0 0 7px rgba(79, 140, 255, 0.12);
}
.experience-meta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; color: var(--muted); font-size: 0.92rem;
}
.experience-meta span { display: inline-flex; align-items: center; gap: 8px; }
.card h3, .project-card h3, .education-card h3, .timeline-item h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card h3 i, .timeline-item h3 i { color: var(--primary); margin-right: 8px; }
.card p, .project-card p, .education-card p, .timeline-item p { color: var(--muted); }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card, .project-card { padding: 26px; min-height: 210px; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.card:hover, .project-card:hover, .education-card:hover, .timeline-item:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 16px; background: rgba(79, 140, 255, 0.14); color: #d6e4ff; font-weight: 800; font-size: 1.25rem;
}
.project-tag, .education-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(79, 140, 255, 0.12); border: 1px solid rgba(79, 140, 255, 0.22);
  color: #cfe0ff; font-size: 0.82rem; font-weight: 700;
}

.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.education-card { padding: 32px; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.small-education { min-height: 180px; }
.full-row { grid-column: 1 / -1; }
.muted { color: var(--muted); margin-bottom: 10px; }
.contact-section { padding-bottom: 70px; }
.contact-box {
  max-width: 860px; margin: 0 auto; text-align: center; padding: 46px 30px;
  background: radial-gradient(circle at top, rgba(79, 140, 255, 0.16), transparent 45%), var(--card);
}
.contact-box h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.06em; margin-bottom: 12px; }
.contact-box p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
.footer { padding: 28px 20px; text-align: center; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.08); }

.reveal {
  opacity: 0; transform: translateY(20px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.stagger-1 { transition-delay: .04s; }
.stagger-2 { transition-delay: .12s; }
.stagger-3 { transition-delay: .2s; }

@keyframes floatOrb {
  0%,100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-18px,0); }
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12); }
  50% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0.06); }
}
@keyframes floatPill {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 1024px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .education-grid { grid-template-columns: 1fr; }
  .full-row { grid-column: auto; }
  .hero-photo-card { min-height: auto; }
  .hero-main-photo { min-height: auto; max-height: 760px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 74px; left: 20px; right: 20px; display: none; flex-direction: column;
    align-items: stretch; gap: 12px; padding: 18px; background: rgba(15, 22, 35, 0.96);
    border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .lang-btn { width: 100%; text-align: left; }
  .cards-grid, .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero h1 { font-size: 3.2rem; }
  .hero-photo-card { padding: 12px; }
  .hero-float-photo { width: 120px; height: 165px; right: 14px; bottom: 104px; }
  .status-card { left: 14px; right: 14px; max-width: none; }
  .stack-row { grid-template-columns: 1fr; }
  .stack-photo.large { height: 390px; }
  .stack-photo.small { height: 180px; }
}
