@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* =============================
   RESET / GLOBAL
============================= */

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

/* =============================
   CONTAINER
============================= */

.homepage-container {
  position: relative;
  z-index: 0;
}

/* =============================
   FIXED HEADER / NAV
============================= */

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background-color: transparent;
}

nav { position: relative; }

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

nav li { padding: 2rem 2rem; }

nav a {
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: #f3ccff;
  position: relative;
  z-index: 15;
}

/* =============================
   HAMBURGER MENU
============================= */

.nav-toggle {
  position: absolute;
  opacity: 0;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 1rem;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #f3ccff;
  transition: all 0.3s ease;
}

/* =============================
   SECTION BASE
============================= */

.full-height-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;

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

/* =============================
   P5 BACKGROUND
============================= */

#p5-sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* =============================
   HERO CONTENT
============================= */

.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;

  padding: 1rem;

  color: white;
  font-family: "Cinzel", serif;
  pointer-events: none;
}

.hero-content * { pointer-events: auto; }

.hero-video {
  width: 150%;
  max-width: 150vw;
  height: auto;
  border-radius: 10px;
  margin-top: -5rem;
}

.hero-title {
  font-size: 5rem;
  letter-spacing: 1px;
  margin-top: -6rem;
}

.hero-subtext {
  font-size: 2rem;
  color: #f3ccff;
  margin-top: -1rem;
}

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

#about {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: rgb(51, 0, 79);
}

#about-sketch {
  position: absolute;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  z-index: 1; /* behind content */
  pointer-events: none;
}

#about-sketch canvas { display: block; }

/* Content above the sketch */
.about-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;

  padding: 30vh 10%;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  color: white;
  pointer-events: none;
}

/* Allow interaction on the actual blocks inside */
.about-content > div,
.about-content .about-me-image {
  pointer-events: auto;
}

/* Left + right text blocks */
.about-content > div { width: 45%; }

/* Left block aligned right */
.about-content > div:first-child h3,
.about-content > div:first-child p {
  text-align: right;
  padding-right: 2rem;
}

/* Right block aligned left */
.about-content > div:last-child h3,
.about-content > div:last-child p {
  text-align: left;
  padding-left: 2rem;
}

/* Text styling */
.about-content h3 {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-content p {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* General #about typography control */
#about h3 { font-size: 2.4em; }
#about p  { font-size: 1.4em; }

/* Image */
.about-me-image {
  align-self: center;
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 2rem;
  border-radius: 10px;
}

/* =============================
   SHARED SCROLL-IN ANIMATION
============================= */

.move-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.move-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PROJECTS SECTION (PAGE 1)
========================= */

#projects {
  position: relative;
  overflow: hidden;
  color: white;
  font-family: "Cinzel", serif;
  background-color: rgb(51, 0, 79);
}

/* Override global centering */
#projects.full-height-section {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(6rem, 10vh, 8rem);
}

/* p5 background */
#projects-sketch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =========================
   CONTENT WRAPPER
========================= */

.projects-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1rem, 4vh, 3rem) 0 2rem;
  transition: padding 0.3s ease;
}

/* =========================
   TITLE / FOOTER TEXT
========================= */

.projects-footer {
  width: 100%;
  text-align: left;
  margin-left: clamp(1rem, 8vw, 6rem);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  transition: margin 0.3s ease;
}

.big-date span {
  display: block;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  letter-spacing: clamp(1px, 0.3vw, 3px);
  line-height: 1.15;
}

/* Projects-only animation direction */
#projects .move-up { transform: translateY(-30px); }
#projects .move-up.visible { transform: translateY(0); }

/* =========================
   GALLERY WRAPPER
========================= */

.projects-gallery-wrapper {
  position: relative;
  width: 100%;
}

/* =========================
   GALLERY SCROLLER
========================= */

.projects-gallery {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;

  padding: 1rem 0;
  scroll-padding-left: clamp(1rem, 4vw, 5rem);
  scroll-padding-right: clamp(1rem, 4vw, 2rem);

  scrollbar-width: none;
  -ms-overflow-style: none;

  transition: gap 0.3s ease, padding 0.3s ease;
}

.projects-gallery::-webkit-scrollbar { display: none; }

/* Edge breathing room */
.projects-gallery::before,
.projects-gallery::after {
  content: "";
  flex: 0 0 clamp(1rem, 3vw, 1.5rem);
  pointer-events: none;
}

/* =========================
   PROJECT CARDS
========================= */

.project-card {
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: start;
}

.project-card a { display: inline-block; }

.project-card img {
  width: clamp(220px, 28vw, 300px);
  display: block;
  border-radius: 8px;
  object-fit: cover;

  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease, width 0.3s ease;
}

.project-card a:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.ptype {
  font-size: clamp(0.7remnaNrem, 1.5vw, 0.8rem);
  color: #aaa;
  margin-top: 0.5rem;
}

.ptitle { font-size: clamp(0.95rem, 2vw, 1rem); }

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

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: clamp(38px, 5vw, 46px);
  height: clamp(38px, 5vw, 46px);

  border-radius: 999px;
  display: grid;
  place-items: center;

  border: none;
  cursor: pointer;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  color: white;

  font-size: clamp(1.4rem, 3vw, 1.8rem);

  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-btn:hover { background: rgba(255, 255, 255, 0.25); }

.scroll-btn.left  { left: 0.6rem; }
.scroll-btn.right { right: 0.6rem; }

.scroll-btn.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.scroll-btn.left.is-disabled  { transform: translate(-10px, -50%); }
.scroll-btn.right.is-disabled { transform: translate(10px, -50%); }

/* =========================
   PROJECTS SECTION (PAGE 2)
========================= */

#projects-2 {
  position: relative;
  overflow: hidden;
  color: white;
  font-family: "Cinzel", serif;
  background-color: rgb(51, 0, 79);
}

#projects-2.full-height-section {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(6rem, 10vh, 8rem);
}

#projects-2-sketch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Content */
#projects-2 .projects-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1rem, 4vh, 3rem) 0 2rem;
}

/* Title (top text) */
#projects-2 .projects-footer {
  width: fit-content;
  margin-left: auto;
  margin-right: clamp(1rem, 8vw, 6rem);

  text-align: right;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

#projects-2 .big-date span {
  display: block;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  letter-spacing: clamp(1px, 0.3vw, 3px);
  line-height: 1.15;
}

/* animation direction */
#projects-2 .move-up { transform: translateY(-30px); }
#projects-2 .move-up.visible { transform: translateY(0); }

/* Gallery wrapper */
#projects-2 .projects-gallery-wrapper {
  position: relative;
  width: 100%;
}

/* Scroller */
#projectsGallery-2 {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;

  padding: 1rem 0;
  scroll-padding-left: clamp(1rem, 4vw, 5rem);
  scroll-padding-right: clamp(1rem, 4vw, 2rem);

  scrollbar-width: none;
  -ms-overflow-style: none;
}

#projectsGallery-2::-webkit-scrollbar { display: none; }

#projectsGallery-2::before,
#projectsGallery-2::after {
  content: "";
  flex: 0 0 clamp(1rem, 3vw, 1.5rem);
  pointer-events: none;
}

/* Project cards */
#projects-2 .project-card {
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: start;
  line-height: 1.25;
}

#projects-2 .project-card a { display: inline-block; }

#projects-2 .project-card img {
  width: clamp(220px, 28vw, 300px);
  display: block;
  border-radius: 8px;
  object-fit: cover;

  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

#projects-2 .project-card .project-trigger{
  display: inline-block;
}

#projects-2 .project-card :is(a:hover, .project-trigger:hover) img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

#projects-2 .ptype {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: #aaa;
  margin-top: 0.5rem;
}

#projects-2 .ptitle { font-size: clamp(0.95rem, 2vw, 1rem); }

/* Scroll buttons */
#projects-2 .scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: clamp(38px, 5vw, 46px);
  height: clamp(38px, 5vw, 46px);

  border-radius: 999px;
  display: grid;
  place-items: center;

  border: none;
  cursor: pointer;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  color: white;

  font-size: clamp(1.4rem, 3vw, 1.8rem);

  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

#projects-2 .scroll-btn:hover { background: rgba(255, 255, 255, 0.25); }

#projects-2 .scroll-btn.left  { left: 0.6rem; }
#projects-2 .scroll-btn.right { right: 0.6rem; }

#projects-2 .scroll-btn.is-disabled {
  opacity: 0;
  pointer-events: none;
}

#projects-2 .scroll-btn.left.is-disabled  { transform: translate(-10px, -50%); }
#projects-2 .scroll-btn.right.is-disabled { transform: translate(10px, -50%); }

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

#contact {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  font-family: "Cinzel", serif;
  background-color: rgb(51, 0, 79);
}

/* p5 background */
#contact-sketch,
#contact-logo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Grid layout: content + footer */
.contact-layout {
  position: relative;
  z-index: 1;

  min-height: 100vh;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto 1fr auto;
  gap: 2.5rem;

  padding: 10rem 3rem 2.5rem 3rem;
}

/* Main content */
.contact-wrapper {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  text-align: left;

  padding-left: 3rem;
  margin-top: -2.5rem;
}

/* Heading */
.contact-heading {
  font-size: 3rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 1rem 0;

  /* border-top: 2px solid #fff; */
  padding-top: 1rem;
}

/* Email */
.contact-email {
  display: inline-block;
  margin-top: -1rem;
  margin-bottom: 0.5rem;

  font-size: 5.5rem;
  font-family: "Cinzel", serif;
  font-weight: 200;
  color: #f3ccff;
  text-decoration: none;
}

/* Social row */
.contact-socials {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;

  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  margin-top: 1.5rem;
}

.pill-buttons-wrapper {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  padding-top: 0.25rem;
  padding-bottom: 0;
}

.pill-button {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border: 3px solid white;
  border-radius: 9999px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  color: white;
  text-decoration: none;
  background: transparent;
  transition: all 0.25s ease;
}

.pill-button:hover {
  background: rgb(20, 0, 40);
  color: white;
}

/* Footer row */
.contact-bottom {
  position: absolute;
  left: 6rem;
  right: 6rem;
  bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.quote {
  text-align: left;
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  opacity: 0.85;
}

.social-credits {
  justify-self: end;
  text-align: right;
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  opacity: 0.85;
}

/* =============================
   RIBBON
============================= */

.ribbon-section {
  background-color: #140028;
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
  /* border-top: 2px solid #aab7a1;
  border-bottom: 2px solid #aab7a1; */
}

.ribbon-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.ribbon-text {
  display: inline-block;
  padding-right: 100vw;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Noto Sans", sans-serif;
  color: #f3ccff;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ======================
   MODAL (STUDIO STYLE)
====================== */

.project-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.project-modal.is-open{
  display: block;
}

/* dim background */
.project-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(2px);
}

/* main layout: image (center) + text (right) */
.project-modal__panel{
  position: relative;
  height: 100%;
  width: 100%;

  display: grid;
  grid-template-columns: auto 30rem;
  justify-content: center;  /* keeps whole layout centered */
  align-items: center;

  gap: 5rem;
  padding: clamp(1.5rem, 4vw, 4rem);
}


/* close button – big and on the right like ref */
.project-modal__close{
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);

  width: 64px;
  height: 64px;

  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(153, 76, 241, 0.39);
  color: white;

  font-size: 28px;
  font-weight: 800;   /* makes the X thicker */
  line-height: 1;

  display: grid;
  place-items: center;

  backdrop-filter: blur(6px);
}


.project-modal__close:hover{
  background: rgba(255,255,255,0.2);
}

/* content wrapper */
.project-modal__content{
  grid-column: 1 / -1;
  display: contents; /* let children sit in grid columns */
}

/* image area – big, centered, not cropped */
.project-modal__media{
  grid-column: 1;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  /* give it a "stage" */
  height: min(82vh, 720px);
}

.project-modal__media img{
  width: auto;
  height: auto;

  max-width: min(62vw, 900px); /* only a safety limit */
  max-height: 100%;            /* fit the stage height */

  object-fit: contain;
  display: block;

  box-shadow: none;
}


.project-modal__media img{
  height: 100%;
  max-width: min(58vw, 720px);
  object-fit: contain;
  display: block;

  /* optional: subtle “print” feel like ref */
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

/* text area on the right */
.project-modal__text{
  grid-column: 2;
  color: rgba(255,255,255,0.92);
  max-width: 50ch;
  align-self: center;
}

#modalKicker{
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  cursor: default;
}

#modalTitle{
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
  line-height: 1.1;
  cursor: default;
}

#modalDesc{
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.9;
  cursor: default;
}

.project-trigger{
  all: unset;
  display: block;
  cursor: pointer;
  background: transparent;   /* ensure no white bg */
  border: none;
  outline: none;
}

.project-trigger:focus{
  outline: none;
}

.project-trigger:focus-visible{
  outline: none;
}

/* =========================================
   SMALL LAPTOP (around 1280px wide)
   Applies to: hero + about + projects + contact + modal
========================================= */
@media (min-width: 1025px) and (max-width: 1366px){

  /* -------------------------
     NAV
  ------------------------- */
  nav li { padding: 1.75rem 1.25rem; }
  nav ul { gap: 2rem; }

  /* -------------------------
     HERO
  ------------------------- */
  .hero-content{
    gap: 0.9rem;
    padding: 1.25rem;
  }

  .hero-video{
    width: 130%;
    max-width: 130vw;
    margin-top: -3.5rem; /* less extreme than desktop */
    border-radius: 12px;
  }

  .hero-title{
    font-size: clamp(3.4rem, 4.2vw, 4.4rem);
    margin-top: -4rem;   /* reduce negative offset */
    letter-spacing: 1px;
  }

  .hero-subtext{
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-top: -0.5rem;
  }

  /* -------------------------
     ABOUT (3-column but tighter)
  ------------------------- */
  .about-content{
    padding: 22vh 7%;
    align-items: center;
    justify-content: space-between;
    gap: 0rem;
  }

  .about-content > div{
    width: 30%;
    max-width: 340px;
  }

  #about h3{
    font-size: 1.8rem;
    letter-spacing: 2px;
    line-height: 1.05;
  }

  #about p{
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .about-me-image{
    width: 34%;
    max-width: 420px;
    margin: 0 1.5rem;
    border-radius: 14px;
  }

  /* -------------------------
     PROJECTS (PAGE 1)
  ------------------------- */
  #projects.full-height-section{
    padding-top: clamp(6.5rem, 8vh, 7.5rem);
  }

  .projects-content{
    padding: 1.25rem 0 2.25rem;
  }

  .projects-footer{
    margin-left: clamp(2rem, 5vw, 5rem);
    margin-bottom: 1.75rem;
  }

  .big-date span{
    font-size: clamp(2.3rem, 3.8vw, 3.1rem);
    letter-spacing: 2px;
  }

  .projects-gallery{
    gap: clamp(1.25rem, 2vw, 1.75rem);
    scroll-padding-left: clamp(1.25rem, 3vw, 2.5rem);
    scroll-padding-right: clamp(1.25rem, 3vw, 2rem);
  }

  .project-card img{
    width: clamp(230px, 22vw, 290px);
  }

  .scroll-btn.left  { left: 0.75rem; }
  .scroll-btn.right { right: 0.75rem; }

  /* -------------------------
     PROJECTS (PAGE 2)
  ------------------------- */
  #projects-2.full-height-section{
    padding-top: clamp(6.5rem, 8vh, 7.5rem);
  }

  #projects-2 .projects-footer{
    margin-right: clamp(2rem, 5vw, 5rem);
    margin-bottom: 1.75rem;
  }

  #projectsGallery-2{
    gap: clamp(1.25rem, 2vw, 1.75rem);
    scroll-padding-left: clamp(1.25rem, 3vw, 2.5rem);
    scroll-padding-right: clamp(1.25rem, 3vw, 2rem);
  }

  #projects-2 .project-card img{
    width: clamp(230px, 22vw, 290px);
  }

  #projects-2 .scroll-btn.left  { left: 0.75rem; }
  #projects-2 .scroll-btn.right { right: 0.75rem; }

  /* -------------------------
     CONTACT
  ------------------------- */
  .contact-layout{
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    padding: 9rem 2.5rem 2.25rem;
  }

  .contact-wrapper{
    padding-left: 2rem;
    margin-top: -1.5rem;
  }

  .contact-heading{
    font-size: clamp(2.2rem, 3.2vw, 2.8rem);
    line-height: 1.25;
  }

  .contact-email{
    font-size: clamp(3.4rem, 4.8vw, 4.8rem);
  }

  .pill-button{
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
  }

  .contact-bottom{
    left: 4rem;
    right: 4rem;
    bottom: 3rem;
  }

  /* -------------------------
     MODAL (slightly tighter)
  ------------------------- */
  .project-modal__panel{
    grid-template-columns: auto 14rem;
    gap: 3.5rem;
    padding: clamp(1.25rem, 3vw, 3rem);
  }

  .project-modal__media{
    height: min(78vh, 640px);
  }

  .project-modal__media img{
    max-width: min(56vw, 760px);
  }

  .project-modal__close{
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
}


/* =============================
   TABLET + MOBILE (REWRITE)
   Breakpoints:
   - <=1024: tablet & down
   - <=768: phone
   - <=480: small phones
============================= */

/* ---------- 1024 and below (tablet & smaller) ---------- */
@media (max-width: 1024px) {
  nav li { padding: 1.5rem 1rem; }

  /* HERO */
  .hero-content {
    padding: 2rem 1.5rem;
    gap: 0.75rem;
  }

  .hero-video {
    width: min(110%, 900px);
    max-width: 110%;
    margin-top: 0;              /* remove big negative margins on smaller screens */
  }

  .hero-title {
    font-size: clamp(2.6rem, 6vw, 4rem);
    margin-top: 0;
    letter-spacing: 1px;
  }

  .hero-subtext {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-top: 0;
  }

  /* ABOUT */
  .about-content{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-me-image{
    order: 1;
  }

  .about-content > div:first-child{
    order: 2;
  }

  .about-content > div:last-child{
    order: 3;
  }

  #about h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
  #about p  { font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.55; }

  .about-content > div { width: 42%; }
  .about-me-image {
    max-width: 320px;
    margin: 0 1.25rem;
  }

  .about-content > div:first-child h3,
  .about-content > div:first-child p { padding-right: 1rem; }

  .about-content > div:last-child h3,
  .about-content > div:last-child p { padding-left: 1rem; }

  /* PROJECTS (page 1) */
  #projects.full-height-section { padding-top: 7.5rem; }

  .projects-content { padding: 1.5rem 0 2.25rem; }
  .projects-footer {
    margin-left: clamp(1.25rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
  }

  .big-date span {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 2px;
  }

  .projects-gallery {
    gap: 1.5rem;
    scroll-padding-left: 1.25rem;
    scroll-padding-right: 1.25rem;
  }

  .scroll-btn {
    width: 46px;
    height: 46px;
    font-size: 1.8rem;
  }

  /* CONTACT - make it a normal flow layout (no absolute footer on tablet) */
  .contact-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 8rem 2.25rem 3rem;
    gap: 2rem;
    min-height: 100vh;
  }

  .contact-wrapper {
    grid-column: 1;
    grid-row: 1;
    padding-left: 0;
    margin-top: 0;
  }

  .contact-heading {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.25;
  }

  .contact-email {
    font-size: clamp(3rem, 6vw, 4.2rem);
    margin-top: 0;
  }

  .contact-socials { gap: 1.25rem; margin-top: 1.25rem; }
  .pill-buttons-wrapper { gap: 1rem; flex-wrap: wrap; }

  /* IMPORTANT: remove absolute positioning on tablet */
  .contact-bottom {
    position: static;
    grid-column: 1;
    grid-row: 3;
    margin-top: 2rem;

    left: auto;
    right: auto;
    bottom: auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
  }
}

@media (max-width: 820px){

  /* Make modal layout vertical */
  .project-modal__panel{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    text-align: center;
  }

  /* Remove grid behaviour */
  .project-modal__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  /* IMAGE */
  .project-modal__media{
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .project-modal__media img{
    max-width: 90vw;
    max-height: 55vh;
    object-fit: contain;
  }

  /* TEXT */
  .project-modal__text{
    max-width: 90%;
    text-align: center;
  }

  #modalKicker,
  #modalTitle,
  #modalDesc{
    text-align: center;
  }

  /* CLOSE BUTTON BELOW TEXT */
  .project-modal__close{
    position: static;          /* remove absolute */
    transform: none;
    margin-top: 0.5rem;

    width: 52px;
    height: 52px;
    font-size: 22px;

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


/* =============================
   TABLET (768px–1024px)
============================= */
@media (min-width: 768px) and (max-width: 1024px){

  /* ABOUT (stack) */
  .about-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12vh 6%;
    gap: 1.25rem;
  }

  .about-me-image {
    order: 1;
    max-width: 280px;
    margin: 0 0 0.75rem;
  }

  .about-content > div {
    width: 100%;
  }

  .about-content > div:first-child,
  .about-content > div:last-child { order: auto; }

  .about-content > div:first-child h3,
  .about-content > div:first-child p,
  .about-content > div:last-child h3,
  .about-content > div:last-child p {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }

  #about h3 { font-size: 1.35rem; }
  #about p  { font-size: 0.95rem; line-height: 1.55; }

  .about-content h3 { margin-bottom: 0.25rem; }
  .about-content p  {
    font-size: 0.85rem;
    margin: 0 1.25rem 1rem;
  }

}





/* ---------- 768 and below (phones) ---------- */
@media (max-width: 768px) {
  /* NAV */
  .hamburger {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 20;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    bottom: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #850bab;
    transition: 0.3s;
    z-index: 10;
  }

  .nav-toggle:checked ~ .nav-menu { right: 0; }

  /* HERO */
  .hero-content { padding: 2.5rem 1.25rem; }
  .hero-video {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    border-radius: 10px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    margin-top: 0;
  }

  .hero-subtext {
    font-size: clamp(1.05rem, 4.5vw, 1.4rem);
    margin-top: 0;
  }

  /* ABOUT (stack) */
  .about-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12vh 6%;
    gap: 1.25rem;
  }

  .about-me-image {
    order: 1;
    max-width: 280px;
    margin: 0 0 0.75rem;
  }

  .about-content > div {
    width: 100%;
  }

  .about-content > div:first-child,
  .about-content > div:last-child { order: auto; }

  .about-content > div:first-child h3,
  .about-content > div:first-child p,
  .about-content > div:last-child h3,
  .about-content > div:last-child p {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }

  #about h3 { font-size: 1.35rem; }
  #about p  { font-size: 0.95rem; line-height: 1.55; }

  .about-content h3 { margin-bottom: 0.25rem; }
  .about-content p  {
    font-size: 0.85rem;
    margin: 0 1.25rem 1rem;
  }

  /* PROJECTS (page 1) */
  #projects.full-height-section { padding-top: 6.5rem; }

  .projects-footer {
    text-align: center;
    margin: 0 auto 1rem;
  }

  .projects-gallery {
    gap: 1rem;
    padding: 1rem 0;
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
  }

  .project-card img { width: 220px; }

  /* CONTACT */
  .contact-layout {
    padding: 7rem 1.5rem 2.5rem;
    gap: 1.5rem;
  }

  .contact-heading {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .contact-email {
    font-size: clamp(2rem, 8vw, 2.6rem);
    word-break: break-word;
  }

  .contact-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .social-credits,
  .quote { text-align: left; }
}


/* ---------- 480 and below (small phones) ---------- */
@media (max-width: 480px) {
  .about-content { padding: 10vh 5%; }
  .about-me-image { max-width: 240px; }

  .contact-layout {
    padding: 6rem 1.25rem 2.25rem;
  }

  .contact-heading { font-size: 1.5rem; }
  .contact-email   { font-size: 1.65rem; }
}



