﻿:root {
  --bg: #07111f;
  --bg-soft: rgba(13, 24, 40, 0.82);
  --panel: rgba(10, 20, 35, 0.78);
  --panel-strong: #0d1a2d;
  --border: rgba(145, 170, 210, 0.18);
  --text: #f4f7fb;
  --muted: #a6b3c5;
  --accent: #52e0c4;
  --accent-strong: #7c9cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1120px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(82, 224, 196, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 156, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #030712 100%);
  min-height: 100vh;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.34;
  z-index: -1;
}

.page-shell::before {
  top: 8rem;
  left: -6rem;
  background: rgba(82, 224, 196, 0.18);
}

.page-shell::after {
  right: -6rem;
  bottom: 5rem;
  background: rgba(124, 156, 255, 0.2);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 1.5rem;
}

.brand,
.section-heading h2,
.hero h1,
.project-body h3,
.skill-card h3,
.timeline-content h3,
.contact-card h2 {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.95;
}

.hero-text,
.about-card p,
.project-body p,
.timeline-content p,
.contact-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  text-wrap: balance;
}

.hero-actions,
.card-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions {
  margin-top: 2rem;
}

.btn,
.text-link,
.contact-links a {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.btn:hover,
.text-link:hover,
.contact-links a:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5bc0ff);
  color: #04111e;
  box-shadow: 0 12px 32px rgba(82, 224, 196, 0.18);
}

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

.hero-card,
.about-card,
.project-card,
.skill-card,
.timeline-content,
.contact-card {
  background: linear-gradient(180deg, rgba(17, 29, 48, 0.92), rgba(9, 17, 30, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.4rem;
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(82, 224, 196, 0.7);
  animation: pulse 2s infinite;
}

.code-window {
  padding: 1.2rem;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(3, 9, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.window-top span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window-top span:first-child {
  background: #ff6b6b;
}

.window-top span:nth-child(2) {
  background: #ffd166;
}

.window-top span:last-child {
  background: #06d6a0;
}

.code-window pre {
  margin: 0;
  overflow: auto;
  color: #d7e2f0;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.7;
  font-size: 0.94rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.hero-metrics article {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.hero-metrics strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-metrics span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-card,
.contact-card {
  padding: 2rem;
}

.projects-grid,
.skills-grid {
  display: grid;
  gap: 1.5rem;
}

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

.project-card {
  overflow: hidden;
}

.project-card:hover,
.skill-card:hover,
.timeline-content:hover {
  border-color: rgba(82, 224, 196, 0.32);
  transform: translateY(-6px);
}

.project-image {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(82, 224, 196, 0.18), rgba(124, 156, 255, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-body {
  padding: 1.5rem;
}

.project-body h3,
.skill-card h3,
.timeline-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.text-link::after {
  content: "->";
  font-size: 0.9em;
}

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

.skill-card {
  padding: 1.6rem;
}

.skill-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.skill-card li {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.7rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(124, 156, 255, 0.3));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.2rem;
  align-items: start;
}

.timeline-dot {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  border: 4px solid rgba(7, 17, 31, 1);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 6px rgba(82, 224, 196, 0.08);
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-period {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.contact-links {
  justify-content: flex-start;
}

.contact-links a {
  min-width: 12rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
}

.contact-links a:hover {
  color: var(--text);
  border-color: rgba(82, 224, 196, 0.3);
}

.detail-main {
  padding: 3.5rem 0 6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-weight: 700;
}

.back-link::before {
  content: "<-";
  color: var(--accent);
}

.project-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.detail-card,
.detail-sidebar,
.detail-section {
  background: linear-gradient(180deg, rgba(17, 29, 48, 0.92), rgba(9, 17, 30, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.detail-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-title {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
}

.detail-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.detail-preview {
  margin-bottom: 1.5rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.detail-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.detail-meta {
  display: grid;
  gap: 1rem;
}

.meta-item {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-value {
  color: var(--text);
  line-height: 1.65;
}

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

.detail-section h2 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.detail-section p,
.detail-section li {
  color: var(--muted);
  line-height: 1.8;
}

.detail-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease,
    border-color 180ms ease;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(82, 224, 196, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(82, 224, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(82, 224, 196, 0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .project-hero,
  .detail-grid,
  .contact-card,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-panel {
    max-width: 42rem;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .status-pill {
    font-size: 0.88rem;
  }

  .code-window {
    padding: 1rem;
  }

  .code-window pre {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .about-card,
  .project-body,
  .skill-card,
  .timeline-content,
  .contact-card {
    padding: 1.35rem;
  }
}

@media (max-width: 540px) {
  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 2.9rem);
    line-height: 1.02;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .status-pill {
    padding: 0.65rem 0.85rem;
  }

  .btn,
  .contact-links a {
    width: 100%;
  }
}

