/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0d1117;
  color: #f0f6fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #79c0ff;
}

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

/* ===== Landing Page ===== */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.landing__name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.landing__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #8b949e;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.landing__spinner {
  margin-top: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #21262d;
  border-top-color: #58a6ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.landing__link {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #8b949e;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.landing__link a {
  color: #58a6ff;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #21262d;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f0f6fc;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  color: #8b949e;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: #f0f6fc;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #f0f6fc;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.97);
    border-bottom: 1px solid #21262d;
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .nav__list--open {
    display: flex;
  }

  .nav__list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #21262d;
  }

  .nav__list li:last-child {
    border-bottom: none;
  }
}

/* ===== Sections (shared) ===== */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  color: #8b949e;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.section__divider {
  width: 48px;
  height: 3px;
  background: #58a6ff;
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
}

.hero__name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: #58a6ff;
  margin-top: 0.5rem;
}

.hero__location {
  color: #8b949e;
  margin-top: 0.5rem;
  font-size: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}

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

.btn--primary {
  background: #238636;
  color: #fff;
}

.btn--primary:hover {
  background: #2ea043;
  color: #fff;
}

.btn--secondary {
  background: #21262d;
  color: #f0f6fc;
  border: 1px solid #30363d;
}

.btn--secondary:hover {
  background: #30363d;
  color: #f0f6fc;
}

/* ===== About ===== */
.about__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #c9d1d9;
  max-width: 720px;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #21262d;
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: #58a6ff;
  border-radius: 50%;
  transform: translateX(-5px);
}

.timeline__role {
  font-size: 1.25rem;
  font-weight: 600;
}

.timeline__company {
  color: #58a6ff;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.timeline__meta {
  color: #8b949e;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.timeline__desc {
  color: #c9d1d9;
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #58a6ff;
  transform: translateY(-2px);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__issuer {
  color: #58a6ff;
  font-size: 0.875rem;
}

.card__date {
  color: #8b949e;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.card__desc {
  color: #c9d1d9;
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

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

.tag {
  background: #21262d;
  color: #c9d1d9;
  font-size: 0.8125rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid #30363d;
}

/* ===== Skills Grid ===== */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: #161b22;
  border: 1px solid #30363d;
  color: #f0f6fc;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.skill-tag:hover {
  border-color: #58a6ff;
  background: #1a2332;
}

/* ===== Built With ===== */
.built-with__story {
  max-width: 760px;
}

.built-with__heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #f0f6fc;
}

.built-with__heading:first-child {
  margin-top: 0;
}

.built-with__text {
  color: #c9d1d9;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.built-with__list {
  color: #c9d1d9;
  line-height: 1.8;
  margin: 1rem 0 1.5rem 1.25rem;
  font-size: 1rem;
}

.built-with__list li {
  margin-bottom: 0.35rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.comparison-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
}

.comparison-card--highlight {
  border-color: #238636;
  background: #0d1f0d;
}

.comparison-card__label {
  font-size: 0.875rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.comparison-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 0.75rem;
}

.comparison-card--highlight .comparison-card__value {
  color: #3fb950;
}

.comparison-card__detail {
  font-size: 0.9375rem;
  color: #8b949e;
  line-height: 1.6;
}

.built-with__ratio {
  font-size: 1.125rem;
  color: #c9d1d9;
  text-align: center;
  margin: 1rem 0 2rem;
}

.built-with__ratio strong {
  color: #3fb950;
  font-size: 1.5rem;
}

.built-with__meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #21262d;
  color: #484f58;
  font-size: 0.875rem;
}

.built-with__meta a {
  color: #58a6ff;
}

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

/* ===== Contact ===== */
.contact__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #484f58;
  font-size: 0.875rem;
  border-top: 1px solid #21262d;
  margin-top: 3rem;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Keyframes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}
