/* === Base Styles === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', sans-serif;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
}

/* === Typography Enhancements === */
.hero-title {
  font-size: 4rem;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* === Animations === */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: scroll-left 20s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scrollDown {
  0% { transform: translateY(0%); }
  100% { transform: translateY(-50%); }
}

@keyframes pulseBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-6px) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* === Hero Background === */
.hero-bg {
  background: linear-gradient(135deg, #12EAEA, #DB00FF);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.hero-bg svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: 0.15;
  pointer-events: none;
}

.high-contrast .hero-bg svg { opacity: 0.25; }
.larger-font .hero-bg svg { opacity: 0.1; }

/* === Loader === */
#loader {
  position: fixed;
  inset: 0;
  background-color: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 1.5s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-text {
  margin-top: 20px;
  font-size: 1rem;
  animation: pulse 1.5s infinite;
}

.spinner-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 4px solid transparent;
  border-top: 4px solid #12EAEA;
  border-bottom: 4px solid #DB00FF;
  border-radius: 50%;
  animation: spin 3s linear infinite;
  z-index: 1000;
}

/* === Accessibility Toggle === */
#accessibility-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #12EAEA, #DB00FF);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 2;
  transition: transform 0.3s ease;
}

#accessibility-toggle:hover {
  transform: scale(1.1);
}

/* === Accessibility Menu === */
#accessibility-menu {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 15px;
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

#accessibility-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

#accessibility-menu h3 {
  margin: 0 0 10px;
  font-size: 16px;
  text-align: center;
  color: #333;
  font-weight: 600;
}

#accessibility-menu button {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

#accessibility-menu button:hover {
  background: #e0e0e0;
}

/* === Accessibility Modifiers === */
.high-contrast,
.high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.high-contrast a {
  color: #0ff !important;
}

.high-contrast a:focus,
.high-contrast button:focus {
  outline: 3px solid #0ff !important;
  outline-offset: 2px;
}

.larger-font,
.larger-font * {
  font-size: 1.1em !important;
  line-height: 1.5 !important;
  letter-spacing: 0.05em !important;
}

.dyslexia * {
  font-family: 'OpenDyslexic', 'Comic Sans MS', Arial, sans-serif !important;
}

.big-cursor * {
  cursor: url('https://cdn.custom-cursor.com/db/15117/32/cursor.png'), auto !important;
}

.highlight-links a {
  background-color: yellow;
  outline: 2px dashed red;
}

.highlight-headings h1,
.highlight-headings h2,
.highlight-headings h3,
.highlight-headings h4,
.highlight-headings h5,
.highlight-headings h6 {
  background-color: lightblue;
  border-left: 5px solid #007BFF;
  padding-left: 8px;
}

/* === Vertical Banner === */
.vertical-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #ccc;
  z-index: 1;
}

.scroll-wrapper {
  height: 100%;
  animation: scrollDown 20s linear infinite;
}

.scrolling-text {
  display: flex;
  flex-direction: column;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 30px;
  color: #111;
}

.scrolling-text span {
  margin-bottom: 40px;
  white-space: nowrap;
}

/* === Responsive === */
@media (max-width: 767px) {
  .vertical-banner {
    display: none;
  }
}

/* === Hover Interactions === */
.group:hover ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.group ul {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* === Utility Classes === */
.animate-fade-in-up {
  animation: fade-in-up 1s ease-out forwards;
}

.pulse-bounce {
  animation: pulseBounce 2.5s ease-in-out infinite;
}

.bounce-arrow {
  animation: bounce 2s infinite;
}

@keyframes floatUpDown {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }

  /* Blob animation */
  @keyframes blob {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
      transform: translate(30px, -50px) scale(1.1);
    }
    66% {
      transform: translate(-20px, 20px) scale(0.9);
    }
  }
  .animate-blob {
    animation: blob 7s infinite;
  }
  /* AOS fade-up fallback (if you don't use AOS library) */
  [data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
    animation-name: fadeUp;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-delay: 0.3s;
  }
  [data-aos="fade-up"][data-aos-delay="200"] {
    animation-delay: 0.5s;
  }
  [data-aos="fade-up"][data-aos-delay="400"] {
    animation-delay: 0.7s;
  }
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Each icon initial position and animation */
  .icon-1 {
    top: 15%;
    left: 10%;
    animation: floatAround 12s ease-in-out infinite;
    animation-delay: 0s;
  }
  .icon-2 {
    top: 40%;
    left: 25%;
    animation: floatAround 15s ease-in-out infinite;
    animation-delay: 3s;
  }
  .icon-3 {
    top: 70%;
    left: 15%;
    animation: floatAround 10s ease-in-out infinite;
    animation-delay: 6s;
  }
  .icon-4 {
    top: 20%;
    right: 20%;
    animation: floatAround 18s ease-in-out infinite;
    animation-delay: 1.5s;
  }
  .icon-5 {
    top: 50%;
    right: 15%;
    animation: floatAround 13s ease-in-out infinite;
    animation-delay: 4.5s;
  }
  .icon-6 {
    top: 80%;
    right: 25%;
    animation: floatAround 14s ease-in-out infinite;
    animation-delay: 7.5s;
  }
  .icon-7 {
    top: 65%;
    left: 50%;
    animation: floatAround 17s ease-in-out infinite;
    animation-delay: 2s;
  }

.floating-icons .icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.3);
  font-size: 3rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
  user-select: none;
  will-change: transform;

  /* Fix flicker */
  animation-fill-mode: both;
  opacity: 0.3; /* initial opacity */
  transform: translate(0, 0) rotate(0deg); /* initial transform */
}


/* Updated animation keyframes for stronger opacity flicker */
@keyframes floatAround {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translate(15px, -10px) rotate(10deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(0, 15px) rotate(0deg);
    opacity: 0.3;
  }
  75% {
    transform: translate(-15px, -10px) rotate(-10deg);
    opacity: 0.5;
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
}

/* Responsive scaling */
@media (max-width: 640px) {
  .floating-icons .icon {
    font-size: 2rem; /* adjust for smaller screens */
  }
}

  @keyframes gradient-x {
      0%, 100% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
    }
    .animate-gradient-x {
      background-size: 200% 200%;
      animation: gradient-x 6s ease infinite;
    }

    /* Slow pulse for floating icons */
    @keyframes pulse-slow {
      0%, 100% {
        opacity: 0.1;
        transform: translateY(0);
      }
      50% {
        opacity: 0.2;
        transform: translateY(-6px);
      }
    }
    .animate-pulse-slow {
      animation: pulse-slow 4s ease-in-out infinite;
    }

    /* Optional: Confetti quick CSS */
.confetti {
  transition: opacity 0.3s;
  box-shadow: 0 0 14px #DB00FF60, 0 0 4px #12EAEA80;
  will-change: transform, opacity;
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(60px);}
  100% { opacity: 1; transform: translateX(0);}
}
.animate-fadeInRight { animation: fadeInRight 1s cubic-bezier(.5,1.5,.5,1) 0.3s both;}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0);}
  20% { transform: translateY(12px);}
  40% { transform: translateY(6px);}
  60% { transform: translateY(18px);}
  80% { transform: translateY(8px);}
}
.animate-bounce-slow {
  animation: bounce-slow 2s infinite;
}

  /* Subtle animated gradient overlay */
  .gradient-animate {
    background: linear-gradient(120deg, #12eaea88, #db00ff66, #000b);
    background-size: 200% 200%;
    animation: gradientMove 6s ease-in-out infinite;
  }
  @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

   @keyframes float-slow {
      0% { transform: translateY(0) rotate(0deg);}
      50% { transform: translateY(-18px) rotate(5deg);}
      100% { transform: translateY(0) rotate(0deg);}
    }
    @keyframes float-medium {
      0% { transform: translateY(0) rotate(0deg);}
      50% { transform: translateY(12px) rotate(-3deg);}
      100% { transform: translateY(0) rotate(0deg);}
    }
    @keyframes float-fast {
      0% { transform: translateY(0) rotate(0deg);}
      50% { transform: translateY(-10px) rotate(8deg);}
      100% { transform: translateY(0) rotate(0deg);}
    }
    @keyframes float-reverse {
      0% { transform: translateY(0) rotate(0deg);}
      50% { transform: translateY(22px) rotate(-6deg);}
      100% { transform: translateY(0) rotate(0deg);}
    }
    .animate-float-slow { animation: float-slow 7s ease-in-out infinite; }
    .animate-float-medium { animation: float-medium 5s ease-in-out infinite; }
    .animate-float-fast { animation: float-fast 4s ease-in-out infinite; }
    .animate-float-reverse { animation: float-reverse 8s ease-in-out infinite; }

    @keyframes bounce-slow {
      0%, 100% { transform: translateY(0);}
      50% { transform: translateY(18px);}
    }
    .animate-bounce-slow { animation: bounce-slow 2.2s cubic-bezier(.7,0,.3,1) infinite; }