/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Branding Colors */
:root {
  --brand-yellow: #FFCC00;
  --brand-black: #000;
  --accent-gray: #f1f1f1;
  --primary-bg: #fff;
  --secondary-bg: #f8f9fa;
}

/* Header */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo img {
  height: 80px; /* Adjust as needed */
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.header-btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Primary and secondary button styles */
.primary-btn {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  border: 2px solid var(--brand-yellow);
}

.primary-btn:hover {
  background-color: #e6b800;
}

.secondary-btn {
  background-color: transparent;
  color: var(--brand-black);
  border: 2px solid var(--brand-black);
}

.secondary-btn:hover {
  background-color: var(--brand-black);
  color: #fff;
}

/* Hero Section */
.hero {
  background-color: #222;
  padding: 80px 20px;
  color: #fff;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 45%;
  padding: 20px;
  text-align: left;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--brand-yellow);
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.hero-image {
  flex: 1 1 45%;
  padding: 20px;
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  border: 5px solid var(--brand-yellow);
  border-radius: 8px;
}
.btn {
  display: inline-block;
  background-color: var(--brand-yellow);
  border: 2px solid var(--brand-yellow);
  color: var(--brand-black);
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  font-weight: bold;
}
.btn:hover {
  background-color: #e6b800;
}

/* Section Styling */
.section {
  padding: 80px 20px;
  background-color: var(--primary-bg);
}
.section:nth-of-type(even) {
  background-color: var(--accent-gray);
}
h2, h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--brand-black);
  position: relative;
}
h2::after, h3::after {
  content: "";
  width: 60px;
  height: 4px;
  background-color: var(--brand-yellow);
  display: block;
  margin: 10px auto 0;
}

/* Target Users Section */
.target-users {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}
.user-card {
  background: var(--accent-gray);
  padding: 25px;
  border-radius: 10px;
  border: 2px solid var(--brand-yellow);
  text-align: center;
  flex: 1 1 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.user-icon img {
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
}
.user-card h3 {
  margin-bottom: 15px;
  font-weight: 700;
}

/* Target Projects Section */
.target-projects.modern-section {
  background-color: var(--secondary-bg);
}
.section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #666;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project-item {
  background: var(--primary-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}
.project-item h4 {
  margin-bottom: 10px;
  color: #007BFF;
  font-weight: 600;
}
.project-item p {
  color: #555;
}

/* How It Works Section */
.how-it-works .modern-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.step-card {
  background: var(--accent-gray);
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.step-card h3 {
  margin-top: 20px;
  font-weight: 700;
}

/* Floor Plan Section */
.floorplan {
  position: relative;
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.house-image {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.appliance {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 0, 0.3);
  border-radius: 50%;
  transition: background 0.3s;
  cursor: pointer;
}
.appliance:hover {
  background: rgba(255, 255, 0, 0.8);
}
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
  width: 150px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Features Section */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.features-section {
  background-color: var(--primary-bg);
  padding: 80px 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--accent-gray);
  text-align: center;
  width: 100%;
  max-width: 600px;
}
.feature-icon {
  font-size: 1.5rem;
  color: var(--brand-yellow);
  flex-shrink: 0;
}
.feature-text h3 {
  margin-bottom: 5px;
  font-weight: 700;
}
.feature-text p {
  color: #555;
}

/* Testimonials Section */
.testimonials-section {
  background-color: #e5e5e5;
  padding: 60px 20px;
}
.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.testimonial {
  display: none;
  text-align: center;
  padding: 20px;
  transition: opacity 0.5s ease;
}
.testimonial.active {
  display: block;
}
.testimonial .stars {
  font-size: 1.2rem;
  color: gold;
  margin-bottom: 10px;
}
.testimonial p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--brand-black);
  font-style: italic;
}
.testimonial h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-black);
}
.testimonial-nav {
  text-align: center;
  margin-top: 10px;
}
.testimonial-nav button {
  background-color: var(--brand-yellow);
  border: none;
  color: var(--brand-black);
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.testimonial-nav button:hover {
  background-color: #e6b800;
}

/* Hire Us Section */
.hire-us-section {
  background-color: var(--secondary-bg);
  padding: 80px 20px;
  color: var(--brand-black);
}
.hire-us-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.hire-us-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.hire-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hire-form label {
  font-weight: 500;
}
.hire-form input,
.hire-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
.hire-form button {
  align-self: center;
  padding: 12px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.hire-form button:hover {
  background-color: #e6b800;
}

/* Contact Section */
.contact-details {
  text-align: center;
}
.contact-details p {
  font-size: 1.1rem;
}
.contact-details a {
  color: var(--brand-black);
  text-decoration: underline;
}
.contact-section {
  background-color: var(--brand-black);
  color: #ffffff; /* Make general text white */
  padding: 80px 20px;
}

.contact-section h2, 
.contact-section h3 {
  color: #ffffff; /* Override header colors to white */
}

.contact-section a {
  color: #ffffff; /* Make links white */
  text-decoration: underline;
}
/* Footer */
footer {
  background-color: var(--brand-black);
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-text, .hero-image {
    flex: 1 1 100%;
    text-align: center;
  }
  .target-users {
    flex-direction: column;
    gap: 20px;
  }
  .modern-steps {
    grid-template-columns: 1fr;
  }
  .header-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .logo img {
    height: 60px; /* Smaller logo on mobile */
    margin-bottom: 10px;
  }
  
  .nav-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }
  
  .nav-buttons a {
    width: 80%;
    text-align: center;
    font-size: 1rem;
    padding: 12px 0;
  }
}
