/* Smart Home Energy Audit Template - Main CSS */

/* Import Bootstrap 5 */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
/* Import FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
/* Import Lightbox2 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/css/lightbox.min.css');

/* Root Variables - 5 Primary Colors with Light/Dark Shades */
:root {
  /* Primary Color Palette */
  --primary-color: #2E8B57; /* Sea Green - Energy Efficiency */
  --primary-light: #90EE90;
  --primary-dark: #006400;
  
  --secondary-color: #4169E1; /* Royal Blue - Technology */
  --secondary-light: #87CEEB;
  --secondary-dark: #191970;
  
  --accent-color: #FF6347; /* Tomato - Action/Energy */
  --accent-light: #FFB6C1;
  --accent-dark: #DC143C;
  
  --neutral-color: #708090; /* Slate Gray - Professional */
  --neutral-light: #D3D3D3;
  --neutral-dark: #2F4F4F;
  
  --warm-color: #DAA520; /* Goldenrod - Savings/Value */
  --warm-light: #F0E68C;
  --warm-dark: #B8860B;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--warm-color));
  --gradient-neutral: linear-gradient(135deg, var(--neutral-light), var(--neutral-color));
  
  /* Typography */
  --font-size-root: 16px;
  --font-size-small: 0.875rem;
  --font-size-normal: 1rem;
  --font-size-large: 1.125rem;
  --font-size-h1: 2rem;
  --font-size-h2: 1.75rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-brand: 1.25rem;
}

/* Base Styles */
html {
  font-size: var(--font-size-root);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: #ffffff;
}

/* Typography */
h1 { font-size: var(--font-size-h1); font-weight: 700; color: var(--primary-dark); }
h2 { font-size: var(--font-size-h2); font-weight: 600; color: var(--secondary-dark); }
h3 { font-size: var(--font-size-h3); font-weight: 600; color: var(--primary-color); }
h4 { font-size: var(--font-size-h4); font-weight: 500; color: var(--neutral-dark); }
p { font-size: var(--font-size-normal); margin-bottom: 1rem; }

.navbar-brand {
  font-size: var(--font-size-brand) !important;
  font-weight: 700;
  color: var(--accent-light) !important;
}

/* Header Styles */
.navbar {
  background: var(--gradient-primary) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--warm-light) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-title {
  padding-top: 150px;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--neutral-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.section-desc {
  text-align: center;
  color: var(--neutral-color);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Services Section */
.services-section {
  background: var(--gradient-neutral);
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-accent);
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.service-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--neutral-color);
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--neutral-color);
}

.service-features li:before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  margin-right: 0.5rem;
}


.team-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid var(--primary-light);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--neutral-color);
  font-style: italic;
}

/* Reviews Section */
.reviews-section {
  background: var(--gradient-neutral);
  color: white;
}

.review-card {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  height: 100%;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.review-author {
  font-weight: 600;
  color: var(--warm-light);
}

/* FAQ Section */
.faq-section {
  background: #f8f9fa;
}

.faq-card {
  background: white;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border: none;
}

.faq-header {
  background: var(--gradient-neutral);
  color: white;
  border-radius: 15px 15px 0 0;
  padding: 1.5rem;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
}

.faq-body {
  padding: 1.5rem;
  color: var(--neutral-dark);
}

/* Gallery Section */
.gallery-section {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Contact Section */
.contact-section {
  background: var(--gradient-accent);
  color: white;
}

.contact-form {
  background: rgba(255,255,255,0.1);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.form-control {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.form-control:focus {
  background: white;
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.3);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--warm-light);
}

.footer-link {
  color: var(--neutral-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--warm-light);
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: var(--neutral-light);
  font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Loading Styles */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Process Section Styles */
.process-section {
  background: linear-gradient(135deg, #ffffff, #f1f3f4);
}

.process-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  position: relative;
  height: 100%;
}

.process-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.process-card:nth-child(1)::before { content: '1'; }
.process-card:nth-child(2)::before { content: '2'; }
.process-card:nth-child(3)::before { content: '3'; }
.process-card:nth-child(4)::before { content: '4'; }
.process-card:nth-child(5)::before { content: '5'; }

/* Case Study Section */
.casestudy-section {
  background: var(--gradient-neutral);
}

.casestudy-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.casestudy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Timeline Section */
.timeline-section {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.timeline-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

.timeline-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transform: translateX(10px);
}

/* Career Section */
.career-section {
  background: var(--gradient-neutral);
  color: white;
}

.career-card {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  height: 100%;
  transition: all 0.3s ease;
}

.career-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-5px);
}

/* Core Info Section */
.coreinfo-section {
  background: #ffffff;
}

.coreinfo-card {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  height: 100%;
}

.coreinfo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Blog Section */
.blog-section {
  background: linear-gradient(135deg, #f1f3f4, #e8eaf6);
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  color: var(--neutral-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: var(--primary-dark);
}

/* Price Plan Section */
.priceplan-section {
  background: var(--gradient-accent);
  color: white;
}

.priceplan-card {
  background: rgba(255,255,255,0.95);
  border-radius: 25px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  height: 100%;
  color: var(--neutral-dark);
  position: relative;
  overflow: hidden;
}

.priceplan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--gradient-primary);
}

.priceplan-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.priceplan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin: 1rem 0;
}

.priceplan-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.priceplan-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.priceplan-features li:last-child {
  border-bottom: none;
}

/* Features Section (separate from About) */
.features-section {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
}

.features-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  height: 100%;
  position: relative;
}

.features-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.features-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .feature-card,
  .service-card {
    padding: 1.5rem;
  }
}

/* High Contrast for Accessibility */
.high-contrast {
  --primary-color: #000000;
  --primary-light: #333333;
  --primary-dark: #000000;
  --secondary-color: #0066cc;
  --neutral-color: #666666;
  --neutral-dark: #000000;
}

/* Print Styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
  
  section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
    color: black;
  }
} 


/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
