/* Add at the beginning of the file */
:root {
  --c1: #212856;
}

/* Line curve styles */
.line-curve {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    transparent 10%, 
    rgba(255, 255, 255, 0.04) 20%, 
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 80%,
    transparent 90%,
    transparent 100%
  );
  border-radius: 100px;
  margin: 15px auto;
  display: block;
}
.line-curve::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    transparent 5%,
    rgba(255, 255, 255, 0.2) 10%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 90%,
    transparent 95%,
    transparent 100%
  );
  animation: silverShine 3s ease-in-out infinite;
}

@keyframes silverShine {
  0% {
    left: -30%;
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-shimmer {
  animation: shimmer 4s ease-in-out infinite;
}

/* Mobile menu animation */
#nav-menu {
  transition: all 0.3s ease-in-out;
  transform-origin: top;
}

#nav-menu.menu-open {
  display: block;
  animation: slideDown 0.3s ease-in-out forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger icon animation */
.hamburger-icon {
  transition: transform 0.3s ease-in-out;
}

.hamburger-icon.active {
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #22201f; /* bg-gray-800 */
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  #nav-menu.menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  #nav-menu ul {
    flex-direction: column;
    gap: 1rem;
  }

  #nav-menu ul li a {
    display: block;
    padding: 0.5rem 0;
    color: white;
    font-size: 1.1rem;
  }
}

/* Hero Slider Styles */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 100vh;
  margin-top: 0; /* Reset margin */
}

.slide {
  height: 100vh;
}

/* Background Image Animation */
.slide-bg {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better text visibility */
}

.slick-active .slide-bg {
  opacity: 1;
}

/* Content Animation */
.slide-content {
  opacity: 0;
  transform: translateX(100px);
  transition: all 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
}

.slide-content h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-content p {
  color: #f3f4f6;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Image Animation */
.slide-image {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-image img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  transition: none;
}

.slide-image img:hover {
  transform: none;
}

/* Slider Navigation */
.hero-slider .slick-dots {
  bottom: 25px;
  z-index: 10;
}

.hero-slider .slick-dots li button:before {
  color: white;
  font-size: 12px;
  opacity: 0.7;
}

.hero-slider .slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
}

.hero-slider .slick-prev,
.hero-slider .slick-next {
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-slider .slick-prev {
  left: 20px;
}

.hero-slider .slick-next {
  right: 20px;
}

/* Add backdrop filter for better text readability */
.slide .container {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 1rem;
  margin: 0 auto;
  max-width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .slide .container {
    padding: 1rem;
  }
  
  .slide-image img {
    width: 300px;
    height: 300px;
  }
  
  .slide-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .slide-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .slide-image img {
    width: 250px;
    height: 250px;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
}

/* Animation Styles */
.slick-active .slide-content {
  opacity: 1;
  transform: translateX(0);
  transition: all 1s ease-out 0.5s;
}

.slick-active .slide-image {
  opacity: 1;
  transform: translateX(0);
  transition: all 1s ease-out 0.5s;
}

/* Ensure animations reset between slides */
.slick-slide:not(.slick-active) .slide-content,
.slick-slide:not(.slick-active) .slide-image {
  opacity: 0;
  transform: translateX(100px);
}

.slick-slide:not(.slick-active) .slide-image {
  transform: translateX(-100px);
}

/* Remove the animation */
.line-curve::after {
  display: block;
}

/* Add this to make line width match title and center it */
h1 .line-curve,
h2 .line-curve,
h3 .line-curve,
h4 .line-curve {
  width: 100%;
  margin: 0.5rem auto;
  display: block;
}

/* Header to Next Section Transition */
.relative.py-32 {
  position: relative;
  background: linear-gradient(to bottom, var(--c1) 0%, #1a1f35 50%, #141824 100%);
  overflow: hidden;
}

/* Ensure proper stacking */
.container.mx-auto.px-4.relative.z-10 {
  position: relative;
  z-index: 2;
}

/* Remove any existing transition elements */
.absolute.bottom-0.left-0.right-0.h-32.bg-gradient-to-t {
  display: none;
}

/* Update navigation link hover styles */
.nav-link {
  position: relative;
  color: #ffffff;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    0 0 6px rgba(255, 255, 255, 0.8),
    0 0 12px rgba(255, 255, 255, 0.6),
    0 0 18px rgba(255, 255, 255, 0.4),
    0 0 24px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.nav-link:hover::before {
  transform: translateX(-50%) scale(1);
}

.nav-link.active::before {
  transform: translateX(-50%) scale(1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 8px;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.4) 100%
  );
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 15%,
    0% 100%
  );
  transform-origin: left;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* For mobile submenu links */
.mobile-submenu .nav-link::after {
  bottom: -1px;
  height: 8px;
}

/* Remove all the new styles we added */
.nav-item[data-notch="true"],
.nav-item[data-notch="true"]::before,
.nav-item[data-notch="true"]:hover::before,
.header-nav-container::before,
.header-nav-container::after {
  display: none;
}

/* Products Section */
.product-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.product-section .image-section,
.product-section .text-section {
  flex: 1;
}

.product-image-wrapper {
  position: relative;
  padding: 0px;
  height: 100%;
}

.circular-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 30px;
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Button Styles */
.product-btn {
  position: relative;
  display: inline-flex;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: white;
  font-size: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: fit-content;
}

.product-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.motiontxt {
  display: inline-block;
  animation: textShake 0.8s ease-in-out infinite;
  filter: blur(0.5px);
  transition: filter 0.3s ease;
}

@keyframes textShake {
  0% {
    transform: translate(0, 0) rotate(0deg);
    filter: blur(0.5px);
  }
  25% {
    transform: translate(-2px, 1px) rotate(-0.5deg);
    filter: blur(1px);
  }
  50% {
    transform: translate(1px, -1px) rotate(0.5deg);
    filter: blur(0.8px);
  }
  75% {
    transform: translate(-1px, 2px) rotate(-0.5deg);
    filter: blur(1px);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
    filter: blur(0.5px);
  }
}

.nav-item {
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: -2.5rem; /* Adjust based on header padding */
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 3rem;
  height: 1.5rem;
  background-color: inherit;
  border-radius: 0 0 1.5rem 1.5rem;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.nav-item:hover::before {
  transform: translateX(-50%) scale(1);
}

/* Create the notch effect in header */
.header-nav-container {
  position: relative;
  mask-composite: exclude;
}

.header-nav-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: inherit;
}

/* Exclude mobile submenu from the effect */
.mobile-submenu .nav-item::before {
  display: none;
}

.nav-item[data-notch="true"] {
  position: relative;
}

.nav-item[data-notch="true"]::before {
  content: '';
  position: absolute;
  top: -2.75rem;
  left: 50%;
  width: 4rem;
  height: 2rem;
  background: transparent;
  border-radius: 0 0 2rem 2rem;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  z-index: 60;
}

.nav-item[data-notch="true"]:hover::before {
  transform: translateX(-50%) scaleY(1);
}

.header-nav-container {
  position: relative;
  background: transparent;
  overflow: visible !important;
}

/* Remove previous conflicting styles */
.header-nav-container::before,
.header-nav-container::after {
  display: none;
}

.nav-link {
  position: relative;
  z-index: 61;
}

/* Remove header curved background */
header {
  position: relative;
  z-index: 100;
  background: transparent;
}

.bg-bg-nav2 {
  position: relative;
  background-color: var(--c1) !important;
  z-index: 50;
  width: 100%;
  height: 100%;
  padding: 10px 0;
}

.nav-link.active::before,
.nav-link:hover::before {
  transform: translateX(-50%) scale(1);
  background: white;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    0 0 6px rgba(255, 255, 255, 0.8),
    0 0 12px rgba(255, 255, 255, 0.6),
    0 0 18px rgba(255, 255, 255, 0.4),
    0 0 24px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 8px;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.4) 100%
  );
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 15%,
    0% 100%
  );
  transform-origin: left;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* For mobile submenu links */
.mobile-submenu .nav-link::after {
  bottom: -1px;
  height: 8px;
}

/* Active navigation item style */
.nav-active::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) scale(1) !important;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    0 0 6px rgba(255, 255, 255, 0.8),
    0 0 12px rgba(255, 255, 255, 0.6),
    0 0 18px rgba(255, 255, 255, 0.4),
    0 0 24px rgba(255, 255, 255, 0.2);
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100% !important;
  height: 8px;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.4) 100%
  );
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 15%,
    0% 100%
  );
}

/* Footer Styles */
footer {
  position: relative;
  padding-top: 6rem !important;
  background: var(--bg-nav2);
  backdrop-filter: blur(8px);
  background-repeat: no-repeat;
  background-size: cover;
} 

@media (max-width: 768px) {
  .nav-link::before {
    display: none;
  }
  
  .nav-link:hover::before {
    display: none;
  }
  
  .nav-link.active::before {
    display: none;
  }
}