@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0D6EFD;
  --secondary-color: #FF9800;
  --accent-color: #28A745;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
}

html, body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  position: relative;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  background: transparent;
  padding: 15px 0;
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 10px 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  max-width: 70vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar-brand img {
  max-width: 100%;
  object-fit: contain;
}
.nav-link {
  font-weight: 500;
  color: #fff !important;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s;
}
.navbar.scrolled .nav-link {
  color: var(--text-dark) !important;
}
.nav-link:hover {
  color: var(--secondary-color) !important;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Slider */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: #000;
}
.carousel-item {
  height: 100vh;
  min-height: 600px;
}
.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.6;
}
.carousel-caption {
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.carousel-caption h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.carousel-caption p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-primary-custom {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}
.btn-primary-custom:hover {
  background: #0b5ed7;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
  color: #fff;
}
.btn-secondary-custom {
  background: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}
.btn-secondary-custom:hover {
  background: #e68a00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
  color: #fff;
}
.btn-accent-custom {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}
.btn-accent-custom:hover {
  background: #218838;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
  color: #fff;
}

/* Sections */
section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--secondary-color);
  bottom: 0;
  left: 25%;
  border-radius: 2px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  transition: all 0.4s ease;
  height: 100%;
}
.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.2);
  border-color: var(--primary-color);
}
.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* About Section */
.about-image {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
}

/* Surya Ghar Section */
.surya-ghar-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}
.surya-ghar-img {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  width: 100%;
}

/* Testimonials */
.testimonial-card {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin: 15px;
  transition: transform 0.3s;
  height: 100%;
}
.testimonial-card:hover {
  transform: translateY(-5px);
}
.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--primary-color);
}

/* Floating WhatsApp & Back to Top */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: all 0.3s;
}
.floating-whatsapp:hover {
  background-color: #1ebe57;
  color: white;
  transform: scale(1.1);
}
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: #0b5ed7;
  color: white;
  transform: scale(1.1);
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  padding: 60px 0 20px;
}
footer h5 {
  color: #fff;
  margin-bottom: 20px;
}
footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: var(--secondary-color);
}
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }
  .carousel-caption h1 {
    font-size: 2.2rem;
  }
  .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    padding: 10px 0;
  }
  .nav-link {
    color: var(--text-dark) !important;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .navbar-nav {
    padding: 15px 0;
  }
  .navbar-nav .btn {
    width: 100%;
    margin-top: 10px;
  }
  .section-title {
    margin-bottom: 30px;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .about-image {
    margin-bottom: 30px;
  }
  .surya-ghar-section .section-title.text-start {
    text-align: center !important;
  }
  footer {
    text-align: center;
  }
  footer .social-icons {
    margin-top: 15px;
    justify-content: center;
    display: flex;
  }
  footer h5 {
    margin-top: 20px;
  }
  .glass-card, .testimonial-card {
    padding: 20px;
  }
}
