@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ==========================================================================
   CSS VARIABLES & CORE CONSTANTS (Team Animate Studio Brand System)
   ========================================================================== */
:root {
  --font-sans: "Quicksand", system-ui, -apple-system, sans-serif;
  --font-display: "Quicksand", sans-serif;
  --font-mono: "Quicksand", sans-serif;

  /* Brand Palette Raw Hex */
  --brand-ink: #0a314a;
  --brand-primary: #136b51;
  --brand-secondary: #1c6f81;
  --brand-accent: #afd0c8;
  --brand-soft: #dad7c8;
  --brand-surface: #fffa08;

  /* Theme Backgrounds - Dark Theme (Exact values) */
  --bg-primary: #04131c;
  --bg-secondary: #071c29;
  --bg-tertiary: #0a314a;
  --bg-glass: rgba(10, 49, 74, 0.75);
  --bg-glass-solid: rgba(4, 19, 28, 0.96);
  --border-color: rgba(175, 208, 200, 0.16);
  --border-glow: rgba(19, 107, 81, 0.35);
  --btn-border-color: rgba(175, 208, 200, 0.28);

  --theme-text-title: #ffffff;
  --theme-text-body: #ffffff;
  --text-primary: var(--theme-text-title);
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-muted: #afd0c8;

  --accent-primary: #0a314a;
  --accent-secondary: #1c6f81;
  --accent-gradient: linear-gradient(
    135deg,
    rgb(10, 49, 74) 0%,
    rgb(28, 111, 129) 100%
  );
  --accent-glow: rgba(10, 49, 74, 0.45);
  --text-gradient: linear-gradient(135deg, #136b51 0%, #1c6f81 100%);

  --card-shadow: 0 15px 40px -15px rgba(4, 19, 28, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(4, 19, 28, 0.5);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ==========================================================================
   ELEGANT LIGHT MODE CONSTANTS (Theme Toggle Option)
   ========================================================================== */
.light-mode,
[data-theme="light"] {
  --bg-primary: #fdfcf7;
  --bg-secondary: #f4f1e696;
  --bg-tertiary: #eae7d847;
  --bg-glass: rgba(244, 241, 230, 0.82);
  --bg-glass-solid: rgba(253, 252, 247, 0.98);
  --border-color: rgba(10, 49, 74, 0.12);
  --border-glow: rgba(19, 107, 81, 0.22);
  --btn-border-color: rgba(10, 49, 74, 0.16);

  --theme-text-title: #000000;
  --theme-text-body: #000000;
  --text-primary: var(--theme-text-title);
  --text-secondary: rgba(0, 0, 0, 0.88);
  --text-muted: #1c6f81;

  /* Mid-tone accents never shift color between themes (Global Rule 41) */
  --accent-primary: #0a314a;
  --accent-secondary: #1c6f81;
  --accent-gradient: linear-gradient(
    135deg,
    rgb(10, 49, 74) 0%,
    rgb(28, 111, 129) 100%
  );
  --accent-glow: rgba(10, 49, 74, 0.25);
  --text-gradient: linear-gradient(
    135deg,
    #0a314a 0%,
    #136b51 50%,
    #1c6f81 100%
  );

  --card-shadow:
    0 10px 30px -10px rgba(10, 49, 74, 0.08), 0 1px 3px rgba(10, 49, 74, 0.04);
  --glass-shadow: 0 8px 32px 0 rgba(10, 49, 74, 0.05);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lenis smooth scrolling rules */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  position: relative;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--theme-text-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

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

/* Global particle background wrapper sits behind everything */
#bg-particles-wrapper {
  z-index: 0 !important;
}

/* All direct children of body that are sections/header/footer sit above particles */
body > header,
body > section,
body > footer,
body > main,
body > .floating-cta {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button,
input,
textarea,
select {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--theme-text-title);
  text-transform: capitalize;
}

@media (max-width: 768px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    max-width: 100% !important;
  }
}

.gradient-text {
  background: var(--text-gradient, var(--accent-gradient));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #afd0c8 !important;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 3px;
}

.light-mode .section-label,
[data-theme="light"] .section-label {
  color: #afd0c8 !important;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brand-surface, #fffa08);
  border: 1.5px solid var(--brand-ink, #0a314a);
  box-shadow: 0 0 6px rgba(255, 250, 8, 0.4);
  margin-right: 0.65rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  max-width: 800px;
  text-wrap: balance;
  color: var(--theme-text-title);
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--theme-text-body);
  max-width: 600px;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* Portfolio section's intro paragraph sits directly above the filter
   buttons with no extra gap needed. */
#portfolio .section-desc {
  margin-bottom: 0;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 991px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding-top: 45px;
    padding-bottom: 45px;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-2 > * {
  min-width: 0;
}

@media (max-width: 991px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .story-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   BUTTONS (PREMIUM MAGNETIC-LOOK & GRADIENT HOVERS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgb(10, 49, 74) 0%,
    rgb(28, 111, 129) 100%
  ) !important;
  color: #ffffff !important;
  border: 1px solid white !important;
  box-shadow: 0 10px 25px -5px rgba(10, 49, 74, 0.45);
}

.btn-primary::before {
  display: none !important;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgb(28, 111, 129) 0%,
    rgb(10, 49, 74) 100%
  ) !important;
  color: #ffffff !important;
  border: 1px solid white !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(28, 111, 129, 0.55);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--btn-border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--brand-accent, #afd0c8);
  color: #ffffff;
  transform: translateY(-3px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  /* Only animate safe, purely-geometric/color properties.
     backdrop-filter & background-color are intentionally excluded:
     animating them together causes a white/black compositing flash
     on real devices right as the header becomes sticky. */
  transition:
    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 0;
}

.header.scrolled {
  background-color: var(--bg-glass-solid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: inline-block;
  animation: pulse 2s infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--bg-tertiary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: block;
}
.theme-toggle .moon-icon {
  display: none;
}

.light-mode .theme-toggle .sun-icon {
  display: none;
}
.light-mode .theme-toggle .moon-icon {
  display: block;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }

  .header.scrolled {
    padding: 0.75rem 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh; /* accounts for mobile browser chrome (address bar) */
    background-color: var(--bg-primary);
    opacity: 1 !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 6.5rem 2rem 3rem;
    gap: 0;
    transition:
      transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.5s;
    z-index: 105;
    transform: translateX(100%);
    visibility: hidden;
    border-left: 1px solid var(--border-color);
    counter-reset: nav-counter;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  .light-mode .nav,
  [data-theme="light"] .nav {
    background-color: #ffffff !important;
    opacity: 1 !important;
  }

  .nav-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease,
      color 0.3s ease;
    counter-increment: nav-counter;
  }

  .nav-link::before {
    content: "0" counter(nav-counter) ".";
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    opacity: 0.8;
  }
  .light-mode .nav-link::before {
    color: var(--accent-primary);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--text-primary);
    transform: scale(1.05);
  }

  /* Disable absolute bottom lines from desktop layout in mobile drawer */
  .nav-link::after {
    display: none;
  }

  .nav.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav.active .nav-link:nth-child(2) {
    transition-delay: 0.18s;
  }
  .nav.active .nav-link:nth-child(3) {
    transition-delay: 0.26s;
  }

  .header-actions {
    margin-right: 0.5rem;
    gap: 0.75rem !important;
    flex-wrap: nowrap;
  }
}

/* Hide Start Project from top header bar on mobile AND tablet (up to 991px,
   matching the site's tablet breakpoint) to avoid congestion. Split out from
   the 768px block above since the hamburger nav only kicks in below 768px,
   but this button should disappear earlier, at the tablet boundary. */
@media (max-width: 991px) {
  .header-actions .btn-primary {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 0.5rem !important;
  }
  .theme-toggle,
  .mobile-toggle {
    width: 38px;
    height: 38px;
  }
  .theme-toggle svg,
  .mobile-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(550px, 100vh, 820px);
  display: flex;
  align-items: center;
  padding-top: 165px;
  padding-bottom: 75px;
  background-color: var(--bg-primary);
  overflow: hidden;
}

/* Ambient Glow Backgrounds */
.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Animated dot-grid backdrop — used on the About hero, which is otherwise
   a flat color with no visual texture. Drifts slowly and fades out toward
   the edges so it reads as ambient texture, not a busy pattern. */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(19, 107, 81, 0.27) 1.5px,
    transparent 1.5px
  );
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(
    ellipse 65% 65% at 50% 35%,
    black 30%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 65% 65% at 50% 35%,
    black 30%,
    transparent 100%
  );
  animation: dot-grid-drift 25s linear infinite;
}

.light-mode .hero-dot-grid {
  background-image: radial-gradient(
    rgba(19, 107, 81, 0.17) 1.5px,
    transparent 1.5px
  );
}

@keyframes dot-grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 68px 68px;
  }
}

/* A handful of small twinkling particles scattered over the dot grid for
   extra depth — pure CSS via box-shadow, no extra DOM elements needed. */
.hero-dot-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(28, 111, 129, 0.9), transparent),
    radial-gradient(2px 2px at 38% 65%, rgba(19, 107, 81, 0.9), transparent),
    radial-gradient(
      2.5px 2.5px at 62% 20%,
      rgba(28, 111, 129, 0.85),
      transparent
    ),
    radial-gradient(2px 2px at 78% 55%, rgba(19, 107, 81, 0.9), transparent),
    radial-gradient(2px 2px at 25% 80%, rgba(28, 111, 129, 0.8), transparent),
    radial-gradient(
      2.5px 2.5px at 88% 30%,
      rgba(19, 107, 81, 0.85),
      transparent
    ),
    radial-gradient(2px 2px at 50% 85%, rgba(28, 111, 129, 0.85), transparent);
  animation: dot-twinkle 4s ease-in-out infinite;
}

@keyframes dot-twinkle {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.6rem, 9vw, 3.2rem);
  }
}

.hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 1.8rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
  }

  /* Swap visual order on mobile only — Explore Work on top, Book a Strategy Call below */
  .hero-ctas .btn-primary {
    order: 2;
  }

  .hero-ctas .btn-secondary {
    order: 1;
  }
}

/* Interactive Floating Hero Image */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 510 / 410;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  background: #0a314a;
}

.light-mode .hero-canvas-wrapper,
[data-theme="light"] .hero-canvas-wrapper {
  background: #f7f6ee !important;
  background-color: #f7f6ee !important;
  border-color: rgba(10, 49, 74, 0.12) !important;
}

.hero-canvas-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--accent-gradient);
  z-index: -1;
  border-radius: inherit;
  opacity: 0.2;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(
    1.06
  ); /* Symmetrically scale to push left & right borders outside wrapper */
}

.floating-card {
  position: absolute;
  padding: 1rem 1.5rem;
  background-color: var(--bg-glass-solid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-mode .floating-card,
[data-theme="light"] .floating-card {
  background: #eae7d847 !important;
  background-color: #eae7d847 !important;
  border-color: rgba(10, 49, 74, 0.12) !important;
  box-shadow:
    0 10px 30px -10px rgba(10, 49, 74, 0.08),
    0 1px 3px rgba(10, 49, 74, 0.04) !important;
}

.light-mode .floating-card-text,
[data-theme="light"] .floating-card-text {
  color: #0a314a !important;
}

.light-mode .floating-card-subtext,
[data-theme="light"] .floating-card-subtext {
  color: #555555 !important;
}

.floating-card-1 {
  bottom: 8%;
  left: -8%;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 15%;
  right: -8%;
  animation-delay: 3s;
}

.floating-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a314a !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card-icon svg,
.floating-card-svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.floating-card-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

.floating-card-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Floating cards responsiveness */
@media (max-width: 768px) {
  .floating-card {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .floating-card-icon {
    width: 34px;
    height: 34px;
  }

  .floating-card-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .floating-card-text {
    font-size: 0.8rem;
  }

  .floating-card-subtext {
    font-size: 0.7rem;
  }

  .floating-card-1 {
    bottom: 5%;
    left: -2%;
  }

  .floating-card-2 {
    top: 10%;
    right: -2%;
  }
}

@media (max-width: 480px) {
  .floating-card {
    padding: 0.5rem 0.8rem;
    gap: 0.5rem;
  }

  .floating-card-icon {
    width: 28px;
    height: 28px;
  }

  .floating-card-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .floating-card-text {
    font-size: 0.75rem;
  }

  .floating-card-subtext {
    font-size: 0.65rem;
  }

  .floating-card-1 {
    bottom: 3%;
    left: 3%;
  }

  .floating-card-2 {
    top: 3%;
    right: 3%;
  }
}

/* ==========================================================================
   CTA BANNER SECTION (About page)
   ========================================================================== */
.cta-banner {
  /* Match the signature card background on dark theme */
  background-color: var(--bg-tertiary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 4.5rem 3.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
  box-shadow:
    var(--card-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: ctaGlowBreathe 5s ease-in-out infinite;
}

/* Floating background SVG container inside CTA panel */
.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cta-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

/* Top-Left wireframe floating position */
.cta-shape-tl {
  top: -15px;
  left: -15px;
  animation: cta-float-tl 13s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(19, 107, 81, 0.25));
}

/* Bottom-Right rotating ring floating position */
.cta-shape-br {
  bottom: -15px;
  right: 3%;
  animation: cta-float-bl 15s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(28, 111, 129, 0.25));
}

@keyframes cta-float-tl {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-12px) rotate(8deg) scale(1.06);
  }
}

@keyframes cta-float-bl {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(15px) rotate(-15deg) scale(0.94);
  }
}

/* Slowly panning amber gradient underneath everything — the "living" base layer */
@keyframes ctaGradientDrift {
  0%,
  100% {
    background-position:
      0% 0%,
      0% 50%;
  }
  50% {
    background-position:
      0% 0%,
      100% 50%;
  }
}

/* Gentle breathing glow around the whole panel */
@keyframes ctaGlowBreathe {
  0%,
  100% {
    box-shadow: 0 15px 40px -15px rgba(4, 19, 28, 0.8);
  }
  50% {
    box-shadow: 0 20px 48px -10px rgba(10, 49, 74, 0.6);
  }
}

/* Faint drifting grid, masked to a soft center vignette so edges fade out */
.cta-banner-grid {
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(rgba(175, 208, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175, 208, 200, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 45%,
    black 0%,
    transparent 90%
  );
  animation: ctaGridDrift 16s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes ctaGridDrift {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      34px 34px,
      34px 34px;
  }
}

/* Soft blurred orbs that drift lazily — gives the panel real depth and motion */
.cta-banner-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
}

.cta-glow-1 {
  width: 240px;
  height: 240px;
  top: -90px;
  left: -60px;
  background: rgba(28, 111, 129, 0.25);
  animation: ctaOrbDrift1 9s ease-in-out infinite;
}

.cta-glow-2 {
  width: 260px;
  height: 260px;
  bottom: -100px;
  right: -70px;
  background: rgba(19, 107, 81, 0.22);
  animation: ctaOrbDrift2 11s ease-in-out infinite;
}

@keyframes ctaOrbDrift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(35px, 25px) scale(1.15);
  }
}

@keyframes ctaOrbDrift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, -20px) scale(1.12);
  }
}

.cta-banner-title,
.cta-banner-desc,
.cta-banner-actions {
  position: relative;
  z-index: 1;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-banner-btn {
  font-weight: 700;
  border-radius: 9999px;
  transition: var(--transition-smooth);
}

.cta-banner-btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.cta-banner-btn-primary:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.cta-banner-btn-secondary {
  background-color: #0a314a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-banner-btn-secondary:hover {
  background-color: #0a314a;
  border-color: #fff;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner,
  .cta-banner-grid,
  .cta-banner-glow,
  .cta-banner-btn::after {
    animation: none;
  }
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 3rem 1.75rem;
  }
}

@media (max-width: 576px) {
  .cta-banner-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-banner-actions .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cta-banner {
    padding: 2.5rem 1.25rem;
  }
}

/* ==========================================================================
   STATS & PROCESS timeline SECTION
   ========================================================================== */
.stats-bar {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.8rem 0; /* was 2.25rem — 20% smaller */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem; /* was 2rem — 20% smaller */
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem; /* was 3rem — 20% smaller */
  }
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem; /* was 0.5rem — 20% smaller */
}

.stat-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
  overflow: visible !important;
}

.stat-icon-wrapper svg,
.stat-icon-svg {
  width: 32px !important;
  height: 32px !important;
  overflow: visible !important;
  shape-rendering: geometricPrecision !important;
}

.stat-icon-wrapper svg,
.stat-icon-svg,
.stat-icon-svg path {
  fill: #1c6f81 !important;
  color: #1c6f81 !important;
  shape-rendering: geometricPrecision !important;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(
    2rem,
    3.2vw,
    2.8rem
  ); /* was clamp(2.5rem, 4vw, 3.5rem) — 20% smaller */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem; /* was 0.9rem — 20% smaller */
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.service-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 768px) {
  .service-card {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.5rem;
  }
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    135deg,
    rgb(175, 208, 200) 0%,
    rgb(28, 111, 129) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.light-mode .service-card::after{
  background: var(--accent-gradient);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(175, 208, 200, 0.16);
  border: 1px solid rgba(175, 208, 200, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, #0a314a 0%, #1c6f81 100%);
  border-color: #1c6f81;
  color: #afd0c8;
  box-shadow: 0 8px 24px rgba(10, 49, 74, 0.35);
  transform: scale(1.1) rotate(5deg);
}

.light-mode .service-icon-box,
[data-theme="light"] .service-icon-box {
  background-color: rgba(28, 111, 129, 0.08);
  border: 1px solid rgba(28, 111, 129, 0.2);
  color: #0a314a;
}

.light-mode .service-card:hover .service-icon-box,
[data-theme="light"] .service-card:hover .service-icon-box {
  background: linear-gradient(135deg, #0a314a 0%, #1c6f81 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(10, 49, 74, 0.25);
  border: none;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(5px);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.9rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--btn-border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--card-shadow);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

/* Suppress translate/reveal jumps during active category filtering to prevent overflow clipping */
.portfolio-grid.filtering-active .portfolio-item {
  transform: none !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.portfolio-media-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Hover scale removed — image stays static on hover */

.portfolio-media-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgba(10, 10, 12, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  z-index: 3;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.portfolio-media-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 4px);
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  z-index: 4;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Pulsing ring behind the play button — darker tone so it reads clearly at a glance. */
@keyframes portfolioPlayPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.55);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(194, 65, 12, 0);
  }
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.95) 0%,
    rgba(10, 10, 12, 0.2) 60%,
    rgba(10, 10, 12, 0) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* Overlay hover removed — overlay stays hidden */

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Video Modal Player */
.modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-inner {
  position: relative;
  width: 92%;
  max-width: 960px;
  margin: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75);
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
  transition: var(--transition-smooth);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  border-color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-close:hover svg {
  transform: rotate(90deg);
}

@media (max-width: 991px) {
  .modal-inner {
    width: 94%;
  }

  .modal-close {
    top: -46px;
    right: 0;
  }
}

@media (max-width: 576px) {
  .modal-inner {
    width: 100%;
  }

  .modal-close {
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
  }

  .modal-close svg {
    width: 14px;
    height: 14px;
  }
}

body.admin-bar .modal {
  padding-top: calc(32px + 1.5rem);
}
@media screen and (max-width: 782px) {
  body.admin-bar .modal {
    padding-top: calc(46px + 1rem);
  }
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.why-features-clean {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 3rem;
}

@media (max-width: 576px) {
  .why-features-clean {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* Why Choose Us Background decorations container */
.why-decorations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Ambient glowing blobs (No vector lines, 100% clean and modern) */
.section-glow {
  position: absolute;
  width: clamp(200px, 40vw, 420px);
  height: clamp(200px, 40vw, 420px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 107, 81, 0.09) 0%,
    rgba(28, 111, 129, 0.02) 40%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.5s ease;
  animation: breatheGlow 10s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
  0% {
    transform: scale(0.9) translate(0, 0);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.1) translate(15px, -15px);
    opacity: 0.95;
  }
}

.glow-left {
  top: 15%;
  left: -5%;
}

.glow-right {
  bottom: 5%;
  right: -5%;
  animation-delay: -5s;
}

/* 3D Isometric / Gyroscope Shapes (Ultra Premium Shaded Layouts) */
.why-shape,
.pricing-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.why-shape-left,
.pricing-shape-left {
  top: 5%;
  left: 0.5%;
  animation: float-3d-cube 14s ease-in-out infinite;
  filter: drop-shadow(0 15px 35px rgba(19, 107, 81, 0.18));
}

.why-shape-right,
.pricing-shape-right {
  bottom: 12%;
  right: 3%;
  animation: float-3d-gyro 16s ease-in-out infinite;
  filter: drop-shadow(0 15px 35px rgba(28, 111, 129, 0.15));
}

@media (max-width: 991px) {
  .why-shape,
  .pricing-shape {
    display: none !important;
  }
}

/* Custom 3D Shaded animations */
@keyframes float-3d-cube {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-20px) rotate(6deg) scale(1.05);
  }
}

@keyframes float-3d-gyro {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1.05);
  }
  50% {
    transform: translateY(18px) rotate(-8deg) scale(0.95);
  }
}

/* Blueprint-Style Spec Item Layout (Borderless & Minimalistic) */
.why-item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(28, 111, 129, 0.25);
  transition:
    border-color 0.4s ease,
    transform 0.4s ease;
  z-index: 1;
}

.why-item:hover {
  border-left-color: #1c6f81;
  transform: translateX(6px);
}

.why-item-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.light-mode .why-item-num,
[data-theme="light"] .why-item-num {
  background: linear-gradient(135deg, #0a314a 0%, #1c6f81 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--text-primary);
}

.why-item-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing decorations wrapper */
.pricing-decorations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pricing-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 2.5rem);
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-secondary);
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.toggle-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-btn.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 991px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
  }
}

.pricing-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
  overflow: hidden;
}

.pricing-card.reveal {
  /* Override standard bounce transition during scroll-reveal to be silky smooth */
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.pricing-card.featured {
  background-color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 20px 40px -10px rgba(19, 107, 81, 0.15);
}

.pricing-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 25px 50px -15px rgba(19, 107, 81, 0.12);
}

.pricing-card.featured:hover {
  box-shadow: 0 30px 60px -15px rgba(19, 107, 81, 0.25);
}

.badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-gradient);
  color: #afd0c8 !important;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.light-mode .badge {
  color: #afd0c8 !important;
}

.pricing-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 768px) {
  .pricing-card {
    padding: 40px 20px;
  }

  .price {
    font-size: 2.7rem;
  }
}

.period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.pricing-feature-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
}

.pricing-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: #000;
}

.pricing-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card-media:hover .pricing-card-img {
  transform: scale(1.08);
}

.pricing-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a314a 0%, #1c6f81 100%);
  border: 1px solid rgba(175, 208, 200, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 49, 74, 0.45);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background-color 0.3s ease;
  z-index: 2;
}

.pricing-card-media:hover .pricing-card-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: #afd0c8;
}

.pricing-card-play-btn::before,
.pricing-card-play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1c6f81;
  opacity: 0;
  z-index: -1;
}

.pricing-card-media:hover .pricing-card-play-btn::before,
.pricing-card-media:hover .pricing-card-play-btn::after {
  animation: pricingPlayPulse 3.2s cubic-bezier(0.34, 0, 0.2, 1) infinite;
}

.pricing-card-media:hover .pricing-card-play-btn::after {
  animation-delay: 1.6s;
}

@keyframes pricingPlayPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
    background: #1c6f81;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
    background: #afd0c8;
  }
}

.pricing-duration-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.3;
}

.pricing-feature-item.disabled {
  color: var(--text-secondary);
  opacity: 0.85;
  text-decoration: line-through;
}

.pricing-feature-icon.disabled {
  color: #ef4444;
  opacity: 1;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-wrapper {
  position: relative;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 3rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.light-mode .testimonial-card,
[data-theme="light"] .testimonial-card {
  background-color: #eae7d847;
}

@media (max-width: 576px) {
  .testimonials-track {
    gap: 14px;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.testimonial-info {
  text-align: left;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 0.45rem;
  color: #FFA426;
  font-size: 1.25rem;
}

.testimonial-stars span,
.light-mode .testimonial-stars span,
[data-theme="light"] .testimonial-stars span {
  filter: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.testimonial-arrow:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.05);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(175, 208, 200, 0.45);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.testimonial-dot.active {
  background-color: #0a314a !important;
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(10, 49, 74, 0.35);
}

:root:not(.light-mode):not([data-theme="light"]) .testimonial-dot.active,
[data-theme="dark"] .testimonial-dot.active {
  background-color: #0a314a !important;
  border: 1.5px solid #1c6f81;
  box-shadow: 0 0 10px rgba(28, 111, 129, 0.5);
}

/* ==========================================================================
   BLOGS SECTION
   ========================================================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.blog-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -10px rgba(19, 107, 81, 0.15);
}

.blog-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.08);
}

.blog-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  background-color: #0a314a !important;
  color: #ffffff !important;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(10, 49, 74, 0.4);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   PREMIUM GLASSMORPHISM BLOG CARD STACK (AS REQUESTED BY REFERENCE DESIGN)
   ========================================================================== */
.premium-stack-section {
  background: #071c29;
  position: relative;
  overflow: hidden;
}

.light-mode .premium-stack-section {
  background: #f4f1e696;
}

.premium-stack-section .section-title {
  color: var(--text-primary) !important;
}

.premium-stack-section .section-desc {
  color: var(--text-secondary) !important;
}

.premium-stack-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 485px;
  margin: 2rem auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base card layout */
.premium-stack-card {
  position: absolute;
  width: 390px;
  height: 435px;
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  user-select: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Cover image sitting on top of the card, numbering/tag overlaid on it */
.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

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

/* Dark gradient so the overlaid numbering/tag stay legible on any image */
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.05) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.card-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.1rem 1.65rem 1.25rem 1.65rem;
  box-sizing: border-box;
}

/* Card metadata header — overlaid on the cover image, same position as before */
.card-header-meta {
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  background: rgba(15, 15, 17, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff !important;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: #0a314a !important;
  box-shadow: 0 4px 12px rgba(10, 49, 74, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Card typography & Content — clamped cleanly with proper line-height so nothing is sliced */
.premium-stack-card .card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--theme-text-title);
  margin-bottom: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: all 0.5s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 3px;
  max-height: 2.85em;
}

.premium-stack-card .card-desc {
  font-size: 0.88rem;
  color: var(--theme-text-body);
  margin-bottom: 0;
  line-height: 1.48;
  transition: all 0.5s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.6em;
}

/* Learn more button - custom orange gradient accent match */
.premium-stack-card .card-btn {
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  box-shadow: 0 4px 12px var(--border-glow);
  display: inline-block;
  margin-top: auto;
}

.premium-stack-card .card-body > div:last-child {
  margin-top: auto;
  width: 100%;
}

.premium-stack-card .card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

@media (min-width: 992px) {
  /* State: Left Card (darker, lower depth) */
  .premium-stack-card.state-left {
    transform: translateX(-440px) scale(0.85);
    z-index: 10;
    background: linear-gradient(
      180deg,
      var(--bg-secondary) 0%,
      var(--bg-primary) 100%
    );
    border: 1px solid var(--border-color);
    opacity: 0.55;
  }

  /* State: Right Card (darker, lower depth) */
  .premium-stack-card.state-right {
    transform: translateX(440px) scale(0.85);
    z-index: 10;
    background: linear-gradient(
      180deg,
      var(--bg-secondary) 0%,
      var(--bg-primary) 100%
    );
    border: 1px solid var(--border-color);
    opacity: 0.55;
  }

  /* State: Center Card (active, glowing warm glassmorphism) */
  .premium-stack-card.state-center {
    transform: translateX(0) scale(1.05);
    z-index: 30;
    /* Glowing Warm Glassmorphism with Backdrop Filter */
    background: linear-gradient(
      145deg,
      rgba(19, 107, 81, 0.12) 0%,
      var(--bg-glass) 100%
    );
    backdrop-filter: blur(25px) saturate(130%);
    -webkit-backdrop-filter: blur(25px) saturate(130%);
    border: 1.5px solid rgba(19, 107, 81, 0.4);
    box-shadow:
      0 40px 80px rgba(19, 107, 81, 0.22),
      0 0 32px rgba(19, 107, 81, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 1;
  }

  .premium-stack-card.state-center .card-title {
    font-weight: 600;
  }

  .premium-stack-card.state-center .card-desc {
    color: var(--text-primary);
  }

  /* Hover indicators — no scale/size change, only visual elevation */
  .premium-stack-card.state-left:hover,
  .premium-stack-card.state-left.is-hovered {
    opacity: 1 !important;
    z-index: 100 !important;
    transform: translateX(-440px) scale(0.85) !important;
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.8),
      0 0 26px rgba(19, 107, 81, 0.28) !important;
    border: 1.5px solid rgba(19, 107, 81, 0.6) !important;
    background: linear-gradient(
      145deg,
      rgba(19, 107, 81, 0.15) 0%,
      var(--bg-tertiary) 100%
    ) !important;
    filter: none !important;
  }

  .premium-stack-card.state-right:hover,
  .premium-stack-card.state-right.is-hovered {
    opacity: 1 !important;
    z-index: 100 !important;
    transform: translateX(440px) scale(0.85) !important;
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.8),
      0 0 26px rgba(19, 107, 81, 0.28) !important;
    border: 1.5px solid rgba(19, 107, 81, 0.6) !important;
    background: linear-gradient(
      145deg,
      rgba(19, 107, 81, 0.15) 0%,
      var(--bg-tertiary) 100%
    ) !important;
    filter: none !important;
  }

  .premium-stack-card.state-center:hover,
  .premium-stack-card.state-center.is-hovered {
    opacity: 1 !important;
    z-index: 100 !important;
    transform: translateX(0) scale(1.05) !important;
    box-shadow:
      0 45px 90px rgba(0, 0, 0, 0.8),
      0 0 32px rgba(19, 107, 81, 0.32) !important;
    border: 1.5px solid rgba(19, 107, 81, 0.7) !important;
    filter: none !important;
  }

  /* Dim non-hovered cards when container has a hovered card */
  .premium-stack-container.has-hover .premium-stack-card:not(.is-hovered) {
    opacity: 0.25 !important;
    filter: blur(2.5px) grayscale(20%);
    z-index: 1 !important;
  }

  .premium-stack-container.has-hover
    .premium-stack-card.state-left:not(.is-hovered) {
    transform: translateX(-475px) scale(0.78) !important;
  }

  .premium-stack-container.has-hover
    .premium-stack-card.state-right:not(.is-hovered) {
    transform: translateX(475px) scale(0.78) !important;
  }

  .premium-stack-container.has-hover
    .premium-stack-card.state-center:not(.is-hovered) {
    transform: translateX(0) scale(0.78) !important;
  }
}

/* Mobile & Tablet responsive layout (animation-free) */
@media (max-width: 991px) {
  .premium-stack-container {
    height: auto;
    flex-direction: column;
    gap: 2rem;
    margin: 1.5rem auto 0;
  }

  .premium-stack-card {
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 380px;
    padding: 0 !important;
    opacity: 1 !important;
    box-shadow: var(--card-shadow) !important;
    transition: none !important;
    cursor: default !important;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
  }

  .premium-stack-card.state-center {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
  }

  /* Disable all hover/click animation states on touch-sized viewports */
  .premium-stack-card:hover,
  .premium-stack-card.is-hovered,
  .premium-stack-card:not(.state-center):hover {
    transform: none !important;
  }

  .premium-stack-card .card-title,
  .premium-stack-card .card-desc,
  .premium-stack-card .card-btn {
    transition: none !important;
  }

  .premium-stack-card .card-btn:hover {
    transform: none !important;
  }

  .premium-stack-container:hover .premium-stack-card:not(:hover),
  .premium-stack-container.has-hover .premium-stack-card:not(.is-hovered) {
    opacity: 1 !important;
    filter: none !important;
    z-index: auto !important;
  }
}

/* ==========================================================================
   CONTACT FORM / GENERAL CONTACT
   ========================================================================== */
.contact-section-wrapper {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
}

.contact-header-block {
  margin-bottom: 1.25rem;
}

.contact-header-block .section-label {
  margin-bottom: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-header-block .section-title {
  margin-bottom: 0;
  line-height: 1.15;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  width: 100%;
}

@media (max-width: 480px) {
  .contact-header-block {
    margin-bottom: 1rem;
  }
  .contact-cards-stack {
    gap: 0.9rem;
  }
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  cursor: default;
  transition: var(--transition-smooth);
  background-color: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.contact-info-item > div:last-child {
  flex: 1;
  min-width: 0;
}

.contact-info-item .contact-info-icon {
  background-color: rgba(19, 107, 81, 0.09);
  border: 1px solid rgba(19, 107, 81, 0.22);
}

.light-mode .contact-info-item,
[data-theme="light"] .contact-info-item {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 16px -2px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03);
}

.light-mode .contact-info-item .contact-info-icon,
[data-theme="light"] .contact-info-item .contact-info-icon {
  background-color: var(--bg-tertiary);
  border: none;
  color: var(--accent-primary);
}

a.contact-info-item {
  cursor: pointer;
}

.contact-info-item:hover {
  background-color: #1e1e24;
  border-color: rgba(19, 107, 81, 0.6);
  transform: translateX(4px);
  box-shadow:
    0 8px 30px -4px rgba(19, 107, 81, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-info-item:hover .contact-info-icon {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.light-mode .contact-info-item:hover,
[data-theme="light"] .contact-info-item:hover {
  background-color: #ffffff;
  border-color: rgba(19, 107, 81, 0.45);
  box-shadow:
    0 8px 24px -4px rgba(19, 107, 81, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-info-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-val {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form {
  background-color: var(--bg-primary);
  border: 1px solid var(--btn-border-color);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--card-shadow);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .contact-form {
    padding: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--theme-text-title);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--theme-text-body);
  transition: var(--transition-smooth);
}

.form-input::placeholder {
  color: var(--theme-text-body);
  opacity: 0.65;
}

.form-input:focus {
  border-color: var(--accent-primary);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* Universal Form Controls, Labels & Dropdowns System */
label {
  color: var(--theme-text-title);
}

input,
textarea {
  color: var(--theme-text-body);
}

input::placeholder,
textarea::placeholder {
  color: var(--theme-text-body);
  opacity: 0.65;
}

select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: var(--bg-tertiary);
  color: #ededede3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: calc(100% - 16px) center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

select option {
  background-color: var(--bg-tertiary);
  color: #ededede3;
}

.light-mode select {
  background-color: #ffffff;
  color: #1a1a1ae3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.light-mode select option {
  background-color: #ffffff;
  color: #1a1a1ae3;
}

/* ==========================================================================
   ABOUT PAGE SPECIFICS
   ========================================================================== */
.story-image-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  aspect-ratio: 4 / 3;
}

@media (max-width: 991px) {
  /* Image is first in the markup (desktop: image left, text right).
     When the grid collapses to a single column on mobile/tablet, push
     the image below the text instead of stacking in DOM order. */
  .story-image-box {
    order: 2;
  }
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
}

.team-avatar-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: var(--bg-secondary);
  box-shadow: var(--card-shadow);
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.88rem;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 23px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .footer {
    padding: 5rem 0 0rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 5rem 0 0rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand-desc {
  color: #ffffff;
  font-size: 0.95rem;
  max-width: 350px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transition: var(--transition-smooth);
}

.social-link svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.social-link:hover svg {
  transform: scale(1.12);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: capitalize;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  color: #ffffff;
  font-size: 0.92rem;
  display: inline-block;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

a.footer-link:hover {
  color: #ffffff !important;
  opacity: 0.85;
  transform: translateX(5px) scale(1.04);
}

/* Footer Contact Info rows (icon + text) */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-smooth);
}

a.footer-contact-item {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

a.footer-contact-item:hover {
  color: #ffffff !important;
  opacity: 0.85;
  transform: translateX(4px) scale(1.03);
}

a.footer-contact-item:hover .footer-contact-icon {
  background-color: #1c6f81 !important;
  color: #ffffff !important;
  border-color: #afd0c8 !important;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(28, 111, 129, 0.35);
}

/* Light mode monochrome footer overrides */
.light-mode .footer-brand-desc,
.light-mode .footer-title,
.light-mode .footer-link,
.light-mode a.footer-link:hover,
.light-mode .footer-contact-item,
.light-mode a.footer-contact-item:hover,
.light-mode .footer-contact-icon,
.light-mode .social-link,
.light-mode .social-link:hover,
.light-mode .footer-copy,
.light-mode .footer-credit-link,
[data-theme="light"] .footer-brand-desc,
[data-theme="light"] .footer-title,
[data-theme="light"] .footer-link,
[data-theme="light"] a.footer-link:hover,
[data-theme="light"] .footer-contact-item,
[data-theme="light"] a.footer-contact-item:hover,
[data-theme="light"] .footer-contact-icon,
[data-theme="light"] .social-link,
[data-theme="light"] .social-link:hover,
[data-theme="light"] .footer-copy,
[data-theme="light"] .footer-credit-link {
  color: #000000 !important;
}

.light-mode .social-link,
[data-theme="light"] .social-link {
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000000 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.light-mode .social-link svg,
[data-theme="light"] .social-link svg {
  fill: #000000 !important;
  color: #000000 !important;
}

.light-mode .social-link:hover,
[data-theme="light"] .social-link:hover,
.light-mode .social-link:focus,
[data-theme="light"] .social-link:focus,
.light-mode .social-link:active,
[data-theme="light"] .social-link:active {
  background-color: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.45);
  color: #000000 !important;
  outline: none;
}

.light-mode .footer-contact-icon,
[data-theme="light"] .footer-contact-icon {
  background-color: var(--bg-tertiary);
  border-color: rgba(0, 0, 0, 0.2);
}

.light-mode a.footer-contact-item:hover,
[data-theme="light"] a.footer-contact-item:hover {
  color: #0a314a !important;
  opacity: 1;
}

.light-mode a.footer-contact-item:hover .footer-contact-icon,
[data-theme="light"] a.footer-contact-item:hover .footer-contact-icon {
  background-color: #0a314a !important;
  border-color: #1c6f81 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(10, 49, 74, 0.25);
  transform: scale(1.08);
}

.light-mode a.footer-contact-item:hover .footer-contact-icon svg,
[data-theme="light"] a.footer-contact-item:hover .footer-contact-icon svg {
  color: #ffffff !important;
}

/* Ensure stroke-based icons (email envelope, phone, clock, address) keep fill: none and stroke: #ffffff */
.light-mode a.footer-contact-item:hover .footer-contact-icon svg[fill="none"],
[data-theme="light"]
  a.footer-contact-item:hover
  .footer-contact-icon
  svg[fill="none"],
.light-mode a.footer-contact-item:hover .footer-contact-icon svg[fill="none"] *,
[data-theme="light"]
  a.footer-contact-item:hover
  .footer-contact-icon
  svg[fill="none"]
  * {
  fill: none !important;
  stroke: #ffffff !important;
}

/* Ensure solid filled icons (like WhatsApp) fill with crisp white */
.light-mode
  a.footer-contact-item:hover
  .footer-contact-icon
  svg:not([fill="none"]),
[data-theme="light"]
  a.footer-contact-item:hover
  .footer-contact-icon
  svg:not([fill="none"]),
.light-mode
  a.footer-contact-item:hover
  .footer-contact-icon
  svg:not([fill="none"])
  path,
[data-theme="light"]
  a.footer-contact-item:hover
  .footer-contact-icon
  svg:not([fill="none"])
  path {
  fill: #ffffff !important;
}

.footer-bottom {
  padding-top: 23px;
  padding-bottom: 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Tablet: give the line a bit more breathing room than the default
   container padding at this width */
@media (max-width: 991px) {
  .footer-bottom {
    padding-left: 35px;
    padding-right: 35px;
  }
}

/* Mobile: less top padding, and enough bottom/side padding that the
   floating call/WhatsApp buttons never sit over the credit line */
@media (max-width: 480px) {
  .footer-bottom {
    padding-top: 1.5rem;
    padding-bottom: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-copy {
    font-size: 0.78rem;
  }
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-credit-link {
  color: var(--accent-primary);
  font-weight: 600;
}

.footer-credit-link:hover {
  color: var(--accent-secondary);
}

.footer-dot {
  color: #ffffff;
}

.light-mode .footer-dot {
  color: #000000;
}

/* ==========================================================================
   BLOG POST PAGE (single dynamic template — content swapped in via JS
   based on the ?post= query param)
   ========================================================================== */
.blog-post-banner {
  width: 70%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.blog-post-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.blog-post-content {
  width: 70%;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1.1rem;
}

.blog-post-content ul {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
}

.blog-post-content li {
  margin-bottom: 0.6rem;
}

@media (max-width: 768px) {
  .blog-post-banner,
  .blog-post-content {
    width: 100%;
  }
}

/* Related Articles grid */
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

.related-article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.related-article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(19, 107, 81, 0.4);
}

.related-article-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

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

.related-article-body {
  padding: 1.5rem 1.6rem;
}

.related-article-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: #0a314a !important;
  color: #ffffff !important;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  margin-bottom: 0.6rem;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(10, 49, 74, 0.3);
}

.related-article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SCROLL REVEAL / INTERACTION ANIMATIONS (UP & DOWN ENTRANCES)
   ========================================================================== */
.reveal {
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(15px);
}

.reveal-down {
  transform: translateY(-15px);
}

.reveal-left {
  transform: translateX(-15px);
}

.reveal-right {
  transform: translateX(15px);
}

.reveal-scale {
  transform: scale(0.98);
}

/* Dynamic Active states applied by IntersectionObserver */
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger Animation Delays */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}

/* Pure CSS Keyframes Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Floating elements in background */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(120px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  animation: blob-float 14s ease-in-out infinite;
}

.circle-1 {
  width: 400px;
  height: 400px;
  top: 15%;
  left: -10%;
}

.circle-2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  right: -15%;
  animation-delay: -7s;
  animation-duration: 18s;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.08);
  }
  66% {
    transform: translate(-25px, 25px) scale(0.95);
  }
}

/* Success Message Overlay */
.form-success-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-glass-solid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 5;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

/* ==========================================================================
   CUSTOM CURSOR (Premium ring + dot morph — Desktop only)
   ========================================================================== */

/* Hide custom cursor on touch/mobile devices */
@media (pointer: coarse) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}

/* Native cursor stays visible (arrow / pointer) — the ring + dot below
   are a decorative overlay on top of it, not a replacement for it. */

/* Outer ring */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #fffa08;
  box-shadow: 0 0 5px rgba(10, 49, 74, 0.4);
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition:
    opacity 0.3s ease,
    width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

/* Inner dot */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fffa08;
  box-shadow: 0 0 3px rgba(10, 49, 74, 0.5);
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition:
    opacity 0.3s ease,
    width 0.25s ease,
    height 0.25s ease;
}

/* Cursor becomes visible once mouse enters the document */
.custom-cursor.visible,
.custom-cursor-dot.visible {
  opacity: 1;
}

/* Hover state — ring expands, filled with semi-transparent tint */
.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 250, 8, 0.15);
  border-color: #fffa08;
}

.custom-cursor-dot.hover {
  width: 4px;
  height: 4px;
}

/* Play state — when hovering portfolio items (PLAY pill shape) */
.custom-cursor.play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(255, 250, 8, 0.2);
  border-color: #fffa08;
  /* PLAY text shown via a pseudo element */
}

.custom-cursor.play::after {
  content: "PLAY";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fffa08;
  text-shadow: 0 1px 2px rgba(10, 49, 74, 0.7);
}

.custom-cursor-dot.play {
  opacity: 0;
}

/* Link-hover state — cursor becomes a hollow filled gradient ring */
.custom-cursor.link {
  width: 54px;
  height: 54px;
  border-color: #fffa08;
  background-color: rgba(255, 250, 8, 0.12);
}

/* ==========================================================================
   FLOATING WHATSAPP CTA BUTTON (Official Brand Green)
   ========================================================================== */

.floating-cta-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Base button style */
.floating-cta-btn {
  pointer-events: auto;
  position: fixed;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #25d366 !important;
  color: #ffffff !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(37, 211, 102, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border: none;
  z-index: 9999;
}

.floating-cta-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Placement: fixed, circular, bottom-right corner */
.floating-cta-right {
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
}

/* Brand Green WhatsApp Button */
#floating-whatsapp-btn {
  background: #25d366 !important;
  color: #ffffff !important;
}

/* Tooltip container */
.cta-tooltip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ededed;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  letter-spacing: 0.01em;
  right: 72px;
  left: auto;
}

.floating-cta-right:hover .cta-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Custom Tooltip Styling for Light Mode */
.light-mode .cta-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(26, 26, 26, 0.08);
  color: #121214;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Icon rotation and scale transitions */
.cta-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.floating-cta-right:hover .cta-icon-wrapper {
  transform: scale(1.05);
}

/* Responsiveness adjustments for standard mobile sizes */
@media (max-width: 480px) {
  .floating-cta-btn {
    width: 52px;
    height: 52px;
  }

  .floating-cta-right {
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
  }

  .cta-tooltip {
    display: none;
  }
}

/* ==========================================================================
   SITE-WIDE CANVAS & HERO DECORATIONS
   ========================================================================== */
#bg-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.hero-video-trigger {
  cursor: pointer;
  position: relative;
}

/* Centered play button overlay for hero SVGs with premium float and wave ripple effects */
/* Centered play button overlay styled like the reference image with theme colors */
.hero-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: hero-play-float 5s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 15px 40px rgba(19, 107, 81, 0.6);
}

/* Play triangle symbol in the center */
.play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 6px;
  z-index: 12;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-play-overlay:hover .play-triangle {
  transform: scale(1.1);
}

/* Floating keyframe animation */
@keyframes hero-play-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px);
  }
}

/* Light mode overrides */
.light-mode .hero-play-overlay {
  background: var(--accent-gradient);
  box-shadow: 0 10px 30px var(--accent-glow);
}

/* Hero Section Abstract background decorations */
.hero-decorations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

/* Wireframe Cube styling and slow floating animation */
.shape-cube {
  top: 15%;
  left: 8%;
  animation: float-cube 9s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(19, 107, 81, 0.45));
}

@keyframes float-cube {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-15px) rotate(10deg) scale(1.05);
  }
}

/* Orange Node Constellations styling and soft floating */
.shape-nodes {
  bottom: 18%;
  left: 14%;
  animation: float-nodes 12s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(19, 107, 81, 0.45));
}

@keyframes float-nodes {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(12px) translateX(-8px) scale(0.98);
  }
}

/* Bottom-right rotating ring */
.shape-ring {
  bottom: 2%;
  right: 2%;
  left: auto;
  top: auto;
  animation: rotate-simple 35s linear infinite;
  opacity: 1;
}

@keyframes rotate-simple {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .hero-decorations {
    opacity: 0.55; /* Reduce visibility on smaller mobile devices */
  }
  .shape-cube {
    top: 10%;
    left: 5%;
    transform: scale(0.65);
  }
  .shape-nodes {
    bottom: 15%;
    left: 8%;
    transform: scale(0.65);
  }
  .shape-ring {
    bottom: 8%;
    right: 5%;
    left: auto;
    top: auto;
    transform: scale(0.75);
  }
}

/* ==========================================================================
   SERVICES SECTION BACKGROUND DECORATIONS
   ========================================================================== */
.services-decorations {
  position: absolute;
  top: 60px;
  right: 10%;
  pointer-events: none;
  z-index: 0;
}

.services-shape-right {
  animation: services-spin-float 16s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(19, 107, 81, 0.4));
  opacity: 0.7;
}

@keyframes services-spin-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-20px) rotate(180deg) scale(1.08);
  }
}

@media (max-width: 991px) {
  .services-decorations {
    top: 30px;
    right: 4%;
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .services-decorations {
    display: none; /* Hide on small mobile to avoid layout overcrowding */
  }
}

/* ==========================================================================
   FOOTER BACKGROUND GLOWING DOTS DECORATION
   ========================================================================== */
.footer {
  position: relative;
  overflow: hidden;
}

.footer-decorations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.footer-glow-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.25;
  box-shadow:
    0 0 10px var(--accent-primary),
    0 0 20px var(--accent-primary);
  animation: footer-dot-pulse 4s ease-in-out infinite;
}

@keyframes footer-dot-pulse {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.25);
  }
}

.footer-decorations .dot-1 {
  top: 15%;
  left: 12%;
  animation-delay: 0.2s;
}
.footer-decorations .dot-2 {
  top: 65%;
  left: 35%;
  animation-delay: 1.4s;
}
.footer-decorations .dot-3 {
  top: 30%;
  right: 18%;
  animation-delay: 0.8s;
}
.footer-decorations .dot-4 {
  bottom: 20%;
  left: 55%;
  animation-delay: 2.1s;
}
.footer-decorations .dot-5 {
  top: 75%;
  right: 40%;
  animation-delay: 1.1s;
}

/* ==========================================================================
   ABOUT STORY SECTION BACKGROUND DECORATIONS
   ========================================================================== */
.story-decorations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* Sits above the image flow */
  overflow: hidden;
}

.story-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.9; /* High visibility as requested */
  transition: opacity 0.5s ease;
}

.story-shape-left {
  top: 15%;
  left: 2%;
  animation: float-story-left 12s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(19, 107, 81, 0.25));
}

.story-shape-right {
  bottom: 15%;
  right: 2%;
  animation: float-story-right 14s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(28, 111, 129, 0.25));
}

@keyframes float-story-left {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-20px) rotate(10deg) scale(1.06);
  }
}

@keyframes float-story-right {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1.05);
  }
  50% {
    transform: translateY(18px) rotate(-12deg) scale(0.94);
  }
}

@media (max-width: 768px) {
  .story-decorations {
    display: none; /* Hide on small mobile to avoid layout crowding */
  }
}

/* ==========================================================================
   ABOUT HERO SECTION BACKGROUND DECORATIONS
   ========================================================================== */
.about-hero-decorations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.about-hero-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.9; /* High visibility as requested */
  transition: opacity 0.5s ease;
}

.about-hero-shape-tl {
  top: 22%;
  left: 5%;
  right: auto;
  animation: about-hero-float-tl 11s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(19, 107, 81, 0.35));
}

.about-hero-shape-br {
  bottom: 12%;
  right: 5%;
  left: auto;
  animation: about-hero-float-br 13s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(28, 111, 129, 0.35));
}

@keyframes about-hero-float-tl {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-15px) rotate(12deg) scale(1.05);
  }
}

@keyframes about-hero-float-br {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1.04);
  }
  50% {
    transform: translateY(18px) rotate(-10deg) scale(0.96);
  }
}

@media (max-width: 768px) {
  .about-hero-decorations {
    display: none; /* Hide on small mobile to prevent layout overcrowding */
  }
}

/* ==========================================================================
   ABOUT PIPELINE SEQUENCE TIMELINE
   ========================================================================== */
.pipeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  position: relative;
  margin-top: 3.5rem;
}

.pipeline-line {
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-primary) 0%,
    rgba(19, 107, 81, 0.15) 100%
  );
  z-index: 0;
}

.pipeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pipeline-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid rgba(19, 107, 81, 0.25);
  background-clip: border-box;
  box-shadow: var(--glass-shadow);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: none;
}

.light-mode .pipeline-badge {
  border-color: rgba(28, 111, 129, 0.3);
  background: #f4f1e6;
}

.pipeline-step:hover .pipeline-badge,
.pipeline-step:focus-within .pipeline-badge,
.pipeline-step.active .pipeline-badge,
.pipeline-badge:hover,
.pipeline-badge.active {
  background: var(--accent-gradient) !important;
  color: #fff !important;
  transform: scale(1.12);
  border: 2px solid var(--accent-primary) !important;
  background-clip: border-box !important;
  box-shadow: 0 0 22px rgba(19, 107, 81, 0.4) !important;
}

.pipeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pipeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 991px) {
  .pipeline-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .pipeline-line {
    display: none !important;
  }
  .pipeline-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "badge title"
      "badge desc";
    gap: 0.25rem 1.5rem;
    text-align: left;
    align-items: start;
  }
  .pipeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 31px;
    bottom: calc(-3rem - 15px);
    left: 31px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      var(--accent-primary) 0%,
      rgba(19, 107, 81, 0.45) 100%
    );
    z-index: 1;
    pointer-events: none;
  }
  .pipeline-badge {
    grid-area: badge;
    margin: 0;
    flex-shrink: 0;
  }
  .pipeline-title {
    grid-area: title;
    margin-bottom: 0;
  }
  .pipeline-desc {
    grid-area: desc;
  }
}

/* Light Mode Overrides for CTA Banner */
.light-mode .cta-banner,
[data-theme="light"] .cta-banner {
  background: linear-gradient(
    135deg,
    rgba(218, 215, 200, 0.25) 0%,
    rgba(175, 208, 200, 0.15) 50%,
    rgba(253, 252, 247, 0.35) 100%
  );
  border: 1px solid rgba(28, 111, 129, 0.22);
  color: var(--text-primary);
  box-shadow:
    0 25px 55px -15px rgba(10, 49, 74, 0.1),
    0 0 35px rgba(28, 111, 129, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: ctaGlowBreatheLight 5s ease-in-out infinite;
}

.light-mode .cta-banner-grid,
[data-theme="light"] .cta-banner-grid {
  background-image:
    linear-gradient(rgba(28, 111, 129, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 111, 129, 0.12) 1px, transparent 1px);
}

.light-mode .cta-banner-title {
  color: var(--text-primary);
}

.light-mode .cta-banner-desc {
  color: var(--text-secondary);
}

.light-mode .cta-banner-btn-primary {
  background: linear-gradient(135deg, #0a314a 0%, #1c6f81 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(10, 49, 74, 0.25);
}

.light-mode .cta-banner-btn-primary:hover {
  background: linear-gradient(135deg, #1c6f81 0%, #0a314a 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(28, 111, 129, 0.35);
  transform: translateY(-2px);
}

.light-mode .cta-banner-btn-secondary {
  background-color: #daece8;
  color: var(--text-primary);
  border: 1px solid rgba(10, 49, 74, 0.25);
}

.light-mode .cta-banner-btn-secondary:hover {
  background-color: #cde4df;
  border-color: var(--text-primary);
}

.light-mode .cta-shape {
  opacity: 0.55;
}

.light-mode .cta-shape svg polygon,
.light-mode .cta-shape svg line,
.light-mode .cta-shape svg circle {
  stroke: rgba(28, 111, 129, 0.45) !important;
}

.light-mode .cta-shape-tl {
  filter: drop-shadow(0 5px 15px rgba(10, 49, 74, 0.08));
}

.light-mode .cta-shape-br {
  filter: drop-shadow(0 5px 15px rgba(10, 49, 74, 0.08));
}

.light-mode .cta-glow-1 {
  background: rgba(28, 111, 129, 0.12);
}

.light-mode .cta-glow-2 {
  background: rgba(175, 208, 200, 0.16);
}

@keyframes ctaGlowBreatheLight {
  0%,
  100% {
    box-shadow:
      0 25px 50px -15px rgba(10, 49, 74, 0.08),
      0 0 25px rgba(28, 111, 129, 0.02);
  }
  50% {
    box-shadow:
      0 28px 55px -12px rgba(10, 49, 74, 0.14),
      0 0 35px rgba(28, 111, 129, 0.06);
  }
}

/* ==========================================================================
   FAQ ACCORDION SECTION
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(19, 107, 81, 0.4);
  box-shadow: 0 10px 30px -10px rgba(19, 107, 81, 0.15);
}

.faq-item:hover {
  border-color: rgba(19, 107, 81, 0.3);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none; /* Hide default arrow */
  user-select: none;
  line-height: 1.2;
}

/* Hide default marker on Chrome/Safari/Firefox */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item[open] .faq-icon {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 15px rgba(19, 107, 81, 0.35);
}

.faq-item[open] .faq-icon svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid transparent;
  animation: faq-slide-down 0.3s ease-out forwards;
}

.faq-item[open] .faq-answer {
  border-top-color: rgba(255, 255, 255, 0.04);
}

@keyframes faq-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light mode overrides */
.light-mode .faq-item {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.07);
}

.light-mode .faq-item[open] {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(19, 107, 81, 0.45);
}

.light-mode .faq-item:hover {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(19, 107, 81, 0.25);
}

.light-mode .faq-icon {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   BLOG ARCHIVE PAGE GRID
   ========================================================================== */
.blogs-grid-section {
  padding-bottom: 7rem;
  position: relative;
  z-index: 1;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 991px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.blog-list-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.blog-list-card:hover {
  transform: translateY(-6px);
  border-color: rgba(19, 107, 81, 0.4);
  box-shadow: 0 20px 40px rgba(19, 107, 81, 0.15);
}

.blog-list-card-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.blog-list-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-list-card:hover .blog-list-card-img {
  transform: scale(1.04);
}

.blog-list-card-meta {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.blog-list-card-num {
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(19, 107, 81, 0.25);
}

.blog-list-card-tag {
  background: #0a314a !important;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: none;
  box-shadow: 0 4px 12px rgba(10, 49, 74, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-list-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-list-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-list-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-list-card:hover .blog-list-card-title {
  color: var(--accent-primary);
}

.blog-list-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-list-card-btn {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.blog-list-card-btn svg {
  transition: transform 0.3s ease;
}

.blog-list-card-btn:hover {
  color: var(--accent-secondary);
}

.blog-list-card-btn:hover svg {
  transform: translateX(4px);
}

/* Light mode overrides for simple card */
.light-mode .blog-list-card,
[data-theme="light"] .blog-list-card {
  background: #eae7d847;
  border-color: rgba(0, 0, 0, 0.06);
}

.light-mode .blog-list-card:hover {
  border-color: rgba(19, 107, 81, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   WOOCOMMERCE CHECKOUT HERO RESPONSIVE RHYTHM
   ========================================================================== */
.woo-checkout-hero {
  --woo-checkout-hero-pb: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 768px) {
  .woo-checkout-hero,
  body.woocommerce-checkout .hero,
  body.woocommerce-checkout .page-hero,
  body.woocommerce-checkout .vibemotion-woo-hero {
    --woo-checkout-hero-pb: 0.1rem !important;
    padding-bottom: 0.1rem !important;
  }
  .process-desc {
    margin-bottom: 0px !important;
  }
  .hero {
    padding-bottom: 45px !important;
  }
  /* .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 27px;
    grid-template-columns: repeat(2, 1fr);
  } */
}

/* ==========================================================================
   BUTTON PADDING SPECIFICATION (12px 24px)
   Applies strictly to: CTA banner buttons, Header button, Main Home Hero buttons,
   and Our Value Proposition (Why Choose Us) section button.
   ========================================================================== */
.header-btn,
.header-actions .btn-primary,
.hero-ctas .btn,
.why-btn,
#why-choose-us .btn,
.cta-banner-btn,
.cta-banner-actions .btn {
  padding: 12px 24px !important;
}

/* Extracted classes to replace previous inline styles cleanly */
.header-btn {
  font-size: 0.88rem;
}

#why-choose-us,
.why-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.why-desc {
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   ORDER MODAL CLOSE BUTTON HOVER FIX
   Prevents cross button from disappearing on hover in light/dark modes
   ========================================================================== */
.vm-order-modal .modal-close.vm-order-close {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.vm-order-modal .modal-close.vm-order-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.light-mode .vm-order-modal .modal-close,
[data-theme="light"] .vm-order-modal .modal-close {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
}

.vm-order-modal .modal-close.vm-order-close:hover,
.vm-order-modal .modal-close.vm-order-close:focus-visible,
.light-mode .vm-order-modal .modal-close:hover,
.light-mode .vm-order-modal .modal-close:focus-visible,
[data-theme="light"] .vm-order-modal .modal-close:hover,
[data-theme="light"] .vm-order-modal .modal-close:focus-visible {
  background: var(--accent-primary, #136b51) !important;
  border-color: var(--accent-primary, #136b51) !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 4px 15px var(--accent-glow, rgba(19, 107, 81, 0.4));
}

/* ==========================================================================
   GLOBAL BRAND GRADIENT ON ALL BUTTONS (Dark Mode Default)
   Strictly White Border (1px solid white) on Dark Mode (Default & Hover)
   ========================================================================== */
.btn-primary,
.cta-banner-btn-primary,
.pricing-btn,
.header-actions .btn-primary,
.header-btn.btn-primary,
.hero-ctas .btn-primary,
.why-btn.btn-primary,
#why-choose-us .btn-primary,
button[type="submit"].btn-primary,
.contact-section-wrapper button[type="submit"],
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.vm-order-btn-primary,
.woocommerce #place_order,
.vibemotion-woo .button.alt,
.vibemotion-woo a.button.alt,
.vibemotion-woo button.button.alt,
.vibemotion-woo input.button.alt,
.vibemotion-woo .btn-primary,
.vibemotion-woo #place_order,
.vibemotion-woo .checkout-button,
.vibemotion-woo form.checkout_coupon .button,
.vibemotion-woo form.checkout_coupon button[name="apply_coupon"],
.vibemotion-woo form.checkout_coupon input[type="submit"],
.vibemotion-woo .woocommerce-form-login .woocommerce-form-login__submit,
.vibemotion-woo form.woocommerce-form-login button[name="login"],
.vibemotion-woo form.woocommerce-form-login .button,
form.checkout_coupon button[name="apply_coupon"],
form.checkout_coupon .button,
.woocommerce-form-login .woocommerce-form-login__submit,
form.woocommerce-form-login button[name="login"],
.premium-stack-card .card-btn {
  background: linear-gradient(
    135deg,
    rgb(10, 49, 74) 0%,
    rgb(28, 111, 129) 100%
  ) !important;
  color: #ffffff !important;
  border: 1px solid white !important;
  box-shadow: 0 4px 14px rgba(10, 49, 74, 0.35) !important;
}

.btn-primary:hover,
.cta-banner-btn-primary:hover,
.pricing-btn:hover,
.header-actions .btn-primary:hover,
.header-btn.btn-primary:hover,
.hero-ctas .btn-primary:hover,
.why-btn.btn-primary:hover,
#why-choose-us .btn-primary:hover,
button[type="submit"].btn-primary:hover,
.contact-section-wrapper button[type="submit"]:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.vm-order-btn-primary:hover,
.woocommerce #place_order:hover,
.vibemotion-woo .button.alt:hover,
.vibemotion-woo a.button.alt:hover,
.vibemotion-woo button.button.alt:hover,
.vibemotion-woo input.button.alt:hover,
.vibemotion-woo .btn-primary:hover,
.vibemotion-woo #place_order:hover,
.vibemotion-woo .checkout-button:hover,
.vibemotion-woo form.checkout_coupon .button:hover,
.vibemotion-woo form.checkout_coupon button[name="apply_coupon"]:hover,
.vibemotion-woo form.checkout_coupon input[type="submit"]:hover,
.vibemotion-woo .woocommerce-form-login .woocommerce-form-login__submit:hover,
.vibemotion-woo form.woocommerce-form-login button[name="login"]:hover,
.vibemotion-woo form.woocommerce-form-login .button:hover,
form.checkout_coupon button[name="apply_coupon"]:hover,
form.checkout_coupon .button:hover,
.woocommerce-form-login .woocommerce-form-login__submit:hover,
form.woocommerce-form-login button[name="login"]:hover,
.premium-stack-card .card-btn:hover {
  background: linear-gradient(
    135deg,
    rgb(28, 111, 129) 0%,
    rgb(10, 49, 74) 100%
  ) !important;
  color: #ffffff !important;
  border: 1px solid white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 111, 129, 0.45) !important;
}

/* ==========================================================================
   GLOBAL BRAND GRADIENT ON ALL BUTTONS (Light Mode - Strictly No White Border)
   ========================================================================== */
.light-mode .btn-primary,
.light-mode .cta-banner-btn-primary,
.light-mode .pricing-btn,
.light-mode .header-actions .btn-primary,
.light-mode .header-btn.btn-primary,
.light-mode .hero-ctas .btn-primary,
.light-mode .why-btn.btn-primary,
.light-mode #why-choose-us .btn-primary,
.light-mode button[type="submit"].btn-primary,
.light-mode .contact-section-wrapper button[type="submit"],
.light-mode .woocommerce #respond input#submit.alt,
.light-mode .woocommerce a.button.alt,
.light-mode .woocommerce button.button.alt,
.light-mode .woocommerce input.button.alt,
.light-mode .vm-order-btn-primary,
.light-mode .woocommerce #place_order,
.light-mode .vibemotion-woo .button.alt,
.light-mode .vibemotion-woo a.button.alt,
.light-mode .vibemotion-woo button.button.alt,
.light-mode .vibemotion-woo input.button.alt,
.light-mode .vibemotion-woo .btn-primary,
.light-mode .vibemotion-woo #place_order,
.light-mode .vibemotion-woo .checkout-button,
.light-mode .vibemotion-woo form.checkout_coupon .button,
.light-mode .vibemotion-woo form.checkout_coupon button[name="apply_coupon"],
.light-mode .vibemotion-woo form.checkout_coupon input[type="submit"],
.light-mode
  .vibemotion-woo
  .woocommerce-form-login
  .woocommerce-form-login__submit,
.light-mode .vibemotion-woo form.woocommerce-form-login button[name="login"],
.light-mode .vibemotion-woo form.woocommerce-form-login .button,
.light-mode .premium-stack-card .card-btn,
[data-theme="light"] .btn-primary,
[data-theme="light"] .cta-banner-btn-primary,
[data-theme="light"] .pricing-btn,
[data-theme="light"] .header-actions .btn-primary,
[data-theme="light"] .header-btn.btn-primary,
[data-theme="light"] .hero-ctas .btn-primary,
[data-theme="light"] .why-btn.btn-primary,
[data-theme="light"] #why-choose-us .btn-primary,
[data-theme="light"] button[type="submit"].btn-primary,
[data-theme="light"] .contact-section-wrapper button[type="submit"],
[data-theme="light"] .woocommerce #respond input#submit.alt,
[data-theme="light"] .woocommerce a.button.alt,
[data-theme="light"] .woocommerce button.button.alt,
[data-theme="light"] .woocommerce input.button.alt,
[data-theme="light"] .vm-order-btn-primary,
[data-theme="light"] .woocommerce #place_order,
[data-theme="light"] .vibemotion-woo .button.alt,
[data-theme="light"] .vibemotion-woo a.button.alt,
[data-theme="light"] .vibemotion-woo button.button.alt,
[data-theme="light"] .vibemotion-woo input.button.alt,
[data-theme="light"] .vibemotion-woo .btn-primary,
[data-theme="light"] .vibemotion-woo #place_order,
[data-theme="light"] .vibemotion-woo .checkout-button,
[data-theme="light"] .vibemotion-woo form.checkout_coupon .button,
[data-theme="light"]
  .vibemotion-woo
  form.checkout_coupon
  button[name="apply_coupon"],
[data-theme="light"] .vibemotion-woo form.checkout_coupon input[type="submit"],
[data-theme="light"]
  .vibemotion-woo
  .woocommerce-form-login
  .woocommerce-form-login__submit,
[data-theme="light"]
  .vibemotion-woo
  form.woocommerce-form-login
  button[name="login"],
[data-theme="light"] .vibemotion-woo form.woocommerce-form-login .button,
[data-theme="light"] .premium-stack-card .card-btn {
  background: linear-gradient(
    135deg,
    rgb(10, 49, 74) 0%,
    rgb(28, 111, 129) 100%
  ) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(10, 49, 74, 0.35) !important;
}

.light-mode .btn-primary:hover,
.light-mode .cta-banner-btn-primary:hover,
.light-mode .pricing-btn:hover,
.light-mode .header-actions .btn-primary:hover,
.light-mode .header-btn.btn-primary:hover,
.light-mode .hero-ctas .btn-primary:hover,
.light-mode .why-btn.btn-primary:hover,
.light-mode #why-choose-us .btn-primary:hover,
.light-mode button[type="submit"].btn-primary:hover,
.light-mode .contact-section-wrapper button[type="submit"]:hover,
.light-mode .woocommerce #respond input#submit.alt:hover,
.light-mode .woocommerce a.button.alt:hover,
.light-mode .woocommerce button.button.alt:hover,
.light-mode .woocommerce input.button.alt:hover,
.light-mode .vm-order-btn-primary:hover,
.light-mode .woocommerce #place_order:hover,
.light-mode .vibemotion-woo .button.alt:hover,
.light-mode .vibemotion-woo a.button.alt:hover,
.light-mode .vibemotion-woo button.button.alt:hover,
.light-mode .vibemotion-woo input.button.alt:hover,
.light-mode .vibemotion-woo .btn-primary:hover,
.light-mode .vibemotion-woo #place_order:hover,
.light-mode .vibemotion-woo .checkout-button:hover,
.light-mode .vibemotion-woo form.checkout_coupon .button:hover,
.light-mode
  .vibemotion-woo
  form.checkout_coupon
  button[name="apply_coupon"]:hover,
.light-mode .vibemotion-woo form.checkout_coupon input[type="submit"]:hover,
.light-mode
  .vibemotion-woo
  .woocommerce-form-login
  .woocommerce-form-login__submit:hover,
.light-mode
  .vibemotion-woo
  form.woocommerce-form-login
  button[name="login"]:hover,
.light-mode .vibemotion-woo form.woocommerce-form-login .button:hover,
.light-mode .premium-stack-card .card-btn:hover,
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .cta-banner-btn-primary:hover,
[data-theme="light"] .pricing-btn:hover,
[data-theme="light"] .header-actions .btn-primary:hover,
[data-theme="light"] .header-btn.btn-primary:hover,
[data-theme="light"] .hero-ctas .btn-primary:hover,
[data-theme="light"] .why-btn.btn-primary:hover,
[data-theme="light"] #why-choose-us .btn-primary:hover,
[data-theme="light"] button[type="submit"].btn-primary:hover,
[data-theme="light"] .contact-section-wrapper button[type="submit"]:hover,
[data-theme="light"] .woocommerce #respond input#submit.alt:hover,
[data-theme="light"] .woocommerce a.button.alt:hover,
[data-theme="light"] .woocommerce button.button.alt:hover,
[data-theme="light"] .woocommerce input.button.alt:hover,
[data-theme="light"] .vm-order-btn-primary:hover,
[data-theme="light"] .woocommerce #place_order:hover,
[data-theme="light"] .vibemotion-woo .button.alt:hover,
[data-theme="light"] .vibemotion-woo a.button.alt:hover,
[data-theme="light"] .vibemotion-woo button.button.alt:hover,
[data-theme="light"] .vibemotion-woo input.button.alt:hover,
[data-theme="light"] .vibemotion-woo .btn-primary:hover,
[data-theme="light"] .vibemotion-woo #place_order:hover,
[data-theme="light"] .vibemotion-woo .checkout-button:hover,
[data-theme="light"] .vibemotion-woo form.checkout_coupon .button:hover,
[data-theme="light"]
  .vibemotion-woo
  form.checkout_coupon
  button[name="apply_coupon"]:hover,
[data-theme="light"]
  .vibemotion-woo
  form.checkout_coupon
  input[type="submit"]:hover,
[data-theme="light"]
  .vibemotion-woo
  .woocommerce-form-login
  .woocommerce-form-login__submit:hover,
[data-theme="light"]
  .vibemotion-woo
  form.woocommerce-form-login
  button[name="login"]:hover,
[data-theme="light"] .vibemotion-woo form.woocommerce-form-login .button:hover,
[data-theme="light"] .premium-stack-card .card-btn:hover {
  background: linear-gradient(
    135deg,
    rgb(28, 111, 129) 0%,
    rgb(10, 49, 74) 100%
  ) !important;
  color: #ffffff !important;
  border: none !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 111, 129, 0.45) !important;
}

h2.cta-banner-title {
  width: 65%;
}

.light-mode .btn-secondary:hover {
  color: black;
}

.pricing-feature-icon {
  color: white;
}

.light-mode .pricing-feature-icon {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  h2.cta-banner-title {
    width: 100%;
  }
  #blog-post-meta {
    margin-bottom: 0px !important;
  }
}

/* Password Visibility Toggle Eye Icon: White on dark mode strictly, default on light mode */
.show-password-input::before,
.show-password-input::after,
.woocommerce .show-password-input::before,
.woocommerce .show-password-input::after,
.password-input .show-password-input::before,
.password-input .show-password-input::after {
  filter: brightness(0) invert(1) !important;
  opacity: 0.9 !important;
}

.show-password-input:hover::before,
.show-password-input:hover::after,
.woocommerce .show-password-input:hover::before,
.woocommerce .show-password-input:hover::after,
.password-input .show-password-input:hover::before,
.password-input .show-password-input:hover::after {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

.light-mode .show-password-input::before,
.light-mode .show-password-input::after,
.light-mode .woocommerce .show-password-input::before,
.light-mode .woocommerce .show-password-input::after,
.light-mode .password-input .show-password-input::before,
.light-mode .password-input .show-password-input::after,
[data-theme="light"] .show-password-input::before,
[data-theme="light"] .show-password-input::after,
[data-theme="light"] .woocommerce .show-password-input::before,
[data-theme="light"] .woocommerce .show-password-input::after,
[data-theme="light"] .password-input .show-password-input::before,
[data-theme="light"] .password-input .show-password-input::after {
  filter: none !important;
  opacity: 0.7 !important;
}

.process-desc, .faq-desc{
  margin-bottom: 0px !important;
}

.light-mode .pricing-feature-icon.disabled
{
  color: #f63f3f;
}

.blogs-desc, .pricings-desc, .testimonials-desc{
  margin-bottom: 0px;
}

/* Mobile (<= 768px): Apply Coupon button full-width on checkout page */
@media (max-width: 768px) {
  .vibemotion-woo form.checkout_coupon .button,
  .vibemotion-woo form.checkout_coupon button[name="apply_coupon"],
  .vibemotion-woo form.checkout_coupon input[type="submit"],
  .woocommerce-checkout form.checkout_coupon .button,
  .woocommerce-checkout form.checkout_coupon button[name="apply_coupon"],
  form.checkout_coupon button[name="apply_coupon"],
  form.checkout_coupon .button {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .stats-bar .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px; /* adjust if needed */
  }

  .stats-bar .stat-item {
    width: 100%;
  }

  .premium-stack-section {
    padding-top: 45px;
  }

  body.blog section.hero .hero-desc {
    margin-bottom: 0px;
  }

  .blog-post-content h2 {
    margin: 1.7rem 0 1rem;
  }

  /* Contact page full width on mobile */
  .contact-section-wrapper .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 2.5rem !important;
  }

  .contact-section-wrapper .contact-form-wrap,
  .contact-section-wrapper .grid-2 > :has(.contact-form),
  .contact-section-wrapper .contact-info-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-section-wrapper .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(1.25rem, 4vw, 1.75rem) !important;
    box-sizing: border-box !important;
  }

  .contact-section-wrapper .contact-cards-stack {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .contact-section-wrapper .contact-info-item {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    box-sizing: border-box !important;
  }

  .contact-section-wrapper .contact-info-item > div:last-child {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .contact-section-wrapper .form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .contact-section-wrapper .form-group,
  .contact-section-wrapper .form-input,
  .contact-section-wrapper textarea.form-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .pipeline-badge {
    height: 50px;
    width: 50px;
    margin-left: 6px;
    margin-top: -15px;
  }
}
