html {
  -webkit-text-size-adjust: 100%;
}

:root {
  --bg-dark: #0f172a;
  --bg-light: #ffffff;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --accent: #2563eb;
  --gray: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* CONTAINER */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* NAV */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
}

.btn-nav {
  background: var(--accent);
  color: white !important;
  padding: 8px 14px;
  border-radius: 6px;
}

/* HERO */

.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 700px;
  margin: auto;
  color: var(--gray);
  font-size: 16px;
}

/* HERO BUTTONS */

.hero-buttons {
  margin-top: 24px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary {
  border: 1px solid var(--accent);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--accent);
  display: inline-block;
  margin-left: 10px;
}

/* STATS */

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.hero-stats div {
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 22px;
}

/* SECTIONS */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

/* GRID SYSTEM */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* CARDS */

.card,
.project-card {
  background: #f1f5f9;
  padding: 24px;
  border-radius: 10px;
}

.section-dark .project-card {
  background: #1e293b;
}

.project-meta {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 10px;
}

.project-card ul {
  margin-top: 10px;
  padding-left: 18px;
}

.project-card li {
  margin-bottom: 6px;
}

/* ABOUT */

.about-container {
  max-width: 700px;
  text-align: center;
  margin: auto;
}

.about-container p {
  margin-bottom: 16px;
}

/* CONTACT */

.contact-container {
  text-align: center;
}

.contact-buttons {
  margin-top: 20px;
}

/* FOOTER */

.footer {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}

/* ------------------- */
/* MOBILE RESPONSIVE */
/* ------------------- */

@media (max-width: 768px) {

  /* NAV FIX */

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    padding: 12px 16px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a {
    margin: 0;
    font-size: 14px;
  }

  .btn-nav {
    padding: 8px 14px;
    font-size: 14px;
  }

  /* HERO */

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  /* HERO BUTTONS STACK */

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  /* STATS STACK */

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  /* GRID SINGLE COLUMN */

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* SECTION SPACING */

  .section {
    padding: 60px 0;
  }

  h2 {
    font-size: 24px;
  }

  /* CONTACT BUTTON STACK */

  .contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

}

/* MOBILE NAV FIX */

@media (max-width: 768px) {

  .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    margin-bottom: 10px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 8px;
  }

  /* Make Contact button full width */

  .btn-nav {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 10px;
  }
}

/* MOBILE BUTTON SIZE BOOST */

@media (max-width: 768px) {

  .btn-primary,
  .btn-secondary,
  .btn-nav {
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 10px;
  }

  .contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

}

@media (max-width: 768px) {

  .nav-menu {
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 10px;
    min-height: 44px;
    line-height: 1.2;
  }

  .nav a {
    font-size: 16px;
  }

}

.nav {
  flex-wrap: nowrap;
}

.nav-menu {
  flex-wrap: nowrap;
}

