:root {
  --bg: #08111f;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #b6c2d2;
  --muted-2: #8fa2ba;
  --accent: #68e1fd;
  --accent-2: #8b5cf6;
  --accent-3: #22c55e;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(104, 225, 253, 0.18), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.24), transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(34, 197, 94, 0.10), transparent 24%),
    linear-gradient(135deg, #07101d 0%, #101c32 48%, #07101d 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container { width: min(1140px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero { padding: 92px 0 62px; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.eyebrow, .section-kicker, .project-type {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.55rem, 5.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0;
}

h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.hero-text, .section-text, .project-card p, .skill-card p, .metric-card p, .contact-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 760px;
  font-size: 1.12rem;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 225, 253, 0.55);
  background: rgba(104, 225, 253, 0.12);
  color: var(--text);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111f;
  border: 0;
}

.hero-photo-card {
  position: relative;
  width: min(390px, 100%);
  margin-left: auto;
  padding: 14px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

.hero-photo-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(104,225,253,0.8), rgba(139,92,246,0.6), rgba(34,197,94,0.4));
  filter: blur(18px);
  opacity: 0.45;
}

.hero-photo-card img, .photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.photo-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 24px;
}

.photo-placeholder strong { color: var(--text); margin-top: 8px; }

.quick-card {
  position: absolute;
  left: -24px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 14px 16px;
  background: rgba(8, 17, 31, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.quick-card p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.status-dot {
  width: 11px;
  height: 11px;
  background: var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(34,197,94,0.14);
  flex: 0 0 auto;
}

.section { padding: 68px 0; }
.section.compact { padding: 24px 0 56px; }

.about-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
  align-items: start;
}

.section-text { font-size: 1.08rem; margin: 0; }

.highlight-grid, .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric-card, .skill-card, .project-card, .contact-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.18);
}

.metric-card, .skill-card, .project-card { padding: 24px; }

.metric-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(104,225,253,0.12);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 18px;
}

.section-heading { margin-bottom: 24px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  min-height: 305px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(104,225,253,0.45);
  background: var(--card-strong);
}

.project-card.featured {
  grid-column: span 2;
  min-height: 285px;
  background: linear-gradient(135deg, rgba(104,225,253,0.14), rgba(139,92,246,0.13)), var(--card);
}

.project-card h3 { margin-bottom: 10px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 18px;
}

.tags span {
  font-size: 0.82rem;
  color: #dceafe;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
}

.project-link {
  color: var(--accent);
  font-weight: 850;
}

.skill-card p { margin-bottom: 0; }

.contact-card {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.project-page { padding: 66px 0 34px; }
.project-page h1 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); }

.content {
  margin: 0 auto 70px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.content h2 { font-size: 1.55rem; margin-top: 28px; }
.content h2:first-child { margin-top: 0; }
.content p, .content li { color: var(--muted); }
.content li { margin: 8px 0; }

@media (max-width: 900px) {
  .hero-layout, .about-grid, .highlight-grid, .skills-grid, .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured { grid-column: span 1; }
  .hero-photo-card { margin: 0; }
  .quick-card { left: 18px; right: 18px; bottom: 26px; max-width: none; }
  .contact-card, .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav { align-items: flex-start; gap: 12px; flex-direction: column; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
}
