:root {
  --theme-color-background: #ffffff;
  --theme-color-foreground: #0f172a;
  --theme-color-primary: #1c3d73;
  --theme-color-primary-foreground: #ffffff;
  --theme-color-secondary: #f5b642;
  --theme-color-secondary-foreground: #1c3d73;
  --theme-color-muted: #f1f5f9;
  --theme-color-muted-foreground: #64748b;
  --theme-color-border: #e2e8f0;
  --theme-color-input: #e2e8f0;
  --theme-color-ring: #1c3d73;
  --theme-radius-lg: 0.75rem;
  --theme-radius-md: 0.625rem;
  --theme-radius-sm: 0.5rem;
  --theme-font-sans: "Inter", sans-serif;
  --theme-font-heading: "Poppins", sans-serif;
  --background: 0 0% 100%;
  --foreground: 210 29% 15%;
  --card: 0 0% 100%;
  --card-foreground: 210 29% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 210 29% 15%;
  --primary: 210 72% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 38 92% 50%;
  --secondary-foreground: 210 29% 15%;
  --muted: 210 20% 96%;
  --muted-foreground: 210 10% 45%;
  --accent: 142 55% 40%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 210 15% 90%;
  --input: 210 15% 90%;
  --ring: 210 72% 20%;
  --chart-1: 38 92% 50%;
  --chart-2: 142 55% 40%;
  --chart-3: 210 72% 20%;
  --chart-4: 38 70% 60%;
  --chart-5: 142 40% 55%;
  --radius: 0.5rem;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 210 29% 15%;
  --sidebar-primary: 210 72% 20%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 210 20% 96%;
  --sidebar-accent-foreground: 210 29% 15%;
  --sidebar-border: 210 15% 90%;
  --sidebar-ring: 210 72% 20%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
}

#page {
  overflow-x: hidden;
  width: 100%;
}

/* --- Active nav indicator: underline --- */
.nav-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.375rem;
  width: 100%;
  height: 2px;
  border-radius: 9999px;
  background: var(--theme-color-primary);
  transform: translateX(-50%);
}

.admin-bar header.sticky {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar header.sticky {
    top: 46px;
  }
}

.text-balance {
  text-wrap: balance;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-up-delay {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-up-delay-2 {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.js .scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Timeline milestone items ===== */
.js [data-milestone] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js [data-milestone].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes brandScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.brand-marquee {
  display: flex;
  overflow: hidden;
}

.brand-marquee-mask {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 4%,
    black 96%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 4%,
    black 96%,
    transparent
  );
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 2rem;
  min-width: max-content;
  flex-shrink: 0;
  animation: brandScroll 35s linear infinite;
}

.slider-arrows {
  display: none;
}

.slider-arrows button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.mobile-slider {
  gap: 1.5rem;
}

.mobile-slider--services {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.5rem 1rem 0.5rem;
  margin: -1rem -0.5rem -0.5rem -0.5rem;
  scrollbar-width: none;
}

.mobile-slider--services > * {
  flex: 0 0 85%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .mobile-slider--services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 1rem;
    margin: -1rem;
  }

  .mobile-slider--services > * {
    flex: none;
    scroll-snap-align: unset;
  }

  .slider-arrows--services {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .mobile-slider--services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-tabs-slider {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
  padding: 0.5rem 0;
}

.project-tabs-slider.cursor-grab {
  cursor: grab;
}

.project-tabs-slider.cursor-grabbing {
  cursor: grabbing;
}

.project-tabs-slider::-webkit-scrollbar {
  display: none;
}

.project-tabs-slider > * {
  pointer-events: auto;
}

.mobile-slider::-webkit-scrollbar,
.mobile-slider--services::-webkit-scrollbar,
.video-slider::-webkit-scrollbar {
  display: none;
}

.video-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1rem 0.5rem 1rem 0.5rem;
  margin: -1rem -0.5rem -0.5rem -0.5rem;
  justify-content: flex-start;
}

.video-slider > * {
  flex: 0 0 min(88%, 420px);
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .slider-arrows {
    display: flex;
  }

  .mobile-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.5rem 1rem 0.5rem;
    margin: -1rem -0.5rem -0.5rem -0.5rem;
    scrollbar-width: none;
  }

  .mobile-slider > * {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .mobile-slider--projects > * {
    flex-basis: 85%;
  }

  .mobile-slider--certs > * {
    flex-basis: 75%;
  }
}

@media (min-width: 1024px) {
  .video-slider {
    justify-content: center;
    padding: 1rem;
    margin: -1rem;
  }

  .video-slider > * {
    flex-basis: 360px;
  }
}

.brand-marquee:hover .brand-track {
  animation-play-state: paused;
}

/* ===== Testimonials Slider Shadow Fix ===== */
[data-testimonials] .overflow-hidden {
  overflow: visible;
}

[data-testimonials-track] {
  padding: 1rem 0;
  margin: -1rem 0;
}

/* ===== WhatsApp Floating Button ===== */
@keyframes wa-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

@keyframes wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.wa-float-btn {
  animation: wa-breathe 2.8s ease-in-out infinite;
}

.wa-float-btn:hover {
  animation: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.wa-float-btn::before,
.wa-float-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: wa-ring 2.8s ease-out infinite;
  pointer-events: none;
}

.wa-float-btn::after {
  animation-delay: 1.4s;
}

/* ===== Post Content Styling ===== */
.post-content {
  color: var(--theme-color-muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-family: var(--theme-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--theme-color-foreground);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-family: var(--theme-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-color-foreground);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content ul,
.post-content ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.post-content li::marker {
  color: var(--theme-color-secondary);
}

.post-content a {
  color: var(--theme-color-primary);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--theme-color-secondary);
}

.post-content blockquote {
  border-left: 4px solid var(--theme-color-secondary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--theme-color-foreground);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.post-content strong {
  font-weight: 600;
  color: var(--theme-color-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-fade-in-up-delay,
  .animate-fade-in-up-delay-2 {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-track {
    animation: none;
  }

  .wa-float-btn,
  .wa-float-btn::before,
  .wa-float-btn::after {
    animation: none;
  }
}
