/* REFINED THEME */
:root {
  --snow: #fffafa;
  --rosey-bouquet: #d3939d;
  --lotion: #fefdfa;
  --creme-cafe: #fefef4;
  --champagne: #f7e7ce;
  --creamy-strawberry: #fcd2df;
  --glass: rgba(255, 253, 250, 0.85);
  --dark-text: #37383f;
  --champagne-pink: #fbe0e0;
  --contact-bg-start: #f1d6ca;
  --contact-bg-end: #d0afa5;
}

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

body {
  /* 4 sections × 100vh — the scroll space for cross-dissolve */
  height: 500vh;
  background-color: var(--creamy-strawberry);
  font-family: 'Geologica', sans-serif;
  color: var(--rosey-bouquet);
  overflow-x: hidden;
}

/* Hide the scrollbar visually, but keep it functional for wheel/touch */
html::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}

/* MAIN CONTAINER — fixed in viewport with 40px gap all around */
.app-container {
  position: fixed;
  top: 20px;
  bottom: 20px;
  left: 30px;
  width: calc(100% - 60px);
  max-width: 1440px;
  /* Centre on wide screens */
  margin: 0 auto;
  /* Shift to true center when max-width kicks in */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  background-color: var(--snow);
  border-radius: 50px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  /* Allow dots and button to bleed outside the shell */
}

.kalnia {
  font-family: 'Kalnia', serif;
}

/* NAVBAR — absolute at the top of the fixed container */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4.5rem;
  background: rgba(254, 253, 250, 0.15);
  /* More translucent for crystal effect */
  backdrop-filter: blur(25px) saturate(120%);
  -webkit-backdrop-filter: blur(25px) saturate(120%);
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  /* Crystal relief effect */
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.05),
    inset 0 1px 3px rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(211, 147, 157, 0.1);
  /* Smooth corner removal when scrolled past hero */
  transition: border-radius 0.3s ease, background 0.3s ease;
}

/* scrolled state — JS adds this when scroll index > 0 */
.header.scrolled {
  /* Keep rounded corners persistent as requested */
  background: rgba(254, 253, 250, 0.35);
  backdrop-filter: blur(35px);
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  z-index: 6000;
  position: relative;
  transition: opacity 0.3s ease;
}

.logo-container:hover {
  opacity: 0.85;
}

.nav-isotipo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-logotipo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Kalnia', serif;
  font-size: 1.25rem;
  color: var(--rosey-bouquet);
  font-weight: 500;
  transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════════
   SECTION STACK — Cross-Dissolve layout
   ═══════════════════════════════════════════════ */
.section-stack {
  position: absolute;
  top: 0;
  /* Changed from 90px so sections underlap the glass header */
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible;
}

/* Every section is stacked, full-size, hidden by default */
.cs-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: visible;
  /* Allow decorative elements to bleed if needed */
}

/* The current visible section */
.cs-section.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Scroll-progress dots ── */
.scroll-dots {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3000;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rosey-bouquet);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot-btn.active {
  background: var(--rosey-bouquet);
  transform: scale(1.3);
}

/* HERO SECTION */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(254, 253, 250, 0) 0%, var(--snow) 95%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 180px;
  /* Restored balance under the NavBar */
  padding-bottom: 50px;
}

.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 25px;
  opacity: 0.8;
}

.hero-main-logo {
  width: 700px;
  max-width: 80vw;
  aspect-ratio: 981.56 / 287.8;
  position: relative;
  margin-bottom: 60px;
  /* Simulates a light inner shadow/bevel on the transparent typography */
  filter: drop-shadow(-1px -1px 1px rgba(255, 255, 255, 0.7)) drop-shadow(2px 2px 3px rgba(211, 147, 157, 0.25));
}

.hero-main-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-part {
  position: absolute;
}

.logo-part img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-entrance {
  animation: logoFadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.pearl-mask {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
}

.pearl-mask img {
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: cover;
}

.hero-quote-box {
  position: relative;
  max-width: 550px;
  /* Reduced for a more compact 3-line look */
  padding: 40px 20px;
  text-align: center;
  margin: 0 auto;
}

.manifesto-text span {
  display: inline-block;
  /* Changed to inline-block for better flow on unified text */
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.manifesto-text span.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.quote-t {
  font-family: 'Kalnia', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.quote-t::before,
.quote-t::after {
  font-family: 'Kalnia', serif;
  font-size: 4.5rem;
  color: var(--rosey-bouquet);
  opacity: 0.7;
  /* Significant visibility increase */
  position: absolute;
  pointer-events: none;
  line-height: 1;
  /* Initial state for animation */
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Active state triggered by JS observer */
.quote-t.active::before,
.quote-t.active::after {
  opacity: 0.7;
  filter: blur(0);
  transform: translateY(0);
}

.quote-t::before {
  content: '“';
  left: -45px;
  top: -30px;
}

.quote-t::after {
  content: '”';
  right: -45px;
  bottom: -40px;
}

@media (max-width: 900px) {
  .hero-quote-box {
    padding: 20px;
  }

  .quote-t::before {
    left: -10px;
    top: -35px;
  }

  .quote-t::after {
    right: -10px;
    bottom: -50px;
  }

  .quote-t {
    padding: 0 10px;
    font-size: 1rem;
  }
}

/* SECTIONS */
.section {
  padding: 150px 80px 60px 80px;
  /* Adjusted to center content within glass layout */
  border-top: 1px solid rgba(211, 147, 157, 0.05);
}

/* ── Fondos por Sección ── */
#portfolio {
  /* Fondo blanco por defecto limpiado */
}

#sobre-mi {
  /* background para Sobre mí */
}

#contacto {
  /* background para Contacto */
}

/* Portfolio: vertically centered in full-height section */
.portfolio-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 80px 40px 80px;
}

.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 80px 80px;
  /* Perfect vertical centering in glass layout */
  overflow: visible;
  isolation: isolate;
  /* Creates a stacking context: keeps z-index:-1 tag visible over the body but behind the card */
}

.portfolio-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

/* ── Carousel ── */
.carousel-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track-clip {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
  margin: -20px 0;
}

.carousel-track {
  display: flex;
  gap: 28px;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--rosey-bouquet);
  background: transparent;
  color: var(--rosey-bouquet);
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--rosey-bouquet);
  color: white;
}

.proj-card {
  background: white;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease;
  flex: 0 0 calc(33.333% - 20px);
  /* 3 cards visible at once */
  min-width: 0;
}

.proj-card:hover {
  transform: translateY(-8px);
}

.proj-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.proj-info {
  padding: 18px 24px;
}

.p-title {
  font-family: 'Kalnia', serif;
  font-size: 1.5rem;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.p-cat {
  color: var(--rosey-bouquet);
  font-size: 0.9rem;
  font-weight: 500;
}

.p-line {
  width: 30px;
  height: 3px;
  background: var(--rosey-bouquet);
  margin-top: 12px;
  transition: width 0.4s ease;
}

.proj-card:hover .p-line {
  width: 100px;
}

/* REBOOT ABOUT WRAP */
.about-wrap {
  margin: 80px;
  background: var(--lotion);
  border-radius: 50px;
  padding: 60px;
  display: flex;
  gap: 80px;
  align-items: center;
}

.about-visual {
  width: 450px;
  height: 600px;
  position: relative;
  flex-shrink: 0;
}

.p-bg {
  position: absolute;
  inset: 0;
  background: var(--rosey-bouquet);
  border-radius: 40px;
  transform: rotate(5deg);
  opacity: 0.8;
}

.p-img-box {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  overflow: hidden;
}

.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-wrap {
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 460px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.c-left {
  background: var(--lotion);
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.c-right {
  background: linear-gradient(180deg, #F1D6CA, #D0AFA5);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .header {
    padding: 0 2rem;
    border-radius: 0;
  }

  .about-wrap {
    flex-direction: column;
    text-align: center;
    margin: 40px;
    padding: 40px;
  }

  .about-visual {
    width: 100%;
    max-width: 400px;
  }

  .section {
    padding: 80px 40px;
  }

  body {
    padding: 0;
  }
}

/* ================================================
   ABOUT / CONOCE A MELODY SECTION
   ================================================ */

/* ABOUT SECTION — note: position is inherited from .cs-section (position: absolute) */
/* ABOUT SECTION is defined above in the sections block */

/* Wide pink pill bar in the background */
.about-bg-bar {
  position: absolute;
  left: 0;
  top: calc(50% + 40px);
  transform: translate(-100%, -50%);
  width: 96%;
  height: 418px;
  background-color: var(--rosey-bouquet);
  border-top-right-radius: 200px;
  border-bottom-right-radius: 200px;
  z-index: 0;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.cs-section.active .about-bg-bar {
  transform: translate(0, -50%) scaleX(1);
}


/* White card that sits on top of the bar */
.about-card {
  position: relative;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 80px;
  background: var(--lotion);
  width: 86%;
  max-width: 960px;
  border-radius: 50px;
  padding: 35px 45px;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.1);

  /* Animation */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease;
}


/* ---------- Photo column ---------- */
.about-photo-col {
  position: relative;
  z-index: 1;
  /* Keep above blobs */
  width: 340px;
  height: 440px;
  flex-shrink: 0;
}

/* Tilted pink rectangle behind the photo */
.photo-tilt-bg {
  position: absolute;
  width: 340px;
  height: 440px;
  background: var(--rosey-bouquet);
  border-radius: 30px;
  transform: rotate(5.65deg);
  top: 0;
  left: 18px;
  box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Photo frame */
.photo-frame {
  position: absolute;
  width: 340px;
  height: 440px;
  left: 0;
  top: 15px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-frame img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: top;
}

/* Gradient overlay over photo */
.photo-gradient {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  /* Matches photo-frame radius precisely */
  background: linear-gradient(to bottom,
      rgba(211, 147, 157, 0) 0%,
      rgba(211, 147, 157, 0) 25%,
      var(--rosey-bouquet) 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.photo-quote-container {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 20;
}

.about-photo-quote {
  color: var(--snow);
  font-family: 'Kalnia', serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  position: relative;
  display: inline-block;
  z-index: 10;
}


/* ---------- Text column ---------- */
.about-text-col {
  flex: 1;
  position: relative;
  z-index: 1;
  /* Keep above blobs */
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--rosey-bouquet);
}

.about-heading {
  font-size: 2.2rem;
  line-height: 1.1;
}

.about-body {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Morphing Abstract Decorators (Blobs) ---------- */
.morph-blob {
  position: absolute;
  background: var(--rosey-bouquet);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  animation: morph 8s ease-in-out infinite both alternate,
    moveAround 20s linear infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: 10%;
}

.blob-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: 20%;
  animation-duration: 12s, 30s;
  opacity: 0.08;
}

.blob-3 {
  width: 350px;
  height: 350px;
  top: 30%;
  left: 40%;
  animation-duration: 15s, 40s;
  opacity: 0.05;
}

.blob-4 {
  width: 280px;
  height: 280px;
  bottom: -50px;
  left: -20px;
  animation-duration: 14s, 35s;
  animation-delay: 2s;
  opacity: 0.12;
}

.blob-5 {
  width: 180px;
  height: 180px;
  top: 20%;
  left: 30%;
  animation-duration: 10s, 25s;
  opacity: 0.15;
}

.blob-6 {
  width: 250px;
  height: 250px;
  top: -80px;
  left: 60%;
  animation-duration: 16s, 38s;
  animation-delay: 1s;
  opacity: 0.08;
}

.blob-7 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -50px;
  animation-duration: 20s, 45s;
  opacity: 0.1;
}

.blob-8 {
  width: 260px;
  height: 260px;
  bottom: 50px;
  left: -80px;
  animation-duration: 17s, 35s;
  animation-delay: 3s;
  opacity: 0.08;
}

.blob-9 {
  width: 300px;
  height: 300px;
  bottom: -40px;
  right: 30%;
  animation-duration: 12s, 30s;
  animation-delay: 5s;
  background: var(--champagne-pink);
  opacity: 0.15;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }

  33% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  66% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }

  100% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
}

@keyframes moveAround {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(50px, 100px) rotate(90deg);
  }

  50% {
    transform: translate(150px, 0px) rotate(180deg);
  }

  75% {
    transform: translate(50px, -100px) rotate(270deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* ---------- Photo Hover Interaction ---------- */
.about-photo-col {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-photo-col:hover {
  transform: translateY(-8px);
}

.about-photo-col:hover .photo-tilt-bg {
  transform: rotate(8deg) scale(1.03);
  /* Suave expansión y rotación */
}

.about-photo-col:hover .photo-frame {
  box-shadow: 2px 15px 45px rgba(0, 0, 0, 0.2);
  /* Sombra más pronunciada */
}

.about-photo-col:hover .photo-gradient {
  opacity: 0.75;
  /* Aclara un poco la imagen (light up) */
}


/* ================================================
   CERTIFICACIONES BUTTON
   ================================================ */
.about-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rosey-bouquet);
  color: var(--lotion);
  font-size: 1.05rem;
  padding: 13px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 147, 157, 0.3);
}

.cert-btn:hover {
  background: #c8848e;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 147, 157, 0.45);
}

/* ================================================
   TRAINING / FORMACION MODAL  (new layout)
   ================================================ */

.training-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(252, 210, 223, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
}

.training-modal-backdrop.is-open {
  display: flex;
}

.training-modal-card {
  position: relative;
  background: var(--lotion);
  max-width: 860px;
  width: 100%;
  border-radius: 40px;
  padding: 60px 60px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  box-shadow: 2px 2px 60px rgba(0, 0, 0, 0.12);
  animation: modalPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  margin: auto;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Close button */
.training-modal-close {
  position: absolute;
  top: 28px;
  right: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  line-height: 0;
  transition: transform 0.2s;
}

.training-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Header text block */
.training-modal-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--rosey-bouquet);
}

.training-heading {
  font-size: 2.6rem;
  line-height: 1.1;
}

.training-subheading {
  font-size: 1rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

/* Diploma image container */
.training-diploma-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #f5f0eb;
}

.training-diploma-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Footer: validation link */
.training-modal-footer {
  display: flex;
  justify-content: center;
}

.training-validate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rosey-bouquet);
  color: var(--lotion);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 147, 157, 0.3);
}

.training-validate-btn:hover {
  background: #c8848e;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 147, 157, 0.45);
}

#contacto {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bg-bar {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(50% + 45px);
  transform: translate(100%, -50%);
  width: 96%;
  height: 418px;
  background-color: var(--rosey-bouquet);
  border-radius: 200px 0 0 200px;
}

.cs-section.active .contact-bg-bar {
  transform: translate(0, -50%);
}

/* ================================================
   SERVICES SECTION
   ================================================ */
#servicios {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
}

.services-bg-bar {
  display: none !important;
}

.cs-section.active .services-bg-bar {
  transform: none;
}

.services-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 1180px;
  max-width: 91%;
  height: min(620px, calc(100vh - 180px));
  min-height: 500px;
  background: linear-gradient(180deg, rgba(254, 253, 250, 0.96), rgba(255, 250, 250, 0.92));
  border: 1px solid rgba(211, 147, 157, 0.22);
  border-radius: 50px;
  box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.1);
  padding: 38px 42px 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(5px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-shell::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  z-index: 3;
  height: 54px;
  pointer-events: none;
}

.services-shell::after {
  bottom: 26px;
  background: linear-gradient(0deg, rgba(254, 253, 250, 0.98), rgba(254, 253, 250, 0));
}

.services-section.active .services-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.services-header {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
  gap: 2px 42px;
  align-items: end;
  margin-bottom: 18px;
}

.services-kicker {
  grid-column: 1 / -1;
  color: var(--rosey-bouquet);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  margin-bottom: -4px;
}

.services-title {
  color: var(--rosey-bouquet);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 0.95;
}

.services-intro {
  max-width: 560px;
  color: var(--rosey-bouquet);
  font-size: 0.96rem;
  line-height: 1.55;
}

.services-catalog {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 42px 22px;
  height: auto;
  padding: 18px 12px 120px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: none;
  scrollbar-color: var(--rosey-bouquet) rgba(211, 147, 157, 0.16);
  scrollbar-width: thin;
  cursor: default;
}

.services-catalog.is-dragging {
  cursor: grabbing;
}

.services-catalog::-webkit-scrollbar {
  width: 9px;
}

.services-catalog::-webkit-scrollbar-track {
  background: rgba(211, 147, 157, 0.12);
  border-radius: 999px;
  margin: 18px 0 84px;
}

.services-catalog::-webkit-scrollbar-thumb {
  background: var(--rosey-bouquet);
  border-radius: 999px;
}

.service-card {
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 485px;
  background: var(--lotion);
  border: 1px solid rgba(211, 147, 157, 0.75);
  border-radius: 32px;
  box-shadow: 0 0 15px rgba(211, 147, 157, 0.32);
  padding: 24px 24px 22px;
  color: var(--rosey-bouquet);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    opacity 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(211, 147, 157, 0.28);
}

.service-card.is-state-changing {
  opacity: 0.96;
}

.service-card.is-state-changing .service-content,
.service-card.is-state-changing .service-actions,
.service-card.is-state-changing .service-cta,
.service-card.is-state-changing .service-price {
  animation: serviceStateSoftIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes serviceStateSoftIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.service-card[data-state="open"],
.service-card[data-state="addons"] {
  min-height: 0;
}

.service-card[data-state="addons"] {
  min-height: 0;
}

.service-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 22px;
  padding: 4px 12px;
  background: #ffe3e7;
  border-radius: 30px;
  color: var(--rosey-bouquet);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.service-summary h3 {
  max-width: 100%;
  color: #897d85;
  font-size: clamp(1.62rem, 2.4vw, 2.32rem);
  font-weight: 500;
  line-height: 1.05;
}

.service-summary p {
  color: var(--rosey-bouquet);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.32;
}

.service-separator {
  width: 78%;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(211, 147, 157, 0.55), transparent);
}

.service-content {
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.service-content h4 {
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.service-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.service-content li {
  position: relative;
  padding-left: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(211, 147, 157, 0.18);
  font-size: 0.78rem;
  line-height: 1.22;
}

.service-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe3e7;
  color: var(--rosey-bouquet);
  font-size: 0.72rem;
  font-weight: 700;
}

.service-content-addons li::before {
  content: "+";
}

.service-content-main {
  max-height: 148px;
}

.service-extra,
.service-content-addons {
  display: none;
}

.service-card[data-state="open"] .service-extra {
  display: list-item;
}

.service-card[data-state="open"] .service-content-main {
  max-height: 620px;
}

.service-card[data-state="addons"] .service-content-main {
  display: none;
}

.service-card[data-state="addons"] .service-content-addons {
  display: block;
  max-height: 320px;
}

.service-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 4px;
}

.service-card[data-state="open"] .service-actions,
.service-card[data-state="addons"] .service-actions {
  margin-top: 8px;
}

.service-actions [hidden] {
  display: none;
}

.service-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--rosey-bouquet);
  font-family: 'Geologica', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
  border-bottom: 1px solid rgba(211, 147, 157, 0.45);
}

.service-link:hover {
  color: #c8848e;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(100%, 260px);
  min-height: 34px;
  margin: 6px auto 0;
  padding: 8px 18px;
  background: var(--rosey-bouquet);
  border-radius: 80px;
  color: var(--snow);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card[data-state="open"] .service-cta,
.service-card[data-state="addons"] .service-cta {
  margin-top: 10px;
}

.service-cta:hover {
  background: #c8848e;
  transform: translateY(-3px);
}

.service-price {
  text-align: center;
  color: var(--rosey-bouquet);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .services-shell,
  .services-bg-bar,
  .service-card,
  .service-content,
  .service-cta {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


.contact-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: 1100px;
  max-width: 90%;
  background: var(--lotion);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.1);

  /* Pop-up animation */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease;
}


.contact-left {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 45px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.contact-right {
  position: relative;
  z-index: 1;
  flex: 0 0 540px;
  background: linear-gradient(180deg, var(--contact-bg-start), var(--contact-bg-end));
  padding: 45px 60px;
}

.contact-title {
  font-size: 2.8rem;
  color: var(--rosey-bouquet);
  line-height: 1.2;
  margin-bottom: 25px;
}

.contact-description {
  font-size: 1rem;
  color: var(--rosey-bouquet);
  line-height: 1.6;
}

.contact-social-row {
  display: flex;
  gap: 15px;
}

.social-circle {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease;
}

.social-circle:hover {
  transform: scale(1.1);
}

.social-circle img {
  width: 100%;
  height: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 1.25rem;
  color: var(--creme-cafe);
  font-weight: 500;
}

.input-wrapper {
  background: var(--creme-cafe);
  border: 1px solid var(--champagne);
  border-radius: 100px;
  padding: 8px 25px;
}

.text-wrapper {
  border-radius: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Geologica', sans-serif;
  font-size: 1.1rem;
  color: var(--dark-text);
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-submit-btn {
  background: var(--rosey-bouquet);
  color: var(--creme-cafe);
  font-size: 1.3rem;
  padding: 15px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-submit-btn:hover {
  background: #c8848e;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(211, 147, 157, 0.3);
}

.behance-btn {
  display: inline-block;
  background: var(--rosey-bouquet);
  color: var(--creme-cafe);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 14px 35px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 147, 157, 0.2);
}

.behance-btn:hover {
  background: #c8848e;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(211, 147, 157, 0.3);
}

.contact-site-footer {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--rosey-bouquet);
  font-weight: 500;
  font-size: 14px;
}


/* ================================================
   RESPONSIVE OVERRIDES FOR ABOUT + MODAL
   ================================================ */
@media (max-width: 1200px) {
  .about-section {
    padding: 60px 20px;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .services-shell {
    max-width: 92%;
    height: min(600px, calc(100vh - 170px));
    padding: 34px 28px 28px;
  }

  .services-shell::after {
    left: 28px;
    right: 28px;
  }

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

  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 40px 30px;
    margin: 0 20px;
  }

  .about-photo-col {
    width: 280px;
    height: 360px;
  }

  .photo-tilt-bg {
    width: 280px;
    height: 360px;
  }

  .photo-frame {
    width: 280px;
    height: 360px;
  }

  .photo-quote {
    font-size: 1.1rem;
    top: 280px;
    width: 240px;
  }

  .about-bg-bar {
    display: block;
    height: 380px;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    width: 100%;
    border-radius: 0 150px 150px 0;
  }

  .cs-section.active .about-bg-bar {
    transform: translateY(-50%) translateX(0);
  }

  .contact-bg-bar {
    display: block;
    height: 380px;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    width: 100%;
    border-radius: 150px 0 0 150px;
  }

  .cs-section.active .contact-bg-bar {
    transform: translateY(-50%) translateX(0);
  }

  .training-modal-card {
    padding: 40px 30px;
    gap: 28px;
  }

  .cert-btn {
    align-self: center;
  }
}

/* ================================================
   CAROUSEL JS HELPER — about-section photo size
   ================================================ */
/* Slightly smaller photo column for better breathing */
.about-photo-col {
  width: 300px;
  height: 390px;
}

.photo-tilt-bg {
  width: 300px;
  height: 390px;
}

.photo-frame {
  width: 300px;
  height: 390px;
  top: 14px;
}

.photo-quote {
  top: 305px;
  font-size: 1.05rem;
  width: 265px;
}

/* ================================================
   DA VINCI SQUARE CARD — training modal right col
   ================================================ */
.training-davinci-col {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

/* Pink solid shadow offset behind the card */
.training-davinci-shadow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--rosey-bouquet);
  border-radius: 30px;
  top: 12px;
  left: 12px;
  opacity: 0.65;
}

/* The square image card on top */
.training-davinci-card {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(180deg, rgba(255, 250, 250, 0.96) 0%, rgba(247, 231, 206, 0.92) 100%);
  border-radius: 30px;
  overflow: hidden;
  top: 0;
  left: 0;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.12);
}

.training-davinci-brand {
  width: 100%;
  height: 100%;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  color: #7b5a43;
}

.training-davinci-name {
  font-family: 'Kalnia', serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.training-davinci-divider {
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, rgba(229, 206, 138, 0.25) 0%, #ba9a65 50%, rgba(229, 206, 138, 0.25) 100%);
}

.training-davinci-copy {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(123, 90, 67, 0.88);
}

/* ================================================
   NATIVE RESPONSIVE BREAKPOINTS
   ================================================ */

@media (max-width: 900px) {

  /* Release the scroll hijack and layout restrictions */
  body,
  html {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-container {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Unravel the section stack into a fluid vertical document */
  .section-stack {
    position: static;
    display: flex;
    flex-direction: column;
  }

  .cs-section {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-height: 100vh;
    width: 100%;
    filter: none !important;
    /* Fixed foggy look */
    overflow: hidden !important;
    /* For slide animations */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 15px 40px !important;
    transform: none !important;
  }

  /* Keep the header sticky at the top */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 20px;
    height: 75px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border-bottom: 1px solid rgba(211, 147, 157, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999 !important;
    /* Extremely high to stay on top */
  }

  /* Dots are no longer needed on a scrolling page */
  .scroll-dots {
    display: none;
  }

  .logo-container {
    transform: scale(0.8);
    transform-origin: left center;
    z-index: 6000;
    /* Keep logo above dropdown */
    position: relative;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 6000;
    /* Higher than nav-links */
    position: relative;
  }

  .mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--rosey-bouquet);
    transition: all 0.3s ease;
    border-radius: 10px;
  }

  /* Make sure spans turn white or clearly visible when menu is open on dark glass */
  .mobile-menu-btn.open span {
    background-color: #d3939d;
  }

  .nav-links {
    position: fixed;
    top: 0;
    /* Start from top to include relief under header */
    padding-top: 75px;
    /* Offset for the header height */
    left: 0;
    width: 100%;
    background: rgba(255, 250, 250, 0.65);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding-bottom: 60px;
    border-radius: 0 0 50px 50px;
    /* Rounded bottom corners */

    /* Premium Shadows & Relief */
    box-shadow:
      0 30px 60px rgba(211, 147, 157, 0.15),
      inset 0 1px 3px rgba(255, 255, 255, 0.8),
      inset 0 -1px 3px rgba(211, 147, 157, 0.1);

    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 4900;
  }

  .nav-links.menu-open {
    transform: translateY(0);
    opacity: 1;
  }

  /* Hamburger to X animation */
  .mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  /* 0. HERO */
  .hero-main-logo {
    width: 90vw !important;
    height: auto !important;
    max-width: 450px !important;
    aspect-ratio: 1092 / 313 !important;
    margin: 0 auto 30px !important;
    display: block !important;
  }

  .hero-subtitle {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
  }

  .hero-quote-box {
    width: 95% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .hero-content {
    padding-top: 20px !important;
    /* SIGNIFICANT REDUCTION */
    padding-bottom: 20px !important;
  }

  .section.hero-section {
    justify-content: center !important;
    padding-top: 80px !important;
    /* Space for sticky header */
    padding-bottom: 40px !important;
  }



  .section.cs-section {
    padding: 100px 15px 40px !important;
  }

  .services-section {
    padding: 110px 15px 65px !important;
    min-height: auto !important;
  }

  .services-bg-bar {
    position: absolute;
    top: 50%;
    left: 0 !important;
    width: 96%;
    height: 380px;
    border-radius: 0 400px 400px 0 !important;
    transform: translateY(-50%) translateX(-110%) !important;
  }

  .services-section.active .services-bg-bar {
    transform: translateY(-50%) translateX(0) !important;
  }

  .services-shell {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 30px;
    padding: 28px 16px 24px;
    display: block;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(4px);
  }

  .services-section.active .services-shell {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
  }

  .services-shell::before,
  .services-shell::after {
    display: none;
  }

  .services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    margin-bottom: 14px;
  }

  .services-kicker {
    font-size: 0.68rem;
  }

  .services-title {
    font-size: 2.4rem;
  }

  .services-intro {
    max-width: 92%;
    font-size: 0.88rem;
  }

  .services-catalog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    height: auto;
    max-height: none;
    padding: 10px 4px 22px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .service-card {
    width: 100%;
    min-height: 450px;
    padding: 22px 20px;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card[data-state="open"],
  .service-card[data-state="addons"] {
    min-height: 0;
  }

  .service-summary h3 {
    font-size: 1.65rem;
  }

  .service-content-main {
    max-height: 132px;
  }

  .service-card[data-state="open"] .service-content-main {
    max-height: 620px;
  }



  /* 1. PORTFOLIO */
  /* 1. PORTFOLIO Reveal */
  .portfolio-header,
  .carousel-wrapper,
  .portfolio-footer {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(6px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cs-section.active .hero-main-logo,
  .cs-section.active .hero-subtitle,
  .cs-section.active .portfolio-header,
  .cs-section.active .carousel-wrapper,
  .cs-section.active .portfolio-footer {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
  }





  .cs-section.active .carousel-wrapper {
    transition-delay: 0.1s;
  }

  .cs-section.active .portfolio-footer {
    transition-delay: 0.2s;
  }


  .portfolio-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    gap: 10px !important;
  }

  .carousel-wrapper {
    flex-direction: column !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }

  .carousel-btn {
    display: none !important;
  }

  .carousel-track-clip {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
  }

  .carousel-track-clip::-webkit-scrollbar {
    display: none !important;
  }

  .carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    padding: 40px 10vw 40px !important;
    gap: 15px !important;
    transform: none !important;
    margin: 0 !important;
  }

  .proj-card {
    min-width: 80vw !important;
    max-width: 80vw !important;
    scroll-snap-align: center !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease !important;
    transform-origin: center !important;
    transform: scale(0.92);
    opacity: 0.8;
  }

  .behance-btn {
    width: auto;
    min-width: 240px;
    max-width: 280px;
    margin: 0 auto;
  }

  .portfolio-footer {
    display: flex !important;
    justify-content: center !important;
    padding: 20px 0 60px !important;
    margin-top: 0 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .portfolio-section {
    justify-content: flex-start !important;
    padding-top: 120px !important;
    padding-bottom: 60px !important;
  }



  /* 2. ABOUT */
  .about-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 30px 20px !important;
    height: auto !important;
    gap: 2 !important;
    /* REMOVE GAP */
    align-items: center !important;
    border-radius: 30px;

    /* Elegant Reveal Initial State */
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(4px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .about-section.active .about-card {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
  }




  .about-photo-col {
    margin: 0 auto;
    width: 100%;
    max-width: 280px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-top: 14px;
  }

  .photo-tilt-bg,
  .photo-frame {
    width: 100%;
    max-width: 280px;
    height: 360px;
    left: auto;
  }

  .photo-tilt-bg {
    left: 50%;
    transform: translateX(-50%) rotate(5.65deg);
  }

  .photo-frame {
    position: relative !important;
    top: 0 !important;
  }

  .about-photo-col,
  .photo-tilt-bg,
  .photo-frame,
  .photo-gradient {
    transition: none !important;
  }

  .about-photo-col:hover {
    transform: none !important;
  }

  .about-photo-col:hover .photo-tilt-bg {
    transform: translateX(-50%) rotate(5.65deg) !important;
  }

  .about-photo-col:hover .photo-frame {
    box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.1) !important;
  }

  .about-photo-col:hover .photo-gradient {
    opacity: 1 !important;
  }

  /* Fix BG BAR shapes on mobile */
  /* 2. ABOUT Slide-in Animations */
  .about-bg-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-100%) !important;
    left: 0 !important;
    width: 95% !important;
    height: 380px !important;
    background: var(--rosey-bouquet) !important;
    border-radius: 0 400px 400px 0 !important;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 0 !important;
  }

  /* Force HIDDEN state when NOT active */
  .about-section:not(.active) .about-bg-bar {
    transform: translateY(-50%) translateX(-110%) !important;
  }

  .about-section.active .about-bg-bar {
    transform: translateY(-50%) translateX(0) !important;
  }

  .about-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 30px 20px !important;
    height: auto !important;
    gap: 2 !important;
    align-items: center !important;
    border-radius: 30px;
    z-index: 10 !important;
    position: relative !important;

    /* Default: Hidden to the right */
    opacity: 0 !important;
    transform: translateX(110%) !important;
    filter: blur(4px);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease !important;
  }

  .about-section.active .about-card {
    opacity: 1 !important;
    transform: translateX(0) !important;
    filter: blur(0) !important;
  }



  .contact-bg-bar {
    left: auto !important;
    right: 0 !important;
    border-radius: 400px 0 0 400px !important;
    /* Rounded ONLY on the left */
  }


  .photo-quote-container {
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 20 !important;
  }


  .about-photo-quote {
    font-size: 0.98rem !important;
    color: var(--snow) !important;
    display: block !important;
    width: 100% !important;
    max-width: 400px;
    padding: 0.8rem 1.4rem !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #F1D6CA 0%, #D0AFA5 100%) !important;
    box-shadow: 0 12px 24px rgba(186, 154, 101, 0.22) !important;
    text-shadow: 0 1px 8px rgba(108, 85, 44, 0.28) !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    line-height: 1.35 !important;
  }


  .about-text-col {
    margin-top: 12px !important;
    padding: 0 10px !important;
    text-align: center !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .about-heading {
    margin-top: 0 !important;
    /* REMOVE HEADING MARGIN */
    font-size: 1.8rem !important;
  }

  .cert-btn {
    align-self: center !important;
  }

  /* Modal on mobile */
  .training-modal-card {
    padding: 50px 24px 36px !important;
    border-radius: 30px !important;
    gap: 24px !important;
  }

  .training-heading {
    font-size: 1.8rem !important;
  }

  .training-subheading {
    font-size: 0.9rem !important;
  }

  .training-validate-btn {
    font-size: 0.95rem !important;
    padding: 12px 24px !important;
  }



  /* 3. CONTACT */
  /* 3. CONTACT Slide-in Animations */
  .contact-bg-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(100%) !important;
    right: 0 !important;
    width: 95% !important;
    height: 380px !important;
    background: var(--rosey-bouquet) !important;
    border-radius: 400px 0 0 400px !important;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 0 !important;
  }

  /* Force HIDDEN state when NOT active */
  .contact-section:not(.active) .contact-bg-bar {
    transform: translateY(-50%) translateX(110%) !important;
  }

  .contact-section.active .contact-bg-bar {
    transform: translateY(-50%) translateX(0) !important;
  }

  .contact-card {
    flex-direction: column;
    border-radius: 30px;
    justify-content: center;
    width: 100%;
    margin: 0;
    height: auto;
    position: relative !important;
    z-index: 10 !important;

    /* Default: Hidden to the left */
    opacity: 0 !important;
    transform: translateX(-110%) !important;
    filter: blur(4px);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease !important;
  }

  .contact-section.active .contact-card {
    opacity: 1 !important;
    transform: translateX(0) !important;
    filter: blur(0) !important;
  }





  .contact-left {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
  }

  .contact-social-row {
    justify-content: center;
  }

  .contact-right {
    flex: none;
    width: 100%;
    height: auto;
    padding: 40px 20px;
    border-radius: 0 0 30px 30px;
  }

  .contact-site-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 40px !important;
    padding-bottom: 40px !important;
    width: 100% !important;
    display: block !important;
    justify-content: center !important;
    text-align: center !important;
  }
}
