/* ============================================================================
   MGR Ventures — Organic / Earth Tone Theme
   Warm terracotta, olive, sand, and charcoal.
   Rounded organic shapes, natural textures (paper, linen). Calm, human, grounded.
   ============================================================================ */

/* CSS Custom Properties */
:root {
  /* Earth Tone Palette */
  --terracotta: #c2703e;
  --terracotta-light: #d4925f;
  --terracotta-deep: #a85a2a;
  --olive: #6b7f3b;
  --olive-light: #8fa256;
  --olive-muted: #9aad6e;
  --sand: #e8dcc8;
  --sand-light: #f0e8d8;
  --cream: #f5f0e8;
  --cream-warm: #faf7f2;
  --linen: #fdf9f3;
  --charcoal: #2d2a26;
  --charcoal-soft: #3e3530;
  --brown-warm: #5c4f44;
  --brown-mid: #7a6c60;
  --brown-light: #a69888;
  --clay: #b89070;

  /* Semantic Colors */
  --text-primary: #f5f0e8;
  --text-secondary: #d4c8b6;
  --text-muted: #a69888;
  --text-dark: #2d2a26;
  --text-body: #5c4f44;
  --bg-primary: #faf7f2;
  --bg-secondary: #f5f0e8;

  /* Typography */
  --font-heading: "DM Serif Display", Georgia, serif;
  --font-primary: "Nunito", "Segoe UI", sans-serif;
  --font-accent: "Caveat", cursive;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Spacing */
  --section-padding: 120px;
  --container-padding: 24px;

  /* Border Radius — organic, rounded */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 50px;
  --radius-blob: 40% 60% 55% 45% / 55% 45% 60% 40%;

  /* Shadows — warm earth tones */
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 8px 30px rgba(45, 42, 38, 0.1);
  --shadow-xl: 0 16px 48px rgba(45, 42, 38, 0.12);
  --shadow-glow: 0 4px 24px rgba(194, 112, 62, 0.25);
  --shadow-terracotta: 0 0 30px rgba(194, 112, 62, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   Base Styles
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal overflow without creating weird scroll containers */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-primary);
  overflow-x: hidden;
  /* Subtle linen texture via repeating gradient noise */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C2703E' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

::selection {
  background: var(--terracotta);
  color: var(--cream);
}

a {
  text-decoration: none !important;
}

/* ============================================================================
   Navigation
   ============================================================================ */

.navbar {
  padding: 1.5rem 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(45, 42, 38, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194, 112, 62, 0.15);
  box-shadow: 0 4px 30px rgba(45, 42, 38, 0.15);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.brand-logo {
  color: var(--cream) !important;
  -webkit-text-fill-color: var(--cream);
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  position: relative;
  transition: color var(--transition-fast);
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.navbar-nav .nav-link:hover {
  color: var(--terracotta-light);
}

.navbar-nav .nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
  color: var(--terracotta-light);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(45, 42, 38, 0.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(194, 112, 62, 0.15);
  }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    160deg,
    var(--charcoal) 0%,
    var(--charcoal-soft) 40%,
    #4a3f35 70%,
    #5c4f44 100%
  );
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-logo {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
}

/* Organic cross-hatch pattern instead of tech grid */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(194, 112, 62, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(107, 127, 59, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(232, 220, 200, 0.03) 0%,
      transparent 60%
    );
  opacity: 1;
}

/* Soft organic orbs — terracotta, olive, sand */
.gradient-orb {
  position: absolute;
  border-radius: var(--radius-blob);
  filter: blur(100px);
  opacity: 0.2;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--terracotta);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--olive);
  bottom: -10%;
  left: -10%;
  animation-delay: 7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--sand);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
  opacity: 0.12;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(194, 112, 62, 0.12);
  border: 1px solid rgba(194, 112, 62, 0.3);
  border-radius: var(--radius-pill);
  color: var(--terracotta-light);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.hero-badge i {
  font-size: 0.9rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.gradient-text {
  color: var(--terracotta-light);
  -webkit-text-fill-color: var(--terracotta-light);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-pill);
  border: none;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-terracotta);
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
}

.btn-primary-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(194, 112, 62, 0.4);
  color: var(--cream);
  background: var(--terracotta-deep);
}

.btn-primary-glow:hover::before {
  left: 100%;
}

/* CTA hover-swap parity with MAIN */
.btn-primary-glow .cta-texts {
  position: relative;
  display: inline-block;
  text-align: center;
}

.btn-primary-glow .cta-text {
  display: block;
  white-space: nowrap;
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-glow .cta-default {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.btn-primary-glow .cta-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
}

.btn-primary-glow:hover .cta-default,
.btn-primary-glow:focus-visible .cta-default {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(3px);
}

.btn-primary-glow:hover .cta-hover,
.btn-primary-glow:focus-visible .cta-hover {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  border: 2px solid rgba(232, 220, 200, 0.3);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-outline-white:hover {
  background: rgba(232, 220, 200, 0.1);
  border-color: var(--terracotta-light);
  color: var(--terracotta-light);
  transform: translateY(-2px);
}

.hero-trust-line {
  margin-top: 3rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
}

.trust-item i {
  color: var(--olive-light);
  font-size: 1.25rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Logo Placeholder */
.hero-logo-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-placeholder {
  position: relative;
  width: 400px;
  height: 400px;
  background: rgba(232, 220, 200, 0.04);
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(194, 112, 62, 0.25);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: all var(--transition-base);
}

.hero-logo-placeholder:hover {
  border-color: var(--terracotta);
  background: rgba(232, 220, 200, 0.06);
}

.hero-logo-placeholder .logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: var(--terracotta);
  filter: blur(80px);
  opacity: 0.1;
  transition: opacity var(--transition-base);
}

.hero-logo-placeholder:hover .logo-glow {
  opacity: 0.18;
}

.hero-logo-placeholder i {
  font-size: 5rem;
  color: var(--terracotta);
  opacity: 0.4;
}

.hero-logo-placeholder span {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  opacity: 0.7;
}

.hero-logo-placeholder img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.hero-logo-placeholder.has-image {
  border-style: solid;
  border-color: rgba(232, 220, 200, 0.1);
}

.hero-logo-placeholder.has-image i,
.hero-logo-placeholder.has-image span {
  display: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(232, 220, 200, 0.4);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--terracotta);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* ============================================================================
   Section Common Styles
   ============================================================================ */

section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  margin-bottom: 5rem;
}

.section-label {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(107, 127, 59, 0.1);
  border: 1px solid rgba(107, 127, 59, 0.25);
  border-radius: var(--radius-pill);
  color: var(--olive);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--brown-mid);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}
/* ============================================================================
   Partner / Platform Routing 
   ============================================================================ */
.partner-section {
  position: relative;
  padding: 5.5rem 0 2.5rem;
}

.partner-callout {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(183, 211, 168, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(151, 126, 92, 0.12),
      transparent 38%
    ),
    linear-gradient(145deg, rgba(20, 35, 24, 0.94), rgba(28, 44, 31, 0.9));
  border: 1px solid rgba(183, 211, 168, 0.16);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.partner-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 22px,
      rgba(255, 255, 255, 0.018) 22px,
      rgba(255, 255, 255, 0.018) 23px
    );
  opacity: 0.45;
}

.partner-callout::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../../assets/images/SavorySuiteLogoNoBG.png");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: min(420px, 46%);
  opacity: 0.1;
}

.partner-callout > * {
  position: relative;
  z-index: 1;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(183, 211, 168, 0.12);
  border: 1px solid rgba(183, 211, 168, 0.16);
  color: #dce8d3;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.partner-badge i {
  font-size: 0.95rem;
  opacity: 0.9;
}

.partner-title {
  margin: 0 0 0.85rem;
  color: #f4f0e6;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.partner-desc {
  margin: 0;
  max-width: 62ch;
  color: rgba(244, 240, 230, 0.82);
  font-size: 1.02rem;
  line-height: 1.8;
}

.partner-desc strong {
  color: #f4f0e6;
  font-weight: 800;
}

.partner-desc a {
  color: #d8efbf;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 239, 191, 0.35);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.partner-desc a:hover,
.partner-desc a:focus-visible {
  color: #f2ffd9;
  border-color: rgba(242, 255, 217, 0.7);
}

.partner-cta-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner-note {
  color: rgba(244, 240, 230, 0.66);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 28ch;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .partner-section {
    padding-top: 4.5rem;
  }

  .partner-callout {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .partner-callout::after {
    background-position: center 1.25rem;
    background-size: min(340px, 70%);
    opacity: 0.08;
  }

  .partner-title {
    font-size: clamp(1.75rem, 6vw, 2.3rem);
  }

  .partner-desc {
    max-width: none;
  }

  .partner-btn {
    width: 100%;
    min-width: 0;
  }

  .partner-note {
    max-width: none;
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .partner-callout {
    padding: 1.25rem;
  }

  .partner-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .partner-title {
    font-size: 1.65rem;
  }

  .partner-desc {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .partner-note {
    font-size: 0.88rem;
  }
}

/* ============================================================================
   Services Section
   ============================================================================ */

.services-section {
  background: var(--cream);
  /* Subtle paper texture */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
}

.service-card {
  height: 100%;
  padding: 2.5rem;
  background: var(--bg-primary);
  border: 1px solid rgba(194, 112, 62, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--olive));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: 4px 4px 0 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(194, 112, 62, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--terracotta), var(--olive));
  border-radius: var(--radius-md);
  opacity: 0.1;
  transition: opacity var(--transition-base);
}

.service-card:hover .icon-bg {
  opacity: 0.18;
}

.service-icon-wrapper i {
  position: relative;
  font-size: 2.5rem;
  color: var(--terracotta);
  -webkit-text-fill-color: var(--terracotta);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--brown-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  padding: 0.35rem 0.85rem;
  background: var(--sand-light);
  color: var(--brown-warm);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(194, 112, 62, 0.08);
}

/* ============================================================================
   Process Section
   ============================================================================ */

.process-section {
  background: var(--bg-primary);
}

.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:not(:last-child) .timeline-connector {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 2rem);
  background: linear-gradient(180deg, var(--terracotta), transparent);
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding: 2.5rem;
  background: var(--cream);
  border: 1px solid rgba(194, 112, 62, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.timeline-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  box-shadow: var(--shadow-glow);
}

.timeline-item:nth-child(odd) .timeline-number {
  right: -40px;
}

.timeline-item:nth-child(even) .timeline-number {
  left: -40px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--brown-mid);
  line-height: 1.7;
}

/* ============================================================================
   Case Studies Section
   ============================================================================ */

.case-studies-section {
  background: var(--cream);
}

.case-study-card {
  height: 100%;
  padding: 2.5rem;
  background: var(--bg-primary);
  border: 1px solid rgba(194, 112, 62, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.case-study-card:not(.coming-soon):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.case-study-header {
  margin-bottom: 1.5rem;
}

.case-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(107, 127, 59, 0.1);
  border: 1px solid rgba(107, 127, 59, 0.25);
  color: var(--olive);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}

.case-study-card h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--charcoal);
}

.case-study-card p {
  color: var(--brown-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--sand-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(194, 112, 62, 0.06);
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--terracotta);
  -webkit-text-fill-color: var(--terracotta);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--brown-mid);
  font-weight: var(--font-weight-medium);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-badge {
  padding: 0.35rem 0.85rem;
  background: var(--sand-light);
  color: var(--brown-warm);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(194, 112, 62, 0.08);
}

/* Coming Soon Card */
.case-study-card.coming-soon {
  background: rgba(107, 127, 59, 0.04);
  border: 2px dashed var(--olive-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-content {
  text-align: center;
}

.coming-soon-content i {
  font-size: 4rem;
  color: var(--olive-muted);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.coming-soon-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-pill);
  border: none;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-base);
  margin-top: 1rem;
}

.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--cream);
  background: var(--terracotta-deep);
}

/* ============================================================================
   About Section
   ============================================================================ */

.about-section {
  background: var(--bg-primary);
}

.about-image {
  position: relative;
  height: 600px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-soft));
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.image-placeholder i {
  font-size: 8rem;
  color: rgba(194, 112, 62, 0.15);
}

.image-decoration {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(194, 112, 62, 0.1);
}

.deco-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.deco-card i {
  font-size: 2rem;
  color: var(--terracotta);
}

.deco-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--charcoal);
}

.deco-subtitle {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--olive);
}

.about-content {
  padding-left: 3rem;
}

.about-content .section-label {
  margin-bottom: 1.5rem;
}

.about-content .section-title {
  margin-bottom: 2rem;
}

.about-content p {
  color: var(--brown-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  background: var(--sand-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(194, 112, 62, 0.08);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--terracotta);
  -webkit-text-fill-color: var(--terracotta);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--brown-mid);
  font-weight: var(--font-weight-medium);
}

/* Real photo inside the placeholder */
.image-placeholder img.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: contrast(1.02) saturate(0.9) sepia(0.08);
  transition:
    transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 300ms;
}

.about-image:hover img.about-photo {
  transform: scale(1.04);
  filter: contrast(1.05) saturate(0.95) sepia(0.05);
}

/* ============================================================================
   Contact Section
   ============================================================================ */

.contact-section {
  background: var(--cream);
}

.contact-form-wrapper {
  padding: 3rem;
  background: var(--bg-primary);
  border: 1px solid rgba(194, 112, 62, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--sand);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background: var(--linen);
  color: var(--charcoal);
}

.form-control::placeholder {
  color: var(--brown-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(194, 112, 62, 0.1);
  background: var(--cream-warm);
}

.form-control.is-invalid {
  border-color: #c04040;
}

.invalid-feedback {
  display: none;
  color: #c04040;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-primary);
  border: 1px solid rgba(194, 112, 62, 0.1);
  border-radius: var(--radius-md);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(194, 112, 62, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 1.5rem;
  color: var(--terracotta);
}

.info-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.info-content a,
.info-content p {
  color: var(--brown-mid);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin: 0;
}

.info-content a:hover {
  color: var(--terracotta);
}

/* Form Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.alert-success {
  background: rgba(107, 127, 59, 0.1);
  color: #3d5a1a;
  border: 1px solid rgba(107, 127, 59, 0.3);
}

.alert-danger {
  background: rgba(192, 64, 64, 0.08);
  color: #8b2020;
  border: 1px solid rgba(192, 64, 64, 0.25);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  padding: 3rem 0;
  background: var(--charcoal);
  color: var(--text-primary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.5rem;
}

.footer-left p {
  color: var(--brown-light);
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--brown-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--terracotta-light);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 1199px) {
  .hero-title {
    font-size: 3.25rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 80px;
  }

  /* Fix: hero content sits under fixed-top navbar on mobile */
  .hero-section {
    padding-top: 110px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-visual {
    height: 400px;
    margin-top: 3rem;
  }

  .hero-logo {
    width: 700px;
    max-width: 700px;
    height: auto;
    display: block;
    margin-bottom: 50%;
  }

  .hero-logo-placeholder {
    width: 300px;
    height: 300px;
  }

  .hero-logo-placeholder i {
    font-size: 4rem;
  }

  .hero-logo-placeholder span {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .timeline-item .timeline-number,
  .timeline-item:nth-child(even) .timeline-number {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    margin-bottom: 1.5rem;
  }

  .timeline-item:not(:last-child) .timeline-connector {
    display: none;
  }

  .about-content {
    padding-left: 0;
    margin-top: 3rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary-glow,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .trust-logos {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-logo-placeholder {
    width: 250px;
    height: 250px;
  }

  .hero-logo-placeholder i {
    font-size: 3rem;
  }

  .hero-logo-placeholder span {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .case-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 450px) {
  .hero-logo {
    width: 400px;
    max-width: 400px;
    height: auto;
    display: block;
    transform: translateY(-75%);
  }

  .hero-section {
    padding-bottom: 0px;
  }

  .trust-logos {
    transform: translateY(-25%);
  }
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.w-100 {
  width: 100%;
}
.text-center {
  text-align: center;
}
.d-none {
  display: none;
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}

/* ============================================================================
   Animation Fixes
   ============================================================================ */

.float-card {
  opacity: 1;
}

/* Navbar - always visible with organic dark bg */
.navbar {
  background: rgba(45, 42, 38, 0.92) !important;
  backdrop-filter: blur(16px);
}

.navbar.scrolled {
  background: rgba(45, 42, 38, 0.97) !important;
}

/* ============================================================================
   Tech Stack Logos Section - Badge Morph Effect
   ============================================================================ */

.tech-logos-section {
  padding: 80px 0;
  background: var(--charcoal);
  overflow: hidden;
}

.tech-logos-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.tech-logos-wrapper .section-label {
  margin-bottom: 1rem;
  background: rgba(194, 112, 62, 0.12);
  border-color: rgba(194, 112, 62, 0.3);
  color: var(--terracotta-light);
}

.tech-logos-wrapper h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Tech Category Rows */
.tech-category-row {
  margin-bottom: 2rem;
  text-align: center;
}

.tech-category-label {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  color: var(--olive-light);
  text-transform: none;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--olive-muted);
}

/* Tech Stack Badge Container */
.tech-stack-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Base Badge Styles */
.badge-large {
  background-color: rgba(194, 112, 62, 0.1);
  color: var(--terracotta-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(194, 112, 62, 0.25);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  min-width: 80px;
  text-align: center;
}

.badge-large:hover {
  background-color: var(--terracotta);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(194, 112, 62, 0.3);
}

/* ============================================================================
   Tech Icon Morph Effect
   ============================================================================ */

.badge-large.tech-badge-morphable {
  min-width: 100px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-large .badge-text {
  display: inline-block;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.badge-large .badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-large .badge-icon i {
  font-size: 1.5rem;
  color: var(--cream);
}

.badge-large .badge-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.badge-large.tech-badge-morphable:hover .badge-text {
  opacity: 0;
  transform: scale(0.8);
}

.badge-large.tech-badge-morphable:hover .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.badge-large.tech-badge-morphable:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.badge-large.tech-badge-morphable:focus .badge-text {
  opacity: 0;
  transform: scale(0.8);
}

.badge-large.tech-badge-morphable:focus .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .tech-logos-section {
    padding: 60px 0;
  }

  .tech-category-row {
    margin-bottom: 1.5rem;
  }

  .badge-large {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 70px;
  }

  .badge-large.tech-badge-morphable {
    min-width: 85px;
    min-height: 38px;
  }

  .badge-large .badge-icon i {
    font-size: 1.25rem;
  }

  .badge-large .badge-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ================================
   Theme Switcher Floating Button
================================ */
.theme-switcher-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  border: none;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  background: var(--terracotta);
  box-shadow: var(--shadow-terracotta);
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.theme-switcher-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(194, 112, 62, 0.4);
  background: var(--terracotta-deep);
}

/* ================================
   Theme Panel
================================ */
.theme-panel {
  background: rgba(45, 42, 38, 0.96);
  backdrop-filter: blur(25px);
}

.theme-panel .offcanvas-title {
  font-family: var(--font-heading);
  font-weight: 400;
}

.theme-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.theme-list a {
  color: var(--cream);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 220, 200, 0.08);
  transition: all 0.25s;
  font-family: var(--font-primary);
}

.theme-list a:hover {
  background: rgba(194, 112, 62, 0.15);
  border-color: var(--terracotta);
  transform: translateX(6px);
  color: var(--terracotta-light);
}

/* ================================
   Page Transition
================================ */
.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 5000;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(194, 112, 62, 0.05),
      transparent 50%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(45, 42, 38, 0.65));
  backdrop-filter: blur(0px);
  transition:
    opacity 0.35s ease,
    backdrop-filter 0.45s ease;
}

body.is-transitioning .page-transition {
  opacity: 1;
  backdrop-filter: blur(6px);
}

/* ============================================================================
   Organic Decorative Touches
   ============================================================================ */

/* Warm horizontal rule between sections */
.services-section::before,
.case-studies-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--terracotta),
    transparent
  );
  border-radius: 3px;
}

/* Smooth organic border for the about photo */
.image-placeholder {
  border: 3px solid rgba(194, 112, 62, 0.15);
}

/* Subtle warm tint on the spinner */
.btn-spinner {
  color: var(--cream) !important;
}

/* Select dropdown styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C2703E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
