/* Navbar Styling */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  z-index: 1000; /* Ensure it stays on top */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* Fully transparent background */
  box-shadow: none; /* Remove shadow for complete transparency */
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

/* Logo Glow and Twinkle Effect */
#navbar.scrolled .logo img {
  transform: scale(1.1);
  filter: brightness(1.4) drop-shadow(0 0 10px #00ff99);
  animation: subtleTwinkle 3s infinite alternate ease-in-out;
}

@keyframes subtleTwinkle {
  0%, 100% {
      filter: brightness(1.4) drop-shadow(0 0 10px #00ff99);
  }
  50% {
      filter: brightness(1.5) drop-shadow(0 0 12px #00ff99);
  }
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00ff99;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000100; /* Ensure it's on top of the nav */
  transition: transform 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger Open State */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #00ff99;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #00ff99;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .hamburger {
      display: flex;
  }

  .nav-links {
      position: fixed;
      top: 70px;
      right: -100%;
      height: 50%; /* Smaller menu height */
      width: 200px; /* Adjusted menu width for smaller pop-out */
      background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(0, 255, 153, 0.9));
      flex-direction: column;
      gap: 15px;
      padding: 15px;
      box-shadow: -4px 0 10px rgba(0, 0, 0, 0.6);
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
      transition: right 0.3s ease-in-out;
      animation: phiShimmer 5s infinite ease-in-out; /* Apply the shimmering effect */
  }

  .nav-links.active {
      right: 0;
      background: linear-gradient(135deg, #004d26, #00ff99);
      box-shadow: 0 0 20px rgba(0, 255, 153, 0.5), 0 0 30px rgba(0, 255, 153, 0.3);
  }

  .nav-links li {
      text-align: center;
      font-size: 1rem;
  }

  .nav-links li a {
      color: white;
      font-weight: bold;
      transition: color 0.3s ease-in-out;
  }

  .nav-links li a:hover {
      color: #000;
      background: #00ff99;
      border-radius: 5px;
      padding: 5px 10px;
  }
}

/* Phi-Based Shimmering Animation */
@keyframes phiShimmer {
  0% {
      background-position: 0% 50%;
  }
  38.2% { /* Using the golden ratio for natural movement */
      background-position: 50% 100%;
  }
  61.8% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}


/* Smooth Animation for Nav Links */
.nav-links li {
  transform: translateX(-50px);
  opacity: 0;
  animation: slideIn 0.3s ease forwards;
}

.nav-links li:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-links li:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-links li:nth-child(3) {
  animation-delay: 0.3s;
}
.nav-links li:nth-child(4) {
  animation-delay: 0.4s;
}
.nav-links li:nth-child(5) {
  animation-delay: 0.5s;
}
.nav-links li:nth-child(6) {
animation-delay: 0.6s;
}
.nav-links li:nth-child(7) {
animation-delay: 0.7s;
}
.nav-links li:nth-child(8) {
animation-delay: 0.8s;
}
.nav-links li:nth-child(9) {
animation-delay: 0.9s;
}

@keyframes slideIn {
  from {
      transform: translateX(-50px);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

/* Hover Effects for Hamburger Menu */
.hamburger:hover {
  transform: scale(1.1);
}




/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth; /* Smooth scrolling for better UX */
}

section {
  min-height: calc(100vh - 60px); /* Subtract UI height for better fit */
  height: auto; /* Allow content to dictate height */
  display: block; /* Use block layout to prevent flexbox issues */
  overflow: visible; /* Let content flow naturally */
  position: relative; /* Ensure proper stacking context */
  background: transparent; /* Allow canvas to show through */
}

#intro {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px; /* Add padding to prevent content cutoff */
  box-sizing: border-box; /* Ensure padding doesn’t affect layout */
  overflow: hidden; /* Prevent content from spilling outside */
}
/* Logo Styling */
.kojib-logo {
  width: 20vw; /* Scale logo relative to viewport width */
  max-width: 120px; /* Limit maximum size */
  height: auto;
  margin-bottom: 20px; /* Reduced space between the logo and the text */
  transition: all 0.3s ease-in-out; /* Smooth transition for resizing */
  animation: shimmerGlow 3s infinite, fadeInLogo 1.5s ease-out forwards; /* Apply shimmer and fade-in animations */
  display: inline-block; /* Allow box-shadow to behave better around the image */
  position: relative; /* To control glow effect positioning */
}

/* Shimmer & Glow Animation */
@keyframes shimmerGlow {
  0% {
      filter: brightness(1) contrast(1);
  }
  50% {
      filter: brightness(1.05) contrast(1.02); /* Subtle shimmer */
  }
  100% {
      filter: brightness(1) contrast(1);
  }
}

/* Glowing Pulse Animation - Subtle and Continuous */
@keyframes glowPulse {
  0% {
      filter: drop-shadow(0 0 10px rgba(0, 255, 153, 0.5)) drop-shadow(0 0 20px rgba(0, 255, 153, 0.3));
  }
  25% {
      filter: drop-shadow(0 0 12px rgba(0, 255, 153, 0.6)) drop-shadow(0 0 25px rgba(0, 255, 153, 0.4));
  }
  50% {
      filter: drop-shadow(0 0 15px rgba(0, 255, 153, 0.7)) drop-shadow(0 0 30px rgba(0, 255, 153, 0.5));
  }
  75% {
      filter: drop-shadow(0 0 12px rgba(0, 255, 153, 0.6)) drop-shadow(0 0 25px rgba(0, 255, 153, 0.4));
  }
  100% {
      filter: drop-shadow(0 0 10px rgba(0, 255, 153, 0.5)) drop-shadow(0 0 20px rgba(0, 255, 153, 0.3));
  }
}

/* Fade-In Animation for Logo */
@keyframes fadeInLogo {
  0% {
      opacity: 0;
      transform: scale(0.8); /* Start smaller */
  }
  100% {
      opacity: 1;
      transform: scale(1); /* End at full size */
  }
}

/* Logo Resizing for Smaller Screens */
@media (max-width: 480px) {
  .kojib-logo {
      width: 30vw; /* Larger scaling on small screens */
  }
}

@media (max-width: 480px) {
  .kojib-logo {
      max-width: 30%; /* Even larger on smaller mobile screens */
  }
}

/* Subtle glow effect around the image */
.kojib-logo {
  position: relative;
  z-index: 1; /* Ensure the glow stays behind the image */
  animation: glowPulse 3s infinite alternate; /* Apply the more subtle pulse animation */
}

/* Adding a continuous, soft glow effect */
.kojib-logo {
  position: relative;
  filter: drop-shadow(0 0 8px rgba(0, 255, 153, 0.4)) drop-shadow(0 0 12px rgba(0, 255, 153, 0.3)); /* Softer, continuous glow */
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Ensure canvas stays behind content */
  pointer-events: none; /* Prevent canvas from blocking interaction */
}
.content {
  position: relative;
  z-index: 1; /* Ensure content appears above canvas */
}

/* Headline Styles */
h1.headline {
  font-size: calc(2.5rem + 1vw);
  margin: 0;
  max-width: 90%;
  word-wrap: break-word;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  text-align: center;
  animation: fadeInGlow 2.5s ease-out, subtlePulse 3s infinite alternate ease-in-out;
  display: inline-block;
}

/* Highlighted Word "Imagination" */
h1 .highlight {
  color: #00ff99; /* Electric Green Highlight */
  text-shadow: 
    0 0 20px #00ff99, 
    0 0 30px rgba(0, 255, 153, 0.8), 
    0 0 40px rgba(0, 255, 153, 0.6);
  animation: organicSparkle 6s infinite ease-in-out;
}

/* Animated Word "Intelligence" */
h1 .intelligence {
  color: #ffcc00; /* Golden yellow for subtle glow */
  text-shadow: 0 0 20px #ffcc00, 0 0 40px rgba(255, 204, 0, 0.8);
  animation: organicFlow 5s infinite ease-in-out;
}

/* Subtext Styles */
p.subtext {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 20px;
  animation: fadeUp 1.8s ease-out;
}

/* Scroll Prompt Styles */
.scroll-prompt {
  margin-top: 30px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  animation: seamlessPulse 3s infinite ease-in-out;
}

/* Keyframes for Text Glow */
@keyframes fadeInGlow {
  0% {
    opacity: 0;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  }
}

/* Keyframes for Subtle Pulsing Glow */
@keyframes subtlePulse {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 25px rgba(255, 255, 255, 0.4);
  }
}

/* Keyframes for Organic Sparkling Animation on "Imagination" */
@keyframes organicSparkle {
  0% {
    text-shadow: 0 0 15px rgba(0, 255, 153, 0.6), 0 0 25px rgba(0, 255, 153, 0.4);
    transform: translateX(0) translateY(0) scale(1);
  }
  25% {
    text-shadow: 0 0 25px rgba(0, 255, 153, 1), 0 0 35px rgba(0, 255, 153, 0.9);
    transform: translateX(2px) translateY(-2px) scale(1.02);
  }
  50% {
    text-shadow: 0 0 30px rgba(0, 255, 153, 0.8), 0 0 50px rgba(0, 255, 153, 0.7);
    transform: translateX(-2px) translateY(2px) scale(0.98);
  }
  75% {
    text-shadow: 0 0 20px rgba(0, 255, 153, 0.7), 0 0 30px rgba(0, 255, 153, 0.5);
    transform: translateX(1px) translateY(-1px) scale(1.01);
  }
  100% {
    text-shadow: 0 0 15px rgba(0, 255, 153, 0.6), 0 0 25px rgba(0, 255, 153, 0.4);
    transform: translateX(0) translateY(0) scale(1);
  }
}

/* Keyframes for Organic Flow Animation on "Intelligence" */
@keyframes organicFlow {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.6), 0 0 30px rgba(255, 204, 0, 0.5);
  }
  25% {
    transform: translateX(-2px) translateY(2px) rotate(1deg);
    text-shadow: 0 0 25px rgba(255, 204, 0, 0.7), 0 0 35px rgba(255, 204, 0, 0.6);
  }
  50% {
    transform: translateX(2px) translateY(-2px) rotate(-1deg);
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.8), 0 0 40px rgba(255, 204, 0, 0.7);
  }
  75% {
    transform: translateX(-1px) translateY(1px) rotate(0.5deg);
    text-shadow: 0 0 25px rgba(255, 204, 0, 0.7), 0 0 35px rgba(255, 204, 0, 0.6);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.6), 0 0 30px rgba(255, 204, 0, 0.5);
  }
}

/* Keyframes for Fade-Up Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  h1.headline {
      font-size: calc(2rem + 1vw); /* Scale down headline font size */
      max-width: 90%; /* Prevent overflow */
  }

  p.subtext {
      font-size: 1rem; /* Scale down subtext */
  }

  .scroll-prompt {
      font-size: 0.9rem; /* Scale down scroll prompt */
  }
}

@media (max-width: 480px) {
  #intro {
      padding: 10px; /* Adjust padding for very small screens */
  }

  h1.headline {
      font-size: calc(1.8rem + 1vw); /* Further scale down font size */
      max-width: 85%; /* Tighten max-width */
  }

  p.subtext {
      font-size: 0.9rem; /* Adjust subtext font size */
  }

  .scroll-prompt {
      font-size: 0.8rem; /* Adjust scroll prompt font size */
  }
}
/* Keyframes for Seamless Pulse Animation */
@keyframes seamlessPulse {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-5px);
    opacity: 1;
  }
  50% {
    transform: translateY(0);
    opacity: 0.9;
  }
  75% {
    transform: translateY(5px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
}

/* Introductory Story Section */
#story {
  position: relative;
  width: 100vw;
  min-height: 100vh; /* Ensure proper height for all screen sizes */
  background: linear-gradient(135deg, rgba(30, 30, 47, 0), rgba(46, 46, 80, 0));
  color: white; /* White text for contrast */
  display: flex; /* Flex layout for centering */
  align-items: center; /* Center content vertically */
  justify-content: center; /* Center content horizontally */
  text-align: center; /* Center text */
  overflow: hidden; /* Prevent overflowing content */
  z-index: 2; /* Ensure the section appears above the canvas */
  padding: 20px; /* Add padding for smaller devices */
  box-sizing: border-box; /* Ensure padding is included in dimensions */
  animation: backgroundFlow 10s infinite alternate; /* Subtle background animation */
}

.story-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: fadeIn 3s ease-in-out;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
}

.story-title {
  font-size: 3.5rem; /* Larger title font size */
  margin-bottom: 1rem; /* Add space below the title */
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4); /* Intense text glow */
  animation: fadeIn 2s ease-out, subtlePulse 4s infinite alternate; /* Add fade-in and pulsing effects */
  font-weight: bold;
}

.story-subtitle {
  font-size: 1.5rem; /* Slightly smaller font for subtitle */
  line-height: 1.8; /* Improve readability */
  color: rgba(255, 255, 255, 0.85); /* Slightly transparent white */
  animation: fadeUp 2.5s ease-out; /* Add fade-up animation */
  margin-bottom: 2rem;
}

.cta-button-unique {
display: inline-block;
background: linear-gradient(90deg, #00ff99, #009966);
color: white;
padding: 15px 30px;
font-size: 1.2rem;
font-weight: bold;
text-decoration: none;
border-radius: 50px;
box-shadow: 0 4px 15px rgba(0, 255, 153, 0.5);
transition: all 0.3s ease-in-out;
position: relative;
overflow: hidden;
text-transform: uppercase;
z-index: 10; /* Ensure it's on top */
}

.cta-button-unique:hover {
background: linear-gradient(90deg, #00cc80, #00ccff);
box-shadow: 0 6px 20px rgba(0, 255, 153, 0.7);
transform: scale(1.1);
}

.cta-button-unique::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 200%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transform: skewX(-45deg);
transition: left 0.5s ease;
}

.cta-button-unique:hover::before {
left: 100%;
}

.cta-button-unique:active {
transform: scale(1.05);
box-shadow: 0 4px 10px rgba(0, 153, 102, 0.8);
}


.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #00ff99, #009966);
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px #00ff99;
  transition: all 0.3s ease-in-out;
  animation: fadeIn 3s ease-in-out;
}

.cta-button:hover {
  background: linear-gradient(90deg, #00ff99, #0099ff);
  box-shadow: 0 6px 20px #00ff99;
  transform: scale(1.1);
}

.story-mission {
  margin: 50px auto;
  padding: 30px;
  background: #ffffff1a;
  border-radius: 20px;
  box-shadow: 0 10px 30px #00ff99;
  max-width: 1200px;
  animation: fadeIn 2.5s ease-in-out;
}

.mission-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffdd57;
  text-shadow: 0 0 15px rgba(255, 221, 87, 0.8);
}

.mission-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.values {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.value {
  flex: 1 1 200px;
  background: linear-gradient(135deg, #1e1e30, #3a3a5c);
  color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px #00000099;
  text-align: center;
  animation: fadeIn 1.5s ease-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px #00ff99;
}

.value h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #00ff99;
  text-shadow: 0 0 10px rgba(255, 221, 87, 0.8);
}

.value p {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* Keyframes for animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes subtlePulse {
  0% {
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
  }
  100% {
      text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

@keyframes backgroundFlow {
  0% {
      background-position: 0% 50%;
  }
  100% {
      background-position: 100% 50%;
  }
}

/* Story Section Styles */
#story {
  width: 100%;
  padding: 50px 20px;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(40, 40, 60, 0.9));
  color: white;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #00ffc6;
  text-shadow: 0 0 10px rgba(0, 255, 198, 0.8);
}

p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Origin Section */
.story-origin {
  padding: 30px;
  background: rgba(0, 153, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 153, 255, 0.5);
}

.origin-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.origin-image {
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 153, 255, 0.5);
  animation: fadeIn 2s ease-in-out;
}

/* Differentiators Section */
.story-differentiators {
  padding: 30px;
  background: rgba(0, 255, 153, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 255, 153, 0.5);
}

.differentiators-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.differentiators-image {
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 255, 153, 0.5);
  animation: fadeIn 2s ease-in-out;
}

.differentiators-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.8;
}

.differentiators-list li {
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .story-title {
      font-size: 2.5rem;
  }

  .story-subtitle {
      font-size: 1.2rem;
  }

  .values {
      flex-direction: column;
      gap: 15px;
  }

  .value {
      flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .story-title {
      font-size: 2rem;
  }

  .story-subtitle {
      font-size: 1rem;
  }
}
#imagination-svg {
  width: 100%;
  height: auto;
  animation: fadeIn 3s ease-in-out;
}

#centralShape {
  animation: pulse 4s infinite alternate ease-in-out;
}

.particle {
  animation: float 5s infinite alternate ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    fill: rgba(255, 255, 255, 0.8);
  }
  100% {
    transform: scale(1.1);
    fill: rgba(0, 255, 153, 0.6);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.8;
  }
}

#intelligence-svg {
  width: 100%;
  height: auto;
  animation: fadeIn 3s ease-in-out;
}

#connectionPath {
  animation: pulse 4s infinite alternate ease-in-out, draw 6s linear infinite;
}

.node {
  animation: float 6s infinite ease-in-out;
  transform-origin: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    stroke-width: 2;
    stroke: rgba(255, 255, 255, 0.7);
  }
  100% {
    stroke-width: 4;
    stroke: rgba(0, 255, 153, 0.9);
  }
}

@keyframes draw {
  0% {
    stroke-dasharray: 0, 500;
  }
  100% {
    stroke-dasharray: 500, 0;
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, -10px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Mission Section Styling */
#story {
  width: 100%;
  padding: 50px 20px;
  background: linear-gradient(135deg, rgba(30, 30, 47, 0.8), rgba(46, 46, 80, 0.8));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.story-mission {
  margin: 50px auto;
  padding: 30px;
  background: rgba(0, 255, 153, 0.002);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 11, 7, 0.459);
  max-width: 1200px;
}

.mission-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffdd57;
  text-shadow: 0 0 15px rgba(255, 221, 87, 0.8);
}

.mission-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

/* Value Section */
.values {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.value {
  flex: 1 1 250px; /* Ensure consistency in size */
  background: linear-gradient(135deg, rgba(30, 30, 47, 0.216), #2e2e5098);
  color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 153, 0.6);
}


/* SVG Glow and Twinkle Animation */
@keyframes twinkle {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(0, 255, 153, 0.8));
  }
}

.value h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: rgba(0, 255, 153, 1);
  text-shadow: 0 0 10px rgba(0, 255, 153, 0.8);
}

.value p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}


/* Story Section Styles */
#story {
width: 100%;
padding: 50px 20px;
background: linear-gradient(135deg, rgba(30, 30, 47, 0), rgba(46, 46, 80, 0));
color: white;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 40px;
}

.content-wrapper {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.origin-title, .differentiators-title {
font-size: 2rem;
margin-bottom: 20px;
color: #00ff99;
text-shadow: 0 0 10px #00ff99cc;
}

.origin-text, .differentiators-list {
font-size: 1.2rem;
line-height: 1.8;
color: rgba(255, 255, 255, 0.9);
}

.differentiators-list {
list-style: none;
padding: 0;
margin-top: 20px;
}

.differentiators-list li {
margin-bottom: 15px;
font-size: 1.1rem;
background: rgba(255, 255, 255, 0.1);
padding: 10px 15px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.differentiators-list li:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* SVG Icon Styles */
.svg-icon {
  width: 100px; /* Default size */
  height: auto;
  max-width: 30%; /* Make responsive */
  flex: 1 1 30%; /* Adjust layout */
  margin: 0 auto;
  filter: drop-shadow(0px 5px 10px rgba(0, 255, 153, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.svg-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0px 8px 15px #00ffc6cc);
}

@media (max-width: 768px) {
.origin-title, .differentiators-title {
  font-size: 1.8rem;
}

.origin-text, .differentiators-list {
  font-size: 1rem;
}
}

/* Showcase Section */
#showcase {
  position: relative; /* Ensures proper stacking context */
  width: 100vw; /* Full width of the viewport */
  min-height: 100vh; /* Ensure proper height for all screen sizes */
  background: transparent; /* Transparent background to show particles */
  color: white; /* White text color for contrast */
  display: flex; /* Flex layout for alignment */
  flex-direction: column; /* Arrange children vertically */
  align-items: center; /* Center children horizontally */
  justify-content: center; /* Center children vertically if needed */
  padding: 40px 20px; /* Add spacing inside the section */
  z-index: 4; /* Ensure section stacks correctly above other elements */
  box-sizing: border-box; /* Include padding in dimensions */
}

/* Container for Showcase Content */
.showcase-content {
  max-width: 900px; /* Restrict content width */
  text-align: center; /* Center-align text */
  padding: 20px; /* Add padding around the content */
  z-index: 5; /* Ensure it appears above any background layers */
  position: relative; /* For proper stacking order */
  width: 100%; /* Ensure it spans full width on smaller devices */
  box-sizing: border-box; /* Include padding in dimensions */
}

/* Title for Showcase Section */
.showcase-title {
  font-size: 2.5rem; /* Large font for prominence */
  margin-bottom: 1rem; /* Space below the title */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2); /* Subtle glow effect */
  animation: fadeIn 2s ease-out; /* Add a fade-in animation */
  word-wrap: break-word; /* Prevent text from overflowing */
}

/* Text Description for Showcase Section */
.showcase-text {
  font-size: 1.2rem; /* Slightly smaller font size */
  margin-bottom: 20px; /* Space below the text */
  line-height: 1.6; /* Improve text readability */
  color: rgba(255, 255, 255, 0.85); /* Slightly transparent white for softness */
  animation: fadeUp 2.5s ease-out; /* Add fade-up animation */
  word-wrap: break-word; /* Prevent text from overflowing */
}

/* Feature Cards */
.feature-card {
  display: inline-block; /* Inline-block layout for alignment */
  margin: 10px; /* Space between cards */
  padding: 20px; /* Internal spacing */
  background: #1e1e2f48; /* Semi-transparent white background */
  border-radius: 10px; /* Rounded corners */
  width: 250px; /* Fixed card width */
  max-width: 100%; /* Ensure it fits on smaller screens */
  text-align: center; /* Center-align text */
  box-shadow: 0 4px 10px #00ffc6cc; /* Subtle shadow for depth */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth hover effects */
  box-sizing: border-box; /* Include padding in dimensions */
}

/* Hover Effect for Feature Cards */
.feature-card:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

.feature-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

/* Responsive Adjustments for Showcase Section */
@media (max-width: 768px) {
  #showcase {
      padding: 20px; /* Adjust padding for smaller screens */
  }

  .showcase-content {
      padding: 10px; /* Reduce padding on smaller screens */
  }

  .showcase-title {
      font-size: 2rem; /* Reduce title size for smaller screens */
  }

  .showcase-text {
      font-size: 1rem; /* Reduce text size for readability */
      line-height: 1.5; /* Adjust line height for smaller screens */
  }

  .feature-card {
      width: 200px; /* Reduce card width for smaller screens */
      padding: 15px; /* Adjust padding */
  }
}

@media (max-width: 480px) {
  .showcase-title {
      font-size: 1.8rem; /* Further reduce title size for very small screens */
  }

  .showcase-text {
      font-size: 0.9rem; /* Adjust text size for readability */
  }

  .feature-card {
      width: 150px; /* Further reduce card width for very small screens */
      padding: 10px; /* Adjust padding */
  }
}

/* Keyframes for animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px); /* Start slightly below */
  }
  to {
      opacity: 1;
      transform: translateY(0); /* End in place */
  }
}

@keyframes fadeUp {
  from {
      opacity: 0;
      transform: translateY(20px); /* Start slightly below */
  }
  to {
      opacity: 1;
      transform: translateY(0); /* End in place */
  }
}

/* Animations */
@keyframes fadeInGlow {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes pulseHighlight {
  0% {
      text-shadow: 0 0 20px #00ff99, 0 0 40px rgba(0, 255, 153, 0.8);
  }
  100% {
      text-shadow: 0 0 40px #00ff99, 0 0 60px rgba(0, 255, 153, 1);
  }
}

@keyframes rotateHover {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}



/* Skyriz Section Styling */
#skyriz {
  position: relative;
  width: 100vw;
  min-height: 100vh; /* Ensure consistent height with Contact section */
  padding: 40px 20px; /* Match Contact section padding */
  background: linear-gradient(135deg, #020202, #1c1c1c);
  color: white;
  text-align: center;
  box-sizing: border-box; /* Ensure padding doesn't affect layout dimensions */
  overflow: hidden; /* Ensure no content spills out */
}

#skyriz .skyriz-content {
  max-width: 300px; /* Match Contact section's content width */
  margin: 0 auto;
  padding: 20px;
  position: center;
  z-index: 10;
  box-sizing: border-box; /* Consistent sizing */
}

#skyriz .skyriz-title {
  font-size: 2.5rem; /* Match Contact title size */
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  animation: fadeInGlow 2s ease-out;
}

#skyriz .skyriz-title span {
  color: #00ff99;
  text-shadow: 0 0 20px #00ff99, 0 0 40px #00ff99cc;
  animation: pulseHighlight 2s infinite alternate;
}

#skyriz .skyriz-text {
  font-size: 1rem; /* Match Contact text size */
  line-height: 1.6; /* Match Contact line height */
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  animation: fadeUp 1.8s ease-out;
}

#skyriz .skyriz-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

#skyriz .feature-card {
  background: #1e1e2f33;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px; /* Adjust padding to match Contact section's compact style */
  width: 250px; /* Match responsive adjustments */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skyriz .feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 255, 153, 0.4);
}

#skyriz .feature-card img {
  width: 50px; /* Consistent icon size with Contact button */
  height: 50px;
  margin-bottom: 10px;
  animation: rotateHover 5s linear infinite;
}

#skyriz .feature-card h3 {
  font-size: 1.4rem; /* Match Contact text headings */
  margin-bottom: 10px;
  color: #00ff99;
}

#skyriz .feature-card p {
  font-size: 1rem; /* Match Contact text size */
  line-height: 1.5; /* Align line height with Contact text */
  color: rgba(255, 255, 255, 0.75);
}

#skyriz .cta-button {
  display: inline-block;
  background: #00ff99;
  color: #020202;
  padding: 10px 20px; /* Match Contact button padding */
  font-size: 1.2rem; /* Match Contact button text size */
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px; /* Match Contact button style */
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 255, 153, 0.4);
}

#skyriz .cta-button:hover {
  background: #00cc80;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #skyriz {
      padding: 20px; /* Match Contact section padding for smaller screens */
  }

  #skyriz .skyriz-title {
      font-size: 2rem; /* Match Contact title size */
  }

  #skyriz .skyriz-text {
      font-size: 1rem; /* Match Contact text size */
      margin-bottom: 20px;
  }

  #skyriz .feature-card {
      width: 200px; /* Match Contact responsiveness */
      padding: 10px;
  }

  #skyriz .feature-card img {
      width: 50px;
      height: 50px;
  }

  #skyriz .feature-card h3 {
      font-size: 1.2rem;
  }

  #skyriz .feature-card p {
      font-size: 0.9rem;
  }

  #skyriz .cta-button {
      padding: 8px 16px; /* Match Contact button size for smaller screens */
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #skyriz {
      padding: 20px; /* Ensure tight padding for mobile */
  }

  #skyriz .skyriz-title {
      font-size: 1.8rem;
  }

  #skyriz .skyriz-text {
      font-size: 0.9rem;
      margin-bottom: 20px;
  }

  #skyriz .feature-card {
      width: 180px; /* Smaller cards for compact screens */
      padding: 10px;
  }

  #skyriz .feature-card img {
      width: 40px;
      height: 40px;
  }

  #skyriz .feature-card h3 {
      font-size: 1rem;
  }

  #skyriz .feature-card p {
      font-size: 0.8rem;
  }

  #skyriz .cta-button {
      padding: 6px 12px;
      font-size: 0.9rem;
  }
}

/* Contact Form Container */
.contact-form-container {
  background: linear-gradient(135deg, rgba(30, 30, 47, 0.281), rgba(46, 46, 80, 0.148));
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 255, 153, 0.5);
  max-width: 200px;
  margin: 0 auto;
  color: white;
  text-align: center;
}

/* Form Title */
.form-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #00ff99;
  text-shadow: 0 0 10px rgba(0, 255, 153, 0.8);
}

/* Form Group */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

/* Form Labels */
.form-group label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 8px;
}

/* Form Inputs */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Form Input Focus */
.form-group input:focus,
.form-group textarea:focus {
  border: 1px solid #00ff99;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.8);
  outline: none;
}

/* Submit Button */
.submit-button {
  display: inline-block;
  background: linear-gradient(90deg, #00ff99, #0099ff);
  color: white;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 255, 153, 0.4);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Submit Button Hover */
.submit-button:hover {
  background: linear-gradient(90deg, #0099ff, #00ff99);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 255, 153, 0.6);
}


/* Contact Section */
#contact {
  position: relative; /* Establish stacking context */
  width: 100vw; /* Full width of the viewport */
  min-height: 100vh; /* Ensure full height on all screen sizes */
  background: transparent; /* Transparent background to show particles */
  color: white; /* White text for contrast */
  display: flex; /* Flexbox for alignment */
  flex-direction: column; /* Arrange children vertically */
  align-items: center; /* Center content horizontally */
  justify-content: center; /* Center content vertically */
  padding: 40px 20px; /* Internal spacing */
  z-index: 6; /* Ensure it stacks above background layers */
  box-sizing: border-box; /* Include padding in dimensions */
}

/* Container for Contact Content */
.contact-content {
  max-width: 800px; /* Restrict content width */
  text-align: center; /* Center-align text */
  padding: 20px; /* Add padding around the content */
  z-index: 7; /* Ensure it appears above other layers */
  position: relative; /* For proper stacking order */
  width: 100%; /* Ensure full width on smaller screens */
  box-sizing: border-box; /* Include padding in dimensions */
}

/* Title for Contact Section */
.contact-title {
  font-size: 2.5rem; /* Large font for prominence */
  margin-bottom: 1rem; /* Space below the title */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2); /* Subtle glow effect */
  animation: fadeIn 2s ease-out; /* Add a fade-in animation */
  word-wrap: break-word; /* Prevent text overflow */
}

/* Text Description for Contact Section */
.contact-text {
  font-size: 1.2rem; /* Slightly smaller font size */
  margin-bottom: 20px; /* Space below the text */
  line-height: 1.6; /* Improve text readability */
  color: rgba(255, 255, 255, 0.85); /* Slightly transparent white for softness */
  animation: fadeUp 2.5s ease-out; /* Add fade-up animation */
  word-wrap: break-word; /* Prevent text overflow */
}

/* Contact Button */
.contact-button {
  text-decoration: none; /* Remove underline from links */
  color: black; /* White text for contrast */
  background: #00ff99; /* Bright green background */
  padding: 10px 20px; /* Add spacing inside the button */
  border-radius: 5px; /* Rounded corners */
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth hover effects */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  width: auto; /* Ensure the button fits its content */
  max-width: 100%; /* Prevent button from overflowing */
  box-sizing: border-box; /* Include padding in dimensions */
}

/* Hover Effect for Contact Button */
.contact-button:hover {
  background: #00cc80; /* Slightly darker green on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

/* Contact Section Styles */
.contact-section {
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1e1e2fe6, #2e2e50e6);
  color: white;
  text-align: center;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-header {
  margin-bottom: 20px;
}

.contact-title {
  font-size: 2.5rem;
  color: rgba(0, 255, 153, 1);
  text-shadow: 0 0 15px rgba(0, 255, 153, 0.8);
}

.contact-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-card {
  flex: 1 1 300px;
  background: linear-gradient(135deg, rgba(46, 46, 80, 0.212), rgba(30, 30, 47, 0.138));
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 255, 153, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 153, 0.5);
}

.contact-icon {
  margin-bottom: 15px;
}

.contact-icon svg {
  width: 48px;
  height: 48px;
}

.contact-card h3 {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.contact-card a {
  color: rgba(0, 255, 153, 1);
  text-decoration: none;
  font-weight: bold;
}

.contact-cta {
  margin-top: 20px;
}

.contact-button {
  display: inline-block;
  background: rgba(0, 255, 153, 1);
  color: #1e1e2f;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 255, 153, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
  background: rgba(0, 255, 153, 0.8);
  transform: scale(1.05);
}

/* Responsive Adjustments for Contact Section */
@media (max-width: 768px) {
  #contact {
      padding: 20px; /* Adjust padding for smaller screens */
  }

  .contact-content {
      padding: 15px; /* Adjust padding for better spacing */
  }

  .contact-title {
      font-size: 2rem; /* Reduce title size for smaller screens */
  }

  .contact-text {
      font-size: 1rem; /* Adjust text size for readability */
      line-height: 1.5; /* Adjust line height for smaller screens */
  }

  .contact-button {
      padding: 8px 16px; /* Adjust button padding */
  }
}

@media (max-width: 480px) {
  .contact-title {
      font-size: 1.8rem; /* Further reduce title size */
  }

  .contact-text {
      font-size: 0.9rem; /* Adjust text size for readability */
      line-height: 1.4; /* Adjust line height for better readability */
  }

  .contact-button {
      padding: 6px 12px; /* Further adjust button padding */
      font-size: 1rem; /* Adjust font size for smaller buttons */
  }
}

/* Keyframes for animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px); /* Start slightly below */
  }
  to {
      opacity: 1;
      transform: translateY(0); /* End in place */
  }
}

@keyframes fadeUp {
  from {
      opacity: 0;
      transform: translateY(20px); /* Start slightly below */
  }
  to {
      opacity: 1;
      transform: translateY(0); /* End in place */
  }
}


#scroll-menu {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

#scroll-menu:hover {
  background: #00cc80;
  transform: scale(1.1);
}

#scroll-toggle {
  font-size: 1.5rem;
  text-align: center;
}

/* Dropdown Menu for Sections */
#scroll-sections {
  position: absolute;
  bottom: 60px; /* Offset from the main button */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  padding: 10px;
  display: none; /* Hidden by default */
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#scroll-sections a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#scroll-sections a:hover {
  background: #00cc80;
}

/* Active Dropdown */
#scroll-menu.open #scroll-sections {
  display: flex;
}

/* Chatbot Button */
#chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #00ff99;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

#chatbot-button:hover {
  transform: scale(1.1);
  background: #00cc80;
}

#chatbot-button img {
  width: 30px;
  height: 30px;
  pointer-events: none; /* Ensure clicks don't affect the image */
}

/* Chatbot Window */
#chatbot {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  max-width: 90%; /* Ensure responsiveness for smaller screens */
  height: 500px;
  max-height: 70%; /* Adjust height for smaller screens */
  background: #1c1c1c;
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}

/* Chatbot Header */
#chatbot-header {
  background: #00ff99;
  color: black;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  position: relative;
}

#chatbot-header button {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: black;
  transition: transform 0.2s ease;
}

#chatbot-header button:hover {
  transform: scale(1.2);
}

/* Chatbot Messages */
#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  scrollbar-width: thin; /* For modern browsers */
  scrollbar-color: #00ff99 #222; /* Custom scrollbar colors */
}

#chatbot-messages::-webkit-scrollbar {
  width: 8px;
}

#chatbot-messages::-webkit-scrollbar-track {
  background: #222;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: #00ff99;
  border-radius: 5px;
}

#chatbot-messages .message {
  margin-bottom: 10px;
  word-wrap: break-word; /* Ensure long messages don't overflow */
}

#chatbot-messages .user {
  text-align: right;
  color: #00ff99;
}

#chatbot-messages .bot {
  text-align: left;
  color: white;
}

/* Loading Bubbles */
#loading-indicator {
  display: none; /* Hidden by default */
  text-align: center;
  margin: 10px 0;
}

#loading-indicator .dot {
  width: 8px;
  height: 8px;
  margin: 0 5px;
  background-color: #00ff99;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.2s infinite;
}

#loading-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

#loading-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
      transform: scale(0);
  }
  40% {
      transform: scale(1);
  }
}

/* Chatbot Input Section */
#chatbot-input {
  padding: 10px;
  display: flex;
  gap: 10px;
  background: #333;
  align-items: center;
}

#chatbot-input textarea {
  flex: 1;
  resize: none;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background: #222;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
}

#chatbot-input button {
  background: #00ff99;
  border: none;
  padding: 10px 15px;
  color: black;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#chatbot-input button:hover {
  background: #00cc80;
  transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  #chatbot {
      bottom: 80px;
      right: 10px;
      width: 90%; /* Use most of the screen width */
      height: auto; /* Let height adjust dynamically */
      max-height: 80%; /* Limit max height */
  }

  #chatbot-header {
      font-size: 1rem; /* Adjust header font size */
  }

  #chatbot-input textarea {
      font-size: 0.8rem;
  }

  #chatbot-input button {
      padding: 8px 12px; /* Smaller padding for smaller screens */
      font-size: 0.9rem;
  }
}



/* Footer Section */
footer {
  position: relative; /* Establish stacking context */
  width: 100%; /* Full width of the viewport */
  background: transparent; /* Transparent background to show particles */
  color: rgba(255, 255, 255, 0.7); /* Slightly transparent white for text */
  text-align: center; /* Center-align content */
  padding: 20px; /* Add padding around the footer */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
  z-index: 8; /* Ensure it stacks properly above background elements */
}

/* Footer Content Styling */
footer .footer-content {
  max-width: 1200px; /* Restrict content width */
  margin: 0 auto; /* Center content horizontally */
  padding: 10px 20px; /* Internal spacing for content */
  text-align: center; /* Center-align text */
  position: relative; /* Proper stacking order */
  z-index: 9; /* Ensure content is above background layers */
}

/* Social Links Container */
footer .social-links {
  margin-top: 10px; /* Space above the links */
}

/* Social Links Styling */
footer .social-links a {
  color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for text */
  margin: 0 10px; /* Space between links */
  text-decoration: none; /* Remove underline from links */
  font-size: 1.2rem; /* Increase font size for better visibility */
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth hover effects */
}

/* Hover Effect for Social Links */
footer .social-links a:hover {
  color: #00ff99; /* Bright green highlight on hover */
  transform: scale(1.1); /* Slight enlargement for emphasis */
}

/* Footer Text Styling */
footer p {
  margin: 10px 0; /* Add spacing above and below text */
  font-size: 0.9rem; /* Slightly smaller font for secondary text */
  color: rgba(255, 255, 255, 0.7); /* Slightly transparent white */
  line-height: 1.5; /* Improve text readability */
}

/* Divider Line Above Footer */
footer::before {
  content: ""; /* Empty content for the divider */
  display: block; /* Block-level element */
  width: 80%; /* Limit the width of the divider */
  height: 1px; /* Divider height */
  background: rgba(255, 255, 255, 0.2); /* Subtle white divider */
  margin: 0 auto 20px; /* Center and space it from footer content */
}

/* Responsive Adjustments for Footer */
@media (max-width: 768px) {
  footer .social-links a {
      font-size: 0.9rem; /* Adjust font size for smaller screens */
      margin: 0 8px; /* Reduce spacing between links */
  }

  footer p {
      font-size: 0.8rem; /* Adjust font size for readability */
  }
}

@media (max-width: 480px) {
  footer .social-links a {
      font-size: 0.9rem; /* Further reduce font size */
  }

  footer p {
      font-size: 0.75rem; /* Smaller font for very small screens */
  }
}



/* Footer Styles */
footer {
  background: linear-gradient(135deg, #1e1e2f4b, #2e2e5027);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', sans-serif;
}

/* Footer Content */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

/* Footer Logo */
.footer-logo img {
  max-width: 60px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 255, 153, 0.4));
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.1);
}

/* Footer About */
.footer-about {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer Links */
.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.footer-links ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #00ff99;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(0, 255, 153, 0.4));
}

.social-links a:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 6px 15px rgba(0, 255, 153, 0.6));
}

/* Footer Contact */
.footer-contact {
  flex: 1 1 300px;
  text-align: center;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact a {
  color: #00ff99;
  text-decoration: none;
  font-weight: bold;
}

.footer-contact a:hover {
  color: #00cc80;
}

/* Newsletter Subscription */
.newsletter {
  flex: 1 1 300px;
  text-align: center;
}

.newsletter p {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.newsletter input[type="email"] {
  padding: 10px;
  font-size: 1rem;
  width: 80%;
  max-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter input[type="email"]:focus {
  border-color: #00ff99;
}

.newsletter button {
  padding: 10px 20px;
  font-size: 1rem;
  color: black;
  background: #00ff99;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.newsletter button:hover {
  background: #00cc80;
  transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}

.footer-bottom a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #00ff99;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-about,
  .footer-contact,
  .newsletter {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-links ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .social-links a img {
    width: 30px;
    height: 30px;
  }

  .newsletter input[type="email"] {
    font-size: 0.9rem;
    padding: 8px;
  }

  .newsletter button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
