:root {
  --bg: #0a1f44;
  --bg-deep: #0f172a;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.25);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(148, 163, 184, 0.22);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  --radius: 20px;
  --max-width: 1150px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", "Poppins", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-deep), var(--bg));
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.6), transparent 70%);
}

.glow-one {
  top: -120px;
  left: -80px;
}

.glow-two {
  bottom: -160px;
  right: -120px;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.3;
}

.section {
  padding: 110px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 40px;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 10px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(10, 18, 36, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  color: var(--muted);
  transition: color 0.3s ease;
}

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

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(37, 99, 235, 0.1);
  color: var(--text);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content .lead {
  margin-top: 18px;
  max-width: 520px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 12px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
  background: rgba(15, 23, 42, 0.4);
}

.btn.small {
  padding: 10px 16px;
  font-size: 0.85rem;
  gap: 8px;
}

.hero-metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.metric {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.4);
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-card {
  padding: 28px;
  width: min(380px, 100%);
}

.card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
}

.card-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.card-chart {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  height: 120px;
}

.card-chart span {
  display: block;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 0.2));
}

.card-chart span:nth-child(1) {
  height: 40%;
}

.card-chart span:nth-child(2) {
  height: 70%;
}

.card-chart span:nth-child(3) {
  height: 55%;
}

.card-chart span:nth-child(4) {
  height: 85%;
}

.card-chart span:nth-child(5) {
  height: 60%;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(160px);
}

.orb {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.about-card {
  padding: 24px;
}

.about-visual {
  margin-bottom: 16px;
}

.about-visual img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.about-card ul {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #fff;
  margin-bottom: 14px;
  box-shadow: inset 0 0 12px rgba(37, 99, 235, 0.25);
}

.skill-icon svg {
  width: 22px;
  height: 22px;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  perspective: 1000px;
}

.project-card {
  padding: 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(6deg) rotateY(-6deg);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.2);
}

.project-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(37, 99, 235, 0.7);
  margin-bottom: 14px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
}

.timeline {
  position: relative;
  padding-left: 24px;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(148, 163, 184, 0.3);
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
}

.timeline-content {
  padding: 20px;
}

.timeline-date {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-details,
.contact-form {
  padding: 24px;
}

.contact-details a {
  color: #fff;
}

.social-links {
  margin-top: 18px;
  display: flex;
  gap: 16px;
}

.more-actions {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.more-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

input,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  border-color: rgba(37, 99, 235, 0.5);
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.is-success {
  color: #7dd3fc;
}

.form-status.is-error {
  color: #fca5a5;
}

.footer {
  text-align: center;
  padding: 30px 16px 50px;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .hero-orbit {
    transform: translateY(120px);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-orbit {
    position: static;
    transform: none;
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
