/* Glass design system — premium SaaS aesthetic */

:root {
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-bg-hover: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: 20px;
  --glass-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --glass-radius: 24px;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #0969da;
  --accent-soft: #0ea5e9;
  --nav-height: 88px;
}

.site-body {
  min-height: 100vh;
  color: var(--text-primary);
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 35%, #eef7ff 70%, #f5f3ff 100%);
  position: relative;
  isolation: isolate;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.55;
  will-change: transform;
}

.ambient-blob--1 {
  width:  min(520px, 90vw);
  height: min(520px, 90vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
}

.ambient-blob--2 {
  width:  min(480px, 85vw);
  height: min(480px, 85vw);
  top: 35%;
  right: -12%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 72%);
}

.ambient-blob--3 {
  width:  min(560px, 95vw);
  height: min(560px, 95vw);
  bottom: -18%;
  left: 25%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
}

.site-content {
  position: relative;
  z-index: 0;
}

.section-shell {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-shell {
    padding-top: 2.5rem;
    padding-bottom: 7rem;
  }
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  transition:
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
    background 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.glass-hover {
  position: relative;
  overflow: hidden;
}

.glass-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 300ms ease;
  background: radial-gradient(
    600px circle at var(--glass-glow-x, 50%) var(--glass-glow-y, 50%),
    rgba(255, 255, 255, 0.45),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
}

.glass-hover > * {
  position: relative;
  z-index: 1;
}

.glass-hover:hover::before {
  opacity: 1;
}

.glass-hover:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease;
}

.glass-chip:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
  background: rgba(255, 255, 255, 0.5);
}

/* Floating navbar */
.nav-shell {
  padding: 1rem 1rem 0;
  pointer-events: none;
}

.nav-glass {
  pointer-events: auto;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.nav-glass .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 200ms ease;
}

.nav-glass .nav-link:hover,
.nav-glass .nav-link.active {
  color: var(--accent);
}

.nav-glass .nav-link.active {
  text-decoration: none;
  font-weight: 600;
}

.nav-mobile-panel {
  margin-top: 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--glass-shadow);
}

.btn-nav-cv {
  border-radius: 16px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-nav-cv:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

/* Hero */
.hero-section {
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 7.5rem;
    padding-bottom: 5rem;
  }
}

.hero-glass-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-glass-card {
    padding: 3.5rem 3rem;
  }
}

.hero-photo-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.hero-photo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  object-fit: cover;
  transition: transform 300ms ease;
}

.hero-photo-wrap:hover .hero-photo {
  transform: scale(1.02);
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-bio {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Project showcase */
.project-card {
  border-radius: var(--glass-radius);
  overflow: hidden;
}

.project-card.glass-hover:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 32px 80px rgba(14, 165, 233, 0.12);
}

.project-card .project-media {
  border-radius: 0;
}

.learning-card::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 45%;
  height: 80%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-glass {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-glass-placeholder {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .glass-hover:hover,
  .glass-chip:hover,
  .btn:hover,
  .hero-photo-wrap:hover .hero-photo,
  .project-card.glass-hover:hover {
    transform: none;
  }

  .glass-hover::before {
    display: none;
  }
}
