[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #f5f6fa;
  color: #1a1f36;
  
}

/* Grid overlay */
.grid-overlay {
  background-image:
    linear-gradient(rgba(26, 77, 179, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 77, 179, 0.06) 1px, transparent 1px);
  background-size: 70px 70px;
}

/* Gold accent gradient rule */
.accent-rule {
  background: linear-gradient(90deg, #1a4db3, #b08840);
}

/* Scroll indicator */
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

.scroll-pulse {
  animation: scrollPulse 2s infinite;
}

/* Status pulse */
@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.05);
  }
}

.status-pulse-dot {
  animation: statusPulse 2s infinite;
}

/* Fade-up for IntersectionObserver */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section label gradient line */
.sec-label-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #1a4db3, #b08840);
  flex-shrink: 0;
}

/* Service card hover bar */
.svc-bar {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  background: linear-gradient(90deg, #1a4db3, #2563eb);
}

.svc-card:hover .svc-bar {
  transform: scaleX(1);
}

/* Project card */
.proj-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(13, 27, 62, 0.1);
}

/* Stat card top bar */
.stat-top {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
  background: linear-gradient(90deg, #1a4db3, #b08840);
}

.stat-card:hover .stat-top {
  transform: scaleX(1);
}

.stat-card {
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.stat-card:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 24px rgba(26, 77, 179, 0.09);
}

/* Team pillar hover */
.team-pillar {
  transition: background 0.25s;
}

.team-pillar:hover {
  background: #dbeafe;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(13, 27, 62, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-box {
  background: #fff;
  border: 1px solid #e2e6f0;
  box-shadow: 0 32px 96px rgba(13, 27, 62, 0.2);
  max-width: 800px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(28px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
}

.modal-box.shown {
  transform: translateY(0);
}

/* Geo grid pattern for project thumbs */
.geo-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(96, 165, 250, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 1) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Dots panel */
.dots-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: #fff;
  border: 1px solid #e2e6f0;
  box-shadow: 0 12px 48px rgba(13, 27, 62, 0.12);
  z-index: 300;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: #fff;
  border: 1px solid #e2e6f0;
  box-shadow: 0 12px 48px rgba(13, 27, 62, 0.12);
  z-index: 300;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
}

/* Scrollbar */
.modal-box::-webkit-scrollbar {
  width: 4px;
}

.modal-box::-webkit-scrollbar-track {
  background: transparent;
}

.modal-box::-webkit-scrollbar-thumb {
  background: #c5cce0;
  border-radius: 2px;
}
