/* WebSo — Custom Styles */

/* Nav */
.nav-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 50%, rgba(58, 143, 138, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(58, 143, 138, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(45, 115, 112, 0.03) 0%, transparent 50%),
    linear-gradient(170deg, #ffffff 0%, #f5fafa 40%, #eef8f7 100%);
}

/* Subtle grain texture */
.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* Entrance animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.badge-animate {
  animation: fade-up 0.6s ease-out both;
}

.hero-title {
  animation: fade-up 0.6s ease-out 0.15s both;
}

.hero-desc {
  animation: fade-up 0.6s ease-out 0.35s both;
}

.cta-btn {
  animation: fade-up 0.6s ease-out 0.5s both;
}

.hero-trust {
  animation: fade-up 0.5s ease-out 0.7s both;
}

.hero-graphic {
  animation: slide-in-right 0.8s ease-out 0.3s both;
}

.hero-card-1 {
  animation: card-appear 0.5s ease-out 0.7s both;
}

.hero-card-2 {
  animation: card-appear 0.5s ease-out 0.9s both;
}

.hero-card-3 {
  animation: card-appear 0.5s ease-out 1.1s both;
}

/* Scroll mouse indicator */
@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

.scroll-indicator {
  animation: fade-up 0.5s ease-out 1.3s both;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 13px;
  position: relative;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-indicator:hover .scroll-mouse {
  opacity: 1;
}

.scroll-mouse-dot {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

/* Mobile adjustments */
@media (max-width: 1023px) {
  .hero-graphic {
    animation: fade-up 0.6s ease-out 0.5s both;
  }

  .scroll-mouse {
    width: 22px;
    height: 36px;
    border-radius: 11px;
  }

  .scroll-mouse-dot {
    top: 6px;
    width: 2.5px;
    height: 6px;
  }
}

/* Sector cards hover lift */
.sector-card {
  transition: all 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 143, 138, 0.1);
}

/* Form focus states */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(58, 143, 138, 0.1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: rgba(58, 143, 138, 0.15);
  color: inherit;
}