/* -------------------- */
/* RESET & BASE STYLES  */
/* -------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  color: #2F3331;
}

section {
  min-height: 100vh;
  padding: 120px 48px 48px;
  display: flex;
  justify-content: center;
  align-items: center;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* -------------------- */
/* TYPOGRAPHY           */
/* -------------------- */

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 3.45rem; /* keeps your hero size */
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #5F6462;
}

/* -------------------- */
/* NAVBAR               */
/* -------------------- */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.nav-name {
  font-size: 1.05rem;
  font-weight: 400;
  text-decoration: none;
  color: #2F3331;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-btn {
  font-size: 0.85rem;
  color: #2F3331;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border: 1px solid #C9CDCA;
  border-radius: 6px;
  transition: all 0.35s ease;
}

.nav-btn:hover {
  background-color: #edf0f3;
  border: 1px solid #edf0f3;
}

.home-btn {
  font-size: 1.3rem;         /* match nav-btn */
  color: #2F3331;
  text-decoration: none;

  padding: 5px 15px;        /* SAME as nav-btn */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #C9CDCA;
  border-radius: 6px;
  transition: all 0.35s ease;
}

.home-btn:hover {
  background-color: #edf0f3;
  border: 1px solid #edf0f3;
}


/* -------------------- */
/* HOME HERO            */
/* -------------------- */

#home {
  background-color: #ffffff;
  text-align: center;
}

#home h1 {
  font-size: 3.45rem;
  padding-bottom: 8px;
  margin-top: -20px;
  margin-bottom: 10px;
  color: #434445;
}

.home-divider {
  width: 495px;
  height: 1px;
  background-color: #ececec;
  margin: -10px auto 0 auto;
}

.home-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0px;
  margin: 0 auto;
}

.home-illustration img {
  width: 360px;
  height: auto;
  margin-top: -30px;
  border-radius: 30px;
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.hero-subtitle {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 30px;
  color: #5F6462;
  min-height: calc(1.7em * 2);
}

.home-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 50px;
}

.typewriter-line {
  display: block;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 1.05rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background-color: #2F3331;
  vertical-align: bottom;
  animation: blink 1s step-start infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%,50%,100% { opacity:1; }
  25%,75% { opacity:0; }
}

/* -------------------- */
/* HOME CONNECT BUTTONS */
/* -------------------- */

#home .connect {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home .connect-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

#home .connect-btn {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 1rem;
  color: #2F3331;

  border: 1px solid #C9CDCA;
  border-radius: 8px; /* rounded square */

  background-color: transparent;
  transition: all 0.35s ease;
}

#home .connect-btn:hover {
  border: 1px solid #edf0f3;
  background-color: #edf0f3;
  transform: translateY(-2px);
}


/* -------------------- */
/* ABOUT BUTTONS       */
/* -------------------- */

#about {
  padding-top: 20px;
  min-height: 100vh;              /* fills snap viewport */
  background-color: #edf0f3;      /* blue background */
  display: flex;
  justify-content: center;        /* horizontal center */
  scroll-margin-top: 10px;
  align-items: center;            /* vertical center */
}

/* About Layout */
.about-layout {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: start;
  gap: 80px;            /* was 70px */
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;     /* was 48px */
}

/* Left Column */
.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 centers button to image */
  gap: 24px;
}


.about-illustration img {
  width: 100%;
  max-width: 250px;
  border-radius: 20px;
}

.about-button {
  margin-top: 0; /* spacing handled by flex gap */
}

/* Divider */
.about-divider {
  width: 1px;
  background-color: #cfd9df;
  height: 100%;
}

/* Right Column */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 50px; /* space between title and text */
}

.about-title h2 {
  font-size: 6rem;
  line-height: 1;
  margin: 0;
}

.about-text p {
  width: 630px;
  padding-left: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* About Button Styling (already in your CSS, just ensure positioning works) */
.about-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  text-decoration: none;
  color: #2F3331;
  background-color: #edf0f3;
  transition: all 0.35s ease;
}

.about-btn:hover {
  border: 1px solid #edf0f3;
  background-color: #cfd9df;
  transform: translateY(-2px) scale(1.02);
}


/* ABOUT entrance animation */
.about-left,
.about-divider,
.about-right {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* start positions */
.about-left {
  transform: translateX(-60px);
}

.about-right {
  transform: translateX(60px);
}

.about-divider {
  transform: scaleY(0);
  transform-origin: top;
}

/* active state */
.about-animate .about-left,
.about-animate .about-right {
  opacity: 1;
  transform: translateX(0);
}

.about-animate .about-divider {
  opacity: 1;
  transform: scaleY(1);
}



/* -------------------- */
/* SCROLL INDICATOR     */
/* -------------------- */

.scroll-indicator {
  position: fixed;
  right: 24px;
  top: 40%;
  transform: translateY(-50%);
  width: 2px;
  height: 180px;
  background-color: #ececec;
  border-radius: 2px;
  z-index: 999;
}

.scroll-progress {
  width: 100%;
  height: 0%;
  background-color: #2F3331;
  border-radius: 2px;
  transition: height 0.15s ease-out;
}

/* -------------------- */
/* BUTTONS              */
/* -------------------- */

.portfolio-btn {
  display: block;
  width: fit-content;
  margin: 50px auto 0;
  padding: 14px 28px;
  font-size: 0.95rem;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  text-decoration: none;
  color: #2F3331;
  transition: all 0.35s ease;
}

.portfolio-btn:hover {
  border: 1px solid #edf0f3;
  background-color: #edf0f3;
  transform: translateY(-2px) scale(1.02);
}

/* -------------------- */
/* FEATURED PROJECTS    */
/* -------------------- */

#work {
  scroll-snap-align: start;
  scroll-margin-top: 0;
  padding-top: 70px;
  background-color: #ffffff;
}

#work h2 {
  text-align: center;
  margin-bottom: 80px; /* more breathing room */
}

/* GRID */
.top-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(520px, 1fr)); /* WIDER cards */
  gap: 48px;
  max-width: 1700px;   /* allow wider layout */
  margin: 0 auto;      /* center grid */
  padding: 0 1rem;     /* thin side margins */
}

/* CARD */
.project-card {
  background-color: transparent;
  border: 1px solid #cfd9df;
  border-radius: 18px;
  padding: 60px;       /* reduced from 100px */
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, background-color 0.35s ease;
  touch-action: manipulation;
}

/* HOVER */
.project-card:hover {
  transform: translateY(-4px);
  background-color: #edf0f3;
  border-color: #edf0f3;
}

/* IMAGE */
.project-image {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}

.project-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.02);
}

/* TEXT */
.project-text h3 {
  font-size: 1.1rem;
  padding-bottom: 6px;
}

.project-text p {
  font-size: 0.95rem;
  color: #5F6462;
}


/* -------------------- */
/* CONTACT    */
/* -------------------- */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding-top: 20px;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.contact-image {
  height: 85%;
  padding-top: 40px;
}

.contact-image img {
  width: 100%;
  height: 95%;
  border-radius: 24px;
  object-fit: cover;
}

/* Right side */
.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  padding-top: 0px;
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 60px;
  color: #2F3331;
}

.contact-message {
  font-size: 1.05rem;
  line-height: 1.7;

  color: #5F6462;
  padding-left: 10px;
  max-width: 480px;
  margin-bottom: 90px;
}

.contact-block {
  position: relative;
  padding: 10px 10px;
  max-width: 320px;
}

/* Top dividers (except first) */
.contact-block:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px; /* aligns with text */
  width: 100%;
  max-width: 300px;
  height: 1px;
  background-color: #cfd9df;
}

/* Bottom divider (only for last item) */
.contact-block:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 100%;
  max-width: 300px;
  height: 1px;
  background-color: #cfd9df;
}

/* Social links */
.contact-link {
  display: inline-block;   /* THIS is the missing piece */
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #2F3331;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-link:hover {
  color: #7A807D;
  transform: translateX(4px);
}

/* -------------------- */
/* FOOTER               */
/* -------------------- */

#contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 48px 10px;
  scroll-snap-align: start;
  background-color: #ffffff;
}

footer { 
  background-color: #ffffff; 
  text-align: center; 
  padding: 24px 0; 
  font-size: 0.95rem; 
  color: #7A807D; }

/* -------------------- */
/* LANDING ANIMATIONS    */
/* -------------------- */

.home-text,
.connect {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 360 rotate animation */
@keyframes spin-in {
  0%   { transform: rotate(135deg); opacity: 0; }
  100% { transform: rotate(360deg); opacity: 1; }
}


/* =========================
   ABOUT PAGE LAYOUT
========================= */

#about-page {
  background-color: #ffffff;
  padding: 40px 0 5px 0;
}

.aboutpage-layout {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 2rem; /* divider closer to image */
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* =========================
   LEFT COLUMN (IMAGE + BTN)
========================= */

.aboutpage-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-left: -1rem; /* 👈 moves image + button left */
  margin-right: 10px;
}

.aboutpage-image img {
  margin-top: 17px;
  margin-bottom: 10px;
  width: 200px;
  border-radius: 16px;
  object-fit: cover;
}

/* =========================
   DIVIDER
========================= */

.aboutpage-divider {
  width: 1px;
  background-color: #cfd9df;
  margin-top: 15px;
  height: 96%;
}

/* =========================i
   RIGHT SIDE (TAGS)
========================= */

.aboutpage-text-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* left: about intro, right: tags + experience */
  gap: 5rem; /* increased from 1rem to 3rem for more space */
  align-items: start;
  padding-left: 2rem;
}

/* =========================
   ABOUT MAIN COLUMN
========================= */

.aboutpage-main h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #2F3331;
}

.aboutpage-intro {
  max-width: 550px;
  line-height: 1.8;
  color: #5F6462;
  margin-bottom: 0; /* spacing handled by gap */
}

/* =========================
   BLOCKS
========================= */

.aboutpage-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 66px;
  color: #7A807D;
}

.aboutpage-block p {
  max-width: 550px;
  line-height: 1.7;
  color: #5F6462;
}

/* =========================
   TAGS (SOFTWARE)
========================= */

.aboutpage-tags-column {
  display: flex;
  flex-direction: column;
  padding-top: 91px;
  gap: 0.5rem;
  align-items: flex-start;
}

.aboutpage-tags-column h3 {
  font-size: 0.8rem;           /* same as block titles */
  letter-spacing: 0.12em;      /* same as block titles */
  text-transform: uppercase;    /* same as block titles */
  margin-bottom: 1.1rem;       /* same as block titles */
  text-align: left;
  color: #7A807D;               /* same as block titles */
}

.aboutpage-tags {
  display: flex;           /* use flexbox */
  flex-wrap: wrap;         /* wrap to new lines */
  gap: 0.5rem 0.5rem;      /* vertical and horizontal spacing */
}

.aboutpage-tags span {
  display: inline-flex;    
  justify-content: center;  
  align-items: center;      
  padding: 0.4rem 0.9rem;  
  border-radius: 999px;
  background: transparent;
  border: 1px solid #cfd9df;
  font-size: 0.85rem;
  white-space: nowrap;      
  text-align: center;
}

/* =========================
   EXPERIENCE (2x2 GRID)
========================= */

.aboutpage-experience {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2rem; /* row gap / column gap */
}

.aboutpage-experience h3 {
  grid-column: 1 / -1; /* makes title span both columns */
  padding-top: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A807D;
}

.aboutpage-experience p {
  margin: 0;
  color: #5F6462;
  line-height: 1.6;
}

.aboutpage-experience strong {
  color: #2F3331;
  font-weight: 500;
}


/* =========================
   CONTACT BUTTON
========================= */

.aboutpage-contact-btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.95rem;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  text-decoration: none;
  color: #2F3331;
  background-color: transparent;
  transition: all 0.35s ease;
}

.aboutpage-contact-btn:hover {
  background-color: #edf0f3;
  border: 1px solid #edf0f3;
  transform: translateY(-2px) scale(1.02);
}



/* =========================
   ABOUT PAGE ENTRANCE ANIMATIONS
   Scoped only to About page
========================= */

#about-page .about-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#about-page .about-animate.show {
  opacity: 1;
  transform: translateY(0);
}





/* =========================
   WORK CSS
========================= */

#work-page {
  min-height: auto;     /* undo 100vh */
  padding-top: 100px;
  padding-bottom: 110px;
}

#work-page h2 {
  font-size: 1.05rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  color: #2F3331;
  text-align: center;
}

#work-page .section-content {
  text-align: center;
}

#work-page h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: currentColor; /* matches text */
  margin-top: 2px;
}

#work-page .work-carousel {
  padding-left: 30px;   /* was 30px */
  padding-right: 30px;  /* was 0 */
}

/* WORK CAROUSEL */
.work-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;   /* 👈 add this */
  scroll-snap-type: x mandatory;
  padding-top: 6px;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.work-item {
  flex: 0 0 459px;   /* was 320px */
  scroll-snap-align: start;
  background-color: transparent;
  border: 1px solid #cfd9df;
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.work-item:hover {
  transform: translateY(-4px) scale(1);
  background-color: #edf0f3; /* same soft fill as your site */
  border-color:#edf0f3;
}

.work-item img {
  width: 100%;
  height: 320px;   /* was 220px */
  object-fit: cover;
  border-radius: 14px;
}

.work-item:hover img {
  transform: scale(1.01);
}

.work-text h3 {
  font-size: 1.05rem;
  margin: 12px 0 5px 0;
}

.work-text p {
  font-size: 0.95rem;
  color: #5F6462;
}


/* -------------------- */
/* WORK CAROUSEL SCROLL INDICATOR */
/* -------------------- */

.carousel-indicator {
  width: 260px;
  height: 2px;
  background-color: #ececec;
  border-radius: 2px;
  margin: 8px auto 0;   /* controls how close it is to carousel */
  overflow: hidden;
  margin-top: -100px;
}

.carousel-progress {
  width: 0%;
  height: 100%;
  background-color: #2F3331;
  border-radius: 2px;
  transition: width 0.15s ease-out;
}

/* -------------------- */
/* WORK ARROWS - INSIDE MARGINS */
/* -------------------- */

.work-carousel-wrapper {
  position: relative; /* wrapper for absolute arrows */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #cfd9df;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
  width: 25px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  transform: translateY(-50%) translateY(-2px);
}

/* Position left and right arrows inside the section margins */
.carousel-btn.left {
  left: 12px; /* distance from left margin */
}

.carousel-btn.right {
  right: 12px; /* distance from right margin */
}





/* =========================
   MEMO PROJECT PAGE
========================= */

#memo-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

.memo-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}

/* =========================
   LEFT COLUMN
========================= */

.porf-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.porf-title {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #2F3331;
}

.porf-description {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #5F6462;
  padding-bottom: 100px;
}

.porf-software-back {
  display: flex;
  gap: 8rem;
  align-items: flex-end;
  width: 400px;
}

.porf-software ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.porf-software li {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5F6462;
  line-height: 1.8;
}

.porf-back-btn {
  font-size: 0.85rem;
  text-decoration: none;
  color: #2F3331;
  border: 1px solid #cfd9df;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.25s ease;
  white-space: nowrap;
}

.porf-back-btn:hover {
  background-color: #edf0f3;
  border-color: #edf0f3;
  transform: translateX(-2px);
}

/* =========================
   DIVIDER
========================= */

.porf-divider {
  width: 1px;
  background-color: #cfd9df;
  align-self: stretch;
}

/* =========================
   RIGHT COLUMN
========================= */

.memo-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* VIDEO */

.memo-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

.memo-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* IMAGE GRID */

.memo-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.memo-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   ANIMATIONS
========================= */

.porf-animate,
.memo-animate,
.memo-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.porf-animate.show,
.memo-animate.show,
.memo-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ROAST PROJECT PAGE
========================= */

#roast-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* Right column layout */

.roast-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Image rows (2 images) */

.roast-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.roast-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* Video */

.roast-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

.roast-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   ROAST ANIMATIONS
========================= */

.roast-animate,
.roast-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.roast-animate.show,
.roast-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SKIN PROJECT PAGE
========================= */

#skin-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

.skin-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}

/* =========================
   RIGHT COLUMN
========================= */

.skin-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* VIDEO */

.skin-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

.skin-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* LARGE IMAGES */

.skin-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   SKIN ANIMATIONS
========================= */

.skin-animate,
.skin-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.skin-animate.show,
.skin-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RICE PROJECT PAGE
========================= */

#rice-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* Use same layout as memo */
.memo-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}

/* =========================
   RIGHT COLUMN
========================= */

.rice-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

.rice-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* LARGE IMAGE (full width row) */

.rice-image-large {
  grid-column: 1 / -1;
}

.rice-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGES */

.rice-image-small img,
.memo-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   ANIMATIONS
========================= */

.rice-animate,
.rice-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.rice-animate.show,
.rice-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------
POSTERS PROJECT PAGE
-------------------- */

#posters-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* --------------------
LAYOUT
-------------------- */

.posters-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}


/* --------------------
RIGHT COLUMN
-------------------- */

.posters-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */
.posters-image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

/* LARGE IMAGE */
.posters-image-large {
  grid-column: 1 / -1;
}

.posters-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGES */
.posters-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* VIDEOS */
.posters-video video {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* --------------------
ANIMATIONS
-------------------- */

.posters-animate,
.posters-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.posters-animate.show,
.posters-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------
   GEISHA PROJECT LAYOUT
-------------------- */

/* Container for the right column */
.geisha-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* IMAGE ROWS */
.geisha-image-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* allows responsive stacking */
}

/* LARGE IMAGE */
.geisha-image-large {
  flex: 1 1 100%; /* full-width row */
}

.geisha-image-large img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGES */
.geisha-image-small {
  flex: 1; /* each takes equal space in row */
  min-width: 48%; /* ensures 2 per row on smaller screens */
}

.geisha-image-small img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* --------------------
   ANIMATIONS
-------------------- */

.geisha-animate,
.geisha-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.geisha-animate.show,
.geisha-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   MUSIC PROJECT PAGE
========================= */

#music-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.music-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =========================
   VIDEO (YOUTUBE)
========================= */

.music-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: none;
  background-color: #edf0f3;
}

/* =========================
   IMAGE ROWS (5 PER ROW)
========================= */

.music-image-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.music-image-small img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   HORIZONTAL DIVIDER
========================= */

.music-divider {
  border: none;
  height: 1px;
  background-color: #cfd9df;
  margin: 40px 0;
  width: 100%;
}

/* =========================
   LOCAL VIDEOS (matches YouTube styling)
========================= */

.gnarly-video video {
  width: 100%;              /* full width of container */
  height: 100%;             /* fills aspect-ratio box */
  object-fit: cover;        /* like your images, crop if needed */
  border-radius: 18px;      /* matches iframe style */
  background-color: #edf0f3;/* same placeholder as iframe */
  display: block;
}

/* Responsive aspect ratio wrapper */
.gnarly-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;     /* 16:9 aspect ratio */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

/* Absolute video inside wrapper */
.gnarly-video video {
  position: absolute;
  inset: 0;
}

/* =========================
   MUSIC ANIMATIONS
========================= */

.music-animate,
.music-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.music-animate.show,
.music-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

.gnarly-animate,
.gnarly-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.gnarly-animate.show,
.gnarly-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   MIX PROJECT PAGE
========================= */

#mix-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.mix-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

/* BASE ROW */
.mix-image-row {
  display: grid;
  gap: 24px;
}

/* ROW 1: LARGE IMAGE (FULL WIDTH) */
.mix-image-row-full {
  grid-template-columns: 1fr;
}

/* ROWS 2 & 3: TWO IMAGES */
.mix-image-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* ROW 4: FOUR IMAGES */
.mix-image-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* IMAGES */

.mix-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

.mix-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   MIX ANIMATIONS
========================= */

.mix-animate,
.mix-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.mix-animate.show,
.mix-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PHOTO PROJECT PAGE
========================= */

#photo-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.photo-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS (2 PER ROW) */

.photo-image-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* IMAGES */

.photo-image-small img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
  display: block;
}

/* =========================
   PHOTO ANIMATIONS
========================= */

.photo-animate,
.photo-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.photo-animate.show,
.photo-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   WATC PROJECT PAGE
========================= */

#watc-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.watc-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

.watc-image-row {
  width: 100%;
}

/* LARGE IMAGE */

.watc-image-large img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* VIDEO */

.watc-video video {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  background-color: #edf0f3;
}

/* BUTTONS (reuse back button style) */

.watc-buttons {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.buy-btn {
  font-size: 0.85rem;
  text-decoration: none;
  color: #2F3331;
  border: 1px solid #cfd9df;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.25s ease;
  white-space: nowrap;
}

.buy-btn:hover {
  background-color: #edf0f3;
  transform: translateX(-2px);
}

/* =========================
   WATC ANIMATIONS
========================= */

.watc-animate,
.watc-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.watc-animate.show,
.watc-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CITY PROJECT PAGE
========================= */

#city-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.city-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

.city-image-row {
  display: grid;
  gap: 24px;
}

/* LARGE IMAGE ROWS */

.city-image-large img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGE ROWS (2 PER ROW) */

.city-image-row:has(.city-image-small) {
  grid-template-columns: repeat(2, 1fr);
}

/* SMALL IMAGES */

.city-image-small img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   CITY ANIMATIONS
========================= */

.city-animate,
.city-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.city-animate.show,
.city-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}
  

/* -------------------- */
/* RESET & BASE STYLES  */
/* -------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  color: #2F3331;
}

section {
  min-height: 100vh;
  padding: 120px 48px 48px;
  display: flex;
  justify-content: center;
  align-items: center;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* -------------------- */
/* TYPOGRAPHY           */
/* -------------------- */

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 3.45rem; /* keeps your hero size */
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #5F6462;
}

/* -------------------- */
/* NAVBAR               */
/* -------------------- */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.nav-name {
  font-size: 1.05rem;
  font-weight: 400;
  text-decoration: none;
  color: #2F3331;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-btn {
  font-size: 0.85rem;
  color: #2F3331;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border: 1px solid #C9CDCA;
  border-radius: 6px;
  transition: all 0.35s ease;
}

.nav-btn:hover {
  background-color: #edf0f3;
  border: 1px solid #edf0f3;
}

.home-btn {
  font-size: 1.3rem;         /* match nav-btn */
  color: #2F3331;
  text-decoration: none;

  padding: 5px 15px;        /* SAME as nav-btn */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #C9CDCA;
  border-radius: 6px;
  transition: all 0.35s ease;
}

.home-btn:hover {
  background-color: #edf0f3;
  border: 1px solid #edf0f3;
}


/* -------------------- */
/* HOME HERO            */
/* -------------------- */

#home {
  background-color: #ffffff;
  text-align: center;
}

#home h1 {
  font-size: 3.45rem;
  padding-bottom: 8px;
  margin-top: -20px;
  margin-bottom: 10px;
  color: #434445;
}

.home-divider {
  width: 495px;
  height: 1px;
  background-color: #ececec;
  margin: -10px auto 0 auto;
}

.home-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0px;
  margin: 0 auto;
}

.home-illustration img {
  width: 360px;
  height: auto;
  margin-top: -30px;
  border-radius: 30px;
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.hero-subtitle {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 30px;
  color: #5F6462;
  min-height: calc(1.7em * 2);
}

.home-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 50px;
}

.typewriter-line {
  display: block;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 1.05rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background-color: #2F3331;
  vertical-align: bottom;
  animation: blink 1s step-start infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%,50%,100% { opacity:1; }
  25%,75% { opacity:0; }
}

/* -------------------- */
/* HOME CONNECT BUTTONS */
/* -------------------- */

#home .connect {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home .connect-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

#home .connect-btn {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 1rem;
  color: #2F3331;

  border: 1px solid #C9CDCA;
  border-radius: 8px; /* rounded square */

  background-color: transparent;
  transition: all 0.35s ease;
}

#home .connect-btn:hover {
  border: 1px solid #edf0f3;
  background-color: #edf0f3;
  transform: translateY(-2px);
}


/* -------------------- */
/* ABOUT BUTTONS       */
/* -------------------- */

#about {
  padding-top: 20px;
  min-height: 100vh;              /* fills snap viewport */
  background-color: #edf0f3;      /* blue background */
  display: flex;
  justify-content: center;        /* horizontal center */
  scroll-margin-top: 10px;
  align-items: center;            /* vertical center */
}

/* About Layout */
.about-layout {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: start;
  gap: 80px;            /* was 70px */
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;     /* was 48px */
}

/* Left Column */
.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 centers button to image */
  gap: 24px;
}


.about-illustration img {
  width: 100%;
  max-width: 250px;
  border-radius: 20px;
}

.about-button {
  margin-top: 0; /* spacing handled by flex gap */
}

/* Divider */
.about-divider {
  width: 1px;
  background-color: #cfd9df;
  height: 100%;
}

/* Right Column */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 50px; /* space between title and text */
}

.about-title h2 {
  font-size: 6rem;
  line-height: 1;
  margin: 0;
}

.about-text p {
  width: 630px;
  padding-left: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* About Button Styling (already in your CSS, just ensure positioning works) */
.about-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  text-decoration: none;
  color: #2F3331;
  background-color: #edf0f3;
  transition: all 0.35s ease;
}

.about-btn:hover {
  border: 1px solid #edf0f3;
  background-color: #cfd9df;
  transform: translateY(-2px) scale(1.02);
}


/* ABOUT entrance animation */
.about-left,
.about-divider,
.about-right {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* start positions */
.about-left {
  transform: translateX(-60px);
}

.about-right {
  transform: translateX(60px);
}

.about-divider {
  transform: scaleY(0);
  transform-origin: top;
}

/* active state */
.about-animate .about-left,
.about-animate .about-right {
  opacity: 1;
  transform: translateX(0);
}

.about-animate .about-divider {
  opacity: 1;
  transform: scaleY(1);
}



/* -------------------- */
/* SCROLL INDICATOR     */
/* -------------------- */

.scroll-indicator {
  position: fixed;
  right: 24px;
  top: 40%;
  transform: translateY(-50%);
  width: 2px;
  height: 180px;
  background-color: #ececec;
  border-radius: 2px;
  z-index: 999;
}

.scroll-progress {
  width: 100%;
  height: 0%;
  background-color: #2F3331;
  border-radius: 2px;
  transition: height 0.15s ease-out;
}

/* -------------------- */
/* BUTTONS              */
/* -------------------- */

.portfolio-btn {
  display: block;
  width: fit-content;
  margin: 50px auto 0;
  padding: 14px 28px;
  font-size: 0.95rem;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  text-decoration: none;
  color: #2F3331;
  transition: all 0.35s ease;
}

.portfolio-btn:hover {
  border: 1px solid #edf0f3;
  background-color: #edf0f3;
  transform: translateY(-2px) scale(1.02);
}

/* -------------------- */
/* FEATURED PROJECTS    */
/* -------------------- */

#work {
  scroll-snap-align: start;
  scroll-margin-top: 0;
  padding-top: 70px;
  background-color: #ffffff;
}


#work h2 {
  text-align: center;
  margin-bottom: 65px;
}

.top-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;              
  max-width: 1440px;
  padding-bottom: 10px;
}

/* FIX FEATURED PROJECTS CENTERING */
#work .top-projects {
  margin: 0 auto;              /* center the grid */
  justify-content: center;     /* center items */
  padding-left: 0;
  padding-right: 0;
}


.project-card {
  background-color: transparent;
  border: 1px solid #cfd9df;
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, background-color 0.35s ease;
  touch-action: manipulation; /* tells browser taps are intentional */
}


.project-card:hover {
  transform: translateY(-4px);
  background-color: #edf0f3;
  border: 1px solid #edf0f3;
}

.project-image {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}

.project-image img {
  width: 100%;
  height: 320px;          /* match work page image height */
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.01);
}

.project-text h3 {
  font-size: 1.05rem;
  padding-bottom: 5px;
}

.project-text p {
  font-size: 0.95rem;
  color: #5F6462;
}

/* -------------------- */
/* CONTACT    */
/* -------------------- */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding-top: 20px;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.contact-image {
  height: 85%;
  padding-top: 40px;
}

.contact-image img {
  width: 100%;
  height: 95%;
  border-radius: 24px;
  object-fit: cover;
}

/* Right side */
.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  padding-top: 0px;
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 60px;
  color: #2F3331;
}

.contact-message {
  font-size: 1.05rem;
  line-height: 1.7;

  color: #5F6462;
  padding-left: 10px;
  max-width: 480px;
  margin-bottom: 90px;
}

.contact-block {
  position: relative;
  padding: 10px 10px;
  max-width: 320px;
}

/* Top dividers (except first) */
.contact-block:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px; /* aligns with text */
  width: 100%;
  max-width: 300px;
  height: 1px;
  background-color: #cfd9df;
}

/* Bottom divider (only for last item) */
.contact-block:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 100%;
  max-width: 300px;
  height: 1px;
  background-color: #cfd9df;
}

/* Social links */
.contact-link {
  display: inline-block;   /* THIS is the missing piece */
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #2F3331;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-link:hover {
  color: #7A807D;
  transform: translateX(4px);
}

/* -------------------- */
/* FOOTER               */
/* -------------------- */

#contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 48px 10px;
  scroll-snap-align: start;
  background-color: #ffffff;
}

footer { 
  background-color: #ffffff; 
  text-align: center; 
  padding: 24px 0; 
  font-size: 0.95rem; 
  color: #7A807D; }

/* -------------------- */
/* LANDING ANIMATIONS    */
/* -------------------- */

.home-text,
.connect {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 360 rotate animation */
@keyframes spin-in {
  0%   { transform: rotate(135deg); opacity: 0; }
  100% { transform: rotate(360deg); opacity: 1; }
}


/* =========================
   ABOUT PAGE LAYOUT
========================= */

#about-page {
  background-color: #ffffff;
  padding: 40px 0 5px 0;
}

.aboutpage-layout {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 2rem; /* divider closer to image */
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* =========================
   LEFT COLUMN (IMAGE + BTN)
========================= */

.aboutpage-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-left: -1rem; /* 👈 moves image + button left */
  margin-right: 10px;
}

.aboutpage-image img {
  margin-top: 17px;
  margin-bottom: 10px;
  width: 200px;
  border-radius: 16px;
  object-fit: cover;
}

/* =========================
   DIVIDER
========================= */

.aboutpage-divider {
  width: 1px;
  background-color: #cfd9df;
  margin-top: 15px;
  height: 96%;
}

/* =========================i
   RIGHT SIDE (TAGS)
========================= */

.aboutpage-text-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* left: about intro, right: tags + experience */
  gap: 5rem; /* increased from 1rem to 3rem for more space */
  align-items: start;
  padding-left: 2rem;
}

/* =========================
   ABOUT MAIN COLUMN
========================= */

.aboutpage-main h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #2F3331;
}

.aboutpage-intro {
  max-width: 550px;
  line-height: 1.8;
  color: #5F6462;
  margin-bottom: 0; /* spacing handled by gap */
}

/* =========================
   BLOCKS
========================= */

.aboutpage-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 66px;
  color: #7A807D;
}

.aboutpage-block p {
  max-width: 550px;
  line-height: 1.7;
  color: #5F6462;
}

/* =========================
   TAGS (SOFTWARE)
========================= */

.aboutpage-tags-column {
  display: flex;
  flex-direction: column;
  padding-top: 91px;
  gap: 0.5rem;
  align-items: flex-start;
}

.aboutpage-tags-column h3 {
  font-size: 0.8rem;           /* same as block titles */
  letter-spacing: 0.12em;      /* same as block titles */
  text-transform: uppercase;    /* same as block titles */
  margin-bottom: 1.1rem;       /* same as block titles */
  text-align: left;
  color: #7A807D;               /* same as block titles */
}

.aboutpage-tags {
  display: flex;           /* use flexbox */
  flex-wrap: wrap;         /* wrap to new lines */
  gap: 0.5rem 0.5rem;      /* vertical and horizontal spacing */
}

.aboutpage-tags span {
  display: inline-flex;    
  justify-content: center;  
  align-items: center;      
  padding: 0.4rem 0.9rem;  
  border-radius: 999px;
  background: transparent;
  border: 1px solid #cfd9df;
  font-size: 0.85rem;
  white-space: nowrap;      
  text-align: center;
}

/* =========================
   EXPERIENCE (2x2 GRID)
========================= */

.aboutpage-experience {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2rem; /* row gap / column gap */
}

.aboutpage-experience h3 {
  grid-column: 1 / -1; /* makes title span both columns */
  padding-top: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A807D;
}

.aboutpage-experience p {
  margin: 0;
  color: #5F6462;
  line-height: 1.6;
}

.aboutpage-experience strong {
  color: #2F3331;
  font-weight: 500;
}


/* =========================
   CONTACT BUTTON
========================= */

.aboutpage-contact-btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.95rem;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  text-decoration: none;
  color: #2F3331;
  background-color: transparent;
  transition: all 0.35s ease;
}

.aboutpage-contact-btn:hover {
  background-color: #edf0f3;
  border: 1px solid #edf0f3;
  transform: translateY(-2px) scale(1.02);
}



/* =========================
   ABOUT PAGE ENTRANCE ANIMATIONS
   Scoped only to About page
========================= */

#about-page .about-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#about-page .about-animate.show {
  opacity: 1;
  transform: translateY(0);
}





/* =========================
   WORK CSS
========================= */

#work-page {
  min-height: auto;     /* undo 100vh */
  padding-top: 100px;
  padding-bottom: 110px;
}

#work-page h2 {
  font-size: 1.05rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  color: #2F3331;
  text-align: center;
}

#work-page .section-content {
  text-align: center;
}

#work-page h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: currentColor; /* matches text */
  margin-top: 2px;
}

#work-page .work-carousel {
  padding-left: 30px;   /* was 30px */
  padding-right: 30px;  /* was 0 */
}

/* WORK CAROUSEL */
.work-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;   /* 👈 add this */
  scroll-snap-type: x mandatory;
  padding-top: 6px;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.work-item {
  flex: 0 0 459px;   /* was 320px */
  scroll-snap-align: start;
  background-color: transparent;
  border: 1px solid #cfd9df;
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.work-item:hover {
  transform: translateY(-4px) scale(1);
  background-color: #edf0f3; /* same soft fill as your site */
  border-color:#edf0f3;
}

.work-item img {
  width: 100%;
  height: 320px;   /* was 220px */
  object-fit: cover;
  border-radius: 14px;
}

.work-item:hover img {
  transform: scale(1.01);
}

.work-text h3 {
  font-size: 1.05rem;
  margin: 12px 0 5px 0;
}

.work-text p {
  font-size: 0.95rem;
  color: #5F6462;
}


/* -------------------- */
/* WORK CAROUSEL SCROLL INDICATOR */
/* -------------------- */

.carousel-indicator {
  width: 260px;
  height: 2px;
  background-color: #ececec;
  border-radius: 2px;
  margin: 8px auto 0;   /* controls how close it is to carousel */
  overflow: hidden;
  margin-top: -100px;
  margin-bottom: 150px;
}

.carousel-progress {
  width: 0%;
  height: 100%;
  background-color: #2F3331;
  border-radius: 2px;
  transition: width 0.15s ease-out;
}

/* -------------------- */
/* WORK ARROWS - INSIDE MARGINS */
/* -------------------- */

.work-carousel-wrapper {
  position: relative; /* wrapper for absolute arrows */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #cfd9df;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
  width: 25px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  transform: translateY(-50%) translateY(-2px);
}

/* Position left and right arrows inside the section margins */
.carousel-btn.left {
  left: 12px; /* distance from left margin */
}

.carousel-btn.right {
  right: 12px; /* distance from right margin */
}





/* =========================
   MEMO PROJECT PAGE
========================= */

#memo-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

.memo-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}

/* =========================
   LEFT COLUMN
========================= */

.porf-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.porf-title {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #2F3331;
}

.porf-description {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #5F6462;
  padding-bottom: 100px;
}

.porf-software-back {
  display: flex;
  gap: 8rem;
  align-items: flex-end;
  width: 400px;
}

.porf-software ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.porf-software li {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5F6462;
  line-height: 1.8;
}

.porf-back-btn {
  font-size: 0.85rem;
  text-decoration: none;
  color: #2F3331;
  border: 1px solid #cfd9df;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.25s ease;
  white-space: nowrap;
}

.porf-back-btn:hover {
  background-color: #edf0f3;
  border-color: #edf0f3;
  transform: translateX(-2px);
}

/* =========================
   DIVIDER
========================= */

.porf-divider {
  width: 1px;
  background-color: #cfd9df;
  align-self: stretch;
}

/* =========================
   RIGHT COLUMN
========================= */

.memo-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* VIDEO */

.memo-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

.memo-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* IMAGE GRID */

.memo-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.memo-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   ANIMATIONS
========================= */

.porf-animate,
.memo-animate,
.memo-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.porf-animate.show,
.memo-animate.show,
.memo-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ROAST PROJECT PAGE
========================= */

#roast-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* Right column layout */

.roast-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Image rows (2 images) */

.roast-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.roast-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* Video */

.roast-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

.roast-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   ROAST ANIMATIONS
========================= */

.roast-animate,
.roast-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.roast-animate.show,
.roast-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SKIN PROJECT PAGE
========================= */

#skin-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

.skin-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}

/* =========================
   RIGHT COLUMN
========================= */

.skin-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* VIDEO */

.skin-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

.skin-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* LARGE IMAGES */

.skin-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   SKIN ANIMATIONS
========================= */

.skin-animate,
.skin-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.skin-animate.show,
.skin-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RICE PROJECT PAGE
========================= */

#rice-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* Use same layout as memo */
.memo-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}

/* =========================
   RIGHT COLUMN
========================= */

.rice-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

.rice-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* LARGE IMAGE (full width row) */

.rice-image-large {
  grid-column: 1 / -1;
}

.rice-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGES */

.rice-image-small img,
.memo-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   ANIMATIONS
========================= */

.rice-animate,
.rice-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.rice-animate.show,
.rice-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------
POSTERS PROJECT PAGE
-------------------- */

#posters-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* --------------------
LAYOUT
-------------------- */

.posters-layout {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr auto 2fr;
  gap: 6rem;
  align-items: stretch;
}


/* --------------------
RIGHT COLUMN
-------------------- */

.posters-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */
.posters-image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

/* LARGE IMAGE */
.posters-image-large {
  grid-column: 1 / -1;
}

.posters-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGES */
.posters-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* VIDEOS */
.posters-video video {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* --------------------
ANIMATIONS
-------------------- */

.posters-animate,
.posters-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.posters-animate.show,
.posters-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------
   GEISHA PROJECT LAYOUT
-------------------- */

/* Container for the right column */
.geisha-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* IMAGE ROWS */
.geisha-image-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* allows responsive stacking */
}

/* LARGE IMAGE */
.geisha-image-large {
  flex: 1 1 100%; /* full-width row */
}

.geisha-image-large img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGES */
.geisha-image-small {
  flex: 1; /* each takes equal space in row */
  min-width: 48%; /* ensures 2 per row on smaller screens */
}

.geisha-image-small img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* --------------------
   ANIMATIONS
-------------------- */

.geisha-animate,
.geisha-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.geisha-animate.show,
.geisha-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   MUSIC PROJECT PAGE
========================= */

#music-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.music-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =========================
   VIDEO (YOUTUBE)
========================= */

.music-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: none;
  background-color: #edf0f3;
}

/* =========================
   IMAGE ROWS (5 PER ROW)
========================= */

.music-image-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.music-image-small img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   HORIZONTAL DIVIDER
========================= */

.music-divider {
  border: none;
  height: 1px;
  background-color: #cfd9df;
  margin: 40px 0;
  width: 100%;
}

/* =========================
   LOCAL VIDEOS (matches YouTube styling)
========================= */

.gnarly-video video {
  width: 100%;              /* full width of container */
  height: 100%;             /* fills aspect-ratio box */
  object-fit: cover;        /* like your images, crop if needed */
  border-radius: 18px;      /* matches iframe style */
  background-color: #edf0f3;/* same placeholder as iframe */
  display: block;
}

/* Responsive aspect ratio wrapper */
.gnarly-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;     /* 16:9 aspect ratio */
  border-radius: 18px;
  overflow: hidden;
  background-color: #edf0f3;
}

/* Absolute video inside wrapper */
.gnarly-video video {
  position: absolute;
  inset: 0;
}

/* =========================
   MUSIC ANIMATIONS
========================= */

.music-animate,
.music-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.music-animate.show,
.music-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

.gnarly-animate,
.gnarly-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.gnarly-animate.show,
.gnarly-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   MIX PROJECT PAGE
========================= */

#mix-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.mix-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

/* BASE ROW */
.mix-image-row {
  display: grid;
  gap: 24px;
}

/* ROW 1: LARGE IMAGE (FULL WIDTH) */
.mix-image-row-full {
  grid-template-columns: 1fr;
}

/* ROWS 2 & 3: TWO IMAGES */
.mix-image-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* ROW 4: FOUR IMAGES */
.mix-image-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* IMAGES */

.mix-image-large img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

.mix-image-small img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   MIX ANIMATIONS
========================= */

.mix-animate,
.mix-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.mix-animate.show,
.mix-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PHOTO PROJECT PAGE
========================= */

#photo-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.photo-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS (2 PER ROW) */

.photo-image-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* IMAGES */

.photo-image-small img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
  display: block;
}

/* =========================
   PHOTO ANIMATIONS
========================= */

.photo-animate,
.photo-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.photo-animate.show,
.photo-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   WATC PROJECT PAGE
========================= */

#watc-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.watc-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

.watc-image-row {
  width: 100%;
}

/* LARGE IMAGE */

.watc-image-large img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* VIDEO */

.watc-video video {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  background-color: #edf0f3;
}

/* BUTTONS (reuse back button style) */

.watc-buttons {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.buy-btn {
  font-size: 0.85rem;
  text-decoration: none;
  color: #2F3331;
  border: 1px solid #cfd9df;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.25s ease;
  white-space: nowrap;
}

.buy-btn hover {
  background-color: #edf0f3;
  transform: translateX(-2px);
}

/* =========================
   WATC ANIMATIONS
========================= */

.watc-animate,
.watc-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.watc-animate.show,
.watc-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CITY PROJECT PAGE
========================= */

#city-page {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: #ffffff;
}

/* RIGHT COLUMN */

.city-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* IMAGE ROWS */

.city-image-row {
  display: grid;
  gap: 24px;
}

/* LARGE IMAGE ROWS */

.city-image-large img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* SMALL IMAGE ROWS (2 PER ROW) */

.city-image-row:has(.city-image-small) {
  grid-template-columns: repeat(2, 1fr);
}

/* SMALL IMAGES */

.city-image-small img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  background-color: #edf0f3;
}

/* =========================
   CITY ANIMATIONS
========================= */

.city-animate,
.city-image-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.city-animate.show,
.city-image-animate.show {
  opacity: 1;
  transform: translateY(0);
}








/* =========================
   HOME PAGE RESPONSIVE
========================= */

/* TABLET */
@media (max-width: 1024px) {

  section {
    padding: 100px 32px 32px;
  }

  /* NAV */
  .navbar {
    padding: 0 24px;
  }

  /* HOME */
  .home-illustration img {
    width: 260px;
  }

  #home h1 {
    font-size: 2.6rem;
  }

  .home-divider {
    width: 260px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* WORK */
  .top-projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-image {
    width: 100%;
  }

  .project-image img {
    height: 260px;
  }

  /* ABOUT */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-divider {
    display: none;
  }

  .about-text p {
    width: 100%;
    padding-left: 0;
  }

  .about-title h2 {
    font-size: 3.5rem;
  }


/* MOBILE */
@media (max-width: 600px) {

  section {
    padding: 90px 20px 24px;
  }

  /* NAV */
  .nav-right {
    gap: 10px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  /* HOME */
  .home-illustration img {
    width: 200px;
  }

  #home h1 {
    font-size: 2rem;
  }

  .home-divider {
    width: 180px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  /* WORK */
  .top-projects {
    grid-template-columns: 1fr;
  }

  #work h2 {
    margin-bottom: 40px;
  }

  /* ABOUT */
  .about-layout {
    padding: 0 20px;
  }

  .about-title h2 {
    font-size: 2.5rem;
  }

  /* CONTACT */
  .contact-title {
    font-size: 2.5rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* =========================
   CENTER FEATURED PROJECTS (DESKTOP)
========================= */
@media (min-width: 1200px) {

  #work .top-projects {
    display: flex;
    justify-content: center; /* center the group */
    gap: 3rem;
  }

  #work .project-card {
    flex: 0 0 350px; /* fixed card width */
  }
}



@media (max-width: 600px) {
  .home-btn {
    display: none;
  }
}


@media (max-width: 768px) {
  .about-right {
    text-align: center;
  }

  .about-title,
  .about-text {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .contact-info {
    text-align: center;
  }

  .contact-title,
  .contact-message {
    margin-left: auto;
    margin-right: auto;
    
  }
}

@media (max-width: 600px) {
  /* Add extra space below contact section */
  #contact .contact-info {
    margin-bottom: 80px; /* adjust the value as needed */
  }

  /* CONTACT */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-title {
    font-size: 3.5rem;
  }

  .contact-message {
    margin-bottom: 40px;
  }
}

/* Disable scroll snapping for mobile */
@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }

  section {
    scroll-snap-align: auto;
    scroll-snap-stop: normal;
  }
}

/* CONTACT — TABLET ONLY */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Make image taller */
  .contact-image img {
    height: 420px;      /* increase height */
    object-fit: cover;
  }

  /* Make title smaller */
  .contact-title {
    font-size: 1.6rem;
  }

}

/* Tablet */
@media (max-width: 1024px) {
  .aboutpage-layout {
    grid-template-columns: 1fr; /* single column */
    gap: 2.5rem;
  }

  .aboutpage-divider {
    display: none;
  }

  .aboutpage-text-layout {
    grid-template-columns: 1fr; /* stack text and tags vertically */
    gap: 2rem;
  }

}

/* Mobile */
@media (max-width: 600px) {

  .aboutpage-image {
    padding-top: 40px;
  }

  .aboutpage-image img {
    width: 150px;
  }

  .aboutpage-layout {
    padding: 0 20px;
  }


  /* Center headings */
  .aboutpage-main h1,
  .aboutpage-block h3 {
    text-align: left;
  }

  
  /* Move tags higher (closer to experience) */
  .aboutpage-tags-column {
    padding-top: 30px; /* reduce top padding */
    gap: 0.5rem;
    align-items: flex-start; /* keep left-aligned */
  }

  /* Increase gap between last aboutpage-block and footer */
  .aboutpage-block:last-child {
    margin-bottom: 70px; /* push footer down */
  }
}

@media (max-width: 600px) {
  footer {
    max-width: 320px;    /* controls the width */
    margin: 0 auto;      /* centers it */
    padding: 24px 0;     /* optional: keep vertical padding */
    text-align: center;  /* ensure text stays centered */
  }
}

/* --- MOBILE RESPONSIVE: full-width work items and images --- */
@media (max-width: 600px) {
  .work-carousel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;          /* remove side padding */
  }
 .work-item {
    flex: 0 0 100vw;             /* fixed width per item */
    scroll-snap-align: center;  /* snap to center */
    border-radius: 6px;
    margin: 0;                   /* no extra spacing needed */
  }

  .work-item img {
    width: 100%;         /* full width of the work item */
    height: 300px;       /* or adjust taller if needed */
    object-fit: cover;   /* fills the box without stretching */
    display: block;
    border-radius: 6px;  /* optional rounding */
  }

  .work-text {
    padding: 0.5rem 0;
  }

  /* Hide carousel indicators and buttons */
  .carousel-indicator,
  .carousel-btn {
    display: none;
  }
}


@media (max-width: 600px) {

  /* Container layout: stack columns vertically */
  .memo-layout {
    display: flex; 
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  /* LEFT AND RIGHT COLUMNS FULL WIDTH */
  .porf-left,
  .memo-right {
    width: 100%;
  }

  /* TITLE & DESCRIPTION */
  .porf-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .porf-description {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-bottom: 1rem;
  }

  /* SOFTWARE LIST */
  .porf-software-back {
    display: flex;
    gap: 1rem;
    width: 100%;
    padding-bottom: 20px;
  }

  .porf-software ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
  }

  .porf-software li {
    font-size: 0.85rem;
  }

  /* BACK BUTTON */
  .porf-back-btn {
    display: none;
  }

  /* DIVIDER: hide for mobile */
  .porf-divider {
    display: none;
  }

  /* VIDEO */
  .memo-video {
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 14px;
    overflow: hidden;
    background-color: #edf0f3;
  }

  .memo-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* IMAGE GRID: 2 columns for mobile + extra space below */
  .memo-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 3rem; /* extra space between last row and footer */
  }

  .memo-image-small img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
  }
}

@media (min-width: 1200px) {

  /* Make the whole work section wider */
  #work-page .section-content {
    max-width: 1600px;   /* was 1400 */
    margin: 0 auto;
    padding: 0 0.5rem;   /* thinner margins */
  }

  /* More space under title */
  #work-page h2 {
    margin-bottom: 4rem;
  }

  /* Make work items WIDER */
  .work-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 big columns instead of 3 */
    gap: 3rem;
  }

  /* Make each card feel larger */
  .work-item img {
    height: 420px; /* makes them visually heavier */
    object-fit: cover;
  }

  /* Bigger arrows and closer together */
  .carousel-btn {
    font-size: 3rem;
  }

  .carousel-btn.left  { left: 48%; }
  .carousel-btn.right { right: 48%; }

  /* Hide scroll bar indicator */
  .carousel-indicator {
    display: none;
  }
}
}

/* --- LARGE DESKTOP (PC) SPACING FIX --- */
@media (min-width: 1600px) {

  /* Space under the Work title */
  #work-page h2 {
    margin-bottom: 4rem;
  }

  /* Push footer down by spacing under indicator */
  .carousel-indicator {
    margin-bottom: 13rem;
  }

  /* Bigger arrows */
  .carousel-btn {
    font-size: 1.8rem;   /* increase size */
  }

  /* Bring arrows closer together */
  .carousel-btn.left {
    left: 2%;
  }

  .carousel-btn.right {
    right: 2%;
  }

}