/* Home Section */

.main-content {
  margin-top: 70px;
  background-image: url('../public/assets/Background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 50px 0;
  min-height: 60vh;
}

/* Ensure header blur effect works on home page */
.header {
  background: rgba(var(--header-bg-rgb), 0.1) !important;
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.1) !important;
}

.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23374151" width="1200" height="600"/><g fill="%23475569"><rect x="0" y="0" width="100" height="100"/><rect x="200" y="100" width="100" height="100"/><rect x="400" y="200" width="100" height="100"/><rect x="600" y="50" width="100" height="100"/><rect x="800" y="150" width="100" height="100"/><rect x="1000" y="250" width="100" height="100"/></g></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero {
  background: rgba(0, 0, 0, 0.3) !important;
  color: #fff;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 40% black */
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: #1e293b;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 229, 225, 0.3);
}

.lottie-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.lottie-animation lottie-player {
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.hero-image {
    margin: 1rem auto;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

/* Second Background Wrapper - from Features until Footer */
.second-background-wrapper {
    background-image: url('../public/assets/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.feature-card {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--secondary-color);
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .lottie-animation lottie-player {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 992px) {
  .main-content {
    padding: 40px 0;
    min-height: 50vh;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .lottie-animation lottie-player {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 30px 0;
    min-height: 40vh;
  }
  
  .hero {
    padding: 2.5rem 0;
  }
  
  .features {
    grid-template-columns: 1fr;
    margin: 2rem 0;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 20px 0;
    min-height: 30vh;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .lottie-animation lottie-player {
    width: 150px;
    height: 150px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
}

/* Landscape Mode Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .main-content {
    min-height: 100vh;
  }
  
  .hero {
    padding: 1.5rem 0;
  }
  
  .lottie-animation lottie-player {
    width: 120px;
    height: 120px;
  }
}

/* Enhanced Homepage Sections */
.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.cta-button.primary {
  background: var(--accent-color);
  color: #1e293b;
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--accent-color);
}

.cta-button.secondary:hover {
  background: var(--accent-color);
  color: #1e293b;
}

/* Brand Trust Section */
.brand-trust {
  background: var(--card-bg);
  padding: 4rem 0;
  margin: 2rem 0;
}

.trust-content {
  text-align: center;
}

.trust-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.trust-content p {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg-hover);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Products Showcase */
.products-showcase {
  background: var(--bg-color);
  padding: 4rem 0;
  margin: 2rem 0;
}

.products-showcase h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.products-showcase > .container > p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-item {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  /* Mobile optimization */
  max-width: 100%;
  height: auto;
  min-height: 200px;
  display: block;
  /* Prevent image distortion on mobile */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.product-item h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
  color: var(--text-color);
}

.product-item p {
  padding: 0 1.5rem 1rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

.product-link {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.product-link:hover {
  background: var(--primary-color-dark);
}

/* Enhanced CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
  color: white;
  padding: 4rem 0;
  margin: 2rem 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cta-content p {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .cta-button {
  background: var(--accent-color);
  color: #1e293b;
  border: none;
}

.cta-buttons .cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--accent-color);
}

.cta-buttons .cta-button.secondary:hover {
  background: var(--accent-color);
  color: #1e293b;
}

/* Trust Indicators */
.trust-indicators {
  background: var(--card-bg);
  padding: 4rem 0;
  margin: 2rem 0;
}

.trust-indicators h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.trust-item {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg-hover);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trust-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.trust-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.trust-item p {
  color: var(--secondary-color);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .trust-stats {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .brand-trust h2,
  .products-showcase h2,
  .cta-content h2,
  .trust-indicators h2 {
    font-size: 2rem;
  }
}
