/* ====================
   Hero Section - New Design
   ==================== */

.hero-spacer {
  height: 118px; /* 70px header height + 48px notification bar height */
}

@media (max-width: 991.98px) {
  .hero-spacer {
    height: 118px; /* Same height for mobile */
  }
  
  .hero-section {
    margin-bottom: -60px;
    padding-bottom: 60px;
  }
  
  .hero-background::after {
    height: 100px;
  }
  
  .hero-section + section,
  .hero-section + .container,
  .hero-section + main {
    padding-top: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    margin-bottom: -40px;
    padding-bottom: 40px;
    min-height: 60vh;
  }
  
  .hero-background {
    min-height: 60vh;
  }
  
  .hero-background::after {
    height: 80px;
  }
  
  .hero-section + section,
  .hero-section + .container,
  .hero-section + main {
    padding-top: 1rem;
  }
}

/* New Hero Section Design */
.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: visible; /* Allow fade effect to extend */
  margin-bottom: -80px; /* Overlap with next section */
  padding-bottom: 80px; /* Add padding to compensate */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-background {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(255, 255, 255, 0.9) 40%, 
    rgba(59, 130, 246, 0.08) 60%,
    rgba(255, 255, 255, 0.7) 80%,
    rgba(255, 255, 255, 0.3) 95%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

/* Fade out effect at the bottom */
.hero-background::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.85) 80%,
    rgba(255, 255, 255, 0.95) 90%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Ensure smooth transition with next section */
.hero-section + section,
.hero-section + .container,
.hero-section + main {
  position: relative;
  z-index: 5;
  background: #ffffff;
  padding-top: 2rem;
}

/* Floating Decorative Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ecommerce, .tech, .sparkle {
  position: absolute;
  font-size: 2rem;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.ecommerce-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  font-size: 2.5rem;
}

.ecommerce-2 {
  top: 70%;
  right: 15%;
  animation-delay: 2s;
  font-size: 2rem;
}

.ecommerce-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
  font-size: 1.8rem;
}

.tech-1 {
  top: 25%;
  right: 20%;
  animation-delay: 1s;
  font-size: 2.2rem;
}

.tech-2 {
  top: 60%;
  left: 15%;
  animation-delay: 3s;
  font-size: 2.8rem;
}

.tech-3 {
  bottom: 30%;
  right: 25%;
  animation-delay: 5s;
  font-size: 2rem;
}

.sparkle-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0.5s;
  font-size: 1.5rem;
}

.sparkle-2 {
  top: 80%;
  left: 30%;
  animation-delay: 2.5s;
  font-size: 1.8rem;
}

.sparkle-3 {
  top: 40%;
  left: 5%;
  animation-delay: 4.5s;
  font-size: 1.6rem;
}

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

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-main-title {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: var(--shadow-md);
}

.title-line-1 {
  display: block;
  font-size: 4rem;
  color: var(--primary-blue);
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.title-line-2 {
  display: block;
  font-size: 1.5rem;
  color: var(--gray-700);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: none;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}



.hero-btn-primary, .hero-btn-secondary {
  gap: 1rem; /* Increased gap between text and icon */
}

.hero-btn-primary {
  background: var(--primary-blue);
  color: var(--primary-white);
  border: 2px solid var(--primary-blue);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-btn-primary:hover {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 0;
}

.hero-btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.hero-btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--primary-white);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Decorative Patterns */
.pattern-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.pattern {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: patternFloat 10s ease-in-out infinite;
}

.pattern-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: -50px;
  animation-delay: 0s;
}

.pattern-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: -30px;
  animation-delay: 3s;
}

.pattern-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 10%;
  animation-delay: 6s;
}

@keyframes patternFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-30px) scale(1.1);
    opacity: 0.2;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-spacer {
    height: 60px; /* Reduced spacer for mobile */
  }

  .hero-section {
    min-height: auto; /* Adjust height for content */
    padding: var(--space-8) 0 var(--space-12) 0; /* Reduced padding */
  }

  .hero-background {
    min-height: auto;
  }

  .title-line-1 {
    font-size: 3rem;
  }

  .title-line-2 {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 50vh;
  }
  
  .hero-background {
    min-height: 50vh;
  }
  
  .title-line-1 {
    font-size: 2rem;
  }
  
  .title-line-2 {
    font-size: 1.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-btn-primary, .hero-btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Hide some decorative elements on very small screens */
  .rose-3, .accessory-3, .sparkle-3 {
    display: none;
  }
}

/* Simple transition to main content */
.hero-section + main {
  position: relative;
  z-index: 5;
  background: transparent;
  margin-top: 2rem;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .hero-section + main {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
  }
}

.hero-carousel {
  position: relative;
  box-shadow: 0 4px 20px var(--shadow-color);
  border-radius: 15px;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.carousel-img-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.carousel-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-in-out;
}

.carousel-item.active .carousel-img-container img {
  transform: scale(1.05);
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.5) 100%
  );
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

.custom-nav-buttons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9; /* Lowered z-index to be below header */
  pointer-events: none;
}

.custom-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
  pointer-events: auto;
  outline: none;
}

@media (min-width: 1200px) {
  .custom-nav-btn {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }

  .custom-prev-btn {
    left: 50px;
  }

  .custom-next-btn {
    right: 50px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .custom-nav-btn {
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .custom-prev-btn {
    left: 40px;
  }

  .custom-next-btn {
    right: 40px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .custom-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .custom-prev-btn {
    left: 30px;
  }

  .custom-next-btn {
    right: 30px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .custom-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .custom-prev-btn {
    left: 20px;
  }

  .custom-next-btn {
    right: 20px;
  }
}

@media (max-width: 575px) {
  .custom-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .custom-prev-btn {
    left: 15px;
  }

  .custom-next-btn {
    right: 15px;
  }
}

.custom-nav-btn:hover {
  background-color: var(--primary-gold);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2rem;
  text-align: center;
}

.caption-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
}

.carousel-item.active .caption-content {
  animation: fadeInUp 0.8s ease forwards;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: black;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: black;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: none;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--primary-gold) !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

#mainCarousel .carousel-indicators {
  bottom: 20px;
  margin-bottom: 0;
  z-index: 20;
}

#mainCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.7);
  margin: 0 5px;
  transition: all 0.3s ease;
}

#mainCarousel .carousel-indicators button.active {
  background-color: var(--primary-gold);
  border-color: white;
  transform: scale(1.2);
  width: 12px;
  height: 12px;
}

@media (max-width: 1199.98px) {
  .hero-carousel .carousel-item {
    height: 450px;
  }

  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .hero-carousel .carousel-item {
    height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  #mainCarousel .carousel-control-prev,
  #mainCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
  }

  #mainCarousel .carousel-control-prev {
    left: 15px;
  }

  #mainCarousel .carousel-control-next {
    right: 15px;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item {
    height: 350px;
  }

  .caption-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  #mainCarousel .carousel-control-prev,
  #mainCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  #mainCarousel .carousel-control-prev-icon,
  #mainCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel .carousel-item {
    height: 300px;
  }

  .caption-content {
    padding: 0.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }
}
