:root {
  --bg: #0b1021;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: #e7e9f5;
  --muted: #a4abc5;
  --primary: #6be3ff;
  --primary-strong: #33d2ff;
  --outline: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.06);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(107, 227, 255, 0.12), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(137, 99, 255, 0.12), transparent 25%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page {
  position: relative;
}

.bg-accent {
  position: fixed;
  inset: -20% 0 auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(107, 227, 255, 0.25), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3Ccircle cx='41' cy='19' r='1'/%3E%3Ccircle cx='21' cy='59' r='1'/%3E%3Ccircle cx='59' cy='41' r='1'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.container-lg {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 56px 16px 32px;
}

.section {
  padding: 32px 16px 8px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-nav {
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 32px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(107, 227, 255, 0.9), rgba(137, 99, 255, 0.9));
  display: grid;
  place-items: center;
  color: #0b1021;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-family: "Space Grotesk", sans-serif;
}

.nav-links {
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero-grid {
  margin-top: 16px;
}

.eyebrow {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
}

.lead {
  font-size: 18px;
  margin: 12px 0 18px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 14px;
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.btn {
  border-radius: 10px;
  font-weight: 700;
  padding-left: 18px;
  padding-right: 18px;
  box-shadow: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border: none;
  color: #0b1021;
  box-shadow: 0 16px 30px rgba(51, 210, 255, 0.35);
}

.btn-outline-light {
  border-color: var(--outline);
  color: var(--text);
}

.contact-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.contact-inline img {
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-inline img:hover {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.profile-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.avatar-frame {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--outline);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.meta-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-value {
  color: var(--text);
  font-weight: 700;
  margin-top: -4px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

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

.about-grid .info-card,
.skill-card,
.project-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  height: 100%;
}

.info-card h3,
.project-card h3,
.skill-card .skill-title {
  color: var(--text);
}

.skills-grid .skill-card .pill-group {
  margin-top: 12px;
}

.skill-title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--stroke);
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 16px;
}

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(107, 227, 255, 0.18);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.cta {
  padding: 32px 16px 48px;
}

.cta-card {
  background: var(--panel-strong);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.cta-actions {
  display: flex;
  gap: 12px;
}

.footer {
  padding: 18px 16px 36px;
}

.footer-inner {
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
}

@media (max-width: 991px) {
  .hero {
    padding-top: 32px;
  }

  .top-nav {
    margin-bottom: 24px;
  }

  .profile-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 24px;
  }

  .contact-inline span {
    display: none;
  }

  .nav-links {
    display: none !important;
  }

  .pill-group {
    gap: 8px;
  }

  .stat-row {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .cta-card {
    padding: 20px;
  }

  .cta-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
