:root {
  --radius: 0.75rem;
  --background: oklch(0.985 0.005 85);
  --foreground: oklch(0.18 0.02 260);
  --card: oklch(0.98 0.005 85);
  --card-foreground: oklch(0.18 0.02 260);
  --primary: oklch(0.35 0.08 250);
  --primary-foreground: oklch(0.98 0.005 250);
  --secondary: oklch(0.94 0.01 85);
  --secondary-foreground: oklch(0.25 0.02 260);
  --muted: oklch(0.94 0.01 85);
  --muted-foreground: oklch(0.55 0.03 260);
  --accent: oklch(0.55 0.12 55);
  --accent-foreground: oklch(0.98 0.005 250);
  --border: oklch(0.9 0.01 85);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  text-decoration: none;
}

.container-5 {
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid oklch(0.9 0.01 85 / 0.5);
  background-color: oklch(0.985 0.005 85 / 0.8);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--foreground);
}

.hero-section {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-inline: 1.5rem;
  padding-top: 5rem;
}

.hero-bg,
.hero-overlay,
.matrix-canvas {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-position: center;
  background-size: cover;
}

.php-bg {
  background-image: url("assets/php-code-bg.jpg");
}

.workspace-bg {
  background-image: url("assets/hero-workspace.jpg");
  opacity: 0.7;
  mix-blend-mode: luminosity;
}

.matrix-canvas {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.hero-overlay {
  background-image: linear-gradient(
    to bottom,
    oklch(0.985 0.005 85 / 0.6),
    oklch(0.985 0.005 85 / 0.3),
    var(--background)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 768px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 1rem;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
}

.hero-title {
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.hero-copy {
  max-width: 576px;
  margin: 1.5rem auto 0;
  color: oklch(0.18 0.02 260 / 0.85);
  font-size: 1rem;
  line-height: 1.625;
  backdrop-filter: blur(2px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn-primary-custom,
.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary-custom:hover {
  background-color: oklch(0.35 0.08 250 / 0.9);
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn-secondary-custom {
  border: 1px solid var(--border);
  background-color: oklch(0.98 0.005 85 / 0.8);
  color: var(--foreground);
  backdrop-filter: blur(8px);
}

.btn-secondary-custom:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-primary-custom svg,
.scroll-cue svg {
  width: 1rem;
  height: 1rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 10;
  color: var(--muted-foreground);
  animation: bounce 1s infinite;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, -25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translate(-50%, 0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.section {
  padding: 6rem 1.5rem;
}

.section-muted {
  background:
    linear-gradient(180deg, transparent, oklch(0.94 0.01 85 / 0.32) 18%, oklch(0.94 0.01 85 / 0.32) 82%, transparent);
}

.about-grid {
  display: grid;
  gap: 3rem;
}

.section-eyebrow {
  margin-bottom: 0;
}

.section-title {
  margin-top: 0.75rem;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 2.25rem;
}

.copy-block {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
}

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

.stat-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background-color: var(--card);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 150ms ease;
}

.stat-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.stat-value {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.stat-label {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1rem;
  text-transform: uppercase;
}

.section-heading {
  text-align: center;
}

.section-lead {
  max-width: 576px;
  margin: 1rem auto 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
}

.skills-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: var(--card);
  padding: 1.25rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.skill-card:hover {
  border-color: oklch(0.35 0.08 250 / 0.3);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.icon-wrap {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: oklch(0.35 0.08 250 / 0.1);
  color: var(--primary);
}

.icon-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
}

.skill-card p {
  color: var(--foreground);
  font-weight: 500;
}

.skill-card span:not(.icon-wrap) {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1rem;
}

.private-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.private-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background-color: oklch(0.98 0.005 85 / 0.76);
  padding: 1.5rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.private-card:hover {
  border-color: oklch(0.35 0.08 250 / 0.3);
  box-shadow: 0 10px 15px -12px rgb(0 0 0 / 0.22);
  transform: translateY(-1px);
}

.private-card h3 {
  margin-top: 1rem;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.private-card p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.625;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: oklch(0.98 0.005 85 / 0.72);
  color: oklch(0.18 0.02 260 / 0.76);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 1rem;
  text-align: center;
  transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.logo-tile:hover {
  border-color: oklch(0.35 0.08 250 / 0.3);
  color: var(--primary);
  box-shadow: 0 8px 18px -12px rgb(0 0 0 / 0.28);
  transform: translateY(-1px);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background-color: var(--card);
  padding: 1.5rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.project-card:hover {
  border-color: oklch(0.35 0.08 250 / 0.3);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-top a {
  color: var(--muted-foreground);
  transition: color 150ms ease;
}

.project-card:hover .project-top a,
.project-top a:hover {
  color: var(--primary);
}

.project-top a svg {
  width: 1rem;
  height: 1rem;
}

.project-card h3 {
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.project-card p {
  flex: 1;
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.625;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tags span {
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}

.contact-container {
  width: 100%;
  max-width: 672px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}

.contact-copy {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
}

.contact-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background-color: var(--card);
  color: var(--muted-foreground);
  transition: border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.social-links a:hover {
  border-color: oklch(0.35 0.08 250 / 0.3);
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
    line-height: 1;
  }

  .hero-copy {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

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

  .private-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero-title {
    font-size: 4.5rem;
    line-height: 1;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
