/*
    style.css
    =========
    Main stylesheet for adambenfield.com.

    CSS controls the VISUAL APPEARANCE of the website, including:
    - colours
    - fonts
    - spacing
    - sizing
    - page layout
    - responsive/mobile design
    - animations and visual effects

    The stylesheet is linked to index.html using:
    <link rel="stylesheet" href="css/style.css">
*/

/* =========================
   GLOBAL STYLES
   Styles that affect the entire website.
   ========================= */

/* =========================
   DESIGN SYSTEM
   Reusable colours used throughout the website.
   ========================= */

:root {
  --background: #0d0f12;
  --surface: #14181d;
  --surface-light: #1b2027;

  --border: #262c34;
  --border-hover: #3f8ed8;

  --text-primary: #f2f4f7;
  --text-secondary: #a9b2bf;
  --text-muted: #778190;

  --accent: #67b7ff;
  --accent-hover: #8ac8ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;

  background-color: var(--background);
  color: var(--text-primary);

  line-height: 1.6;
}

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

/* =========================
   NAVIGATION
   ========================= */

.site-header {
  border-bottom: 1px solid #24282e;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

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

.nav-links a {
  position: relative;

  color: var(--text-secondary);

  transition: color 0.2s ease;
}

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

/* =========================
   HERO SECTION
   ========================= */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 140px;
}

.hero-label,
.section-label,
.project-category {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;

  color: var(--accent);
}

.hero h1 {
  margin: 10px 0 20px;

  font-size: clamp(52px, 8vw, 100px);
  line-height: 1;
}

.hero-description {
  max-width: 700px;

  font-size: 20px;
  color: var(--text-secondary);
}

.hero-subtext {
  margin-top: 12px;

  color: var(--text-muted);
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  gap: 16px;

  margin-top: 36px;
}

.hero-interests {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 40px;
}

.hero-interests span {
  padding: 6px 12px;

  border: 1px solid var(--border);
  border-radius: 20px;

  color: var(--text-secondary);
  font-size: 13px;
}

/* =========================
   BUTTONS
   ========================= */

.button {
  display: inline-block;

  padding: 12px 20px;

  border: 1px solid #444b55;
  border-radius: 6px;
}

.primary-button {
  background-color: var(--accent);
  border-color: var(--accent);

  color: #07111a;
}

.secondary-button {
  color: #f5f5f5;
}

.button {
  display: inline-block;

  padding: 12px 20px;

  border: 1px solid var(--border);
  border-radius: 6px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================
   PROJECTS
   ========================= */

.projects-section,
.about-section,
.contact-section {
  max-width: 1200px;

  margin: 0 auto;
  padding: 100px 32px;
}

.projects-section h2,
.about-section h2,
.contact-section h2 {
  margin-top: 8px;

  font-size: 40px;
}

.project-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 24px;

  margin-top: 48px;
}

.project-card {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 10px;

  background-color: var(--surface);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);

  border-color: var(--border-hover);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;

  background-color: var(--surface-light);
}

.project-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

.project-content {
  padding: 28px;
}

.project-content h3 {
  margin: 6px 0 12px;

  font-size: 26px;
}

.project-content p {
  color: #aeb5c0;
}

/* =========================
   ABOUT
   ========================= */

.about-section {
  border-top: 1px solid #24282e;
}

.about-section p:last-child {
  max-width: 750px;

  font-size: 18px;
  color: #b6bcc6;
}

/* =========================
   CONTACT
   ========================= */

.contact-section {
  border-top: 1px solid #24282e;

  padding-bottom: 140px;
}

/* =========================
   MOBILE / SMALL SCREENS
   ========================= */

@media (max-width: 700px) {
  .navbar {
    padding: 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero {
    padding: 80px 20px 100px;
  }

  .projects-section,
  .about-section,
  .contact-section {
    padding: 70px 20px;
  }

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