/* Solar Panel Cleaning Service - Main CSS */

/* Color Palette Variables */
:root {
  /* Primary Colors */
  --primary-blue: #1e40af;
  --primary-green: #059669;
  --primary-yellow: #fbbf24;
  --primary-orange: #f97316;
  --primary-purple: #7c3aed;
  
  /* Light Shades */
  --light-blue: #dbeafe;
  --light-green: #d1fae5;
  --light-yellow: #fef3c7;
  --light-orange: #fed7aa;
  --light-purple: #e9d5ff;
  
  /* Dark Shades */
  --dark-blue: #1e3a8a;
  --dark-green: #047857;
  --dark-yellow: #d97706;
  --dark-orange: #ea580c;
  --dark-purple: #6d28d9;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Conservative Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global overflow prevention */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Prevent any element from causing horizontal scroll */
* {
  max-width: 100%;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure inline images with style attributes don't override responsive behavior */
img[style*="width"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Let Bootstrap 5 handle all grid and utility classes */

/* Responsive Content Spacing - Works with Bootstrap 5 */
.container, .container-fluid {
  /* Let Bootstrap handle all container sizing and padding */
  /* Ensure proper spacing for content */
}

/* Responsive utility class for proper content spacing */
.responsive-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 575.98px) {
  .responsive-content {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-base); }
h6 { font-size: var(--fs-sm); }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
  font-size: var(--fs-base);
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
}

/* Custom navbar styling - let Bootstrap handle responsive behavior */
.navbar {
  width: 100%;
  max-width: 100%;
}

.navbar-brand {
  font-size: var(--fs-xl) !important;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

.navbar-nav .nav-link:hover {
  color: var(--light-yellow) !important;
}

/* Ensure navbar doesn't cause overflow on mobile */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
  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('../TOR_images/hero-bg.webp') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-desc {
  font-size: var(--fs-base);
  margin-bottom: 2rem;
  opacity: 0.8;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Decorative Shapes */
.decorative-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-yellow);
  top: 20%;
  right: 5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: var(--primary-orange);
  bottom: 20%;
  left: 2%;
  animation-delay: 2s;
}

.blob-3 {
  width: 150px;
  height: 150px;
  background: var(--primary-purple);
  top: 60%;
  right: 20%;
  animation-delay: 4s;
}

/* Hide decorative blobs on medium screens and smaller */
@media (max-width: 991.98px) {
  .decorative-blob {
    display: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: var(--fs-lg);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.section-desc {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, var(--light-blue), var(--light-green));
}

.about-feature {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-5px);
}

.about-feature i {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Features Section */
.features-section {
  background: var(--gray-50);
}

/* Services Section */
.services-section {
  background: var(--gray-50);
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.service-features li:last-child {
  border-bottom: none;
}

/* Team Section */
.team-section {
  background: linear-gradient(135deg, var(--light-purple), var(--light-orange));
}

.team-member {
  text-align: center;
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-blue);
}

.team-member-role {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Reviews Section */
.reviews-section {
  background: var(--gray-50);
}

.review-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: relative;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.3;
}

.review-author {
  font-weight: 600;
  color: var(--primary-green);
  margin-top: 1rem;
}

.review-text {
  font-style: italic;
  color: var(--gray-700);
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, var(--light-yellow), var(--light-orange));
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  background: var(--primary-blue);
  color: var(--white);
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--dark-blue);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--gray-700);
  display: none;
}

.faq-answer.active {
  display: block;
}

/* Gallery Section */
.gallery-section {
  background: var(--gray-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* Responsive gallery adjustments */
@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
  color: var(--white);
}

.contact-form {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--gray-800);
  width: 100%;
  max-width: 100%;
}

/* Ensure form elements don't cause overflow */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Let Bootstrap 5 handle all form and button styles */

/* Footer */
footer {
  background-color: #047857;
  color: var(--white);
  padding: 3rem 0 1rem;
  width: 100%;
  max-width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}

/* Responsive footer adjustments */
@media (max-width: 575.98px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.footer-section h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1rem;
  text-align: center;
  color: var(--gray-400);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-100);
  padding: 2rem 0;
  text-align: center;
}

.breadcrumb img {
  max-width: 50px;
  height: auto;
}

/* Utilities */
.text-primary { color: var(--primary-blue) !important; }
.text-secondary { color: var(--primary-green) !important; }
.bg-primary { background-color: var(--primary-blue) !important; }
.bg-secondary { background-color: var(--primary-green) !important; }

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--fs-2xl);
  }
  
  .section-title {
    font-size: var(--fs-xl);
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: var(--fs-xl);
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .decorative-blob {
    display: none;
  }
}

/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
