:root {
  --navy-950: #07111f;
  --navy-900: #0b1628;
  --navy-800: #0f2138;
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --gold-400: #f8c55a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(8, 18, 34, 0.22);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  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(--navy-950);
  color: var(--slate-100);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(135deg, #07111f 0%, #0b1628 48%, #10233c 100%);
}

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

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

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 84px;
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--white);
  margin-bottom: 18px;
}

.section-heading p,
.contact-copy p,
.about-content p {
  color: var(--slate-300);
  font-size: 1.02rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  width: min(var(--container), calc(100% - 28px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.navbar.shrink {
  margin-top: 8px;
  padding-block: 9px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #06101d;
  background: linear-gradient(135deg, var(--gold-400), var(--cyan-400));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.24);
}

.brand-text {
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--slate-300);
  font-size: 0.92rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -100px;
  top: 140px;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  align-items: center;
  gap: 70px;
}

.hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 760px;
  color: var(--slate-300);
  font-size: 1.14rem;
  margin-bottom: 32px;
}

.hero-actions,
.project-filters,
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #06101d;
  background: linear-gradient(135deg, var(--gold-400), var(--cyan-400));
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.2);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero-highlights {
  margin-top: 28px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-highlights i {
  color: var(--gold-400);
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(248, 197, 90, 0.22), transparent, rgba(34, 211, 238, 0.22));
  opacity: 0.8;
  z-index: -1;
}

.profile-image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 18px;
  border-radius: 24px;
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.03);
}

.profile-card-body {
  padding: 8px 24px 26px;
}

.profile-card-body h2 {
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.profile-card-body p {
  color: var(--slate-300);
  font-weight: 600;
}

.profile-tags,
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-tags span,
.tech-stack span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Snapshot */
.intro-strip {
  padding-top: 0;
}

.stats-grid,
.service-grid,
.project-grid,
.credential-grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card,
.service-card,
.project-card,
.timeline-card,
.credential-card,
.contact-card,
.skills-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat-card {
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.stat-card strong {
  display: block;
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.stat-card span {
  color: var(--slate-300);
  font-size: 0.94rem;
}

/* About */
.about,
.skills,
.credentials {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.about-content {
  display: grid;
  gap: 18px;
  padding: 32px;
  border-left: 3px solid var(--gold-400);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
}

/* Services */
.service-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
}

.service-card {
  min-height: 310px;
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover,
.project-card:hover,
.credential-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 197, 90, 0.44);
  background: rgba(255, 255, 255, 0.09);
}

.service-card i,
.credential-card i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #06101d;
  background: linear-gradient(135deg, var(--gold-400), var(--cyan-400));
  font-size: 1.25rem;
  margin-bottom: 22px;
}

.service-card h3,
.project-card h3,
.skill-group h3,
.timeline-card h3,
.credential-card h3 {
  color: var(--white);
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.service-card p,
.project-card p,
.skill-group p,
.timeline-card p,
.credential-card p {
  color: var(--slate-300);
  font-size: 0.96rem;
}

.featured-service {
  background: linear-gradient(145deg, rgba(248, 197, 90, 0.14), rgba(34, 211, 238, 0.08));
}

/* Projects */
.projects {
  background: rgba(241, 245, 249, 0.98);
  color: #0f172a;
}

.projects .section-heading h2,
.projects .project-card h3 {
  color: #0f172a;
}

.projects .section-heading p,
.projects .project-card p {
  color: var(--slate-600);
}

.project-filters {
  justify-content: center;
  margin: 30px 0 36px;
}

.filter-btn {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  padding: 10px 15px;
  color: #0f172a;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: #06101d;
  background: linear-gradient(135deg, var(--gold-400), var(--cyan-400));
  border-color: transparent;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.11);
}

.project-card.hidden {
  display: none;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.project-type {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-topline i {
  color: var(--blue-700);
  font-size: 1.2rem;
}

.more-text {
  display: none;
  margin-top: 12px;
}

.more-text.open {
  display: block;
}

.project-footer {
  margin-top: auto;
  padding-top: 20px;
}

.read-more-btn,
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  background: #0f172a;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.86rem;
  margin: 0 8px 10px 0;
  transition: 0.2s ease;
}

.project-link {
  background: var(--blue-700);
}

.read-more-btn:hover,
.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.projects .tech-stack span {
  color: #0f172a;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

/* Skills */
.skills-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.skill-group {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 46px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.timeline-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--cyan-400));
  border: 6px solid var(--navy-950);
  z-index: 1;
}

.timeline-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.timeline-date {
  display: inline-flex;
  color: var(--gold-400);
  font-weight: 900;
  font-size: 0.84rem;
  margin-bottom: 9px;
}

/* Credentials */
.credential-grid {
  grid-template-columns: repeat(3, 1fr);
}

.credential-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

/* Contact */
.contact {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.18), rgba(34, 211, 238, 0.06));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-100);
  font-weight: 800;
  transition: 0.2s ease;
}

.contact-card a:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
}

.contact-card i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #06101d;
  background: linear-gradient(135deg, var(--gold-400), var(--cyan-400));
}

/* Footer */
.site-footer {
  padding: 24px 0;
  color: var(--slate-300);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 31, 0.92);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--gold-400);
  font-weight: 800;
}

/* Extras */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-400), var(--cyan-400));
  z-index: 2000;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: #06101d;
  background: linear-gradient(135deg, var(--gold-400), var(--cyan-400));
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 460px;
  }

  .stats-grid,
  .service-grid,
  .project-grid,
  .credential-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .section {
    padding: 72px 0;
  }

  .navbar {
    border-radius: 24px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    width: min(100%, calc(100vw - 28px));
    margin-inline: auto;
    padding: 12px;
    display: grid;
    gap: 6px;
    border-radius: 22px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .nav-links.active {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

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

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 4.2rem);
  }

  .stats-grid,
  .service-grid,
  .project-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand-text {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-content,
  .skills-panel,
  .contact-card {
    padding: 22px;
  }

  .project-card,
  .service-card,
  .credential-card {
    padding: 22px;
  }
}
