/* Enhanced hero section styling for modern sophistication */
.hero {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  position: relative;
  color: var(--light-text);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Updated overlay with a wilderness-inspired gradient - reduced opacity to make background more visible */
.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 25, 35, 0.15) 0%,
    /* Further reduced opacity for better background visibility */
      rgba(20, 30, 40, 0.4) 70%,
    /* Balanced for readability and background visibility */
      rgba(5, 15, 25, 0.6) 100% /* Maintains enough contrast at the bottom */
  );
  z-index: 3; /* Above video and static image */
}

/* Add natural grain overlay for wilderness feel - reduced opacity for better background visibility */
.hero-background:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
  z-index: 4; /* Above video and static image, but below content */
  pointer-events: none;
  opacity: 0.2; /* Reduced from 0.3 to make background more visible */
}

/* Enhanced hero image frame with more modern styling */
.hero-image-frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
}

.hero-image-frame:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent,
    var(--primary-color),
    transparent
  );
  z-index: -1;
  border-radius: 4px;
  opacity: 0.7;
}

.hero-image-frame:hover {
  transform: translateY(-10px);
}

.hero-image-frame:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

/* Keeping the old slider styles for reference */
.hero-slider {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  position: relative;
}

.hero-slider .swiper-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
}

.hero-content-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  text-align: center;
  padding: 0; /* Reset padding since we're using center alignment */
}

.hero-content-wrapper .container {
  display: flex;
  justify-content: center; /* Center content horizontally */
  width: 100%;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 520px; /* Reduced from 650px for a more compact card */
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.4)
  ); /* Darker for better visibility in center position */
  border-radius: 16px; /* Slightly smaller for compactness */
  padding: 24px 22px; /* Reduced padding for less vertical space */
  border: 1px solid rgba(255, 255, 255, 0.25); /* Enhanced border visibility */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
  transform: translateY(0); /* Reset vertical adjustment */
  transition: all 0.5s ease;
  animation: fadeInUp 1.2s ease-out forwards; /* Changed to fade up animation for center position */
}

/* Animation for hero content in centered position */
@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modern Hero Layout */
.hero-modern-layout {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 100vh;
  position: relative;
  padding: 0 20px;
}

/* Modern Tagline */
.tagline {
  margin-bottom: 12px; /* Reduced space below tagline */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tagline-text {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  position: relative;
  padding: 0 15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tagline-icon {
  font-size: 0.85rem;
  color: var(--accent-color);
  margin: 0 10px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Title Styling */
.title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 18px; /* Less space below title */
}

.title-decoration {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 20px;
  overflow: hidden;
}

.title-svg {
  width: 100%;
  height: 100%;
  animation: svgWave 4s linear infinite;
}

@keyframes svgWave {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-30px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Quote Icons */
.quote-icon {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 5px;
  vertical-align: super;
}

/* Accent Elements */
.accent-element {
  position: absolute;
  display: flex;
  align-items: center;
  width: 60px;
  z-index: 5;
}

.left-accent {
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
}

.right-accent {
  top: 50%;
  right: -30px;
  transform: translateY(-50%) rotate(180deg); /* Rotate for visual interest */
}

.accent-line {
  height: 2px;
  flex-grow: 1;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

.accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  margin: 0 5px;
}

/* Geometric Elements */
.geometric-element {
  position: absolute;
  opacity: 0.15;
  z-index: 1;
}

.geo-circle {
  width: 150px;
  height: 150px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  top: -20%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.geo-square {
  width: 100px;
  height: 100px;
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
  bottom: -10%;
  left: 15%;
  animation: float 6s ease-in-out infinite;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 120px solid rgba(255, 255, 255, 0.1);
  bottom: 10%;
  right: 5%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Hero Graphic Elements */
.hero-graphic-elements {
  position: relative;
  height: 50px;
  margin: 20px auto;
}

.circle-element {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  left: 30%;
  top: 5px;
  animation: pulse 3s infinite;
}

.line-element {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
}

.square-element {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  right: 30%;
  top: 10px;
  animation: rotate 8s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Shapes */
.shape-4 {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1)
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  position: absolute;
  top: 20%;
  left: 20%;
  animation: morph 8s linear infinite alternate;
}

.shape-5 {
  width: 90px;
  height: 90px;
  background: linear-gradient(
    45deg,
    rgba(241, 196, 15, 0.05),
    rgba(241, 196, 15, 0.1)
  );
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  position: absolute;
  bottom: 15%;
  right: 15%;
  animation: morph 10s linear infinite alternate-reverse;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
  }
}

/* Hero Quote Section */
.hero-quote-container {
  position: absolute;
  bottom: 20px; /* Positioned for optimal spacing from bottom */
  left: 0;
  width: 100%;
  z-index: 20;
}

.hero-quote-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.quote-side {
  flex: 1;
  text-align: right;
  padding-right: 30px;
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.hero-quote {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin: 0;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quote-divider {
  display: flex;
  align-items: center;
  margin: 0 20px;
  animation: fadeIn 1s ease-out 1.4s both;
}

.divider-line {
  width: 30px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  margin: 0 8px;
  box-shadow: 0 0 8px var(--accent-color);
}

.company-side {
  flex: 1;
  text-align: left;
  padding-left: 30px;
  animation: fadeInUp 0.8s ease-out 1.6s both;
}

.company-name {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 600;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Glass effect for quote container */
@supports (backdrop-filter: blur(10px)) {
  .hero-quote-wrapper {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .hero-quote-wrapper {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 60px;
  }
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
  .hero-content-wrapper {
    padding: 0 20px; /* Simple padding */
    align-items: center; /* Keep centered vertically on mobile */
    justify-content: center; /* Keep centered horizontally on mobile */
  }

  .hero-content {
    max-width: 98vw;
    padding: 16px 8px;
    border-radius: 12px;
  }

  .tagline {
    margin-bottom: 8px;
  }

  .title-wrapper {
    margin-bottom: 12px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .accent-element {
    display: none;
  }

  .hero-graphic-elements {
    height: 30px;
  }

  .circle-element,
  .square-element {
    transform: scale(0.7);
  }

  .hero-quote-container {
    bottom: 20px;
  }

  .hero-quote-wrapper {
    flex-direction: column;
    padding: 15px;
  }

  .quote-side {
    padding-right: 0;
    text-align: center;
    margin-bottom: 10px;
  }

  .quote-divider {
    margin: 10px 0;
    width: 100%;
    justify-content: center;
  }

  .company-side {
    padding-left: 0;
    text-align: center;
    margin-top: 10px;
  }

  .hero-quote {
    font-size: 0.85rem;
  }

  .company-name {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-content-wrapper {
    padding: 0 15px; /* Simple padding */
  }

  .hero-content {
    max-width: 100%;
    padding: 25px 20px; /* Adjusted padding */
  }

  /* Adjust sizing for very small devices */
  .tagline-text {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .text-outline {
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.8);
  }
}

/* Enhanced title styles for better prominence in the new position */
.hero-content h1 {
  font-size: 2.5rem; /* Slightly smaller for compactness */
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px; /* Slightly reduced margin */
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Enhanced shadow for better visibility */
}

.text-highlight {
  color: #ffffff;
  display: block;
  margin-bottom: 5px;
  position: relative;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  display: block;
  letter-spacing: 3px;
}

/* Custom media query for medium-large screens */
@media screen and (min-width: 992px) and (max-width: 1200px) {
  .hero-content-wrapper {
    padding: 0; /* Center position */
  }

  .hero-content {
    max-width: 600px;
  }
}

/* Small laptop screens */
@media screen and (min-width: 769px) and (max-width: 991px) {
  .hero-content-wrapper {
    padding: 0; /* Center position */
  }

  .hero-content {
    max-width: 550px;
    padding: 35px;
  }
}

/* Large screens */
@media screen and (min-width: 1201px) {
  .hero-content-wrapper {
    padding: 0; /* Maintain centered position on large screens */
  }

  .hero-content {
    max-width: 600px; /* Still slightly reduced for large screens */
    padding: 32px 28px;
  }
}
