:root {
  --background: #0b1120;
  --surface: #111a2e;
  --surface-light: #17233d;
  --text: #e7edf7;
  --muted: #9bacbf;
  --accent: #4da3ff;
  --border: #263653;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(11, 17, 32, 0.92);
  border-bottom: 1px solid rgba(38, 54, 83, 0.7);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header {
  width: min(var(--max-width), calc(100% - 3rem));
  min-height: 80px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

section {
  scroll-margin-top: 100px;
}


.logo {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 44px;
  height: 44px;
  display: block;
}

nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(38, 54, 83, 0.7);
}

section {
  scroll-margin-top: 100px;
}

.site-header {
  width: min(var(--max-width), calc(100% - 3rem));
  min-height: 80px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resume-button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}

.resume-button:hover {
  background: var(--accent);
  color: #07111d;
}


main,
footer {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: 5rem 0;
}

.eyebrow,
.section-label,
.project-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.06em;
}

.hero h2 {
  color: var(--muted);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0.75rem 0 1.5rem;
}

.hero-text {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
}

.hero-links,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-links {
  margin-top: 1rem;
}

.button {
  display: inline-block;
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  font-weight: 650;
  transition: 0.2s ease;
}

.primary {
  background: var(--accent);
  color: #07111d;
}

.primary:hover {
  background: #8ac5ff;
  color: #07111d;
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-top: 0.3rem;
}

.section-content {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
}

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

.profile-box {
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--surface);
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.project-card h3 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
}

.project-card p:not(.project-number) {
  min-height: 95px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.tech-list li {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.project-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  max-width: 850px;
}

.skills-grid div {
  border-left: 2px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.25rem;
}

.skills-grid h3 {
  margin: 0;
}

.skills-grid p {
  margin: 0.4rem 0 0;
}

.contact-section {
  max-width: 700px;
  text-align: center;
  margin: 3rem auto;
}

.contact-section .button {
  margin-top: 1rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

footer div {
  display: flex;
  gap: 1rem;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
  }

  nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .section-content,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-card p:not(.project-number) {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  nav a:nth-child(2),
  nav a:nth-child(3) {
    display: none;
  }
}

