/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    line-height: 1.6;
    background-color: #f9f9f9;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================
   HEADER
============================ */
#header {
    background-color: #ffffff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #1abc9c;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #1abc9c;
    background-color: #f2f2f2;
    border-radius: 4px;
}

/* Call-to-action button in header */
.cta-button-header {
    background-color: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button-header:hover {
    background-color: #16a085;
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* ============================
   HERO SECTION
============================ */
/* ============================
   HERO SECTION
============================ */
#hero {
  padding: 180px 0;
  background-color: #f9f9f9;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-content {
  flex: 1 1 50%;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-content .hero-cta {
  background-color: #1abc9c;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-content .hero-cta:hover {
  background-color: #16a085;
}

.hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px) {
  #hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content, .hero-image {
    flex: 1 1 100%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-image {
    margin-top: 30px;
  }
}


/* Simple background animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .cta-button-header {
        display: none;
    }

    #hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-content {
        width: 100%;
    }
}


/* ============================
   COMMON SECTION STYLES
============================ */
.section {
    padding: 80px 0;
    background-color: #fff;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1abc9c;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================
   ABOUT SECTION
============================ */
#about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1 1 50%;
    max-width: 600px;
}

.about-content h2 {
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #1abc9c;
    color: #1abc9c;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #1abc9c;
    color: #fff;
}

.about-image {
    flex: 1 1 40%;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ============================
   SERVICES SECTION
============================ */
#services {
    background-color: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.service-item i {
    font-size: 2.5rem;
    color: #1abc9c;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* ============================
   RESPONSIVE STYLES
============================ */
@media (max-width: 992px) {
    #about .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-image {
        order: -1;
    }
}

/* ============================
   HOME WARRANTY SECTION
============================ */
#home-warranty {
    background-color: #f5f7f9;
    text-align: center;
}

#home-warranty h2 {
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

#home-warranty p {
    font-size: 1.1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.warranty-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #2c3e50;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    min-width: 300px;
    transition: all 0.3s ease;
}

.feature-item i {
    color: #1abc9c;
    font-size: 1.5rem;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

/* CTA Button */
.cta-button {
    background-color: #1abc9c;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #16a085;
}

/* ============================
   WHY CHOOSE US SECTION
============================ */
#why-choose-us {
    background-color: #ffffff;
    text-align: center;
}

#why-choose-us h2 {
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.choose-item {
    background-color: #fdfdfd;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.choose-item .icon-large {
    font-size: 2.5rem;
    color: #1abc9c;
    margin-bottom: 15px;
}

.choose-item h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.choose-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .warranty-features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 90%;
    }
}


/* ============================
   TESTIMONIALS SECTION
============================ */
#testimonials {
    background-color: #f5f7f9;
    text-align: center;
    position: relative;
}

#testimonials h2 {
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.testimonial-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-item p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-item h4 {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: bold;
}

/* Navigation buttons */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 1.2rem;
    color: #1abc9c;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-nav:hover {
    background-color: #1abc9c;
    color: #ffffff;
}

.testimonial-nav.prev {
    left: 20px;
}

.testimonial-nav.next {
    right: 20px;
}

/* ============================
   CONTACT SECTION
============================ */
#contact {
    background-color: #ffffff;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 40%;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.contact-info i {
    color: #1abc9c;
    margin-right: 8px;
}

/* Social Icons */
.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 12px;
    font-size: 1.2rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1abc9c;
}

/* Contact Form */
.contact-form {
    flex: 1 1 55%;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1abc9c;
    outline: none;
}

textarea {
    resize: vertical;
}

/* Submit Button */
.contact-form .cta-button {
    background-color: #1abc9c;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-size: 1rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .cta-button:hover {
    background-color: #16a085;
}

/* ============================
   RESPONSIVE STYLES
============================ */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .testimonial-nav {
        display: none;
    }

    .testimonial-slider {
        flex-direction: column;
    }

    .testimonial-item {
        max-width: 90%;
    }

    .contact-form,
    .contact-info {
        width: 100%;
    }
}

/* ============================
   MODALS
============================ */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    padding: 40px 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: #1abc9c;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-close-btn {
    background-color: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-close-btn:hover {
    background-color: #16a085;
}

/* ============================
   NEWSLETTER FORM IN MODAL
============================ */
#newsletter-modal form {
    margin-top: 20px;
}

#newsletter-modal .form-group {
    margin-bottom: 20px;
}

#newsletter-modal input,
#newsletter-modal textarea,
#newsletter-modal select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

#newsletter-modal input:focus,
#newsletter-modal textarea:focus {
    border-color: #1abc9c;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.95rem;
    color: #555;
}

/* ============================
   CONFIRMATION MESSAGES
============================ */
.confirmation-message {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1abc9c;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    z-index: 10000;
    animation: fadeSlideUp 0.4s ease forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   FOOTER
============================ */
#footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1 1 220px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-section p, 
.footer-section a {
    font-size: 0.95rem;
    color: #bdc3c7;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1abc9c;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.cta-button-footer {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button-footer:hover {
    background-color: #16a085;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .modal-content {
        width: 100%;
    }

    .confirmation-message {
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
}
