/* Design system extracted from erichristian.com */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #0c0c0c;
  color: #d7e2ea;
  font-family: "Kanit", sans-serif;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Reveal animation (matches framer-motion fade-up) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal[data-y="-20"] {
  transform: translateY(-20px);
}

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

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

/* ---------- Navigation ---------- */

.nav {
  position: relative;
  z-index: 50;
  padding: 1.5rem 1.5rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.nav-link {
  color: #8a9199;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #d7e2ea;
}

@media (min-width: 768px) {
  .nav {
    padding: 2rem 2.5rem 0;
  }

  .nav-link {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1.4rem;
  }
}

/* ---------- Hero / Projects section ---------- */

.hero-section {
  padding: 3rem 1.25rem 5rem;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
}

.hero-heading {
  font-size: clamp(2.25rem, 6.5vw, 92px);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #646973, #bbccd7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: rgba(215, 226, 234, 0.6);
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
}

@media (min-width: 640px) {
  .hero-section {
    padding: 3.5rem 2rem 6rem;
  }

  .hero-subtitle {
    margin-bottom: 4rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4rem 2.5rem 7rem;
  }

  .hero-subtitle {
    margin-bottom: 5rem;
  }
}

/* ---------- Project cards ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(215, 226, 234, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  height: 100%;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.card.active {
  border-color: rgba(215, 226, 234, 0.2);
}

.card.active:hover {
  border-color: rgba(76, 175, 80, 0.5);
}

@media (min-width: 640px) {
  .card {
    border-radius: 28px;
    padding: 1.75rem;
  }
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-logo {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card h3 {
  color: #d7e2ea;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.375;
}

@media (min-width: 640px) {
  .card-id {
    gap: 1rem;
  }

  .card-logo {
    width: 3rem;
    height: 3rem;
  }

  .card h3 {
    font-size: 1.125rem;
  }
}

.card-desc {
  color: rgba(215, 226, 234, 0.6);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .card-desc {
    font-size: 1rem;
  }
}

/* ---------- Status badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .badge {
    font-size: 0.75rem;
  }
}

.badge-active {
  gap: 0.375rem;
  border: 1px solid rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.1);
  color: #a5d6a7;
}

.badge-active .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #4caf50;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-onhold {
  border: 1px solid rgba(215, 226, 234, 0.25);
  color: rgba(215, 226, 234, 0.5);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ---------- Footer ---------- */

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(215, 226, 234, 0.1);
  background: #0c0c0c;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding: 0 5rem;
  }
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(215, 226, 234, 0.5);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(215, 226, 234, 0.5);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #d7e2ea;
}
