@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --background: #2e3047;
  --section: #43455c;
  --accent: #3bba9c;
  --text: #edf2f4;
  --button: #3bba9c;
  --card-border: #707793;
  --muted: #707793;
}

/* ================================
   BASE
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  padding-top: 60px;
  line-height: 1.6;
}

/* ================================
   NAV
================================ */
nav {
  background-color: var(--section);
  padding: 0 24px;
  position: fixed;
  width: 100%;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: var(--accent);
}

/* ================================
   MAIN LAYOUT
================================ */
main {
  padding: 0 24px;
  margin: 0 auto;
  max-width: 960px;
}

section {
  padding: 80px 0;
}

/* ================================
   HERO
================================ */
#hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

#hero p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text);
  max-width: 500px;
  opacity: 0.85;
}

/* ================================
   PROJECTS
================================ */
#projects h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

article {
  background-color: var(--section);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

article:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--card-border);
  display: block;
}

.article-body {
  padding: 1.25rem;
}

article h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

article p {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--button);
  color: var(--background);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ================================
   CONTACT
================================ */
#contact h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

#contact > p {
  opacity: 0.75;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

#contact-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ================================
   CONTACT CARDS
================================ */
.contact-card {
  background-color: var(--section);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.contact-card img {
  border-radius: 100%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
}

.contact-card h3 {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-card p {
  font-size: 0.8rem;
  opacity: 0.7;
}

.contact-card a {
  margin-top: 0.25rem;
  background-color: var(--button);
  color: var(--background);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.contact-card a:hover {
  background-color: var(--accent);
  color: var(--background);
}

/* ================================
   FOOTER
================================ */
footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.5;
  max-width: 960px;
  margin: 0 auto;
}

.sneaky-link {
  color: var(--text);
  text-decoration: none;
}

/* ================================
   ABOUT
================================ */
#about h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

#about > p {
  max-width: 600px;
  opacity: 0.85;
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  background-color: var(--section);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 130px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================================
   REVEAL ANIMATION
================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#hero p.reveal {
  transition-delay: 0.2s;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  #hero h1 {
    font-size: 3rem;
  }

  .contact-card {
    max-width: 100%;
  }
}
