/* ==========================================================
   Garrett Lantz Portfolio
   Main Stylesheet
========================================================== */

/* ==========================================================
   Variables
========================================================== */

:root {
  --background: #0f172a;
  --surface: #1e293b;
  --surface-light: #334155;

  --primary: #3b82f6;
  --primary-hover: #2563eb;

  --text: #f8fafc;
  --text-muted: #cbd5e1;

  --border: #475569;

  --max-width: 1200px;
}

/* ==========================================================
   Global Styles
========================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

::selection {
  background: var(--primary);
  color: white;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.button:focus-visible,
.project-card a:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ==========================================================
   Navigation
========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ==========================================================
   Homepage Hero
========================================================== */

.hero {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 80px 20px;
}

.hero-content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
}

.hero-text {
  max-width: 750px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* ==========================================================
   Buttons
========================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

.primary-button {
  background: var(--primary);
  color: white;
}

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

.secondary-button {
  border-color: var(--primary);
  color: var(--text);
}

.secondary-button:hover {
  background: var(--primary);
}

.project-action {
  margin-top: 40px;
}

/* ==========================================================
   General Sections
========================================================== */

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p:last-child {
  color: var(--text-muted);
}

/* ==========================================================
   Homepage Project Cards
========================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 100%;
  height: 230px;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-card-content {
  padding: 24px;
}

.project-card-content h3 {
  margin-bottom: 10px;
}

.project-card-content p {
  margin-bottom: 22px;
  color: var(--text-muted);
}

.project-card-content a {
  color: var(--primary);
  font-weight: 700;
}

.project-card-content a:hover {
  text-decoration: underline;
}

/* ==========================================================
   Individual Project Pages
========================================================== */

.project-hero {
  width: 100%;
  padding: 90px 20px 50px;
}

.project-page-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-hero h1 {
  width: 100%;
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
}

.project-intro {
  width: 100%;
  max-width: 850px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: 34px;
}

.project-meta div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.meta-label {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-details {
  padding-top: 40px;
}

.project-section {
  margin-bottom: 80px;
}

.project-section:last-child {
  margin-bottom: 0;
}

.project-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.project-section p {
  max-width: 850px;
  color: var(--text-muted);
}

.project-section p + p {
  margin-top: 16px;
}

.project-list {
  padding-left: 22px;
  color: var(--text-muted);
}

.project-list li {
  margin-bottom: 10px;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 25px;
}

.project-gallery img {
  width: 100%;
  border: 1px solid var(--border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.credits-grid div {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.credits-grid div:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.credits-grid h3 {
  margin-bottom: 6px;
}

.credits-grid p {
  color: var(--text-muted);
}

/* ==========================================================
   About Page
========================================================== */

.about-hero {
  padding: 90px 20px 60px;
}

.about-container {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  align-items: center;
  gap: 60px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.about-content h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.1;
}

.about-content p {
  max-width: 850px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.about-card h3 {
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-muted);
}


/* ==========================================================
   Resume Page
========================================================== */

.resume-hero {
  padding: 90px 20px 50px;
}

.resume-container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.resume-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}

.resume-intro {
  max-width: 800px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.resume-section {
  padding-top: 30px;
}

.resume-viewer {
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.resume-viewer iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
}

.resume-fallback {
  margin-top: 18px;
  color: var(--text-muted);
  text-align: center;
}

.resume-fallback a {
  color: var(--primary);
  font-weight: 700;
}

.resume-fallback a:hover {
  text-decoration: underline;
}


/* ==========================================================
   Contact Page
========================================================== */

.contact-hero {
  padding: 90px 20px 50px;
}

.contact-container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.contact-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}

.contact-intro {
  max-width: 800px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-section {
  padding-top: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.contact-label {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

.contact-card > p:not(.contact-label) {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.contact-card .button {
  margin-top: auto;
}

/* ==========================================================
   Footer
========================================================== */

.footer {
  margin-top: 80px;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================
   Responsive Design
========================================================== */

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 360px;
    margin: 0 auto;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.contact-hero {
  padding: 60px 20px 40px;
}
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 60px 20px 40px;
  }

  .navbar {
    flex-direction: column;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero {
    min-height: auto;
    padding: 70px 20px;
  }

  .project-hero {
    padding: 60px 20px 35px;
  }

  .project-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .project-intro {
    font-size: 1rem;
  }

  .project-section h2 {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
.navbar,
.section,
.project-page-container,
.about-container,
.resume-container,
.contact-container {
  width: min(100% - 28px, var(--max-width));
}

  .hero,
  .project-hero,
  .about-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-card img {
    height: 200px;
  }
}

/* ==========================================================
Home Cybersecurity Lab Screenshots
========================================================== */

.project-image {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 32px auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}