@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth@0,87.5;1,87.5&family=Poppins:wght@500;600;700&display=swap');

@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -5%);
  }

  20% {
    transform: translate(-10%, 5%);
  }

  30% {
    transform: translate(5%, -10%);
  }

  40% {
    transform: translate(-5%, 15%);
  }

  50% {
    transform: translate(-10%, 5%);
  }

  60% {
    transform: translate(15%, 0);
  }

  70% {
    transform: translate(0, 10%);
  }

  80% {
    transform: translate(-15%, 0);
  }

  90% {
    transform: translate(10%, 5%);
  }
}

.radial-gradient-blue {
  background: radial-gradient(circle at center, #3b82f620 0%, transparent 70%);
}

.dotted-pattern {
  background: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 16px 16px;
}

.dotted-pattern-dark {
  background: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 16px 16px;
}

.grain-pattern {
  background: radial-gradient(#4b5563 1px, transparent 1px);
  background-size: 16px 16px;
}

.grain-pattern-dark {
  background: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 16px 16px;
}

.diagonal-lines-pattern {
  background-image: url('data:image/svg+xml,%3Csvg width=\'40\' height=\'40\' viewBox=\'0 0 40 40\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'%23FB923C\' fill-opacity=\'1\' fill-rule=\'evenodd\'%3E%3Cpath d=\'M0 40L40 0H20L0 20M40 40V20L20 40\'/%3E%3C/g%3E%3C/svg%3E');
}

@keyframes ken-burns {
  0% {
    transform: scale(1.0);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-ken-burns {
  animation: ken-burns 20s ease-out infinite;
}

.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  animation: fade-in-up 0.6s ease-out forwards;
}

.hexagon-wrapper {
  position: relative;
  place-self: center;
}

.hexagon {
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hexagon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: white;
  z-index: -1;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.hexagon-content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.counter {
  background: rgba(255, 255, 255, 0.3);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(4px);
}

.hexagon p {
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hexagon:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

@media (min-width: 768px) {
  .counter {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
}

html {
    scroll-behavior: smooth;
}

.parallax-container {
  perspective: 1px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform-origin: 0 0;
}

.parallax-back {
  transform: translateZ(-1px) scale(2);
}

.parallax-front {
  transform: translateZ(0);
}

/* Animation keyframes */
@keyframes scroll-hint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Animation utilities */
.animate-scroll-hint {
    animation: scroll-hint 2s ease-in-out infinite;
}

/* Typing effect */
.typing-text {
    border-right: 2px solid rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgba(255,255,255,0.75) }
}

/* Add smooth height animation for toggle sections */
[data-toggle-target] {
    transition: all 0.3s ease-in-out;
}

[data-toggle-target]:hover {
    opacity: 1;
}

/* Add visual feedback for clickable headers */
[data-toggle-target] {
    position: relative;
}

[data-toggle-target]::after {
    content: none;
}

[data-toggle-target]:hover::after {
    opacity: 0;
}