/* Basic Resets & Global Styles */
:root {
    --primary-color: #32CD32; /* Lime Green */
--secondary-color: #4682B4; /* Steel Blue */
--accent-color: #FFD700; /* Gold */
--text-color: #2F4F4F; /* Dark Slate Gray */
--light-text-color: #F5FFFA; /* Mint Cream */
--background-light: #F0FFF0; /* Honeydew */
--background-dark: #2E8B57; /* Sea Green */
--card-bg: #FFFFFF;
--border-color: #98FB98; /* Pale Green */
--shadow-light: rgba(0, 0, 0, 0.1);
--shadow-medium: rgba(0, 0, 0, 0.2);
--padding-section: 60px 0;


}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: var(--padding-section);
}

.section-alt-bg {
    background-color: var(--background-light);
}

.section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1em;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
}

.btn-secondary:hover {
    background-color: #32CD32;
    transform: translateY(-2px);
}

.btn-hero {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    font-size: 1.1em;
    padding: 15px 30px;
}

.btn-hero:hover {
    background-color: #32CD32;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
#header {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header.sticky {
    background-color: var(--secondary-color); /* Slightly darker if needed on scroll */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--light-text-color);
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: var(--light-text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

.navbar ul li:last-child a {
    margin-left: 15px;
}

.hamburger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: url('../images/hero.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 150px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1; /* Ensure text is above background elements if any */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    z-index: -1;
}

.hero-text h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.about-text {
    flex: 1.5;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* Why Choose Us Section & Warranty Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.feature-icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.warranty-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.warranty-image {
    flex: 1;
    min-width: 300px;
}

.warranty-image img {
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.warranty-text {
    flex: 1.5;
    min-width: 300px;
}

.warranty-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
}

.warranty-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.warranty-text ul li {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.05em;
}

.warranty-text ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.link-text {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05em;
    line-height: 1.7;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.client-info span {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1em;
}

/* Forms (Quotes & Newsletter) */
.security-form, .newsletter-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group select[multiple] {
    height: 150px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.9em;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    color: #555;
    font-size: 0.95em;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 20px;
}

.confirmation-message {
    margin-top: 25px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
    background-color: var(--accent-color);
    transition: opacity 0.3s ease;
}

.confirmation-message.hidden {
    display: none;
    opacity: 0;
}

/* Contact Section */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-item p {
    color: #666;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer */
#footer {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--light-text-color);
}

.footer-logo p {
    color: #bbb;
}

.footer-links h4,
.footer-legal h4,
.footer-social h4 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    font-weight: 600;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #bbb;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-content h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

.popup-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.4em;
}

.popup-content p,
.popup-content ul li {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.popup-content ul {
    margin-left: 20px;
    list-style: disc;
    margin-bottom: 20px;
}

.popup-content ul li strong {
    color: var(--secondary-color);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Hidden class for confirmation messages */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar {
        display: none; /* Hide desktop nav on smaller screens */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: var(--secondary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar.active {
        display: flex;
    }

    .navbar ul {
        flex-direction: column;
        padding: 20px 0;
    }

    .navbar ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar ul li:last-child a {
        border-bottom: none;
    }

    .hamburger {
        display: block;
    }

    .hero-text h1 {
        font-size: 3em;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .about-content,
    .warranty-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .warranty-image {
        order: -1; /* Image above text on mobile */
    }
    .services-grid,
    .features-grid,
    .testimonials-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .btn-hero {
        font-size: 1em;
        padding: 12px 25px;
    }

    .service-card, .feature-card, .testimonial-card, .contact-item {
        padding: 25px;
    }

    .security-form, .newsletter-form {
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    .footer-social {
        grid-column: 1 / -1; /* Span full width */
        order: 4;
        margin-top: 20px;
    }
    .footer-social .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}