/* ==========================================================================
   PRELOADER — Jasmine Gunarto Style
   ========================================================================== */

:root {
  --ink:   #141414;
  --cream: #ece8db;
}

/* PRELOADER - Intro Animation */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: #5C4033;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.5s ease;
  overflow: hidden;
  animation: preloaderFadeIn 0.3s ease-out;
}

@keyframes preloaderFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#preloader.done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Block scroll only while intro is active */
body.is-intro {
  overflow: hidden !important;
}

body.is-intro nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Show nav after intro completes - only when not in intro */
body:not(.is-intro) nav {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloaderCount {
  font-family: 'Darleys Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  color: #FFFFFF;
}

.preloader-line {
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  position: relative;
  min-height: 1.2em;
  letter-spacing: 0.15em;
}

.preloader-line .char {
  display: inline-block;
  margin-right: 0.05em;
}

.preloader-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  opacity: 0.3;
}

.preloader-line.typing::after {
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 0.3; }
  51%, 100% { opacity: 0; }
}

/* Line 1: "WELCOME TO MY" - White */
#line1 {
  color: #FFFFFF;
  font-size: 1em;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Line 2: "PORTFOLIO WEBSITE" - Beige */
#line2 {
  color: #f5ede0;
  font-size: 1em;
  text-shadow: 0 0 20px rgba(245, 237, 224, 0.2);
}

/* Typing animation for each character */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: charReveal 0.1s forwards;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #preloader {
    display: none;
  }
}

/* ==========================================================================
   Components — Personal Portfolio
   Buttons, ProjectCard, SkillTag, nav, interactive elements.
   Requirements: 7.2, 7.3, 7.4, 8.1, 10.1, 10.2, 10.3, 11.1, 11.2, 14.2
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons — Pill-shaped
   Requirements: 10.1, 10.2, 10.3
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);   /* always use token, never hardcode */
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--color-brown-800);
  color: var(--color-text-on-dark);
  border-color: var(--color-brown-800);
}

.btn-primary:hover {
  background: var(--color-brown-700);
  border-color: var(--color-brown-700);
}

.btn-secondary {
  background: transparent;
  color: var(--color-brown-800);
  border-color: var(--color-brown-800);
}

.btn-secondary:hover {
  background: var(--color-brown-800);
  color: var(--color-text-on-dark);
}

.btn-small {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
}

/* Focus visible — keyboard navigation indicator (Requirements: 11.1, 11.2) */
.btn:focus-visible {
  outline: 3px solid var(--color-accent-warm);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   ProjectCard
   Requirements: 7.2, 7.3, 7.4
   -------------------------------------------------------------------------- */

.project-card {
  background: var(--color-beige-100);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

/* Keyboard focus indicator for card (Requirements: 11.1, 11.2) */
.project-card:focus-within {
  outline: 3px solid var(--color-accent-warm);
  outline-offset: 2px;
}

.project-card__image,
.project-card__visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background-color: var(--color-beige-200);
}

.project-card__visual {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-beige-200);
}

.project-card__visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
}

.project-card__visual span {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 0.35rem;
  background: rgba(31, 41, 55, 0.12);
}

.project-card__visual span:nth-child(1) {
  left: 18%;
  top: 24%;
  width: 36%;
  height: 10%;
  background: rgba(31, 41, 55, 0.82);
}

.project-card__visual span:nth-child(2) {
  left: 18%;
  top: 43%;
  width: 64%;
  height: 12%;
}

.project-card__visual span:nth-child(3) {
  left: 18%;
  top: 64%;
  width: 48%;
  height: 12%;
}

.project-card__visual--alpha {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(244, 114, 182, 0.24)),
    var(--color-beige-200);
}

.project-card__visual--beta {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(20, 184, 166, 0.22)),
    var(--color-beige-200);
}

.project-card__visual--gamma {
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.28), rgba(20, 184, 166, 0.18)),
    var(--color-beige-200);
}

.project-card__visual--beta span:nth-child(2) {
  height: 28%;
  background:
    linear-gradient(to top, rgba(20, 184, 166, 0.8) 0 38%, transparent 38% 100%),
    linear-gradient(to right, rgba(31, 41, 55, 0.12) 0 18%, transparent 18% 28%, rgba(31, 41, 55, 0.12) 28% 46%, transparent 46% 56%, rgba(31, 41, 55, 0.12) 56% 76%, transparent 76% 100%);
}

.project-card__visual--gamma span:nth-child(2),
.project-card__visual--gamma span:nth-child(3) {
  width: 28%;
  height: 26%;
}

.project-card__visual--gamma span:nth-child(3) {
  left: 54%;
  top: 43%;
}

.project-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: var(--weight-bold);
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.project-card__desc {
  color: var(--color-text-secondary);
  font-size: var(--size-body);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.project-card__links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Tags — Base .tag and .skill-tag variants
   Requirements: 8.1
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);   /* always use token */
  background: var(--color-beige-200);
  color: var(--color-text-secondary);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  line-height: 1;
}

/* SkillTag — slightly larger padding than .tag */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);   /* always use token */
  background: var(--color-beige-200);
  color: var(--color-text-secondary);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  line-height: 1;
  transition: background-color var(--transition-fast),
              color var(--transition-fast);
}

/* SkillTag category variants */
.skill-tag[data-category="frontend"] {
  background: var(--color-accent-light);
  color: var(--color-brown-800);
}

.skill-tag[data-category="backend"] {
  background: var(--color-beige-300);
  color: var(--color-brown-800);
}

.skill-tag[data-category="tool"] {
  background: var(--color-beige-200);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Hero Section Components - FIXED
   -------------------------------------------------------------------------- */

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  margin-bottom: 0;
  width: 100%;
  overflow: visible;
}

.hero-name-container {
  width: 100%;
  overflow: visible;
  padding: 0 1rem;
}

.hero-name {
  font-family: 'Impact', 'Anton', 'Arial Black', sans-serif;
  font-size: clamp(3.5rem, 7vw, 8rem) !important;
  font-weight: 900;
  line-height: 0.95;
  color: #000000;
  margin: 0;
  padding: 0;
  width: auto;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: heroNameReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
  font-stretch: condensed;
}

@media (max-width: 1200px) {
  .hero-name {
    font-size: clamp(3rem, 6vw, 6.5rem) !important;
  }
}

@media (max-width: 768px) {
  .hero-name {
    font-size: clamp(2.5rem, 5.5vw, 5rem) !important;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    letter-spacing: -0.01em;
  }
}

@keyframes heroNameReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Side words - start at edges */
.hero-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  position: relative;
  margin-top: clamp(40px, 8vh, 90px);
  min-height: clamp(120px, 20vw, 220px);
}

.side-word {
  font-family: 'Darleys Sans', sans-serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: #3d2b1f;
  white-space: nowrap;
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-middle {
    min-height: 6rem;
    margin-top: 3rem;
  }
}

/* OLD hero styles removed - using new styles above */

.hero-title-line {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  color: var(--color-text-secondary);
  min-height: 2.5rem; /* Prevent layout shift during typing animation */
  display: flex;
  align-items: center;
}

/* Blinking cursor for typing effect */
.hero-cursor {
  display: inline-block;
  animation: blink 1s step-start infinite;
  margin-left: 2px;
  line-height: 1;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Background decorative blob — parallax target, visually inert */
.hero-bg-decoration {
  position: absolute;
  top: -10%;
  right: -15%;
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-light), var(--color-beige-200));
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  will-change: transform; /* hint to compositor during parallax */
}

/* --------------------------------------------------------------------------
   About Section Components
   -------------------------------------------------------------------------- */

/* New 2-column layout */
.about-card-new {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .about-card-new {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Left: Image placeholder */
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-beige-200);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::after {
  content: 'Ảnh';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-text-secondary);
  font-size: var(--size-sm);
  opacity: 0.5;
}

/* Right: Content */
.about-content-new {
  padding-top: var(--space-md);
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.about-intro {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  line-height: 1.3;
}

.about-bio-new {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Old about section - hide */
.about-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-beige-200);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-highlights {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Each highlight rendered as a pill badge (reuse .tag styles) */
.about-highlights li {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-beige-200);
  color: var(--color-text-secondary);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
}

/* --------------------------------------------------------------------------
   Section Headings
   -------------------------------------------------------------------------- */

section h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--color-text-primary);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-2xl);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Intro Overlay — Luxury Minimalist
/* ==========================================================================
   PRELOADER — Jasmine Gunarto Style
   ========================================================================== */

:root {
  --ink:   #141414;
  --cream: #ece8db;
}

@keyframes sparkle-bloom {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0); }
  30%  { opacity: 0.7;  transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 0.5;  transform: translate(var(--sx), var(--sy)) scale(0.8); }
  100% { opacity: 0;    transform: translate(var(--sx), var(--sy)) scale(0); }
}

/* --------------------------------------------------------------------------
   Blink keyframe (used by .hero-cursor)
   -------------------------------------------------------------------------- */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --------------------------------------------------------------------------
   About Section — Avatar initials
   -------------------------------------------------------------------------- */

.about-body {
  flex: 1;
  min-width: 200px;
}

.about-bio {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.about-avatar-initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  user-select: none;
}

/* --------------------------------------------------------------------------
   Work Experience — Horizontal Timeline
   -------------------------------------------------------------------------- */

.exp-edu-section {
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.exp-section-title {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.8rem;
  color: #6B4226;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2xl);
  text-align: left;
}

/* Timeline Wrapper */
.timeline-wrapper {
  position: relative;
  width: 100%;
  padding: var(--space-3xl) 0;
  padding-top: 4rem;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 4rem;
}

/* Timeline line - horizontal line connecting dots using ::before */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #6B4226;
  z-index: 0;
}

/* Timeline line div - hide it, we use ::before instead */
.timeline-line {
  display: none;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  z-index: 1;
}

/* Timeline Dot */
.timeline-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6B4226;
  border: 4px solid #6B4226;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px #FFFFFF;
  margin-bottom: 1.5rem;
}

/* Timeline Content (below dot) */
.timeline-content {
  text-align: left;
  max-width: 250px;
}

/* Timeline Title */
.timeline-title {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: var(--weight-bold);
  color: #000;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
}

/* Timeline Period */
.timeline-period {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: var(--weight-bold);
  color: #000;
  line-height: 1.4;
  margin: 0;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    gap: var(--space-3xl);
    padding: 0 1rem;
  }
  
  .timeline-container::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
  }
  
  .timeline-content-top {
    min-height: auto;
    margin-bottom: 1rem;
  }
  
  .timeline-content-bottom {
    margin-top: 1rem;
  }
}
  
  .timeline-item {
    max-width: 100%;
    align-items: flex-start !important;
  }
  
  .timeline-content {
    text-align: left !important;
  }
}

/* --------------------------------------------------------------------------
   Education Section
   -------------------------------------------------------------------------- */

.education-wrapper {
  margin-top: var(--space-4xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-beige-200);
}

.education-content {
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.education-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.edu-degree {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem) !important;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.edu-info {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem) !important;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: var(--space-xs) 0;
}

/* --------------------------------------------------------------------------
   Education & Personal Skills Section
   -------------------------------------------------------------------------- */

.education-skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .education-skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

.education-skills-col-title {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  text-align: left;
}

/* Education column */
.education-item {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-beige-200);
  /* Start hidden for entrance animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.education-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.education-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.education-period {
  display: inline-block;
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: var(--weight-medium);
  color: var(--color-accent-warm);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.education-title {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.education-school {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-sm);
}

.education-cert {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.education-cert:last-child {
  margin-bottom: 0;
}

.education-detail {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.education-desc {
  font-family: 'Darleys Sans', sans-serif;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 1.2rem;
}

/* Personal Skills column */
.personal-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.personal-skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-light);
  color: var(--color-brown-800);
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  line-height: 1;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              opacity 0.6s ease,
              transform 0.6s ease;
  /* Start hidden for entrance animation */
  opacity: 0;
  transform: translateY(10px);
}

.personal-skill-tag.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.personal-skill-tag:hover {
  background: var(--color-brown-800);
  color: var(--color-text-on-dark);
}

/* --------------------------------------------------------------------------
   Contact Section
   Requirements: 11.3, 13.3
   -------------------------------------------------------------------------- */

.contact-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: var(--size-h3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
}

.contact-info-item span {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  background: var(--color-accent-light);
  color: var(--color-brown-800);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.contact-info-item a {
  color: var(--color-brown-800);
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-info-item a:focus-visible {
  outline: 3px solid var(--color-accent-warm);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.contact-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--color-beige-300);
  background: var(--color-beige-50);
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-primary);
  box-sizing: border-box;
  transition: border-color var(--transition-fast),
              outline var(--transition-fast);
}

.contact-input:focus {
  outline: 3px solid var(--color-accent-warm);
  outline-offset: 2px;
  border-color: var(--color-accent-warm);
}

/* Textarea — large radius (pill doesn't render well on tall elements) */
.contact-textarea {
  border-radius: 1.25rem;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-form-status {
  min-height: 1.5rem;
  color: var(--color-text-secondary);
  font-size: var(--size-sm);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.6rem var(--space-xl);
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-beige-100);
  border: 1.5px solid var(--color-beige-200);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  font-weight: var(--weight-regular);
  cursor: pointer;
  transition: all 200ms ease;
  font-family: 'Darleys Sans', sans-serif;
  padding: 0;
}

.lang-btn:hover {
  color: var(--color-brown-800);
}

.lang-btn.active {
  color: var(--color-brown-900);
  font-weight: var(--weight-bold);
}

.lang-separator {
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  font-family: 'Darleys Sans', sans-serif;
}

/*
 * Nav links group — outer container pill (the white/beige capsule that
 * wraps ALL links, like in the reference screenshot).
 */
.nav-links {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-beige-100);
  border: 1.5px solid var(--color-beige-200);
  border-radius: var(--radius-pill);
  padding: 3px;
}

/*
 * Nav links group — single outer capsule
 * Active = bold + dark. No fill, no underline, no separate pill.
 */
.nav-links {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--color-beige-100);
  border: 1.5px solid var(--color-beige-200);
  border-radius: var(--radius-pill);
  padding: 5px 8px;
}

/* Nav link — default state */
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: var(--weight-regular);
  background: transparent;
  transition: color 200ms ease, background-color 200ms ease;
  white-space: nowrap;
  line-height: 1;
}

/* Hover — subtle tint */
.nav-links a:hover {
  color: var(--color-brown-800);
  background: rgba(61, 43, 31, 0.06);
}

/* Active — bold dark text with background */
.nav-links a.is-active {
  color: #6B4226;
  font-weight: 700;
  background: rgba(139, 111, 84, 0.15);
}

.nav-links a:focus-visible {
  outline: 3px solid var(--color-accent-warm);
  outline-offset: 2px;
  border-radius: var(--radius-pill);
}

@media (max-width: 767px) {
  .nav-inner {
    padding: 0.5rem var(--space-md);
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-links {
    padding: 2px;
    gap: 1px;
  }

  .nav-links a {
    font-size: 0.75rem;
    padding: 0.26rem 0.65rem;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Marquee Section — scroll-driven horizontal drift
   -------------------------------------------------------------------------- */

#marquee-section {
  overflow: hidden;
  padding: 5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--color-beige-50);
}

/* Legacy text marquee (kept for fallback) */
.marquee-row {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  will-change: transform;
  /* JS drives translateX — no CSS animation here */
}

.marquee-tag {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.marquee-sep {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--color-accent-warm);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Image marquee rows - FULL WIDTH */
.marquee-section-images {
  overflow: hidden;
  padding: 4rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--color-beige-50);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.marquee-image-row {
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0;   /* room for scale on hover */
}

/* Track chứa 2x tiles — animation dịch -50% = đúng 1 bộ */
.marquee-img-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation-play-state: running !important;
}

/* Hàng 1: trái — loop distance set by JS (--marquee-loop) or fallback -50% */
.marquee-scroll-left {
  animation: marquee-left 35s linear infinite;
  animation-play-state: running !important;
}

/* Hàng 2: phải */
.marquee-scroll-right {
  animation: marquee-right 35s linear infinite;
  animation-play-state: running !important;
}

@keyframes marquee-left {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--marquee-offset, -50%), 0, 0); }
}

@keyframes marquee-right {
  0%   { transform: translate3d(var(--marquee-offset, -50%), 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.marquee-tile {
  height: clamp(160px, 20vw, 280px);
  border-radius: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  background: var(--color-beige-200);
}

.marquee-tile img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Hover: phóng to, nổi lên */
.marquee-tile:hover {
  transform: scale(1.15);
  box-shadow: 0 20px 50px rgba(61, 43, 31, 0.25);
  position: relative;
  z-index: 20;
}

.marquee-tile--a {
  background: linear-gradient(135deg, rgba(200,149,108,0.35), rgba(237,224,200,0.5)),
              var(--color-beige-200);
}
.marquee-tile--b {
  background: linear-gradient(135deg, rgba(92,61,46,0.22), rgba(200,149,108,0.28)),
              var(--color-beige-200);
}
.marquee-tile--c {
  background: linear-gradient(135deg, rgba(237,224,200,0.45), rgba(92,61,46,0.18)),
              var(--color-beige-200);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-scroll-left,
  .marquee-scroll-right {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Animated text — char-by-char scroll-driven opacity
   -------------------------------------------------------------------------- */

.animated-text {
  position: relative;
}

/* Each char wrapped by JS */
.animated-char {
  display: inline;
  opacity: 0.15;
  transition: opacity 0.25s ease;
}

.animated-char.lit {
  opacity: 1;
}

/* Preserve spaces */
.animated-char-space {
  display: inline;
}

/* --------------------------------------------------------------------------
   Sticky-stack project cards
   -------------------------------------------------------------------------- */

.sticky-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sticky-card-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* Video card wrapper needs more space */
.sticky-card-wrapper:has(.video-accordion) {
  min-height: 120vh;
}

.sticky-card {
  position: sticky;
  top: 5.5rem;
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  /* offset each card down by its index * 28px so they fan out */
  margin-top: calc(var(--card-index) * 28px);
  border-radius: var(--radius-card);
  background: var(--color-beige-100);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  will-change: transform;
  transform-origin: center top;
  z-index: calc(10 - var(--card-index));
  /* scale driven by JS */
}

@media (min-width: 768px) {
  .sticky-card {
    padding: var(--space-xl) var(--space-2xl);
  }
}

/* When hovering video in card 2, bring it to front */
.sticky-card:has(.video-accordion-item:hover) {
  z-index: 100;
  overflow: visible;
}

.sticky-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* Add extra space below header when video is present to prevent clipping */
.sticky-card:has(.video-accordion) .sticky-card-header {
  margin-bottom: var(--space-2xl);
}

/* Video accordion container - give it breathing room */
.video-accordion {
  display: flex;
  gap: 15px;
  position: relative;
  width: 100%;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding: 0 0 var(--space-lg) 0;
}

.sticky-card-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  line-height: 1;
  margin-right: var(--space-sm);
  display: none; /* Hidden */
}

.sticky-card-cat {
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-beige-300);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  display: none; /* Hidden */
}

.sticky-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.95vw, 2.15rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  flex: 1;
}

.sticky-card-body-text {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.sticky-card-body-text p {
  margin-bottom: var(--space-md);
}

.sticky-card-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.sticky-card-images {
  display: flex;
  gap: var(--space-md);
}

.sticky-card-col-a {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sticky-card-col-b {
  width: 60%;
}

.sticky-card-col-a .project-card__visual {
  aspect-ratio: unset;
  height: clamp(100px, 14vw, 200px);
  border-radius: var(--radius-card);
}

.sticky-card-tall {
  aspect-ratio: unset !important;
  height: clamp(220px, 32vw, 420px) !important;
  border-radius: var(--radius-card);
}

.sticky-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

/* Text-based sticky card body (replaces image grid for case-study cards) */
.sticky-card-body-text {
  padding-top: var(--space-sm);
}

.sticky-card-role {
  font-size: var(--size-sm);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-beige-200);
}

.sticky-card-section-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.sticky-card-desc {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.sticky-card-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.sticky-card-list li {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
}

.sticky-card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-warm);
  font-size: 0.85em;
}

/* Mobile: simplify layout */
@media (max-width: 639px) {
  .sticky-card-wrapper {
    height: auto;
    margin-bottom: var(--space-lg);
  }

  .sticky-card {
    position: relative;
    top: auto;
    margin-top: 0;
  }

  .sticky-card-images {
    flex-direction: column;
  }

  .sticky-card-col-a,
  .sticky-card-col-b {
    width: 100%;
  }

  .sticky-card-tall {
    height: clamp(180px, 50vw, 300px) !important;
  }
}

/* --------------------------------------------------------------------------
   Case Study Sections - Make them wider for better presentation
   Both Mămmy and Chabum sections should be full-width
   -------------------------------------------------------------------------- */

#projects,
#chabum-case-study {
  max-width: 1200px !important;
  padding-inline: 2rem !important;
}

@media (min-width: 1024px) {
  #projects,
  #chabum-case-study {
    padding-inline: var(--space-2xl);
  }
}

@media (min-width: 1440px) {
  #projects,
  #chabum-case-study {
    padding-inline: var(--space-3xl);
  }
}

/* --------------------------------------------------------------------------
   Chabum Cards - Override to match Mămmy sizing EXACTLY (100% match)
   All dimensions, spacing, fonts match Mămmy tabs
   -------------------------------------------------------------------------- */

/* Card container - exact same as Mămmy */
#chabum-cards .sticky-card {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--color-beige-200);
  background: var(--color-beige-100);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  #chabum-cards .sticky-card {
    padding: var(--space-xl) var(--space-2xl);
  }
}

@media (min-width: 1200px) {
  #chabum-cards .sticky-card {
    max-width: 1400px;
  }
}

@media (min-width: 1600px) {
  #chabum-cards .sticky-card {
    max-width: 1500px;
  }
}

/* Card header spacing */
#chabum-cards .sticky-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* Card number - exact size */
#chabum-cards .sticky-card-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  line-height: 1;
  margin-right: var(--space-sm);
}

/* Category badge - exact size */
#chabum-cards .sticky-card-cat {
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-beige-300);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
}

/* Card title - exact size */
#chabum-cards .sticky-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.95vw, 2.15rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  flex: 1;
}

/* Role text */
#chabum-cards .sticky-card-role {
  font-size: var(--size-sm);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-beige-200);
}

/* Section titles (h4) - match merged-section-title size */
#chabum-cards .sticky-card-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2.48vw, 1.7rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

/* Description paragraphs - match Mămmy */
#chabum-cards .sticky-card-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Body text container */
#chabum-cards .sticky-card-body-text {
  width: 100%;
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-top: var(--space-sm);
}

#chabum-cards .sticky-card-body-text p {
  margin-bottom: var(--space-md);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

/* List items - match Mămmy */
#chabum-cards .sticky-card-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

#chabum-cards .sticky-card-list li {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
}

#chabum-cards .sticky-card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-warm);
  font-size: 0.85em;
}

/* Tags container */
#chabum-cards .sticky-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Chabum Tab 01 - Brand Overview Layout
   Two-column layout with About/Vision on left, Logo on right
   -------------------------------------------------------------------------- */

.chabum-brand-overview {
  width: 100%;
  padding: var(--space-lg) 0;
}

.chabum-header {
  margin-bottom: var(--space-2xl);
}

.chabum-founder-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.chabum-founder-period {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

/* Two Column Layout */
.chabum-two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (min-width: 900px) {
  .chabum-two-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

/* Vision/Mission Row - Equal Height */
.chabum-vision-mission-row {
  align-items: stretch;
}

.chabum-vision-mission-row .chabum-left-column,
.chabum-vision-mission-row .chabum-right-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.chabum-vision-mission-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.chabum-vision-mission-box > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Left Column - About & Vision */
.chabum-left-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  justify-content: center;
}

.chabum-section {
  margin-bottom: 0;
}

.chabum-section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-brown-800);
  padding-bottom: var(--space-xs);
}

.chabum-bullet-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chabum-bullet-list li {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
}

.chabum-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-brown-800);
  font-size: 1.5em;
  line-height: 1;
}

.chabum-vision-text {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* Right Column - Logo */
.chabum-right-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chabum-logo-container {
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

.chabum-logo-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
}

/* Mobile adjustments */
@media (max-width: 899px) {
  .chabum-two-columns {
    grid-template-columns: 1fr;
  }
  
  .chabum-logo-container {
    max-width: 350px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Chabum Tab 02 - Brand Development & Content Marketing Layout
   Two-column: Text left + Instagram screenshots right
   -------------------------------------------------------------------------- */

.chabum-tab02-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-lg) 0;
}

@media (min-width: 900px) {
  .chabum-tab02-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
  }
}

/* Left Column - Text Content - 2 boxes stacked vertically with equal height */
.chabum-tab02-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.chabum-tab02-left > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chabum-tab02-section {
  margin-bottom: var(--space-lg);
}

.chabum-tab02-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.chabum-tab02-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chabum-tab02-list li {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
}

.chabum-tab02-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-brown-800);
  font-size: 1.3em;
  line-height: 1.2;
}

/* Instagram Link */
.chabum-tab02-link {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-beige-300);
}

.chabum-instagram-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.chabum-instagram-link:hover {
  color: var(--color-accent-warm);
  text-decoration-color: var(--color-accent-warm);
}

/* Right Column - Instagram Screenshots */
.chabum-tab02-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chabum-instagram-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  width: 100%;
  max-width: 900px;
}

.chabum-screenshot-item {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.12);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chabum-screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.18);
}

.chabum-screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Instagram Slider */
.chabum-instagram-slider {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.chabum-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.12);
  background: #ffffff;
  cursor: pointer;
}

.chabum-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.chabum-slide {
  min-width: 100%;
  display: none;
}

.chabum-slide.active {
  display: block;
}

.chabum-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Slider Navigation Buttons */
.chabum-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #6B4226;
}

.chabum-slider-btn:hover {
  background: #6B4226;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.chabum-slider-btn svg {
  width: 20px;
  height: 20px;
}

.chabum-slider-prev {
  left: 0.75rem;
}

.chabum-slider-next {
  right: 0.75rem;
}

/* Slider Dots */
.chabum-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.chabum-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(107, 66, 38, 0.3);
}

.chabum-dot:hover {
  background: rgba(107, 66, 38, 0.7);
  transform: scale(1.1);
}

.chabum-dot.active {
  background: #6B4226;
  transform: scale(1.2);
}

/* Mobile adjustments */
@media (max-width: 899px) {
  .chabum-tab02-layout {
    grid-template-columns: 1fr;
  }
  
  .chabum-instagram-screenshots {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 639px) {
  .chabum-instagram-screenshots {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}


/* --------------------------------------------------------------------------
   Magnetic button — JS adds transform via mouse events
   -------------------------------------------------------------------------- */

.magnet-btn {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Snap back when not hovered */
.magnet-btn:not(:hover) {
  transition: transform 0.6s ease-in-out;
}

/* --------------------------------------------------------------------------
   About Section — Decorative pseudo-elements
   -------------------------------------------------------------------------- */

#about {
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,108,0.08) 0%, transparent 70%);
  pointer-events: none;
}

#about::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -8%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,61,46,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */

.services-section {
  display: none !important; /* Ẩn section Services */
  background: var(--color-beige-100);
  border-radius: 3rem 3rem 0 0;
  padding: var(--space-4xl) var(--space-xl);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  /* Override the generic section max-width so rounded corners work full-bleed */
  max-width: 100%;
}

.services-section h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: var(--space-3xl);
  line-height: 1;
}

.services-list {
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid rgba(61, 43, 31, 0.15);
}

.service-item:first-child {
  border-top: 1px solid rgba(61, 43, 31, 0.15);
}

.service-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  line-height: 1;
  flex-shrink: 0;
  min-width: clamp(3rem, 8vw, 7rem);
  opacity: 0.25;
}

.service-name {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: clamp(0.875rem, 1.4vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 600px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Projects Section — rounded top, visually distinct
   -------------------------------------------------------------------------- */

#projects {
  background: var(--color-beige-50);
  border-radius: 3rem 3rem 0 0;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
  max-width: 100%;
}

#projects .projects-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

/* --------------------------------------------------------------------------
   POSM Gallery — 4 ảnh trong sticky card với hover zoom + caption
   -------------------------------------------------------------------------- */

.posm-gallery {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.75rem;
  margin: var(--space-lg) 0 var(--space-md);
  height: clamp(320px, 38vw, 520px);   /* chiều cao cố định để flex hoạt động */
}

/* Mỗi cột là flex column */
.posm-col--left,
.posm-col--center,
.posm-col--right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

/* Ảnh trong cột trái và giữa chiếm full height */
.posm-col--left .posm-item,
.posm-col--center .posm-item {
  flex: 1;
  min-height: 0;
}

/* Cột phải: 2 ảnh chia đôi chiều cao */
.posm-col--right .posm-item {
  flex: 1;
  min-height: 0;
}

.posm-item {
  position: relative;
  border-radius: 1rem;
  background: var(--color-beige-200);
  cursor: pointer;
  overflow: hidden;
}

.posm-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(1.1);
  transition: transform 0.45s cubic-bezier(0.34, 1.12, 0.64, 1);
  will-change: transform;
}

@media (max-width: 639px) {
  .posm-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .posm-col--left,
  .posm-col--center {
    height: clamp(180px, 50vw, 280px);
  }

  .posm-col--right {
    grid-column: 1 / -1;
    flex-direction: row;
    height: clamp(140px, 35vw, 200px);
  }
}

/* Caption overlay — slides up on hover */
.posm-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(to top, rgba(30, 18, 10, 0.72) 0%, transparent 100%);
  color: #fff;
  font-size: clamp(0.72rem, 1.1vw, 0.875rem);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

/* Hover: zoom ảnh + hiện caption */
.posm-item:hover .posm-img {
  transform: scale(1.08);
}

.posm-item:hover .posm-caption {
  transform: translateY(0);
}

/* Subtle border on hover */
.posm-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.posm-item:hover::after {
  border-color: var(--color-accent-warm);
}

/* Mobile: 2 cột */
@media (max-width: 767px) {
  .posm-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

/* --------------------------------------------------------------------------
   Content Plan Gallery — 2 ảnh side by side với caption + zoom on hover
   -------------------------------------------------------------------------- */

.content-plan-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.content-plan-item {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--color-beige-100);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(61, 43, 31, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.content-plan-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.15);
  z-index: 10;
}

.content-plan-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.content-plan-item:hover .content-plan-img {
  transform: scale(1.05);
}

.content-plan-caption {
  text-align: center;
  padding: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  background: var(--color-beige-50);
  line-height: 1.4;
}

/* Modal overlay for zoomed image */
.content-plan-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 12, 8, 0.92);
  z-index: 9999;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  animation: fadeIn 0.3s ease;
}

.content-plan-modal.is-active {
  display: flex;
}

.content-plan-modal img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { 
    transform: scale(0.8);
    opacity: 0;
  }
  to { 
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .content-plan-gallery {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .content-plan-modal {
    padding: var(--space-md);
  }
  
  .content-plan-modal img {
    max-width: 98%;
    max-height: 90vh;
  }
}

/* --------------------------------------------------------------------------
   Content Product Grid — Hàng 1: 2 ảnh giữa | Hàng 2: 3 ảnh
   -------------------------------------------------------------------------- */

.content-product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

/* Hàng 1: 2 ảnh căn giữa (cột 2-3 và 4-5) */
.content-product-item:nth-child(1) {
  grid-column: 2 / 4;
}

.content-product-item:nth-child(2) {
  grid-column: 4 / 6;
}

/* Hàng 2: 3 ảnh full width (cột 1-2, 3-4, 5-6) */
.content-product-item:nth-child(3) {
  grid-column: 1 / 3;
}

.content-product-item:nth-child(4) {
  grid-column: 3 / 5;
}

.content-product-item:nth-child(5) {
  grid-column: 5 / 7;
}

.content-product-item {
  position: relative;
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(61, 43, 31, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.content-product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.1);
  border-color: rgba(61, 43, 31, 0.2);
  z-index: 10;
}

.content-product-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.content-product-item:hover img {
  transform: scale(1.02);
}

/* Tablet: 2 columns */
@media (max-width: 1023px) {
  .content-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-product-item:nth-child(1),
  .content-product-item:nth-child(2),
  .content-product-item:nth-child(3),
  .content-product-item:nth-child(4),
  .content-product-item:nth-child(5) {
    grid-column: auto;
  }
}

/* Mobile: 1 column */
@media (max-width: 639px) {
  .content-product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* --------------------------------------------------------------------------
   Brand Awareness Content Grid — 3 Facebook Posts
   -------------------------------------------------------------------------- */

.brand-awareness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 2.5rem auto;
  align-items: stretch;
  max-width: 1400px;
  padding: 0 1rem;
}

.brand-post-item {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.brand-post-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(61, 43, 31, 0.12);
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0.5rem;
}

.brand-post-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 32px rgba(61, 43, 31, 0.16);
  border-color: rgba(61, 43, 31, 0.25);
}

.brand-post-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1rem;
}

/* Desktop Large */
@media (min-width: 1440px) {
  .brand-awareness-grid {
    gap: 3rem;
  }
}

/* Tablet: 2 columns */
@media (max-width: 1023px) and (min-width: 640px) {
  .brand-awareness-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
  }
  
  .brand-post-item:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Mobile: 1 column stacked */
@media (max-width: 639px) {
  .brand-awareness-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Design Showcase Grid — placeholder for design assets
   -------------------------------------------------------------------------- */

.design-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.design-showcase-item {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--color-beige-200);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.design-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.design-showcase-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Parallax Gallery — 2 cột với scroll-driven parallax effect
   -------------------------------------------------------------------------- */

.parallax-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(3rem, 10vw, 10rem);
  max-width: 1400px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
  position: relative;
}

.parallax-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Cột phải bắt đầu thấp hơn để tạo hiệu ứng stagger */
.parallax-column--right {
  margin-top: clamp(2rem, 8vw, 6rem);
}

.parallax-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid rgba(61, 43, 31, 0.12);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  will-change: transform;
  
  /* Deep shadow để tạo cảm giác chiều sâu */
  box-shadow: 
    0 2px 8px rgba(61, 43, 31, 0.08),
    0 8px 24px rgba(61, 43, 31, 0.12),
    0 16px 48px rgba(61, 43, 31, 0.08);
  
  /* Floating animation */
  animation: float 6s ease-in-out infinite;
}

/* Offset animation delay cho mỗi card */
.parallax-card:nth-child(1) { animation-delay: 0s; }
.parallax-card:nth-child(2) { animation-delay: 1.2s; }
.parallax-card:nth-child(3) { animation-delay: 2.4s; }
.parallax-column--right .parallax-card:nth-child(1) { animation-delay: 0.6s; }
.parallax-column--right .parallax-card:nth-child(2) { animation-delay: 1.8s; }

/* Floating animation keyframes */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(var(--card-rotation, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(var(--card-rotation, 0deg));
  }
}

/* Rotation từ data attribute */
.parallax-card[data-rotation="1"] {
  --card-rotation: 1deg;
}
.parallax-card[data-rotation="2"] {
  --card-rotation: 2deg;
}
.parallax-card[data-rotation="3"] {
  --card-rotation: 3deg;
}
.parallax-card[data-rotation="-1"] {
  --card-rotation: -1deg;
}
.parallax-card[data-rotation="-2"] {
  --card-rotation: -2deg;
}
.parallax-card[data-rotation="-3"] {
  --card-rotation: -3deg;
}

.parallax-card:hover {
  transform: rotate(0deg) scale(1.08) translateY(-8px) !important;
  box-shadow: 
    0 8px 16px rgba(61, 43, 31, 0.12),
    0 16px 48px rgba(61, 43, 31, 0.18),
    0 24px 72px rgba(61, 43, 31, 0.15);
  border-color: rgba(61, 43, 31, 0.25);
  z-index: 20;
  animation-play-state: paused;
}

.parallax-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet: giảm gap */
@media (max-width: 1023px) {
  .parallax-gallery {
    gap: var(--space-2xl);
  }
  
  .parallax-column--right {
    margin-top: var(--space-2xl);
  }
  
  .parallax-card {
    max-width: 280px;
  }
}

/* Mobile: 1 cột */
@media (max-width: 767px) {
  .parallax-gallery {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .parallax-column--right {
    margin-top: 0;
  }
  
  .parallax-card {
    max-width: 100%;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .parallax-card {
    animation: none;
  }
  
  .parallax-card:hover {
    transform: scale(1.05) !important;
  }
}

/* --------------------------------------------------------------------------
   Results Grid — metrics cards
   -------------------------------------------------------------------------- */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.result-card {
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--color-beige-100), var(--color-beige-50));
  border: 2px solid var(--color-beige-300);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(61, 43, 31, 0.12);
}

.result-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.result-label {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Card Stack Gallery — Hover to expand cards, adaptive sizing
   -------------------------------------------------------------------------- */

.card-stack-container {
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
  perspective: 1500px;
}

.card-stack-grid {
  position: relative;
  width: clamp(500px, 70vw, 850px);
  height: clamp(350px, 45vw, 550px);
  margin: 0 auto;
}

.stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  max-width: 450px;
  height: auto;
  aspect-ratio: auto;
  border-radius: 16px;
  background: #ffffff;
  border: none;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 8px 24px rgba(61, 43, 31, 0.12),
    0 16px 48px rgba(61, 43, 31, 0.08);
  transform-origin: center center;
}

/* Default stacked state: cards piled with slight offset */
.stack-card {
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  z-index: calc(10 + var(--index, 0));
}

.stack-card[data-index="0"] {
  transform: translate(-50%, -50%) translateY(-12px) translateX(-6px) rotate(-4deg) scale(0.97);
}
.stack-card[data-index="1"] {
  transform: translate(-50%, -50%) translateY(-6px) translateX(4px) rotate(2deg) scale(0.98);
}
.stack-card[data-index="2"] {
  transform: translate(-50%, -50%) translateY(-1px) translateX(-2px) rotate(-1deg) scale(0.99);
}
.stack-card[data-index="3"] {
  transform: translate(-50%, -50%) translateY(5px) translateX(5px) rotate(3deg) scale(0.99);
}
.stack-card[data-index="4"] {
  transform: translate(-50%, -50%) translateY(10px) translateX(-3px) rotate(-2deg) scale(1);
  z-index: 20;
}
.stack-card[data-index="5"] {
  transform: translate(-50%, -50%) translateY(15px) translateX(3px) rotate(1deg) scale(0.98);
}

/* Hover state: cards fan out in balanced messy layout */
.card-stack-grid:hover .stack-card[data-index="0"] {
  transform: translate(-125%, -68%) rotate(-14deg) scale(0.75);
}
.card-stack-grid:hover .stack-card[data-index="1"] {
  transform: translate(-62%, -90%) rotate(-6deg) scale(0.78);
}
.card-stack-grid:hover .stack-card[data-index="2"] {
  transform: translate(18%, -75%) rotate(10deg) scale(0.76);
}
.card-stack-grid:hover .stack-card[data-index="3"] {
  transform: translate(-128%, 18%) rotate(12deg) scale(0.74);
}
.card-stack-grid:hover .stack-card[data-index="4"] {
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  z-index: 30;
}
.card-stack-grid:hover .stack-card[data-index="5"] {
  transform: translate(20%, 28%) rotate(-16deg) scale(0.73);
}

/* Individual card hover: bring to front */
.stack-card:hover {
  z-index: 40 !important;
  box-shadow: 
    0 12px 32px rgba(61, 43, 31, 0.18),
    0 24px 64px rgba(61, 43, 31, 0.14);
}

.stack-card img,
.stack-card video {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  border-radius: 16px;
}

/* Video card center */
.stack-card--video {
  position: absolute;
}

.stack-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-brown-800);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 1;
}

/* Hide play icon when stack is expanded and video is playing */
.card-stack-grid:hover .stack-card--video.is-playing .stack-video-play-icon {
  opacity: 0;
}

.card-stack-grid:not(:hover) .stack-video-play-icon {
  opacity: 1;
}

/* Mobile: smaller and simpler */
@media (max-width: 767px) {
  .card-stack-container {
    min-height: 500px;
  }
  
  .card-stack-grid {
    width: 90%;
    height: 300px;
  }
  
  /* Simpler hover positions for mobile */
  .card-stack-grid:hover .stack-card[data-index="0"] {
    transform: translate(-100%, -70%) rotate(-10deg) scale(0.75);
  }
  .card-stack-grid:hover .stack-card[data-index="1"] {
    transform: translate(-50%, -90%) rotate(-5deg) scale(0.8);
  }
  .card-stack-grid:hover .stack-card[data-index="2"] {
    transform: translate(0%, -75%) rotate(6deg) scale(0.78);
  }
  .card-stack-grid:hover .stack-card[data-index="3"] {
    transform: translate(-110%, 15%) rotate(8deg) scale(0.77);
  }
  .card-stack-grid:hover .stack-card[data-index="4"] {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  .card-stack-grid:hover .stack-card[data-index="5"] {
    transform: translate(20%, 25%) rotate(-12deg) scale(0.76);
  }
}

/* --------------------------------------------------------------------------
   Campaign Block — styled campaign sections
   -------------------------------------------------------------------------- */

.campaign-block {
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-left: 4px solid var(--color-accent-warm);
  background: var(--color-beige-50);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.campaign-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  margin-bottom: var(--space-md);
}

.campaign-block .sticky-card-desc {
  margin-bottom: var(--space-sm);
}

.campaign-block .sticky-card-desc:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Gallery Section — thêm ảnh tự do
   -------------------------------------------------------------------------- */

.gallery-section {
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-beige-200);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.12, 0.64, 1);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  border-color: var(--color-accent-warm);
}

@media (max-width: 639px) {
  .gallery-section {
    padding-inline: var(--space-md);
  }

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


/* --------------------------------------------------------------------------
   Video Accordion — Overlay gradient, label, and text styling
   -------------------------------------------------------------------------- */

/* Overlay gradient — ẩn đi để hiện màu gốc video */
.video-accordion__overlay {
  position: absolute;
  inset: 0;
  background: transparent; /* Xóa overlay tối */
  transition: background 0.3s ease;
  pointer-events: none;
}

.video-accordion-item:first-child .video-accordion__overlay {
  background: transparent; /* Xóa overlay cho thẻ đầu */
}

/* Label container — ẩn chữ */
.video-accordion__label {
  position: absolute;
  inset: 0;
  display: none; /* Ẩn hoàn toàn chữ trên video */
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  z-index: 2;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Not first position: vertical text */
.video-accordion-item:not(:first-child) .video-accordion__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  justify-content: flex-start;
  align-items: flex-end;
  padding: var(--space-lg) var(--space-sm);
}

/* Title */
.video-accordion__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: font-size 0.3s ease;
}

/* Not first position: smaller title */
.video-accordion-item:not(:first-child) .video-accordion__title {
  font-size: 1.2rem;
}

/* Count — hidden on non-first positions */
.video-accordion__count {
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-top: 0.4rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-accordion-item:not(:first-child) .video-accordion__count {
  opacity: 0;
  display: none;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .video-accordion {
    flex-direction: column;
    gap: 12px;
  }

  .video-accordion-item {
    aspect-ratio: 16 / 9; /* Horizontal on mobile */
  }

  .video-accordion-item:first-child {
    flex-basis: auto;
  }

  .video-accordion-item:not(:first-child) {
    flex-basis: auto;
  }

  /* On mobile, all text horizontal */
  .video-accordion-item:not(:first-child) .video-accordion__label {
    writing-mode: horizontal-tb;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--space-md);
  }

  .video-accordion__title {
    font-size: 1.2rem;
  }

  .video-accordion-item:first-child .video-accordion__title {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-accordion-item {
    transition: flex-basis 0.2s ease;
  }
}


/* ==========================================================================
   MacBook Mockup Component - Realistic MacBook with opening lid animation
   ========================================================================== */

/* ==========================================================================
   VIDEO CAROUSEL - Full width trong tab 2, 6 video đẹp mắt không bị cắt  
   ========================================================================== */



/* --------------------------------------------------------------------------
   Video accordion - full width carousel
   -------------------------------------------------------------------------- */

.video-accordion {
  display: flex;
  gap: 15px;
  position: relative;
  width: 100%;
  margin-top: var(--space-lg);
  padding: 0;
}

.video-accordion-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  flex-grow: 1;
  flex-basis: 100px;
  transition: flex-grow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 20px rgba(61, 43, 31, 0.12);
  will-change: flex-grow;
  flex-shrink: 0;
  background: var(--color-beige-200);
  transform: translateZ(0);
}

.video-accordion:hover .video-accordion-item {
  flex-grow: 0.7;
}

.video-accordion:hover .video-accordion-item:hover {
  flex-grow: 2.5;
  box-shadow: 0 8px 25px rgba(61, 43, 31, 0.18);
  z-index: 100;
  position: relative;
}

.video-accordion__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.video-accordion__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

.video-accordion__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
}

.video-accordion__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--weight-bold);
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-accordion__count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 967px) {
  .video-accordion {
    gap: 10px;
  }
  
  .video-accordion-item {
    flex-basis: 80px;
  }
}

@media (max-width: 767px) {
  .video-accordion {
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .video-accordion-item {
    flex-basis: calc(50% - 4px);
    aspect-ratio: 16 / 9;
  }
}


/* --------------------------------------------------------------------------
   Case Study Accordion Toggle
   -------------------------------------------------------------------------- */

.case-study-toggle {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.case-study-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-beige-100);
  border: 2px solid var(--color-beige-300);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(61, 43, 31, 0.08);
}

.case-study-toggle-btn:hover {
  background: var(--color-beige-200);
  border-color: var(--color-brown-800);
  box-shadow: 0 6px 20px rgba(61, 43, 31, 0.15);
  transform: translateY(-2px);
}

.case-study-toggle-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.case-study-toggle-content {
  flex: 1;
  text-align: left;
}

.case-study-toggle-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.case-study-toggle-desc {
  color: var(--color-text-secondary);
  font-size: var(--size-body);
  margin: 0;
}

.case-study-toggle-arrow {
  font-size: 1.2rem;
  color: var(--color-brown-800);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.case-study-toggle-btn[aria-expanded="true"] .case-study-toggle-arrow {
  transform: rotate(180deg);
}

/* Collapsed state for case study cards */
.sticky-cards[data-collapsed="true"] {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.4s ease;
}

.sticky-cards[data-collapsed="false"] {
  max-height: none;
  opacity: 1;
  transition: max-height 0.6s ease, opacity 0.4s ease 0.2s;
}

/* Marquee inside collapsed accordion */
.sticky-cards[data-collapsed="true"] .marquee-section-images {
  display: none;
}

.sticky-cards[data-collapsed="false"] .marquee-section-images {
  display: flex;
}

@media (max-width: 767px) {
  .case-study-toggle-btn {
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  
  .case-study-toggle-icon {
    font-size: 2rem;
  }
  
  .case-study-toggle-title {
    font-size: 1.2rem;
  }
  
  .case-study-toggle-desc {
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Merged Section Styling (for combined tabs)
   -------------------------------------------------------------------------- */

.merged-section {
  position: relative;
}

.merged-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2.48vw, 1.7rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

/* Section dividers */
.merged-section + .merged-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 2px solid var(--color-beige-200);
}

/* --------------------------------------------------------------------------
   MacBook Air M2 Style - With Lid Opening Animation
   Lid opens when scrolled into view, closes when scrolled out
   -------------------------------------------------------------------------- */

.macbook-mockup-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-md) 0 var(--space-xl) 0;
}

/* MacBook in Video Section - add more bottom spacing */
.macbook-mockup-video {
  margin-bottom: var(--space-3xl);
}

.macbook-wrapper {
  position: relative;
  width: 100%;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  perspective: 2000px;
}

.macbook-wrapper:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 35px 65px rgba(92, 61, 46, 0.25));
}

/* Lid (Screen) - Opens FASTER */
.macbook-screen {
  position: relative;
  width: 100%;
  background: linear-gradient(165deg, #1c1c1e 0%, #0a0a0a 100%);
  border-radius: 0.6rem;
  padding: 0.25rem;
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 20px 50px rgba(43, 27, 16, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
  transform-origin: bottom center;
  transform-style: preserve-3d;
  /* Closed state by default */
  transform: rotateX(95deg);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.8s ease;
}

/* Open state - when in viewport */
.macbook-wrapper.is-open .macbook-screen {
  transform: rotateX(0deg);
  opacity: 1;
}

@media (min-width: 768px) {
  .macbook-screen {
    border-radius: 0.7rem;
    padding: 0.3rem;
  }
}

/* Notch */
.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 0.9rem;
  background: #000;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .macbook-notch {
    width: 4rem;
    height: 1rem;
    border-radius: 0 0 0.55rem 0.55rem;
  }
}

/* Camera */
.macbook-camera {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(100, 200, 200, 0.6), #0a1a1a);
  box-shadow: 0 0 3px rgba(100, 200, 200, 0.5);
}

/* Display area */
.macbook-bezel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.02),
    inset 0 1px 4px rgba(0, 0, 0, 1);
}

@media (min-width: 768px) {
  .macbook-bezel {
    border-radius: 0.45rem;
  }
}

/* Screen content - Fades in FASTER after lid opens */
.macbook-screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #ffffff 0%, #f5f5f5 100%);
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}

.macbook-wrapper.is-open .macbook-screen-content {
  opacity: 1;
}

/* Static image variant (no slideshow) */
.macbook-screen-static {
  display: flex;
  align-items: center;
  justify-content: center;
}

.macbook-screen-static img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Slideshow images */
.macbook-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.macbook-slide.active {
  opacity: 1;
}

/* Screen glare */
.macbook-reflection {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      115deg,
      transparent 35%,
      rgba(255, 255, 255, 0.04) 48%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.04) 52%,
      transparent 65%
    );
  pointer-events: none;
  opacity: 0.8;
}

/* Base - Stays in place */
.macbook-base {
  position: relative;
  width: 100%;
  margin-top: -0.1rem;
}

.macbook-base-edge {
  height: 0.08rem;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(140, 140, 140, 0.25) 10%,
    rgba(120, 120, 120, 0.4) 50%,
    rgba(140, 140, 140, 0.25) 90%,
    transparent 100%
  );
}

.macbook-base-body {
  position: relative;
  width: 100%;
  height: 0.85rem;
  background: linear-gradient(180deg,
    #dcdcdc 0%,
    #cfcfcf 25%,
    #c0c0c0 75%,
    #b5b5b5 100%
  );
  box-shadow: 
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 5px 20px rgba(92, 61, 46, 0.15),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -0.5px 2px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 0.2rem 0.2rem;
}

@media (min-width: 768px) {
  .macbook-base-body {
    height: 1rem;
    border-radius: 0 0 0.25rem 0.25rem;
  }
}

/* Center line detail */
.macbook-base-body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 0.3rem;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.04) 30%,
    rgba(0, 0, 0, 0.04) 70%,
    transparent 100%
  );
  border-radius: 0.15rem;
}

@media (min-width: 768px) {
  .macbook-base-body::before {
    width: 4rem;
    height: 0.35rem;
  }
}

/* Trackpad */
.macbook-trackpad {
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 0.25rem;
  background: linear-gradient(180deg, #b0b0b0 0%, #9a9a9a 100%);
  border-radius: 0.15rem;
  box-shadow: 
    inset 0 0.5px 1px rgba(0, 0, 0, 0.25),
    0 0.25px 0.5px rgba(255, 255, 255, 0.4);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .macbook-trackpad {
    bottom: 0.2rem;
    width: 3.5rem;
    height: 0.3rem;
  }
}

.macbook-base-bottom {
  display: none;
}

/* Shadow */
.macbook-shadow {
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 2rem;
  background: radial-gradient(
    ellipse at center,
    rgba(92, 61, 46, 0.14) 0%,
    rgba(92, 61, 46, 0.06) 35%,
    transparent 65%
  );
  filter: blur(1rem);
  z-index: -1;
}

/* Caption - Fades in with screen */
.macbook-caption-wrapper {
  position: relative;
  margin-top: 2rem;
  text-align: center;
  min-height: 1.5rem;
  opacity: 0;
  transition: opacity 1.5s ease 1.8s;
}

.macbook-wrapper.is-open .macbook-caption-wrapper {
  opacity: 1;
}

.macbook-caption {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-brown-800);
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

@media (min-width: 768px) {
  .macbook-caption {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
  }
}

.macbook-caption.active {
  opacity: 0.8;
  position: relative;
}

/* No automatic entrance animation - controlled by scroll */
.macbook-wrapper {
  opacity: 1;
}

/* Mobile refinements */
@media (max-width: 640px) {
  .macbook-mockup-container {
    max-width: 100%;
    padding: var(--space-sm) 0 var(--space-lg) 0;
  }
  
  .macbook-wrapper:hover {
    transform: translateY(-6px);
  }
  
  .macbook-caption-wrapper {
    margin-top: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .macbook-screen {
    transition: opacity 0.5s ease;
    transform: rotateX(0deg) !important;
  }
  
  .macbook-wrapper:hover {
    transform: translateY(-4px);
  }
  
  .macbook-slide {
    transition: opacity 300ms ease;
  }
}

/* Shimmer effect on hover */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.macbook-wrapper:hover .macbook-base-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out;
}


/* --------------------------------------------------------------------------
   Tab 01 - Brand & Channel Overview Styling
   -------------------------------------------------------------------------- */

.sticky-card-role {
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.sticky-card-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 2.95vw, 1.95rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  text-align: center;
  margin: var(--space-2xl) 0 var(--space-xl) 0;
  letter-spacing: 0.02em;
}

/* Brand Section */
.brand-section {
  margin-bottom: var(--space-2xl);
}

.brand-subtitle,
.channel-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.98vw, 1.38rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown-800);
  text-align: center;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.brand-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}

.brand-logo-item {
  flex: 0 1 auto;
  max-width: 175px;
}

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

@media (min-width: 768px) {
  .brand-logo-item {
    max-width: 210px;
  }
}

/* Two Column Layout for TikTok + Fanpage */
.channels-two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  align-items: stretch;
}

@media (min-width: 768px) {
  .channels-two-column {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.channels-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.channels-column .channel-subtitle {
  margin-bottom: var(--space-lg);
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  letter-spacing: 0.03em;
}

/* Adjust spacing for GROUP title in right column */
.channels-column .channel-subtitle:not(:first-child) {
  margin-top: var(--space-2xl);
}

/* Channel Sections */
.channels-section {
  margin-bottom: var(--space-3xl);
}

.channel-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Vertical stacking for screenshots in 2-column layout */
.channel-screenshots--vertical {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: 0;
}

.channel-screenshots--vertical .channel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-screenshots--vertical .channel-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 24, 16, 0.1);
}

.channel-screenshots--vertical .channel-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* 2 columns for fanpages */
.channel-screenshots--two {
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* 1 column for group */
.channel-screenshots--one {
  grid-template-columns: 1fr;
  max-width: 590px;
  margin-left: auto;
  margin-right: auto;
}

.channel-item {
  background: var(--color-beige-50);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
  cursor: pointer;
}

.channel-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.channel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .channel-screenshots {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .brand-logos {
    gap: var(--space-lg);
  }
  
  .brand-logo-item {
    max-width: 140px;
  }
}

/* --------------------------------------------------------------------------
   Chabum Tab 03 - E-commerce Management Layout
   Two-column: Text left + iPhone mockup right
   -------------------------------------------------------------------------- */

.chabum-tab03-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: start;
  padding: var(--space-lg) 0;
}

@media (min-width: 900px) {
  .chabum-tab03-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

/* Left Column - Text Content */
.chabum-tab03-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.chabum-tab03-section {
  margin-bottom: var(--space-lg);
}

.chabum-tab03-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.chabum-tab03-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chabum-tab03-list li {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
}

.chabum-tab03-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-brown-800);
  font-size: 1.3em;
  line-height: 1.2;
}

/* Shop Links */
.chabum-tab03-links {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-beige-300);
  align-items: center;
  justify-content: flex-start;
}

/* Platform Logos Centered Below - NEW */
.chabum-platform-logos-centered {
  display: flex;
  flex-direction: row;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  align-items: center;
  justify-content: center;
  padding-top: var(--space-lg);
}

/* Platform Logo Links */
.chabum-platform-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-beige-200);
  color: #000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.chabum-platform-logo-link:hover {
  background: #000;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chabum-platform-logo-link svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Tab02 Instagram link */
.chabum-tab02-link {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

.chabum-shop-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.chabum-shop-link:hover {
  color: var(--color-accent-warm);
  text-decoration-color: var(--color-accent-warm);
}

/* Right Column - iPhone 17 Mockup */
.chabum-tab03-right {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.iphone-mockup-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  perspective: 2000px;
}

/* iPhone Device - NO FLIP, just appear */
.iphone-device {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Start animation when in view */
.iphone-mockup-container.is-visible .iphone-device {
  opacity: 1;
}

/* iPhone Back - HIDDEN (not needed without flip) */
.iphone-back {
  display: none;
}

/* iPhone Front (Screen) */
.iphone-front {
  position: absolute;
  inset: 0;
  background: #000000;
  border-radius: 3rem;
  padding: 0.6rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Dynamic Island / Notch */
.iphone-notch {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* iPhone Screen - Opens FASTER */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 2.5rem;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

/* Screen opens when visible */
.iphone-mockup-container.is-visible .iphone-screen {
  transform: scaleY(1);
}

/* Video inside screen - FASTER */
.iphone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease 0.7s;
}

/* Video fades in after screen opens */
.iphone-mockup-container.is-visible .iphone-video {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 899px) {
  .chabum-tab03-layout {
    grid-template-columns: 1fr;
  }
  
  .iphone-mockup-container {
    max-width: 300px;
  }
  
  .chabum-tab03-right {
    min-height: 500px;
  }
}

/* --------------------------------------------------------------------------
   Chabum Tab 04 - Results & Customer Feedback
   Compact & Clean Design - Smaller, More Elegant
   -------------------------------------------------------------------------- */

.chabum-stats-section {
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-2xl);
}

.chabum-stats-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  text-align: left;
}

/* Stats Grid - 4 columns như Mămmy */
.chabum-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
  margin-bottom: var(--space-2xl);
  max-width: 100% !important;
}

/* Compact Stat Card - Beige background with brown border and text */
.chabum-stat-card {
  background: #f5ede0 !important;
  border: 2px solid #6B4226 !important;
  border-radius: 1.25rem;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: #6B4226;
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.12);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.chabum-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.2);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-number {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 2.5rem !important;
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #6B4226 !important;
}

/* Mămmy stats - white numbers */
.mammy-stats-white .stat-number {
  color: white !important;
}

.stat-label {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem !important;
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-xs);
  opacity: 0.9;
  color: #6B4226 !important;
}

.stat-desc {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem !important;
  line-height: 1.4;
  opacity: 0.85;
  font-weight: var(--weight-regular);
  color: #6B4226 !important;
}

/* Feedback Section */
.chabum-feedback-section {
  padding: var(--space-xl) 0;
  border-top: 1.5px solid var(--color-beige-200);
}

.chabum-feedback-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

/* Marquee Container */
.feedback-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: var(--space-sm) 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Marquee Scroll - FASTER */
.feedback-marquee {
  display: flex;
  gap: var(--space-lg);
  animation: marquee 20s linear infinite;
  will-change: transform;
}

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

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

/* Compact Feedback Item - Beige frame around image */
.feedback-item {
  flex-shrink: 0;
  width: 320px;
  background: #f5ede0;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.12);
  transition: all 0.3s ease;
}

.feedback-item img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  object-fit: contain;
  display: block;
  background: white;
}

.feedback-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.18);
}

/* Mobile adjustments */
@media (max-width: 899px) {
  .chabum-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 639px) {
  .chabum-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .chabum-stat-card {
    min-height: 160px;
    padding: var(--space-lg) var(--space-md);
  }
  
  .feedback-item {
    width: 260px;
  }
}

/* --------------------------------------------------------------------------
   Mămmy Stats Grid - Results Section (Upgraded Design)
   -------------------------------------------------------------------------- */

.mammy-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: 0;
  max-width: 100%;
}

.mammy-stat-card {
  /* Gradient nâu ấm */
  background: linear-gradient(135deg, #8B6F47 0%, #A68B5B 50%, #8B7355 100%);
  border-radius: 1.75rem;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  
  /* Soft shadow - sâu và mềm hơn */
  box-shadow: 
    0 4px 20px rgba(61, 43, 31, 0.12),
    0 8px 40px rgba(61, 43, 31, 0.08);
  
  border: 2px solid transparent;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  
  /* Texture overlay - very subtle noise */
  background-blend-mode: overlay;
}

.mammy-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  opacity: 0.5;
}

/* Purple highlight với glow effect */
.mammy-stat-card--purple {
  border-color: #9B59B6;
  box-shadow: 
    0 4px 20px rgba(61, 43, 31, 0.12),
    0 8px 40px rgba(61, 43, 31, 0.08),
    0 0 30px rgba(155, 89, 182, 0.4),
    inset 0 0 60px rgba(155, 89, 182, 0.1);
}

/* Green highlight với glow effect */
.mammy-stat-card--green {
  border-color: #27AE60;
  box-shadow: 
    0 4px 20px rgba(61, 43, 31, 0.12),
    0 8px 40px rgba(61, 43, 31, 0.08),
    0 0 30px rgba(39, 174, 96, 0.4),
    inset 0 0 60px rgba(39, 174, 96, 0.1);
}

/* Brand Assets card - cùng màu nâu như các cards khác */
.mammy-stat-card--light {
  background: #8B7466 !important;
  color: white !important;
  border: 2px solid rgba(139, 111, 71, 0.2);
}

.mammy-stat-card--light .mammy-stat-heading {
  color: white !important;
}

.mammy-stat-card--light .mammy-stat-desc-large {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Hover effect - lift up with enhanced shadow */
.mammy-stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(61, 43, 31, 0.18),
    0 16px 60px rgba(61, 43, 31, 0.12);
}

.mammy-stat-card--purple:hover {
  box-shadow: 
    0 12px 40px rgba(61, 43, 31, 0.18),
    0 16px 60px rgba(61, 43, 31, 0.12),
    0 0 50px rgba(155, 89, 182, 0.6);
}

.mammy-stat-card--green:hover {
  box-shadow: 
    0 12px 40px rgba(61, 43, 31, 0.18),
    0 16px 60px rgba(61, 43, 31, 0.12),
    0 0 50px rgba(39, 174, 96, 0.6);
}

.mammy-stat-card--light:hover {
  box-shadow: 
    0 12px 40px rgba(61, 43, 31, 0.15),
    0 16px 60px rgba(61, 43, 31, 0.1);
}

/* Badge (TH) - refined styling */
.mammy-stat-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: var(--weight-black);
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Number display - ĐỒNG NHẤT size */
.mammy-stat-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: var(--space-sm);
}

.mammy-stat-prefix {
  font-size: 2rem !important;
  font-weight: var(--weight-black);
  color: white !important;
  font-family: var(--font-display);
  line-height: 1;
}

.mammy-stat-number .counter {
  font-size: 2rem !important;
  font-weight: var(--weight-black);
  color: white !important;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mammy-stat-suffix {
  font-size: 2rem !important;
  font-weight: var(--weight-black);
  color: white !important;
  font-family: var(--font-display);
}

/* Labels - ĐỒNG NHẤT size */
.mammy-stat-label {
  font-size: 1rem !important;
  font-weight: var(--weight-bold);
  color: white !important;
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.mammy-stat-desc {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
}

/* Brand Assets card - ĐỒNG NHẤT màu trắng */
.mammy-stat-heading {
  font-size: 2rem !important;
  font-weight: var(--weight-black);
  color: white !important;
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.mammy-stat-desc-large {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.7;
  text-align: center;
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .mammy-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 767px) {
  .mammy-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .mammy-stat-card {
    padding: var(--space-xl) var(--space-lg);
    min-height: 200px;
  }
  
  .mammy-stat-number .counter {
    font-size: 3rem;
  }
  
  .mammy-stat-prefix,
  .mammy-stat-suffix {
    font-size: 2rem;
  }
  
  .mammy-stat-label {
    font-size: 1.2rem;
  }
  
  .mammy-stat-heading {
    font-size: 1.2rem;
  }
  
  .mammy-stat-desc-large {
    font-size: 0.95rem;
  }
}


/* Mammy Results Section - REMOVED - Using unified layout instead */
  }
}


/* Reduce gap between marquee and results section */
#marquee-section {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.marquee-section-images {
  padding-bottom: 2rem !important;
}

/* Reduce gap between results and Chabum */
#chabum-case-study {
  padding-top: 0;
  margin-top: 0;
}

/* Reduce internal spacing in sections */
.sticky-card-wrapper {
  margin-bottom: 0;
}

/* Tighten sticky card stacking */
.sticky-card {
  margin-top: calc(var(--card-index) * 15px) !important;
}

/* Remove extra space from sticky card header */
.sticky-card-header {
  margin-bottom: var(--space-sm);
}

/* Tighten tags spacing */
.sticky-card-tags {
  margin-top: var(--space-sm);
}


/* ==========================================================================
   Work Experience - Horizontal Timeline
   ========================================================================== */

.section-title-script {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--weight-normal);
  font-style: italic;
  color: var(--color-brown-800);
  margin-bottom: var(--space-3xl);
  text-align: left;
}

.timeline-horizontal {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.timeline-line {
  position: absolute;
  top: 1rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--color-brown-600);
  z-index: 1;
}

.timeline-h-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.timeline-h-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-brown-700);
  box-shadow: 0 0 0 4px var(--color-beige-50);
  position: relative;
  z-index: 3;
  margin-bottom: var(--space-lg);
}

.timeline-h-content {
  text-align: center;
}

.timeline-h-title {
  font-size: 0.95rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.timeline-h-period {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  display: block;
}

/* ==========================================================================
   Education + Skills - Layout với boxes màu khác nhau
   ========================================================================== */

.education-box-single {
  background: var(--color-beige-50);
  border-radius: 1.25rem;
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.skills-3box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.skill-box {
  border-radius: 1.25rem;
  padding: var(--space-2xl) var(--space-xl);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.skill-box--beige {
  background: #F5EFE7;
}

.skill-box--pink {
  background: #F9ECF0;
}

.skill-box--purple {
  background: #EFE8F4;
}

.skill-box-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--weight-black);
  color: var(--color-brown-800);
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Education content */
.ed-degree {
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.ed-school {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.ed-major,
.ed-gpa {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

/* Skill pills - white background */
.skill-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  flex: 1;
  align-content: flex-start;
}

.skill-pill-white {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  transition: all 0.3s ease;
}

.skill-pill-white:hover {
  background: var(--color-brown-700);
  color: white;
  border-color: var(--color-brown-700);
  transform: translateY(-2px);
}

/* Certifications list */
.cert-list-simple {
  list-style: none;
  padding: 0;
  text-align: left;
  flex: 1;
}

.cert-list-simple li {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  font-weight: var(--weight-medium);
  padding-left: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline-horizontal {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .timeline-line {
    left: 1rem;
    right: auto;
    width: 2px;
    height: calc(100% - 2rem);
    top: 1rem;
  }
  
  .timeline-h-item {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  
  .timeline-h-content {
    text-align: left;
  }
  
  .skills-3box-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .skills-3box-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .skill-box {
    min-height: auto;
  }
}



/* ==========================================================================
   WORK EXPERIENCE - Match Design Reference
   ========================================================================== */

/* Section Container */
.exp-edu-section {
  background: #FFFFFF;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 5vw, 3rem);
}

/* Wrapper for Work Experience */
.work-exp-wrapper {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

/* Section Title - Script Font */
.exp-section-title {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: #6B4226;
  margin-bottom: var(--space-3xl);
  letter-spacing: -0.02em;
}

/* Timeline Wrapper */
.timeline-wrapper {
  position: relative;
  padding: 2rem 0 3rem;
}

/* Timeline Line Container */
.timeline-line-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 2rem;
}

/* Horizontal Line Behind Dots */
.timeline-line-container::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: #6B4226;
  z-index: 1;
}

/* Individual Timeline Item */
.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Timeline Dot */
.timeline-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #6B4226;
  box-shadow: 0 0 0 4px #FDF6EC;
  position: relative;
  z-index: 3;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-dot:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px #FDF6EC, 0 4px 12px rgba(107, 66, 38, 0.3);
}

/* Timeline Content */
.timeline-content {
  max-width: 280px;
}



/* Responsive Design */
@media (max-width: 768px) {
  .timeline-line-container {
    flex-direction: column;
    padding: 0;
  }
  
  .timeline-line-container::before {
    top: 0;
    left: 1rem;
    right: auto;
    width: 3px;
    height: 100%;
  }
  
  .timeline-item {
    flex-direction: row;
    text-align: left;
    margin-bottom: 2rem;
  }
  
  .timeline-dot {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
}

/* Education Wrapper */
.education-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.education-content {
  background: transparent;
  padding: 0;
  text-align: left;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.edu-info {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   PROJECTS - Simple Vertical Layout (No Sticky Cards)
   ========================================================================== */

.projects-section-simple {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 6.25rem) clamp(2rem, 5vw, 3rem);
}

.projects-main-title {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 0.02em;
}

/* Project Container */
.project-simple-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
}

/* Project Header - No Background */
.project-header-no-bg {
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  background: transparent;
  padding: 0;
}

/* Project Header - With Background */
.project-simple-header {
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  background: #e8dcc8;
  padding: 1.5rem 2rem;
  border-radius: 12px;
}

.project-simple-title {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.8rem;
  color: #6B4226;
  margin: 0;
  text-align: center;
}

.project-simple-num {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.5rem;
}

.project-simple-cat {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-left: 0.5rem;
}

/* Project Title - Italic style (for "Mămmy Việt Nam") */
.project-title-italic {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: #6B4226;
  text-align: left;
  margin: 0;
  line-height: 1.2;
}

/* Project Role */
.project-simple-role {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--accent-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: left;
}

/* SOW Pills Container */
.sow-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.sow-pill {
  display: inline-block;
  padding: 12px 24px;
  background: var(--cream);
  border: 1.5px solid rgba(61, 43, 31, 0.15);
  border-radius: 999px;
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  text-transform: none;
  transition: all 0.3s ease;
}

.sow-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 43, 31, 0.12);
}

/* Content Sections */
.project-content-section {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(61, 43, 31, 0.12);
  text-align: center;
}

.project-section-title {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: #6B4226;
  margin-bottom: 1rem;
  text-align: center;
}
  text-align: center;
}

.project-subsection {
  margin-top: 2rem;
  text-align: center;
}

.project-subsection-title {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: #6B4226;
  margin-bottom: 1rem;
  text-align: center;
}

.project-desc {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-main-title {
    font-size: 2rem;
  }
  
  .project-simple-title {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  }
  
  .sow-pill {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
}

/* ==========================================================================
   SKILLS & EDUCATION - Simple Layout (No Tabs/Boxes)
   ========================================================================== */

.skills-section {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 6.25rem) clamp(2rem, 5vw, 3rem);
}

/* Main Section Title */
.skills-main-title {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.8rem;
  color: #6B4226;
  text-align: left;
  margin-bottom: clamp(3rem, 6vw, 4rem);
  letter-spacing: 0.02em;
}

/* Pills Section */
.skills-pills-section {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

/* Skill Category */
.skill-category {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-category-label {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dark); /* nâu đậm */
  margin: 0;
}

.skill-category-label-small {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin: 0;
}

/* Pills Container */
.skill-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  width: 100%;
}

/* Skill Pill - Base */
.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  border: 1.5px solid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 43, 31, 0.15);
}

/* Pill Colors - All same color: cream/beige with black text */
.skill-pill--yellow,
.skill-pill--pink,
.skill-pill--cyan,
.skill-pill--white {
  background: #f5f0e8; /* kem be nhạt */
  color: #000000; /* đen */
  border-color: rgba(61, 43, 31, 0.25); /* viền nâu nhạt */
}

/* Education Cards Section */
.education-cards-section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

/* Education Wrapper with External Title */
.education-wrapper-with-title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

/* Education Card */
.education-card {
  background: var(--cream);
  border: 1px solid rgba(61, 43, 31, 0.12);
  border-radius: 40px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1;
  min-height: 100%;
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.1);
}

/* Education Icon */
.education-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.education-icon--yellow {
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d4b8 100%);
}

.education-icon--pink {
  background: linear-gradient(135deg, #f5e6eb 0%, #e8d4dc 100%);
}

/* Education Card Title - External title above card */
.education-card-title {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: #6B4226;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}

/* Education Text */
.education-title {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.education-school,
.education-cert {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(61, 43, 31, 0.75);
  margin: 0;
}

.education-detail {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .skills-main-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .skills-pills-section {
    gap: 2rem;
  }
  
  .skill-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
  
  .skill-pill {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .education-cards-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
    padding-bottom: 1.25rem;
  }
}

.timeline-line-path {
  stroke: #8B6F47;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline-line-svg.is-visible .timeline-line-path {
  stroke-dashoffset: 0;
}

/* Timeline Item Animations */
.timeline-h-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-h-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Dot with Tooltip */
.timeline-h-dot {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #8B6F47 0%, #6B4226 100%);
  box-shadow: 
    0 0 0 6px #FDF6EC,
    0 4px 12px rgba(107, 66, 38, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-h-dot:hover {
  transform: scale(1.2);
  background: linear-gradient(135deg, #6B4226 0%, #4A2E1A 100%);
  box-shadow: 
    0 0 0 8px #FDF6EC,
    0 6px 20px rgba(107, 66, 38, 0.4);
}

.timeline-h-dot::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(107, 66, 38, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.timeline-h-dot:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Enhanced Education Box */
.education-box-single {
  background: linear-gradient(135deg, #FFF9F0 0%, #F5EFE7 100%);
  border-radius: 1.5rem;
  padding: var(--space-2xl);
  box-shadow: 
    0 4px 20px rgba(107, 66, 38, 0.08),
    0 1px 4px rgba(107, 66, 38, 0.04);
  border: 1px solid rgba(139, 111, 71, 0.15);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

.education-box-single.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.education-box-single:hover {
  transform: translateY(-4px) scale(1);
  box-shadow: 
    0 12px 30px rgba(107, 66, 38, 0.12),
    0 4px 10px rgba(107, 66, 38, 0.06);
}

/* Skill Box with Different Colors */
.skill-box {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 4px 20px rgba(107, 66, 38, 0.08),
    0 1px 4px rgba(107, 66, 38, 0.04);
}

.skill-box.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.skill-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(107, 66, 38, 0.15),
    0 6px 15px rgba(107, 66, 38, 0.08);
}

.skill-box--soft {
  background: linear-gradient(135deg, #F5EFE7 0%, #EDE7DC 100%);
}

.skill-box--pro {
  background: linear-gradient(135deg, #F9ECF0 0%, #F0E4E8 100%);
}

.skill-box--cert {
  background: linear-gradient(135deg, #EFE8F4 0%, #E6DEEB 100%);
}

/* Animated Pills */
.skill-pill-animated {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 8px rgba(107, 66, 38, 0.06);
}

.skill-pill-animated.is-visible {
  opacity: 1;
  transform: scale(1);
}

.skill-pill-animated:hover {
  background: linear-gradient(135deg, #8B6F47 0%, #6B4226 100%);
  color: white;
  border-color: #6B4226;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(107, 66, 38, 0.2);
}

/* Certificate List Items */
.cert-list-simple li {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(107, 66, 38, 0.06);
  border: 1px solid rgba(139, 111, 71, 0.15);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.cert-list-simple li.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.cert-list-simple li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(107, 66, 38, 0.12);
  background: linear-gradient(135deg, #FFF9F0 0%, white 100%);
}


/* ==========================================================================
   RESULTS SECTION - Kết quả đạt được - REDESIGNED
   ========================================================================== */

#mammy-results {
  background: linear-gradient(180deg, #FDF6EC 0%, #F5EDE4 100%);
  padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1.2rem, 5vw, 3rem) !important;
  margin-top: 0 !important;
}

/* Stats Grid - 4 columns equal - TIGHT GAP */
.mammy-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem !important; /* GAP NHỎ - SÁT NHAU */
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) 0 !important; /* Giảm padding top/bottom */
}

@media (max-width: 1024px) {
  .mammy-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mammy-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Stat Card - All same brown color - FORCE */
.mammy-stat-card,
.mammy-stat-card--purple,
.mammy-stat-card--green,
.mammy-stat-card--light {
  background: #8B7466 !important;
  border-radius: 1.5rem !important;
  padding: clamp(2rem, 4vw, 2.5rem) !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 180px !important;
  border: none !important;
  box-shadow: none !important;
}

.mammy-stat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 30px rgba(107, 66, 38, 0.25) !important;
}

.mammy-stat-card::before,
.mammy-stat-card::after {
  display: none !important;
}

/* Stat Number - Consistent size */
.mammy-stat-number {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
}

.mammy-stat-prefix,
.mammy-stat-suffix {
  font-size: 2rem;
  color: white;
}

/* Stat Label - Consistent size */
.mammy-stat-label {
  font-size: 1rem;
  font-weight: var(--weight-regular);
  color: white;
  text-transform: lowercase;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Stat Description - Consistent size */
.mammy-stat-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Badge - white background */
.mammy-stat-badge {
  display: none;
}

/* Text-only card - same styling */
.mammy-stat-heading {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.mammy-stat-desc-large {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Counter animation */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}



/* --------------------------------------------------------------------------
   Chabum Vision & Mission - Hover Effect
   -------------------------------------------------------------------------- */

.chabum-vision-mission-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(107, 66, 38, 0.15);
  background: #d4c4b0 !important;
}

/* --------------------------------------------------------------------------
   Brand Development Box - Hover Effect
   -------------------------------------------------------------------------- */

.chabum-brand-dev-box:hover {
  background: #d4c4b0 !important;
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-5px);
}

.chabum-brand-dev-box:hover .chabum-brand-icon {
  background: #FFFFFF !important;
  transform: translateX(10px);
  box-shadow: 0 6px 15px rgba(139, 111, 84, 0.2);
}

.chabum-brand-dev-box:hover .chabum-brand-icon svg path {
  stroke: #d4c4b0 !important;
}

.chabum-brand-dev-box:hover h4 {
  color: #FFFFFF !important;
}

.chabum-brand-dev-box:hover p {
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   Content Marketing Box - Hover Effect
   -------------------------------------------------------------------------- */

.chabum-content-marketing-box:hover {
  background: #d4c4b0 !important;
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-5px);
}

.chabum-content-marketing-box:hover .chabum-content-icon {
  background: #FFFFFF !important;
  transform: translateX(10px);
  box-shadow: 0 6px 15px rgba(139, 111, 84, 0.2);
}

.chabum-content-marketing-box:hover .chabum-content-icon svg path {
  stroke: #d4c4b0 !important;
}

.chabum-content-marketing-box:hover h4 {
  color: #FFFFFF !important;
}

.chabum-content-marketing-box:hover p {
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   E-commerce Management Box - Hover Effect
   -------------------------------------------------------------------------- */

.chabum-ecommerce-box:hover {
  background: #d4c4b0 !important;
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-5px);
}

.chabum-ecommerce-box:hover .chabum-ecommerce-icon {
  background: #FFFFFF !important;
  transform: translateX(10px);
  box-shadow: 0 6px 15px rgba(139, 111, 84, 0.2);
}

.chabum-ecommerce-box:hover .chabum-ecommerce-icon svg path {
  stroke: #d4c4b0 !important;
}

.chabum-ecommerce-box:hover h4 {
  color: #FFFFFF !important;
}

.chabum-ecommerce-box:hover p {
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   Operations & Customer Service Box - Hover Effect
   -------------------------------------------------------------------------- */

.chabum-operations-box:hover {
  background: #d4c4b0 !important;
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-5px);
}

.chabum-operations-box:hover .chabum-operations-icon {
  background: #FFFFFF !important;
  transform: translateX(10px);
  box-shadow: 0 6px 15px rgba(139, 111, 84, 0.2);
}

.chabum-operations-box:hover .chabum-operations-icon svg path {
  stroke: #d4c4b0 !important;
  fill: #d4c4b0 !important;
}

.chabum-operations-box:hover h4 {
  color: #FFFFFF !important;
}

.chabum-operations-box:hover p {
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   Universal Floating Shadow for All Tabs and Images
   -------------------------------------------------------------------------- */

/* Mammy tab01 images - fanpage and group boxes */
.project-content-section div[style*="background: white"][style*="border-radius: 12px"] {
  box-shadow: 0 8px 20px rgba(139, 111, 84, 0.15) !important;
}

/* Content product grid items */
.content-product-item {
  box-shadow: 0 8px 20px rgba(139, 111, 84, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.content-product-item:hover {
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-4px);
}

/* Campaign images */
.campaign-image-item {
  box-shadow: 0 8px 20px rgba(139, 111, 84, 0.15);
  transition: all 0.3s ease;
}

.campaign-image-item:hover {
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-4px);
}

/* Brand awareness posts */
.brand-awareness-item {
  box-shadow: 0 8px 20px rgba(139, 111, 84, 0.15);
  transition: all 0.3s ease;
}

.brand-awareness-item:hover {
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-4px);
}

/* Analytics images */
.analytics-item {
  box-shadow: 0 8px 20px rgba(139, 111, 84, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.analytics-item:hover {
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-4px);
}

/* MacBook mockup */
.macbook-mockup-container {
  filter: drop-shadow(0 8px 20px rgba(139, 111, 84, 0.15));
}

/* iPhone mockup */
.iphone-mockup-container {
  filter: drop-shadow(0 8px 20px rgba(139, 111, 84, 0.15));
}

/* Instagram slider */
.chabum-instagram-slider {
  box-shadow: 0 8px 20px rgba(139, 111, 84, 0.15);
  border-radius: 12px;
}

/* All images with border-radius in project sections */
.project-content-section img[style*="border-radius"] {
  box-shadow: 0 8px 20px rgba(139, 111, 84, 0.15);
  transition: all 0.3s ease;
}

.project-content-section img[style*="border-radius"]:hover {
  box-shadow: 0 12px 30px rgba(139, 111, 84, 0.25);
  transform: translateY(-4px);
}

/* ==========================================================================
   Performance Optimizations - Specific Transitions
   ========================================================================== */

/* Replace 'transition: all' with specific properties for better performance */

/* Vision/Mission boxes */
.chabum-vision-mission-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Brand Development boxes */
.chabum-brand-dev-box,
.chabum-content-marketing-box,
.chabum-ecommerce-box,
.chabum-operations-box {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease !important;
}

/* Icons */
.chabum-brand-icon,
.chabum-content-icon,
.chabum-ecommerce-icon,
.chabum-operations-icon {
  transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease !important;
}

/* Buttons */
a[href="#projects"],
a[href="#contact"] {
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

/* Language toggle */
.lang-btn {
  transition: color 200ms ease !important;
}

/* Nav links */
.nav-links a {
  transition: color 200ms ease, background-color 200ms ease !important;
}

/* Content product items */
.content-product-item,
.campaign-image-item,
.brand-awareness-item,
.analytics-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Marquee tiles */
.marquee-tile {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease !important;
}

/* Use transform and opacity for animations (GPU accelerated) */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.skill-tag {
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==========================================================================
   Mămmy Growth Metrics - Column Chart
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.growth-column-card {
  margin: 6rem auto 4rem;
  max-width: 900px;
  padding: 3.25rem 2.25rem;
  background: #f5ede0;
  border-radius: 1.5rem;
}

.growth-column-title {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: #6B4226;
  margin: 0 0 2.25rem;
  text-align: center;
  line-height: 1.2;
}

/* Growth Metric Cards - 3 Column Layout */
.growth-metric-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

.growth-metric-card {
  background: #8b6f5e;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.growth-metric-value {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #FFFFFF !important;
}

.growth-metric-card .growth-metric-name {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.growth-metric-card .growth-metric-source {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
}

.growth-column-chart {
  display: grid;
  gap: 1.5rem;
}

.growth-column-plot {
  position: relative;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.growth-column-grid {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.growth-column-grid-line {
  stroke: rgba(139, 111, 84, 0.24);
  stroke-width: 1;
}

.growth-column-axis {
  stroke: rgba(107, 66, 38, 0.52);
  stroke-width: 2.4;
  stroke-linecap: square;
}

.growth-column-y-label {
  font-family: 'Darleys Sans', sans-serif;
  font-size: 13px;
  fill: #6B4226;
  opacity: 0.72;
  text-anchor: middle;
}

.growth-bar-value {
  font-family: 'Darleys Sans', sans-serif;
  fill: #8B6F54;
  font-size: 26px;
  font-weight: 700;
  text-anchor: middle;
}

.growth-bar-fill {
  fill: url(#growth-bar-gradient);
  filter: drop-shadow(0 8px 10px rgba(107, 66, 38, 0.12));
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.growth-column-chart.is-visible .growth-bar-fill {
  transform: scaleY(1);
}

.growth-bar-label {
  font-family: 'Darleys Sans', sans-serif;
  fill: #6B4226;
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
}

.growth-bar-source {
  font-family: 'Darleys Sans', sans-serif;
  fill: #6B4226;
  font-size: 13px;
  text-anchor: middle;
  opacity: 0.78;
}

/* Growth Metric Cards - 3 Column Layout */
.growth-metric-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

.growth-metric-card {
  background: #8b6f5e !important;
  border-radius: 16px !important;
  padding: 2rem 1.5rem !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white !important;
}

.growth-metric-value {
  font-family: 'Darleys Sans', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #FFFFFF !important;
}

.growth-metric-card .growth-metric-name {
  font-family: 'Darleys Sans', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}

.growth-metric-card .growth-metric-source {
  font-family: 'Darleys Sans', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  opacity: 0.9;
  color: #FFFFFF !important;
}

@media (max-width: 767px) {
  .growth-column-card {
    margin: 4rem auto 3rem;
    padding: 2.25rem 1rem;
    border-radius: 1rem;
  }

  .growth-column-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .growth-column-plot {
    margin-inline: -0.25rem;
  }

  .growth-bar-value {
    font-size: 24px;
  }

  .growth-bar-label {
    font-size: 16px;
  }

  .growth-metric-list {
    grid-template-columns: 1fr;
  }
}
