:root {
  --bg: #090d1a;
  --surface: #111729;
  --surface-alt: #151d34;
  --text: #eef2ff;
  --muted: #a0abc4;
  --accent: #6c8bff;
  --accent-2: #7cf0d2;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  background: radial-gradient(circle at 15% 0%, #111f45 0%, #090d1a 40%) no-repeat;
  color: var(--text);
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  margin-bottom: 1.3rem;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(8, 12, 25, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a1020;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #d8deff;
  border-radius: 99px;
}

.hero {
  padding-top: 7rem;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 7vw, 4.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.08rem;
}

.intro {
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 0.7rem;
  font-weight: 650;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #88a3ff);
  color: #07102a;
  box-shadow: 0 8px 20px rgba(108, 139, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
}

.about-grid p + p {
  margin-top: 0.8rem;
}

.about-highlights {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  align-self: start;
  box-shadow: var(--shadow);
}

.about-highlights h3 {
  margin-bottom: 0.75rem;
}

.about-highlights ul {
  list-style: none;
  color: var(--muted);
}

.about-highlights li + li {
  margin-top: 0.6rem;
}

.projects-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  grid-column: span 6;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 240, 210, 0.5);
}

.project-card h3 {
  margin-bottom: 0.55rem;
}

.project-card p {
  color: #d8e0ff;
}

.project-card .tech {
  margin: 0.8rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-card a {
  color: var(--accent-2);
  font-weight: 650;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skills-list li {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #d8e0ff;
  background: rgba(255, 255, 255, 0.03);
}

.contact-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-email {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-2);
  font-weight: 650;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-links a {
  color: var(--muted);
}

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

.site-footer {
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

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

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

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

  .project-card {
    grid-column: span 12;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
    z-index: 101;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 72px;
    width: min(300px, 92vw);
    background: #0d1327;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
    padding: 0.9rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
  }

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

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

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}