:root {
  --bg: #05070f;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f8ff;
  --muted: #b9c2da;
  --accent-1: #ff7a59;
  --accent-2: #00c2ff;
  --accent-3: #8fff6a;
  --accent-4: #ffd93d;
  --ring: rgba(255, 255, 255, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 5% 10%, #17336d 0%, rgba(23, 51, 109, 0) 35%),
    radial-gradient(circle at 90% 15%, #6c2b7c 0%, rgba(108, 43, 124, 0) 40%),
    radial-gradient(circle at 50% 100%, #0f5b61 0%, rgba(15, 91, 97, 0) 35%), var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  pointer-events: none;
  z-index: -3;
}

.bg-ornament {
  position: fixed;
  width: 420px;
  height: 420px;
  filter: blur(80px);
  border-radius: 999px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -2;
  animation: float 12s ease-in-out infinite;
}

.bg-ornament-1 {
  top: -120px;
  left: -80px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.bg-ornament-2 {
  bottom: -180px;
  right: -120px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  animation-delay: 2.2s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: rgba(10, 13, 26, 0.7);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #f5f8ff;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.menu-btn {
  display: none;
  border: 1px solid var(--ring);
  background: transparent;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0.55rem;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 4px;
  background: var(--text);
  transition: 0.25s ease;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
}

.section {
  margin: 3rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.glass-card,
.skill-item,
.project-card,
.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--ring);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.25rem;
}

.eyebrow {
  font-family: "Sora", sans-serif;
  color: var(--accent-4);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.7px;
  margin-bottom: 1rem;
}

.hero-text {
  color: var(--muted);
  max-width: 52ch;
}

.hero-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #0a0f1f;
  background: linear-gradient(130deg, var(--accent-4), var(--accent-1));
  box-shadow: 0 10px 30px rgba(255, 122, 89, 0.35);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--ring);
  background: rgba(255, 255, 255, 0.06);
}

.hero-tags {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span {
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card {
  padding: 1.5rem;
  position: relative;
}

.profile-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.profile-image-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content {
  flex: 1;
  min-width: 0;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #77ff9f;
  box-shadow: 0 0 0 10px rgba(119, 255, 159, 0.18);
  margin-bottom: 1rem;
}

.card-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 0.73rem;
  font-weight: 600;
}

.hero-card h2 {
  margin-top: 0.4rem;
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.hero-card p {
  color: var(--muted);
}

.stats {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stats article {
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.stats h3 {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stats p {
  font-size: 0.76rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.3px;
  max-width: 25ch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.glass-card {
  padding: 1.2rem;
}

.glass-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.glass-card p {
  color: var(--muted);
}

.education-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.education-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.education-label {
  color: #9ec5ff;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 600;
}

.education-value {
  color: #f5f8ff;
  font-size: 0.98rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  padding: 1rem 1.1rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.52);
}

.service-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.03rem;
  margin-bottom: 0.5rem;
  color: #eaff7a;
}

.service-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.skills-intro {
  color: var(--muted);
  margin-bottom: 1.1rem;
  max-width: 72ch;
}

.skills-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skills-tag-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  padding: 1rem 1.1rem;
}

.skills-tag-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0.34rem 0.68rem;
  font-size: 0.86rem;
  line-height: 1.2;
}

.skills-tag-card-edge {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.08);
}

.filters {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filters button {
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.filters button.active,
.filters button:hover {
  color: #11152a;
  border-color: transparent;
  background: linear-gradient(140deg, var(--accent-3), var(--accent-2));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 0.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.55);
}

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

.project-thumb {
  height: 150px;
  border-radius: var(--radius-md);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.07);
}

.project-card h3 {
  font-size: 1.07rem;
  margin-bottom: 0.3rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.insights-intro {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 72ch;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.insight-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  padding: 1rem 1.1rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.52);
}

.insight-meta {
  color: #9ec5ff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.45rem;
}

.insight-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.03rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.insight-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.insight-link {
  margin-top: 0.75rem;
  display: inline-flex;
  text-decoration: none;
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.9rem;
}

.insight-link:hover {
  color: #67e8f9;
}

.contact-form {
  padding: 1.2rem;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--ring);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.2);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.success {
  color: #9dffbe;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-title {
  margin-top: 0.8rem;
  color: #f5f8ff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.footer-link {
  color: #0c1122;
  text-decoration: none;
  font-weight: 700;
  padding: 0.58rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.footer-link.linkedin {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}

.footer-link.github {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
}

.footer-link.email {
  background: linear-gradient(135deg, #fcd34d, #fb923c);
}

.footer-link:hover,
.footer-link:focus-visible {
  transform: translateY(-3px) scale(1.03);
  filter: saturate(1.1);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.footer-link:focus-visible {
  outline: 2px solid #f5f8ff;
  outline-offset: 2px;
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(20px);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .services-grid,
  .skills-tag-grid,
  .project-grid,
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-row {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 18px;
  }

  .menu-btn {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    border: 1px solid var(--ring);
    border-radius: 16px;
    background: rgba(10, 13, 26, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.55rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-radius: 10px;
  }

  .hero-copy {
    padding: 1.3rem;
  }

  .about-grid,
  .services-grid,
  .skills-tag-grid,
  .project-grid,
  .insights-grid,
  .input-grid {
    grid-template-columns: 1fr;
  }

  .education-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .profile-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
