/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  
}

.section-header h2 {
  font-size: 2.5rem;
  color: #fff;
}

.section-header p {
  font-size: 1.1rem;
  color: #bbb;
}

/* Navbar */
.header {
  background-color: #1a1a1a;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: #ffcf00;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-menu li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #ffcf00;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Hero Section */
/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btn {
  display: inline-block;
  background-color: #ffcf00;
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #ffcf00;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}





/* About Section */
.about {
  padding: 4rem 0;
  background-color: #1a1a1a;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.about-text {
  flex: 1;
  text-align: center;
}

.about-text h3 {
  color: #ffcf00;
  margin-bottom: 1rem;
  text-align: center;
}

.about-stats {
  display: flex;
  gap: 20rem;
  margin-top: 2rem;
  align-items: center;
}

.stat h4 {

  font-size: 2rem;
  color: #ffcf00;
 
}

.stat p {
  color: #ccc;
 
}



/* Services Section */
.services {
  background-color: #121212;
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  background: #2b2b2b;
  transform: translateY(-5px);
}

.service-card i {
  font-size: 2rem;
  color: #ffcf00;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #aaa;
}

/* Why Choose Us */
.why-choose {
  padding: 4rem 0;
  background-color: #1a1a1a;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background-color: #222;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  background-color: #2b2b2b;
}

.feature i {
  font-size: 2rem;
  color: #ffcf00;
  margin-bottom: 1rem;
}

.feature h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature p {
  color: #bbb;
}

/* Warranty Section */
/* Home Warranty Section */
.warranty {
  background-color: #1a1a1a;
  padding: 6rem 2rem;
}

.warranty-content {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.warranty-text {
  flex: 1;
  min-width: 300px;
}

.warranty-text h2 {
  font-size: 2.5rem;
  color: #ffcf00;
  margin-bottom: 1rem;
}

.warranty-text p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.warranty-features {
    margin-bottom: 20px;
}

.warranty-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: #ccc;
}

.warranty-list li {
  margin-bottom: 0.75rem;
}

.warranty-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.warranty-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background-color: #1a1a1a;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: #222;
  padding: 2rem;
  border-radius: 8px;
  transition: 0.3s ease;
}

.testimonial:hover {
  background-color: #2c2c2c;
}

.testimonial .stars i {
  color: gold;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.client-info img {
  width: 50px;
  border-radius: 50%;
}

/* Contact */
.contact {
  padding: 4rem 0;
  background: #121212;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info, .contact-form {
  flex: 1;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: #ffcf00;
}

.contact-form h3 {
  margin-bottom: 1rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: #1e1e1e;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
  outline: none;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: -1rem;
  background-color: #121212;
 
}
/* form field label styles and focus animations */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #ffcf00;
}

.form-group label {
  font-size: 0.9rem;
  color: #aaa;
  pointer-events: none;
  transition: all 0.2s ease-out;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.7rem;
  left: 0.8rem;
  background-color: #121212;
  padding: 0 0.25rem;
  font-size: 0.8rem;
  color: #ffcf00;
}

/* Textarea autosize & scroll behaviour */
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Buttons in forms */
button.btn-primary {
  display: inline-block;
  background-color: #ffcf00;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.3s ease;
}

button.btn-primary:hover {
  background-color: #ffcf00;
  transform: scale(1.05);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeInModal 0.4s ease forwards;
}

.modal-content {
  background-color: #1e1e1e;
  color: #ddd;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  animation: slideInModal 0.4s ease forwards;
}

.modal-content h2,
.modal-content p {
  margin-bottom: 1rem;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-content .close:hover {
  color: #fff;
}

.modal-text {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 1rem;
}

.modal-text h3 {
  margin-top: 1rem;
  color: #ffcf00;
}

.modal-text p,
.modal-text ul,
.modal-text li {
  color: #ccc;
}

.modal-text ul {
  padding-left: 1.2rem;
}

.modal-text li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #aaa;
  padding: 4rem 2rem 2rem 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  text-decoration: none;
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffcf00;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: #fff;
}

.footer .logo i {
  color: #ffcf00;
}

.footer p {
  margin: 1rem 0;
}

.social-links a {
  margin-right: 1rem;
  color: #aaa;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #ffcf00;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #333;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInModal {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    padding: 0;
    margin-bottom: 2rem;
  }
  .hero-image {
    width: 100%;
  }

  .about-stats {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}
  
  .warranty-content,
  .about-content,
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    background-color: #1a1a1a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1500;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}

/* Hamburger animation when open */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
