/* Basic Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: black;
  color: #eaeaea;
  line-height: 1.5;
  overflow-x: hidden; /* Prevent horizontal overflow from body */
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* Ensures the navbar spans the full width */
  z-index: 1000;
  background: linear-gradient(90deg, #ff6f3c, #ffa55e);
  background-size: 200% 200%;
  animation: nav-bar-gradient 6s ease-in-out infinite;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

@keyframes nav-bar-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#animated-title {
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.25rem;
}

#titleHeader {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 3; /* Increased z-index to sit above the globe */
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

#titleSubHeader {
  font-size: 1.5rem;
  color: #cfcfcf;
  position: relative;
  z-index: 3; /* Increased z-index to sit above the globe */
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.menu-icon {
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: #ffffff; /* Solid background color */
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1rem;
  z-index: 1100; /* Ensure nav is above other elements */
}

nav.open {
  transform: translateX(0);
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

nav ul li a {
  color: rgb(50, 50, 50);
  font-weight: 500;
  font-size: 1rem; /* Optimized font size */
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff6f3c;
}

.close-menu {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(50, 50, 50);
  cursor: pointer;
}

/* Floating Blobs */
.floating-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape-container {
  position: absolute;
}

/* Drift Animations - Enhanced for 8x Drift */
@keyframes drift1 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(400px, -240px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes drift2 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-320px, 160px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes drift3 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(480px, 80px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes drift4 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-240px, -160px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Morphing Animation - Enhanced for 2x Morphing */
@keyframes morphBlob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 20% 80% 30% 70%;
  }
  20% {
    transform: translate(-100px, 80px) scale(2.2) rotate(240deg);
    border-radius: 120% 80% 120% 80%;
  }
  40% {
    transform: translate(20px, -40px) scale(1.6) rotate(480deg);
    border-radius: 100% 100% 140% 60%;
  }
  60% {
    transform: translate(0, 40px) scale(2.1) rotate(720deg);
    border-radius: 60% 140% 100% 100%;
  }
  80% {
    transform: translate(120px, 0) scale(2.4) rotate(180deg);
    border-radius: 100% 100% 60% 140%;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 20% 80% 30% 70%;
  }
}

/* Base Shape Style */
.shape {
  opacity: 0.25;
  background: linear-gradient(135deg, #3c6382, #ffa55e);
  animation: morphBlob ease-in-out infinite;
}

/* Shape Sizes and Animation Durations */
.shape-1 {
  width: 300px;
  height: 300px;
  animation-duration: 25s, 25s;
  animation-name: morphBlob, drift1;
  animation-timing-function: ease-in-out, linear;
}

.shape-2 {
  width: 500px;
  height: 500px;
  animation-duration: 30s, 30s;
  animation-name: morphBlob, drift2;
  animation-timing-function: ease-in-out, linear;
}

.shape-3 {
  width: 400px;
  height: 400px;
  animation-duration: 35s, 35s;
  animation-name: morphBlob, drift3;
  animation-timing-function: ease-in-out, linear;
}

.shape-4 {
  width: 250px;
  height: 250px;
  animation-duration: 28s, 28s;
  animation-name: morphBlob, drift4;
  animation-timing-function: ease-in-out, linear;
}

.shape-7 {
  width: 210px;
  height: 210px;
  animation-duration: 22s, 22s;
  animation-name: morphBlob, drift1;
  animation-timing-function: ease-in-out, linear;
}

/* Word Globe */
#globe-container {
  position: absolute;
  top: 0; /* Hug the top */
  left: 50%;
  bottom: 0; /* Hug the bottom */
  transform: translateX(-50%);
  width: 100%; /* Occupy full width */
  height: 100%; /* Occupy full height */
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 0; /* Lowered z-index to place behind overlay */
  overflow: hidden;
}

#globe {
  position: relative;
  width: 100%;
  height: 100%;
}

.word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%);
  font-size: 18px;
  white-space: nowrap;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.no-scroll {
  overflow: hidden;
  height: 100%;
  z-index: 3;
}

.hero-title {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent; /* Changed from black to transparent */
  color: white;
  font-size: 3rem;
  flex-direction: column;
  z-index: 2;
  padding: 0 1rem;
  text-align: center;
  position: relative;
}

/* Overlay for Headers to Improve Readability */
.hero-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: 1;
}

#titleHeader,
#titleSubHeader {
  position: relative;
  z-index: 2;
}

.intro_video {
	position: relative;
	z-index: 4;
}


#heroSection {
  z-index: 3;
  position: relative;
}

.scroll-container {
  height: 100vh;
  background: transparent;
  position: relative;
}

.video-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevent child elements from causing overflow */
}

.video-element {
  width: 15vw;
  aspect-ratio: 9 / 19.5;
  border: 2px solid white;
  border-radius: 20px;
  object-fit: cover;
  transition: all 1s ease;
}

.video-container.expanded .video-element {
  width: 100vw;
  height: 100vh;
  aspect-ratio: unset;
  border-radius: 0;
}

.content-section {
  height: 200vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ddd;
  font-size: 2rem;
}

/* Main Content */
/* Slide/Reveal Animations for Feature Blocks and Testimonials */
@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-up {
  opacity: 0;
  animation: slide-up 0.6s ease forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slide-in-right 0.6s ease forwards;
}

/* Fade-In-Up Animation for Feature Blocks */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: margin-top 0.3s ease;
}

.feature-block.show {
  animation: fadeInUp 0.8s forwards;
}

/* Specific margin for #features-translation */
#features-translation.show {
  margin-top: 60px;
}

.feature-block h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #ff6f3c;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.feature-block p {
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #cfcfcf;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
}

/* Sub-Features Styles with Frosted Glass Effect */
.sub-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  border: none;
  background-color: transparent;
  position: relative;
  z-index: 1;
  padding: 1rem;
}

/* Desktop .sub-feature styling with frosted glass */
.sub-feature {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  color: #eaeaea;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile View Adjustments for sub-features scrolling */
@media screen and (max-width: 992px) {
  .sub-features {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    width: 100%;
    z-index: 10; /* Ensure it's above other elements */
    padding-bottom: 1rem; /* Added padding to prevent content cutoff */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .sub-feature {
    flex: 0 0 80%;
    scroll-snap-align: start;
    height: 200px; /* Adjust as needed */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-right: 1rem;
    padding: 1rem;
    color: #eaeaea;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .sub-feature:last-child {
    margin-right: 0; /* Prevent extra margin on last item */
  }

  /* Remove gradient overlays to eliminate white lines */
  .sub-features::after,
  .sub-features::before {
    display: none;
  }
}

/* Minimal Scrollbar Styling for viewports between 501px and 992px */
@media screen and (min-width: 501px) and (max-width: 992px) {
  .sub-features {
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
  }
  .sub-features::-webkit-scrollbar {
    height: 6px;
  }
  .sub-features::-webkit-scrollbar-track {
    background: transparent;
  }
  .sub-features::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
  }
}

/* Hide Scrollbar for viewports 500px or less */
@media screen and (max-width: 500px) {
  .sub-features {
    scrollbar-width: none;
  }
  .sub-features::-webkit-scrollbar {
    display: none;
  }
}

/* Redesigned Testimonials Section */
.testimonials {
  padding: 3rem 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5'%3E%3Ccircle fill='%233c6382' cx='2.5' cy='2.5' r='0.5'/%3E%3C/svg%3E") repeat; /* Updated background */
  position: relative;
  text-align: center;
  color: #ffffff;
  margin-top: 80px;
  scroll-snap-type: none; /* Ensure no scroll snapping on testimonials */
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5'%3E%3Ccircle fill='%233c6382' cx='2.5' cy='2.5' r='0.5'/%3E%3C/svg%3E") repeat;
  opacity: 0.1;
  pointer-events: none;
}

.testimonials h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.testimonials .testimonial {
  max-width: 600px;
  margin: 0.75rem auto;
  background-color: #3c6382;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 1; /* Ensure testimonials are visible without animation */
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
}

.testimonials .testimonial p:first-of-type {
  font-style: italic;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  padding: 1rem;
  background-color: #3c6382;
  color: #fff;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer a {
  color: #ff6f3c;
  margin: 0 0.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

footer a:hover {
  color: #fff;
}

/* New CSS Classes for Hiding and Showing Feature Blocks */
.feature-block.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  /* Prevent interactions when hidden */
}

.feature-block.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}

/* Hero Content Overlay */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 600px;
  text-align: center;
  z-index: 2;
  transition: opacity 1s ease, transform 1s ease; /* Updated to match video expansion */
  opacity: 0;
}

.hero-content.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  margin-top: 20px;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #ff6f3c; /* Replaced var(--primary-color) */
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px; /* Replaced var(--border-radius) */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Replaced var(--transition-speed) */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
  background-color: #ffffff;
  color: #ff6f3c; /* Replaced var(--primary-color) */
  transform: translateY(-3px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

        .video-container {
	    z-index: 5;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
	    padding-top: 40px;
        }

        video {
            width: 100%;
            max-width: 600px;
            height: auto;
            border-radius: 5px;
        }

        .controls {
            margin-top: 15px;
            text-align: center;
	    display: flex;
	    flex-direction: column;
	    align-items: center;
	    justify-content: center
        }

        button {
		    margin-top: 20px;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #ff6f3c;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
        button:hover {
            background-color: #0056b3;
        }

        button:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
        }
	.video-info {
            margin-top: 10px;
            padding: 10px;
            background-color: #e9ecef;
            border-radius: 5px;
            font-size: 14px;
        }

        .status {
            color: #28a745;
            font-weight: bold;
        }

