:root {
  /* 🔹 Three Primary Brand Colors */
  --color-cream: #F4F1EA;
  --color-black: #0A0A0A;
  --color-brand: #FAED25;

  --color-background-light: var(--color-cream);
  --color-background-dark: var(--color-black);

  --color-text-light: var(--color-cream);
  --color-text-dark: var(--color-black);

  --color-accent: var(--color-brand);

  /* Legacy mappings mapped strictly to brand system */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-halfwhite: var(--color-cream);
  --card-white: var(--color-cream);
  --card-yellow: var(--color-brand);
  --card-yellow-gradient: var(--color-brand);
  --brand-yellow: var(--color-brand);
  --brand-yellow-hover: var(--color-brand);
  --brand-dark: var(--color-black);
  --brand-dark-green: var(--color-black);
  --text-dark: var(--color-black);
  --text-muted: #555555;
  --text-light: #888888;
  --border-light: rgba(10, 10, 10, 0.12);
  --border-dark: rgba(244, 241, 234, 0.15);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.14);
  --shadow-yellow: 0 8px 24px rgba(250, 237, 37, 0.35);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;

  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
  color-scheme: dark light;
  color: var(--color-text-dark);
  background-color: var(--color-background-dark);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global scroll behavior and box sizing override */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-black);
  color: var(--color-cream);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select {
  font-family: var(--font-family);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

#root, .site-wrapper {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  background-color: transparent;
}

/* 🔹 Reusable Alternating Section Architectures */
.section--dark {
  background-color: var(--color-black) !important;
  color: var(--color-cream) !important;
  border-color: rgba(244, 241, 234, 0.1) !important;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6,
.section--dark strong {
  color: var(--color-cream) !important;
}

.section--dark p,
.section--dark .subtitle,
.section--dark .desc {
  color: rgba(244, 241, 234, 0.8) !important;
}

.section--light {
  background-color: var(--color-cream) !important;
  color: var(--color-black) !important;
  border-color: rgba(10, 10, 10, 0.1) !important;
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light h5,
.section--light h6,
.section--light strong {
  color: var(--color-black) !important;
}

.section--light p,
.section--light .subtitle,
.section--light .desc {
  color: rgba(10, 10, 10, 0.8) !important;
}

/* Ensure sections contain shapes cleanly without overflowing horizontally */
section,
.about,
.services-section,
.services-grid-section,
.services-hero,
.metalino-hero,
.work-showcase,
.youtube-section,
.landscape-work-section,
.about-container,
.services-page-container,
.service-detail-section,
.team-grid-section,
.team-header-section,
.contact-main-section,
.contact-header-section,
.hero-section,
.about-section,
.cta-section,
.clients-section,
.clients-page-hero {
  position: relative;
  overflow: hidden;
}

/* 🔹 Abstract Geometric Blueprint Shapes Styling (Brand Yellow & Cream) */
.abstract-bg-shape-wrapper {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  max-width: 380px;
  width: 100%;
  height: auto;
  opacity: 0.35;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  animation: floatAbstractShape 14s ease-in-out infinite alternate;
}

.abstract-bg-shape-wrapper.shape--cream-theme {
  filter: drop-shadow(0 4px 10px rgba(250, 237, 37, 0.08));
}

.abstract-bg-shape-wrapper.shape--dark-theme {
  opacity: 0.3;
  filter: drop-shadow(0 4px 12px rgba(250, 237, 37, 0.12));
}

.abstract-shape {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes floatAbstractShape {
  0% {
    transform: translate(var(--mouse-tx, 0px), var(--mouse-ty, 0px)) translateY(0px) rotate(var(--base-rot, 0deg)) scale(var(--base-scale, 1));
  }
  50% {
    transform: translate(var(--mouse-tx, 0px), var(--mouse-ty, 0px)) translateY(-12px) rotate(calc(var(--base-rot, 0deg) + 2deg)) scale(calc(var(--base-scale, 1) * 1.02));
  }
  100% {
    transform: translate(var(--mouse-tx, 0px), var(--mouse-ty, 0px)) translateY(9px) rotate(calc(var(--base-rot, 0deg) - 1.5deg)) scale(calc(var(--base-scale, 1) * 0.98));
  }
}

/* Ensure inner content and cards sit cleanly above background abstract shapes */
.metalino-hero-inner,
.about-container_h,
.about-content,
.about-navigation,
.services-container,
.services-grid,
.services-hero-container,
.work-showcase-intro,
.youtube-container,
.landscape-video-stage,
.team-container,
.contact-container,
.clients-container,
.clients-page-hero-inner,
.white-card,
.yellow-card,
.service-card,
.stat-item {
  position: relative;
  z-index: 2;
}

/* Common Card Components */
.white-card {
  background: var(--color-cream);
  color: var(--color-black);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.white-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand);
}

.yellow-card {
  background: var(--color-brand);
  color: var(--color-black);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brand);
  box-shadow: var(--shadow-yellow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yellow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(250, 237, 37, 0.45);
}

/* Badge Utilities */
.badge-yellow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-brand);
  color: var(--color-black) !important;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: none;
}

.badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-black);
  color: var(--color-cream);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 241, 234, 0.2);
}

/* Text Highlight Utilities */
.text-yellow {
  color: var(--color-brand) !important;
}

.highlight-text {
  background: var(--color-brand) !important;
  color: var(--color-black) !important;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-weight: 700;
  display: inline-block;
}

/* Button Utilities */
.btn-yellow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-brand);
  color: var(--color-black);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-brand);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-yellow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-yellow-cta:hover {
  background: var(--color-black);
  color: var(--color-brand);
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(250, 237, 37, 0.4);
}

.btn-dark-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-black);
  color: var(--color-cream);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-black);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-dark-cta:hover {
  background: var(--color-brand);
  color: var(--color-black);
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

.btn-cream-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-cream);
  color: var(--color-black);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-cream);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cream-cta:hover {
  background: var(--color-brand);
  color: var(--color-black);
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

/* =========================================
   SCROLL TRIGGERED REVEAL ANIMATIONS
   Basic, clean, non-intrusive fade & slide
   ========================================= */

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Maintain hover interactions after reveal */
.service-card.scroll-reveal.is-revealed:hover,
.team-card.scroll-reveal.is-revealed:hover,
.service-page-card.scroll-reveal.is-revealed:hover {
  transform: translateY(-8px);
}

.white-card.scroll-reveal.is-revealed:hover,
.yellow-card.scroll-reveal.is-revealed:hover,
.stat-item.scroll-reveal.is-revealed:hover {
  transform: translateY(-4px);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
