/* styles.css */
/* Import clean, modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for sticky header */
}

body {
  font-family: 'Inter', sans-serif;
  color: #e0e0e0;
  background-color: #121212;
  line-height: 1.6;
}

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

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #6a0dad;
  border-bottom: 2px solid #333;
  z-index: 100;
}

/* Starfield background for header */
.site-header .floaters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

/* Floater elements (stars) */
.floater {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation: floater-drift 60s linear infinite, floater-twinkle 4s ease-in-out infinite;
}

@keyframes floater-drift {
  0% { transform: translate(var(--start-x), var(--start-y)); }
  100% { transform: translate(var(--end-x), var(--end-y)); }
}

@keyframes floater-twinkle {
  0%, 100% { opacity: var(--min-opacity); }
  50% { opacity: var(--max-opacity); }
}

@media (prefers-reduced-motion: reduce) {
  .floater {
    animation: none !important;
    opacity: var(--floater-opacity, 0.4) !important;
    transform: translate(var(--start-x), var(--start-y)) scale(1) !important;
  }
}

.site-title {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-title:hover {
  opacity: 0.9;
}

.site-email {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-top: 0.15rem;
  transition: color 0.2s, opacity 0.2s;
}

.site-email:hover {
  color: #fff;
  opacity: 0.8;
}

/* Desktop nav */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: opacity 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  opacity: 0.8;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #121212;
  border-bottom: 2px solid #6a0dad;
  list-style: none;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: #fff;
  font-weight: 400;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.dropdown li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 100;
    border-left: 2px solid #6a0dad;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    font-size: 1.25rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
  }

  .header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  
  .site-email {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(106, 13, 173, 0.2);
    padding: 0.5rem 0 0.5rem 1rem;
    border: none;
    width: 100%;
  }
  
  .has-dropdown .dropdown {
    display: none;
  }
  
  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

/* ===== GAME FLOW DIAGRAM - PUZZLE PIECES ===== */
.game-flow {
  position: relative;
  width: 100%;
  min-height: 400px;
  margin: 2rem 0 2.5rem;
  font-family: 'Inter', sans-serif;
  user-select: none;
  background-color: transparent;
  overflow: hidden;
}

/* Puzzle piece base - all centered, JS handles drifting */
.puzzle-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 20px rgba(106, 13, 173, 0.4));
  transition: filter 0.3s ease;
  will-change: transform;
  /* JS will control position via transform */
}

.puzzle-piece:hover {
  filter: drop-shadow(0 8px 30px rgba(179, 136, 255, 0.6));
  z-index: 10;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .puzzle-piece {
    transform: translate(-50%, -50%) !important;
  }
}

/* SVG/PNG images inside puzzle pieces should fill container */
.puzzle-piece img,
.puzzle-piece svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 1200px) {
  .puzzle-piece {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 900px) {
  .puzzle-piece {
    width: 160px;
    height: 160px;
  }
  .game-flow {
    min-height: 350px;
  }
}

@media (max-width: 600px) {
  .puzzle-piece {
    width: 130px;
    height: 130px;
  }
  .game-flow {
    min-height: 300px;
  }
  .hero-tagline {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .puzzle-piece {
    width: 110px;
    height: 110px;
  }
  .game-flow {
    min-height: 250px;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 3rem;
  min-height: calc(67vh - 80px);
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

/* Starfield background for hero */
.hero .floaters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 900px;
  line-height: 1.2;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: #b0b0b0;
  max-width: 700px;
  line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 4rem 2rem;
}

.projects h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.projects-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: #6a0dad;
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 1.5rem 0.5rem;
  color: #fff;
}

.project-links {
  padding: 0 1.5rem 1.5rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #6a0dad;
  color: #fff;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.project-link:hover {
  background: #8a2be2;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 0 2rem;
}

.footer {
  padding: 1.5rem 2rem;
  text-align: center;
  background: #121212;
  border-top: 1px solid #222;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: #888;
  font-size: 0.85rem;
}

.contact-info a {
  color: #b388ff;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #d0b3ff;
}

.contact-info .location {
  color: #888;
  font-weight: 500;
}

.separator {
  margin: 0 0.5rem;
  color: #444;
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: #0a0a0a;
  border-bottom: 1px solid #333;
  overflow: hidden;
}

/* Starfield background for page-hero */
.page-hero .floaters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero h5 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #b0b0b0;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #6a0dad;
  box-shadow: 0 8px 30px rgba(106, 13, 173, 0.3);
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d0d0d0;
  margin-bottom: 3rem;
}

.contact-content {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #333;
  max-width: 480px;
  margin: 0 auto;
}

.contact-heading {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list .label {
  display: inline-block;
  min-width: 100px;
  font-weight: 600;
  color: #b388ff;
}

.contact-list a {
  color: #e0e0e0;
  transition: color 0.2s;
}

.contact-list a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-portrait {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ===== RESUME PAGE ===== */
.resume-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.resume-pdf-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: #1b1b1b;
}

.resume-pdf-embed iframe {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  border: none;
}

.resume-image {
  text-align: center;
  margin-bottom: 2rem;
}

.resume-image img {
  max-width: 100%;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.resume-downloads {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.resume-download-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #6a0dad;
  color: #fff;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.resume-download-btn:hover {
  background: #8a2be2;
  transform: translateY(-2px);
}

.resume-download-btn.secondary {
  background: #333;
  border: 1px solid #555;
}

.resume-download-btn.secondary:hover {
  background: #444;
}

.resume-text {
  line-height: 1.8;
}

.resume-section {
  margin-bottom: 2rem;
}

.resume-section h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6a0dad;
}

.resume-section h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: #b388ff;
  margin: 1.5rem 0 0.75rem;
}

.resume-section p {
  color: #d0d0d0;
  margin-bottom: 0.5rem;
}

.resume-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #d0d0d0;
}

.resume-section li {
  margin-bottom: 0.3rem;
}

.section-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

/* ===== PROJECT PAGES ===== */
.project-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-gallery img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(106, 13, 173, 0.3);
}

.project-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-two-column figure {
  text-align: center;
}

.project-two-column img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
}

.project-two-column figcaption {
  margin-top: 0.75rem;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  color: #b388ff;
}

.project-standalone {
  text-align: center;
  margin: 3rem 0;
}

.project-standalone img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
}

.project-section {
  margin-bottom: 3rem;
}

.section-subheading {
  font-size: 1rem;
  color: #b0b0b0;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.project-gallery-section {
  margin-bottom: 3rem;
}

.gallery-title {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.project-gallery figure {
  text-align: center;
}

.project-gallery figcaption {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  color: #b388ff;
  margin: 0.75rem 0 0.25rem;
}

.gallery-caption {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

.article-content {
  line-height: 1.8;
  color: #d0d0d0;
}

.article-content h1 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  color: #fff;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.article-content h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: #b388ff;
  margin: 2rem 0 1rem;
}

.article-content h5 {
  font-size: 1rem;
  color: #b0b0b0;
  margin: 1.5rem 0 1rem;
  font-style: italic;
}

.article-content p {
  margin-bottom: 1rem;
}

/* ===== EMBEDDED UNITY VISUALIZER ===== */
.project-visualizer {
  margin: 3rem 0;
  text-align: center;
}

.project-visualizer .gallery-title {
  text-align: left;
}

.monte-iframe {
  display: block;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0a0a0a;
}

/* ===== ACCORDION / DROPDOWN SECTIONS ===== */
.project-facts {
  margin: 2rem auto;
  max-width: 620px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  overflow: hidden;
}

.project-facts table {
  width: 100%;
  border-collapse: collapse;
}

.project-facts td {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: #d0d0d0;
  border-bottom: 1px solid #2a2a2a;
}

.project-facts tr:last-child td {
  border-bottom: none;
}

.project-facts td strong {
  color: #b388ff;
  font-weight: 600;
  min-width: 130px;
  display: inline-block;
}

.accordion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border: 1px solid #333;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 0.75rem;
  outline: none;
}

.accordion:focus-visible {
  border-color: #b388ff;
  box-shadow: 0 0 0 2px rgba(179, 136, 255, 0.4);
}

.accordion:hover {
  background: #232323;
  border-color: #6a0dad;
}

.accordion.active {
  background: #232323;
  border-color: #6a0dad;
}

.accordion .accordion-icon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #b388ff;
  transition: transform 0.3s ease;
}

.accordion.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-inner {
  display: none;
  padding: 0.5rem 1.25rem 1.25rem;
  border-left: 3px solid #6a0dad;
  margin: 0 0 0 0.35rem;
  margin-bottom: 0.75rem;
}

.accordion-inner .article-content,
.accordion-inner .project-gallery,
.accordion-inner .project-standalone {
  margin-top: 1rem;
}

.accordion-inner .project-gallery {
  margin-bottom: 0;
}

.visualizer-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* ===== OVERVIEW SLIDESHOW (cycling images) ===== */
.overview-slideshow {
  width: 100%;
  max-width: 820px;
  margin: 1rem auto 2rem;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.overview-slideshow-track {
  display: flex;
  height: 100%;
  animation: overview-slide 18s infinite;
}

.overview-slideshow-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes overview-slide {
  0%    { transform: translateX(0); }
  27%   { transform: translateX(0); }
  33%   { transform: translateX(-100%); }
  60%   { transform: translateX(-100%); }
  66%   { transform: translateX(-200%); }
  94%   { transform: translateX(-200%); }
  100%  { transform: translateX(0); }
}

@media (max-width: 768px) {
  .project-two-column {
    grid-template-columns: 1fr;
  }
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== PAGE HERO INTRO PARAGRAPH ===== */
.page-hero .hero-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #b0b0b0;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CENTERED TEXT (body narrative) ===== */
.article-content.centered-text {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem;
}

/* ===== CLICKABLE IMAGE ===== */
.clickable-image img {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.clickable-image a:hover img {
  transform: scale(1.01);
  border-color: #6a0dad;
  box-shadow: 0 8px 30px rgba(106, 13, 173, 0.4);
}

/* ===== CONTRIBUTION BLOCKS (alternating image/text rows) ===== */
.contribution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.contribution-block .contribution-image img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
}

.contribution-block .contribution-text h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6a0dad;
}

.contribution-block .contribution-text p {
  line-height: 1.8;
  color: #d0d0d0;
}

/* Flip image/text order for alternating rows */
.contribution-block.contribution-reverse .contribution-image {
  order: 2;
}

.contribution-block.contribution-reverse .contribution-text {
  order: 1;
}

@media (max-width: 768px) {
  .contribution-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contribution-block.contribution-reverse .contribution-image {
    order: 1;
  }

  .contribution-block.contribution-reverse .contribution-text {
    order: 2;
  }
}

@media (max-width: 768px) {
  .projects-grid,
  .projects-grid.three-col {
    grid-template-columns: 1fr;
  }
}
