:root {
  --bg: #132035;
  --surface: #152235;
  --surface-alt: #1a2b43;
  --text: #e6f2ff;
  --muted: #b9cbe0;
  --accent: #5bbaf5;
  --accent-dark: #2f86c8;
  --border: #24364f;
  --section-tint: #16253a;
  --shadow: 0 18px 40px rgba(6, 12, 20, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 186, 245, 0.16), transparent 45%),
    radial-gradient(circle at 90% 5%, rgba(80, 164, 226, 0.14), transparent 40%),
    linear-gradient(180deg, #162338 0%, #182a42 55%, #1b2f48 100%);
}

main {
  background: transparent;
}

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

.site-header {
  padding: 1.2rem 0 3.5rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: none;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(5, 14, 28, 0.5);
}

.logo {
  font-family: "Fraunces", "Sora", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #dff0ff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

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

.hero {
  padding: 5.5rem 0 3rem;
  animation: rise-in 0.7s ease forwards;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-family: "Fraunces", "Sora", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  max-width: 16ch;
}

.hero-copy {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, #2f86c8, #66c3ff);
  color: #04121f;
  border-color: rgba(91, 186, 245, 0.6);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #2b76b2, #8ad3ff);
}

.btn-secondary {
  border-color: #2b3f5c;
  color: #e6f2ff;
  background: #1a2b43;
}

.section {
  padding: 4rem 0 1rem;
}


.section h2 {
  font-family: "Fraunces", "Sora", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 1.1rem;
  letter-spacing: 0.03em;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9fb8d3;
  margin-bottom: 0.6rem;
}

.section p {
  color: var(--muted);
  max-width: 72ch;
}

.card p {
  color: #c7d9ee;
}

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

.timeline {
  position: relative;
  margin-top: 1.6rem;
  display: grid;
  gap: 2rem;
  padding: 0.5rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(91, 186, 245, 0.1), rgba(91, 186, 245, 0.6), rgba(91, 186, 245, 0.1));
  transform: translateX(-50%);
}

.timeline-item {
  width: min(520px, 100%);
  position: relative;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.timeline-item:nth-child(odd) {
  justify-self: start;
  margin-right: auto;
  transform: translateX(-140px);
}

.timeline-item:nth-child(even) {
  justify-self: end;
  margin-left: auto;
  transform: translateX(140px);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(91, 186, 245, 0.12);
}

.timeline-item:nth-child(odd) .timeline-dot {
  left: calc(100% + 26px);
  transform: translate(-50%, -50%);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -26px;
  transform: translate(-50%, -50%);
}

.timeline-marker {
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: calc(0.9rem + 2px);
  color: var(--muted);
  z-index: 2;
  text-align: center;
  white-space: normal;
}

.timeline-marker span {
  font-size: calc(0.9rem + 4px);
  font-style: italic;
  white-space: nowrap;
}

.timeline-marker img {
  width: 165px;
  height: 165px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #2b3f5c;
  background: #111d2d;
}

.timeline-item:nth-child(odd) .timeline-marker {
  left: calc(100% + 26px);
  transform: translate(50%, -50%);
}

.timeline-item:nth-child(even) .timeline-marker {
  right: calc(100% + 26px);
  transform: translate(-50%, -50%);
}

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

.card {
  border: 1px solid var(--border);
  border-left: 4px solid rgba(91, 186, 245, 0.55);
  background: var(--surface);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 14px 30px rgba(5, 14, 28, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card {
  position: relative;
  padding-top: 1.6rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.repo-link {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111d2d;
  border: 1px solid #2b3f5c;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.repo-link svg {
  width: 18px;
  height: 18px;
  fill: #cfe6ff;
}

.repo-link:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 186, 245, 0.7);
}

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

.tech-tag {
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.tag-1 {
  background: rgba(91, 186, 245, 0.15);
  color: #9ad4ff;
  border-color: rgba(91, 186, 245, 0.4);
}

.tag-2 {
  background: rgba(108, 217, 167, 0.12);
  color: #9decc7;
  border-color: rgba(108, 217, 167, 0.4);
}

.tag-3 {
  background: rgba(246, 190, 86, 0.14);
  color: #ffd18a;
  border-color: rgba(246, 190, 86, 0.45);
}

.tag-4 {
  background: rgba(224, 115, 148, 0.14);
  color: #f5a2c0;
  border-color: rgba(224, 115, 148, 0.45);
}

.timeline-item.card {
  overflow: visible;
}

.card::before {
  content: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(5, 14, 28, 0.55);
}


.featured-card {
  margin-top: 1.3rem;
}

.beat-list {
  margin: 0.9rem 0 0.4rem 1rem;
  color: #b4c8df;
}

.beat-list li {
  margin-bottom: 0.4rem;
}

.impact-list {
  margin: 0.8rem 0 0.2rem 1.1rem;
  color: #c7d9ee;
}

.impact-list li {
  margin-bottom: 0.6rem;
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.card-title-row h3 {
  margin-bottom: 0;
}

.card-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #2b3f5c;
  background: #111d2d;
  flex-shrink: 0;
}

.card-title-row h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-title-row h3 a:hover {
  color: var(--accent);
}

.card .stack {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: #9fb8d3;
}

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

.skill-list li {
  border: 1px solid var(--border);
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--surface);
}

.contact-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--accent);
}

.contact-links a:hover {
  color: var(--accent-dark);
}

.contact-card {
  margin-top: 1.4rem;
  border: 1px solid var(--border);
  border-left: 4px solid rgba(91, 186, 245, 0.55);
  background: var(--surface);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 14px 30px rgba(5, 14, 28, 0.45);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #2b3f5c;
  background: #111d2d;
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8ea7c3;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(91, 186, 245, 0.7);
  box-shadow: 0 0 0 3px rgba(91, 186, 245, 0.18);
}

.footer {
  text-align: center;
  padding: 2.2rem 0;
  color: #9fb0c7;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav {
    border-radius: 18px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .cards,
  .split-grid,
  .skill-list {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.4rem;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    justify-self: stretch;
    margin: 0;
  }

  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 0;
    transform: translate(-50%, -50%);
  }

  .timeline-marker,
  .timeline-item:nth-child(odd) .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    position: static;
    margin-bottom: 0.7rem;
    text-align: left;
    flex-direction: row;
  }
}
