/* Homepage Styles */

/* Hero Section */
.hero-section {
  /* background-image: 
    linear-gradient(135deg, rgba(40, 167, 69, 0.6) 0%, rgba(0, 123, 255, 0.4) 100%),
    url('./src/your-background-image.jpg'); */
  background-image: url(../Images/Background1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Use margin-left only on larger screens */
  margin-left: 380px;
}

/* Enhanced text visibility on background image */
.hero-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #f8f9fa;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.text-primary {
  color: #28a745 !important;
}

.text-success {
  color: #28a745 !important;
  font-weight: 600;
}

#exploreBtn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

#exploreBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

#exploreBtn:active {
  transform: translateY(0);
}

/* Home Content Section */
.home-content {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e9ecef;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 1.5rem;
}

.feature-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  /* Reset margin-left for tablets and below */
  .hero-content {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll; /* Fix for mobile */
    min-height: 400px;
  }
  
  .hero-content {
    margin-left: 0; /* Ensure no left margin on mobile */
    margin-right: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-text {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  #exploreBtn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1.1rem;
  }
  
  .home-content {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .hero-content {
    margin-left: 0; /* Explicitly remove margin on small screens */
    margin-right: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-section {
    min-height: 350px;
  }
  
  .hero-text {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}