/* ==============================================================
   Carl Inaudito — Professional Portfolio
   Design Tokens & Full Stylesheet
   ============================================================== */

/* --- FONT FACES --- */
@font-face {
  font-family: 'PP Woodland';
  src: url('assets/fonts/PP Woodland/PPWoodland-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Woodland';
  src: url('assets/fonts/PP Woodland/PPWoodland-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Coco Gothic';
  src: url('assets/fonts/coco_gothic/CocoGothic_trial.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00FF, U+0020-002A, U+002C-002F, U+003A-0040, U+005B-0060, U+007B-007E;
}

@font-face {
  font-family: 'Coco Gothic';
  src: url('assets/fonts/coco_gothic/CocoGothic-Bold_trial.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00FF, U+0020-002A, U+002C-002F, U+003A-0040, U+005B-0060, U+007B-007E;
}

@font-face {
  font-family: 'Coco Gothic';
  src: url('assets/fonts/coco_gothic/CocoGothic-Light_trial.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00FF, U+0020-002A, U+002C-002F, U+003A-0040, U+005B-0060, U+007B-007E;
}

@font-face {
  font-family: 'Coco Gothic';
  src: url('assets/fonts/coco_gothic/CocoGothic-Heavy_trial.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00FF, U+0020-002A, U+002C-002F, U+003A-0040, U+005B-0060, U+007B-007E;
}

/* --- DESIGN TOKENS --- */
:root {
  --cream: #e4ddcd;
  --dark-green: #354027;
  --dark-navy: #201c44;
  --yellow: #f0e100;
  --white: #ffffff;
  --black: #0a0a0a;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --text-muted: #8b8b7a;

  /* Fonts */
  --font-display: 'PP Woodland', 'Playfair Display', Georgia, serif;
  --font-body: 'Coco Gothic', 'Josefin Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 5rem 4rem;
  --section-padding-mobile: 3rem 1.5rem;
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.preload-lock {
  overflow: hidden;
}

/* ==============================================================
   HERO REVEAL LOADER (cropped hero -> full hero)
   ============================================================== */
.hero-reveal-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--cream);
}

.hero-reveal-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(40% 30% 40% 30% round 6px);
  will-change: clip-path;
}

.hero-reveal-video,
.hero-reveal-overlay,
.hero-reveal-illustration {
  position: absolute;
  inset: 0;
}

.hero-reveal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-reveal-overlay {
  background: linear-gradient(
    to bottom,
    rgba(32, 28, 68, 0.7) 0%,
    rgba(32, 28, 68, 0.3) 50%,
    transparent 100%
  );
}

.hero-reveal-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-reveal-illustration img {
  width: min(420px, 70vw);
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==============================================================
   SECTION 1: HERO
   ============================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-color: var(--dark-navy);
  color: var(--white);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(32, 28, 68, 0.7) 0%,
    rgba(32, 28, 68, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}

/* Hero text will be animated by GSAP from a blurred state */
.hero-title, .hero-subtext {
  will-change: filter, opacity;
}

/* Corner element — upper right */
.hero-corner-element {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 120px;
  height: auto;
  z-index: 3;
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  padding: 4rem 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Title Row: diagonal composition --- */
.hero-text-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  position: relative;
}

.hero-text-left {
  flex: 1;
  align-self: flex-start;
  padding-top: 3rem;
}

.hero-text-right {
  flex: 1;
  text-align: right;
  align-self: center;
  padding-top: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--yellow);
}

/* Hands illustration — centered */
.hero-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 420px;
  z-index: 2;
  pointer-events: none;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  opacity: 0.85;
}

/* --- Subtext --- */
.hero-subtext {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.7;
  color: var(--yellow);
  max-width: 460px;
  margin-bottom: 1.5rem;
}

/* Force numerals to render as digits (Coco Gothic trial may lack them) */
.hero-subtext .num {
  font-family: 'Josefin Sans', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- Divider --- */
.hero-divider {
  border: none;
  border-top: 1px solid rgba(228, 221, 205, 0.25);
  margin-bottom: 1rem;
}

/* --- Certified By --- */
.hero-certified {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.certified-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--cream);
  text-transform: uppercase;
  white-space: nowrap;
}

.certified-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.certified-logos img {
  height: 36px;
  width: auto;
  opacity: 0.9;
  /* #e4ddcd cream tint */
  filter: brightness(0) invert(0.9) sepia(0.2) saturate(0.4) hue-rotate(15deg);
}

/* ==============================================================
   SECTION 2: INTRODUCTION & EXECUTIVE ENDORSEMENTS
   ============================================================== */
.intro-section {
  padding: 6rem 3.5rem;
  background-color: var(--cream);
  color: var(--dark-green);
}

.intro-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* --- Intro Header --- */
.intro-header {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: flex-end;
}

.intro-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.intro-name {
  font-family: var(--font-display);
  font-size: 5.2rem;
  line-height: 0.85;
  letter-spacing: -1px;
  font-weight: 700;
  margin-top: 0.5rem;
}

.intro-subheadline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.intro-paragraph {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
  opacity: 0.85;
}

/* Blur-to-Focus Animation Support for Section 2 */
.intro-label, .intro-name, .intro-subheadline, .intro-paragraph,
.endorsements-heading, .endorsement-quote, .endorsement-author {
  will-change: filter, opacity;
}

.intro-label .word, .intro-name .word, .intro-subheadline .word, .intro-paragraph .word,
.endorsements-heading .word, .endorsement-quote .word, .endorsement-author .word {
  display: inline-block;
  will-change: filter, opacity;
}

/* --- Intro Main (Illustration + Endorsements) --- */
.intro-main {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 6rem;
  align-items: flex-start;
}

.intro-illustration-box {
  position: relative;
  z-index: 1;
  max-width: 450px;
}

.orrery-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

.intro-endorsements {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.endorsements-heading {
  font-family: var(--font-body);
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 2rem;
}

.endorsement-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.endorsement-item {
  padding: 0.2rem 0;
}

.endorsement-quote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.endorsement-author {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.3px;
}

.endorsement-divider {
  border: none;
  border-top: 1px solid rgba(53, 64, 39, 0.2);
}

/* --- Responsive Adjustments for Intro --- */
@media (max-width: 1024px) {
  .intro-name, .endorsements-heading {
    font-size: 3.5rem;
  }
  .intro-header, .intro-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .intro-section {
    padding: 4rem 1.5rem;
  }
  .intro-name, .endorsements-heading {
    font-size: 2.8rem;
  }
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
}

.about-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dark-navy);
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.about-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-navy);
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.about-right {
  padding-top: 1rem;
}

.endorsement-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.endorsement-card {
  background: var(--white);
  border-left: 4px solid var(--yellow);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.endorsement-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.endorsement-card p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.endorsement-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==============================================================
   SECTION 3: STATS / METRICS
   ============================================================== */
.stats-section {
  padding: 6rem 3.5rem;
  background-color: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stats-outer-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  padding: 6rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-inner-box {
  background-color: var(--dark-green);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  z-index: 1;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.stats-circles-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; /* Extending beyond the box */
  max-width: 1000px; /* Keep it controlled */
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  animation: spin 40s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.stats-grid {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.5rem 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4.2rem;
  color: #f0e100;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.stat-desc {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #f4eddd;
  line-height: 1.4;
  font-weight: 500; /* slightly heavier for legibility */
  opacity: 1;
}


/* ==============================================================
   SECTION 4: STRATEGIC PILLARS
   ============================================================== */
.pillars-section {
  padding: 6rem 3.5rem;
  background-color: var(--dark-navy);
  text-align: center;
}

.section-heading-yellow {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 4rem;
  letter-spacing: 0px;
}

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

.pillars-section .section-heading-yellow {
  animation: floating 6s ease-in-out infinite;
  margin-bottom: 3rem;
}

.pillar-column {
  background-color: var(--cream);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.5rem;
  animation: floating 6s ease-in-out infinite;
}

.pillar-column:nth-child(2) { animation-delay: -1.5s; }
.pillar-column:nth-child(3) { animation-delay: -3s; }
.pillar-column:nth-child(4) { animation-delay: -4.5s; }

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Ensure images fit well in sticky layout */
.pillar-icon-container {
  background-color: var(--dark-green);
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.pillar-icon-container img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--dark-navy);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
}


.pillar-divider {
  border: none;
  border-top: 1px solid rgba(32, 28, 68, 0.2);
  margin-bottom: 1.25rem;
  width: 100%;
}

.pillar-desc {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--dark-navy);
  line-height: 1.5;
  font-weight: 400;
  padding-bottom: 1rem;
}


/* ==============================================================
   SECTION 5: CERTIFICATIONS
   ============================================================== */
.certifications-section {
  position: relative;
  padding: 6rem 3.5rem;
  background-color: var(--dark-navy);
  text-align: center;
  overflow: hidden;
}

.cert-grid-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1200px;
  height: auto;
  opacity: 1; /* Retain original asset opacity */
  pointer-events: none;
  z-index: 1;
}

.certifications-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.cert-heading {
  margin-bottom: 5rem;
}

.cert-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 4.5rem;
  column-gap: 2rem;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.cert-logo {
  height: 60px; /* Base height to normalize disparate logo dimensions */
  max-width: 80%;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.cert-name {
  font-family: var(--font-body); /* Standard readable font for sublables */
  font-size: 0.85rem;
  color: #f0e100;
  font-weight: 500;
  line-height: 1.4;
}

.slot-machine-container {
  height: 45px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.slot-machine-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: scrollSlotMachine 20s linear infinite;
  margin: 0;
  padding: 0;
}

.slot-machine-container:hover .slot-machine-track {
  animation-play-state: paused;
}

@keyframes scrollSlotMachine {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.slot-machine-track .cert-name {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 45px;
}

/* ==============================================================
   SECTION 5.5: PROJECT SHOWCASE CAROUSEL
   ============================================================== */
.projects-carousel-section {
  position: relative;
  padding: 2rem 0 6rem;
  background-color: #354027;
  overflow: hidden;
}

.projects-carousel-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 3.5rem;
  position: relative;
}

.projects-carousel-shell {
  position: relative;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.projects-carousel-stage {
  --carousel-step: clamp(210px, 25vw, 340px);
  position: relative;
  min-height: clamp(460px, 54vw, 640px);
  padding: 0 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.projects-carousel-viewport,
.projects-carousel-control,
.projects-carousel-footer {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-carousel-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(360px, 46vw, 540px);
  touch-action: pan-y;
}

.projects-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.projects-carousel-section.is-revealed .projects-carousel-viewport {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.5s;
}

.projects-carousel-section.is-revealed .projects-carousel-control {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.7s;
}

.projects-carousel-section.is-revealed .projects-carousel-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.85s;
}

.projects-split-reveal {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.projects-split-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: #354027;
  transition:
    transform 2.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease;
}

.projects-split-panel-left {
  left: 0;
  border-right: 1px solid rgba(240, 225, 0, 0.22);
}

.projects-split-panel-right {
  right: 0;
  border-left: 1px solid rgba(240, 225, 0, 0.22);
}

.projects-split-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  height: clamp(280px, 54vw, 520px);
  width: auto;
  transform: translate(-50%, -50%);
  filter: saturate(0.84) contrast(1.05);
  opacity: 0.95;
}

.projects-carousel-section.is-revealed .projects-split-panel-left {
  transform: translateX(-106%);
  opacity: 0;
}

.projects-carousel-section.is-revealed .projects-split-panel-right {
  transform: translateX(106%);
  opacity: 0;
}

.project-slide {
  --offset: 0;
  --card-scale: 1;
  --card-opacity: 1;
  --image-softness: 0px;
  --card-z: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62vw, 720px);
  height: clamp(300px, 36vw, 470px);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * var(--carousel-step)))
    scale(var(--card-scale));
  transform-origin: center center;
  opacity: var(--card-opacity);
  z-index: var(--card-z);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
  will-change: transform, opacity;
  cursor: pointer;
}

.project-slide::before,
.project-slide::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.project-slide::before {
  top: -22px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 44px);
  background:
    linear-gradient(var(--yellow), var(--yellow)) left top / 100% 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) left top / 2px 100% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) right top / 2px 100% no-repeat;
  opacity: 0.96;
}

.project-slide::after {
  left: -42px;
  bottom: -22px;
  width: calc(100% + 84px);
  height: 2px;
  background: var(--yellow);
  opacity: 0.96;
}

.project-slide[data-state="hidden"] {
  opacity: 0;
  pointer-events: none;
}

.project-slide-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  border: 2px solid #f0e100;
  background: rgba(53, 64, 39, 0.16);
  box-shadow:
    0 18px 42px rgba(8, 10, 6, 0.42);
}

.project-slide-frame::before,
.project-slide-frame::after {
  content: '';
  position: absolute;
  inset: 0;
}

.project-slide-frame::before {
  background-image: var(--project-art);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(26px) saturate(1.08);
  opacity: 0.92;
}

.project-slide-frame::after {
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.04) 0%, rgba(12, 12, 12, 0.24) 100%);
  z-index: 1;
}

.project-slide-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
  filter: blur(var(--image-softness));
  transition:
    transform 0.65s ease,
    filter 0.65s ease;
}

.project-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.95rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(32, 28, 68, 0.04) 0%, rgba(32, 28, 68, 0.28) 46%, rgba(32, 28, 68, 0.92) 100%);
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.project-slide-overlay h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  color: var(--yellow);
  text-wrap: balance;
}

.project-slide-overlay ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.project-slide-overlay li {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 1.45vw, 1.12rem);
  line-height: 1.45;
  color: rgba(244, 237, 221, 0.98);
}

.project-slide-overlay li::marker {
  color: var(--yellow);
}

.project-slide:hover .project-slide-overlay,
.project-slide:focus-visible .project-slide-overlay,
.project-slide:focus-within .project-slide-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-slide:hover .project-slide-image,
.project-slide:focus-visible .project-slide-image,
.project-slide:focus-within .project-slide-image {
  transform: scale(1.03);
  filter: blur(0px);
}

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

.project-slide:focus-visible .project-slide-frame {
  box-shadow:
    0 0 0 2px rgba(240, 225, 0, 0.9),
    0 18px 42px rgba(8, 10, 6, 0.42);
}

.projects-carousel-control {
  position: absolute;
  bottom: 0.4rem;
  z-index: 5;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(32, 28, 68, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--dark-navy);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(32, 28, 68, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.projects-carousel-control:hover,
.projects-carousel-control:focus-visible {
  background: rgba(240, 225, 0, 0.82);
  border-color: rgba(32, 28, 68, 0.42);
  transform: translateY(-2px);
}

.projects-carousel-control:focus-visible {
  outline: none;
}

.projects-carousel-control-prev {
  left: 0.5rem;
}

.projects-carousel-control-next {
  right: 0.5rem;
}

.projects-carousel-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 0.25rem;
}

.projects-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.projects-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 225, 0, 0.68);
  background: rgba(240, 225, 0, 0.16);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.projects-carousel-dot.is-active {
  transform: scale(1.28);
  background: var(--yellow);
  border-color: var(--yellow);
}

.projects-carousel-dot:focus-visible {
  outline: 2px solid rgba(240, 225, 0, 0.8);
  outline-offset: 3px;
}


/* ==============================================================
   SECTION 6: FRAMEWORKS & TECH STACK
   ============================================================== */
.cert-heading {
  animation: zoomText 6s ease-in-out infinite alternate;
  transform-origin: center;
  margin-bottom: 4rem;
}

@keyframes zoomText {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.techstack-section {
  background-color: var(--cream);
  padding-bottom: 6rem;
}

.techstack-header-banner {
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); /* Prism wipe start */
  transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.techstack-header-banner.reveal {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.techstack-title {
  margin-bottom: 0;
  text-align: center;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.techstack-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.techstack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 4rem; /* Increased gap for better clash visual */
  perspective: 1000px;
}

.tech-card {
  padding: 2.5rem;
  border-radius: 4px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  will-change: transform, opacity;
}

.green-card {
  background-color: var(--dark-green);
}

.navy-card {
  background-color: var(--dark-navy);
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.tech-icon {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
}

.tech-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.6;
}

/* ==============================================================
   SECTION 7: PROUD MEMBER & VOLUNTEER
   ============================================================== */
.membership-section {
  background-color: var(--cream);
  padding: 8rem 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.membership-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  padding: 3rem 6rem;
  text-align: center;
}

.corner-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: auto;
  opacity: 0;
}

.corner-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: auto;
  opacity: 0;
}

.membership-container.animate .corner-left {
  animation: splitLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.membership-container.animate .corner-right {
  animation: splitRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes splitLeft {
  0% { transform: translate(30vw, -10vw); opacity: 0; }
  10% { opacity: 1; transform: translate(30vw, -10vw); }
  100% { transform: translate(0, 0); opacity: 1; }
}

@keyframes splitRight {
  0% { transform: translate(-30vw, 10vw); opacity: 0; }
  10% { opacity: 1; transform: translate(-30vw, 10vw); }
  100% { transform: translate(0, 0); opacity: 1; }
}

.membership-content-wrapper {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
  position: relative;
  z-index: 2;
}

.membership-container.animate .membership-content-wrapper {
  opacity: 1;
  transform: scale(1);
}

.membership-heading {
  font-family: var(--font-display);
  font-size: 3.8rem;
  color: var(--dark-navy);
  margin-bottom: 3.5rem;
  font-weight: 700;
  letter-spacing: 0px;
}

.membership-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.member-logo {
  object-fit: contain;
}

.aap-logo { max-height: 85px; }
.haribon-logo { max-height: 130px; }
.akbayan-logo { max-height: 95px; }

/* ==============================================================
   SECTION 8: TESTIMONIALS
   ============================================================== */
.testimonials-section {
  background-color: var(--dark-green);
  position: relative;
  overflow: hidden;
}

.grain-overlay {
  position: absolute;
  top: -150px;
  left: -150px;
  width: calc(100% + 300px);
  height: calc(100% + 300px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.12; /* Increased from 0.04 */
  mix-blend-mode: soft-light; /* Soft light works better for texture on dark greens */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  animation: grainJitter 0.5s steps(8) infinite; /* Faster jitter */
}

@keyframes grainJitter {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 5%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

.testimonials-container {
  display: flex;
  min-height: 500px;
  position: relative;
  z-index: 2;
}

.testimonials-image-bar {
  flex: 0 0 140px;
  background-image: url('assets/images/testimonials-header-background.png');
  background-size: cover;
  background-position: center left;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.testimonials-heading {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--yellow);
  transform: rotate(-90deg);
  letter-spacing: 4px;
  margin: 0;
  white-space: nowrap;
}

.testimonials-content {
  flex: 1;
  padding: 4rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.testimonials-col {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.testimonial-card {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  position: relative;
  z-index: 0;
  transform: translateZ(0) scale(1);
  transform-origin: center center;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s ease,
    box-shadow 0.28s ease;
  will-change: transform;
}

.testimonial-card:hover,
.testimonial-card:focus-within {
  transform: scale(1.055) translateY(-4px);
  background-color: rgba(45, 62, 33, 0.92);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(244, 237, 221, 0.08);
  z-index: 3;
}

@media (hover: none), (pointer: coarse) {
  .testimonial-card:hover,
  .testimonial-card:focus-within {
    transform: none;
    box-shadow: none;
    background-color: transparent;
  }
}

.testimonial-text {
  margin: 0;
  line-height: 1.5;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--yellow);
}

.testimonial-author {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 700;
}

/* ==============================================================
   CUSTOM GLASSMORPHISM CURSOR
   ============================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%); /* Center the cursor on the mouse */
  mix-blend-mode: normal;
  will-change: transform, width, height;
  opacity: 0; /* Hidden initially until first movement */
  transition: opacity 0.3s ease;
}

.cursor-glass {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(244, 237, 221, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 237, 221, 0.3);
  position: relative;
  overflow: hidden;
  transition: backdrop-filter 0.3s ease;
}

/* Cursor Noise Grain (Magnifying Glass for texture) */
.cursor-glass::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Hide default cursor on interactive devices */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, [role="button"] {
    cursor: none !important;
  }
}

/* Ensure content stays below cursor but buttons are still interactive */
a, button {
  position: relative;
  z-index: 10;
}
.footer-section {
  background-color: var(--dark-navy);
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 5rem 4rem 0 4rem;
  position: relative;
  min-height: 500px;
}

.footer-bg-grains {
  position: absolute;
  left: -200px;
  bottom: -200px;
  height: 80%;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.footer-corner {
  position: absolute;
  top: 3.5rem;
  left: 4.5rem;
  width: 90px;
  z-index: 5;
  will-change: transform;
}

.footer-content-left {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 5rem;
  padding-left: 6rem;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 0.2rem 0;
  letter-spacing: 1px;
}

.footer-titles {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin: 0 0 1.5rem 0;
  letter-spacing: 1px;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(228, 221, 205, 0.4); 
  width: min(85%, 550px);
  margin: 0 0 1.5rem 0;
}

.footer-connect {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin: 0 0 0.8rem 0;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-linkedin-btn {
  height: 38px;
  width: auto;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: block;
}

.footer-linkedin-btn:hover {
  transform: scale(1.05);
}

.footer-email {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--yellow);
  font-weight: 700;
}

.footer-content-right {
  position: relative;
  z-index: 2;
  flex: 0 0 500px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.footer-loop-bg {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

.footer-portrait {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin-bottom: 0px;
  position: relative;
  z-index: 2;
}

.footer-bottom-strip {
  background-color: var(--dark-green);
  padding: 1.25rem 0;
  text-align: center;
  position: relative;
  z-index: 3;
}

.footer-bottom-strip p {
  font-family: var(--font-body);
  color: var(--cream);
  font-size: 1.1rem;
  margin: 0;
}

/* ==============================================================
   ANIMATIONS
   ============================================================== */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Counter animation placeholder */
.stat-value {
  transition: color 0.3s ease;
}

.stat-item:hover .stat-value {
  color: var(--white);
}

/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-illustration {
    width: 320px;
  }

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

  .techstack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .cert-heading {
    font-size: 2.2rem;
  }

  .projects-carousel-container {
    padding: 0 2rem;
  }

  .projects-carousel-stage {
    --carousel-step: clamp(150px, 24vw, 230px);
    min-height: 520px;
  }

  .project-slide {
    width: min(74vw, 620px);
    height: clamp(290px, 42vw, 420px);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1.5rem;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .hero-content {
    padding: 3rem 1.5rem 2rem;
  }

  .hero-text-row {
    flex-direction: column;
    text-align: center;
  }

  .hero-text-left,
  .hero-text-right {
    text-align: center;
    padding-top: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .hero-illustration {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 260px;
    margin: 1rem auto;
  }

  .hero-subtext {
    text-align: center;
    max-width: 100%;
    font-size: 0.8rem;
  }

  .hero-certified {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .hero-corner-element {
    width: 80px;
    top: 1rem;
    right: 1rem;
  }

  .intro-name,
  .section-heading,
  .section-heading-light,
  .section-heading-cream,
  .section-heading-yellow,
  .membership-heading,
  .footer-heading,
  .experience-heading {
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .stats-section,
  .pillars-section,
  .techstack-content,
  .membership-section,
  .testimonials-content,
  .footer-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .stats-outer-container {
    padding: 3rem 1.5rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .stat-item {
    align-items: center;
  }

  .stat-number {
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .stats-circles-bg {
    width: 100%;
    max-width: 520px;
  }

  .pillars-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .pillar-column {
    width: 100%;
  }

  .cert-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-heading {
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .projects-carousel-section {
    padding: 1.5rem 0 4.5rem;
  }

  .projects-carousel-container {
    padding: 0 1.5rem;
  }

  .projects-carousel-shell {
    padding: 0;
    border-radius: 0;
  }

  .projects-carousel-stage {
    --carousel-step: clamp(110px, 28vw, 145px);
    min-height: 420px;
    padding-bottom: 4.5rem;
  }

  .projects-carousel-viewport {
    height: 320px;
  }

  .projects-split-illustration {
    height: clamp(220px, 72vw, 380px);
  }

  .project-slide {
    width: min(82vw, 380px);
    height: 280px;
  }

  .project-slide::before {
    top: -16px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 32px);
  }

  .project-slide::after {
    left: -28px;
    bottom: -16px;
    width: calc(100% + 56px);
  }

  .project-slide[data-state="adjacent"] {
    opacity: 0.42;
  }

  .project-slide-overlay {
    padding: 1rem;
    gap: 0.7rem;
  }

  .project-slide-overlay h3 {
    font-size: 1.55rem;
  }

  .project-slide-overlay li {
    font-size: 0.88rem;
  }

  .projects-carousel-control {
    width: 50px;
    height: 50px;
    bottom: 0.4rem;
  }

  .projects-carousel-control-prev {
    left: calc(50% - 64px);
  }

  .projects-carousel-control-next {
    right: auto;
    left: calc(50% + 14px);
  }

  .projects-carousel-footer {
    justify-content: center;
  }

  .projects-carousel-dots {
    justify-content: center;
  }

  .intro-main,
  .techstack-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .intro-main {
    gap: 1.5rem;
  }

  .endorsements-heading {
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.02;
    margin-bottom: 1.25rem;
  }

  .endorsement-list {
    gap: 1rem;
  }

  .endorsement-quote {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .endorsement-author {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .intro-illustration-box,
  .orrery-img,
  .footer-content-right,
  .footer-loop-bg,
  .footer-portrait {
    width: 100%;
    max-width: 100%;
  }

  .intro-illustration-box {
    margin: 0 auto;
  }

  .footer-content-right {
    flex: 0 0 auto;
    justify-content: center;
  }

  .footer-loop-bg {
    width: min(100%, 420px);
  }

  .footer-portrait {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .custom-cursor {
    display: none !important;
  }

  .testimonials-container {
    display: block;
    min-height: auto;
  }

  .testimonials-image-bar {
    display: none;
  }

  .testimonials-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .testimonials-col {
    gap: 2rem;
  }

  .testimonial-quote,
  .testimonial-author {
    font-size: 1rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    padding-top: 3rem;
  }

  .footer-content-left {
    padding-left: 0;
    align-items: center;
  }

  .footer-corner {
    width: 60px;
    left: 1rem;
    top: 1rem;
  }

  .about-name {
    font-size: 2rem;
  }

  .pillar-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .cert-logos-grid {
    grid-template-columns: 1fr;
  }

  .membership-logos {
    flex-direction: column;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
  }

  .testimonials-yellow-bar {
    writing-mode: horizontal-tb;
    padding: 1rem;
  }

  .testimonials-heading {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.5rem;
  }

  .footer-heading {
    font-size: 2.5rem;
  }

  .footer-email {
    font-size: 1.2rem;
  }

  .projects-carousel-container {
    padding: 0 1rem;
  }

  .projects-carousel-stage {
    --carousel-step: 92px;
    min-height: 390px;
  }

  .projects-carousel-viewport {
    height: 280px;
  }

  .project-slide {
    width: min(84vw, 330px);
    height: 245px;
  }

  .project-slide::before {
    top: -13px;
    left: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 26px);
  }

  .project-slide::after {
    left: -20px;
    bottom: -13px;
    width: calc(100% + 40px);
  }

  .project-slide-overlay h3 {
    font-size: 1.3rem;
  }

  .project-slide-overlay li {
    font-size: 0.8rem;
  }

}

@media (hover: none), (pointer: coarse) {
  .project-slide.is-active .project-slide-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================================
   SECTION 7.5: WORK EXPERIENCE MARQUEE
   ============================================================== */
.experience-section {
  padding: 6rem 0 0 0;
  background-color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.experience-heading {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: #201c44;
  margin-bottom: 4rem;
  letter-spacing: 0px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  height: 200px; /* Increased slightly for more breathing room */
  background-color: #201c44;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Wipe Layer (Sculpture Background) */
.marquee-wipe-layer {
  position: absolute;
  top: -2px; /* Slight over-padding to prevent pixel gaps */
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: 10;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  transition: clip-path 4s cubic-bezier(0.77, 0, 0.175, 1);
  background-color: #201c44; /* Fallback to hide logos if image fails */
}

.marquee-wipe-layer.animate-wipe {
  clip-path: inset(0 100% 0 0);
}

.marquee-sculpture-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
  transform-origin: center top;
  /* Darken the image a bit to match the aesthetic */
  filter: brightness(0.8) contrast(1.1);
}

/* Content Layer (Rolling Logos) */
.marquee-content-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: driftRight 40s linear infinite;
}

/* Drifting to the right: move from -50% to 0 */
@keyframes driftRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 12rem; /* Increased gap to prevent overlapping */
  padding-right: 12rem;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  white-space: nowrap; /* Prevent internal wrapping */
}

.experience-year {
  font-family: var(--font-body);
  font-size: 1.6rem; /* Slightly larger */
  font-weight: 300;
  color: var(--cream);
  text-transform: uppercase;
  /* Rotate to read bottom-up */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.8;
  letter-spacing: 2px;
  min-width: 40px;
}

.experience-divider {
  width: 1px;
  height: 80px;
  background-color: rgba(228, 221, 205, 0.3);
}

.experience-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.experience-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(90%) sepia(11%) saturate(339%) hue-rotate(358deg) brightness(95%) contrast(91%);
  opacity: 0.9;
}

.experience-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.experience-text span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: #e4ddcd;
  line-height: 1.4;
  letter-spacing: 0.5px;
  opacity: 0.8;
  display: block; /* Ensure they stay stacked */
}

/* Specific logos that might need better visibility or color */
.experience-logo[alt="Shopify"] {
  height: 35px;
}

.experience-logo[alt="Vault Outsourcing"] {
  height: 32px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .experience-heading {
    font-size: 2.8rem;
  }
  .marquee-wrapper {
    height: 160px;
  }
  .experience-year {
    font-size: 1.2rem;
  }
  .experience-logo {
    height: 35px;
  }
}

@media (max-width: 768px) {
  .experience-heading {
    font-size: 2rem;
    padding: 0 1rem;
  }
  .marquee-group {
    gap: 4rem;
    padding-right: 4rem;
  }
}

/* ==============================================================
   FIXED NAVIGATION
   ============================================================== */
.top-nav {
  position: fixed;
  top: 2.5rem;
  right: 3.5rem;
  z-index: 9990; /* High z-index, below custom cursor (9999) */
  display: flex;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 0.875rem; /* text-sm */
  text-transform: uppercase;
  letter-spacing: 0.2em;
  pointer-events: auto;
}

.nav-link {
  position: relative;
  color: var(--white);
  text-decoration: none;
  mix-blend-mode: difference;
  transition: all 0.2s ease;
  cursor: none; /* Let custom cursor overtake */
}

/* Chromatic Aberration Hover (CSS Jitter) */
.nav-link:hover {
  animation: chromaticJitter 0.15s linear infinite;
  color: var(--white);
}

@keyframes chromaticJitter {
  0%   { text-shadow:  1px  0px 0 rgba(255,0,0,0.8),  -1px  0px 0 rgba(0,255,255,0.8); }
  25%  { text-shadow: -1px  1px 0 rgba(255,0,0,0.8),   1px -1px 0 rgba(0,255,255,0.8); }
  50%  { text-shadow:  1px -1px 0 rgba(255,0,0,0.8),  -1px  1px 0 rgba(0,255,255,0.8); }
  75%  { text-shadow: -1px  0px 0 rgba(255,0,0,0.8),   1px  1px 0 rgba(0,255,255,0.8); }
  100% { text-shadow:  1px  0px 0 rgba(255,0,0,0.8),  -1px  0px 0 rgba(0,255,255,0.8); }
}

@media (max-width: 768px) {
  .top-nav {
    top: 1.5rem;
    right: 1.5rem;
    gap: 1.25rem;
    font-size: 0.75rem;
  }
}

