/* General Body Styles */
html {
    scroll-padding-top: 80px; 
    
    margin: 0;
    padding: 0;
    width: 100%;
    /* Failsafe to prevent horizontal scrolling from the html element */
    overflow-x: hidden; 
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    width: 100%;
    /* Failsafe to prevent horizontal scrolling from the body element */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Ensures padding is included in the element's total width */
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #222;
    text-align: center;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    margin-top: 40px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Hero Button Highlight (Shortened) */
.btn-hero-highlight {
    background-color: #28a745;
    padding: 15px 25px; /* Reduced horizontal padding */
    font-size: 1.2em; /* Made text bigger */
}

.btn-hero-highlight:hover {
    background-color: #218838;
}

/* Secondary Hero Button Style (Shortened) */
.btn-hero-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 20px;
    padding: 13px 23px; /* Reduced horizontal padding */
    font-size: 1.2em; /* Made text bigger */
}

.btn-hero-secondary:hover {
    background-color: #fff;
    color: #222;
}

/* Top Bar Styles */
.top-bar {
    background-color: #ff8c00;
    color: #fff;
    padding: 5px 0;
    font-size: 0.9em;
    text-align: center;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Added to ensure content wraps on smaller screens */
}

.top-bar p {
    margin: 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.top-bar a i {
    margin-right: 5px;
    transform: scaleX(-1);
    display: inline-block;
}

/* Header (More Dynamic and Stylish) */
.header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    padding: 15px 0; /* Reduced padding */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
/* Style for when the user scrolls down (kept) */
.header.scrolled {
    background-color: #007bff;
    padding: 10px 0; /* Even smaller when scrolled */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.header .logo img {
    height: 55px; /* Slightly smaller logo */
    width: auto;
}

.header .navigation {
    margin-left: 35px; 
}

.header .navigation a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px; /* Slightly reduced spacing */
    font-weight: 600;
    padding: 8px 15px; /* Added padding to create button feel */
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Added transform */
}

.header .navigation a:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Soft background on hover */
    transform: scale(1.05); /* Slight scale on hover */
}

.header .contact-header {
    font-weight: bold;
    color: #fff;
}
/* Dynamic hover effect for phone icon */
.header .contact-header a:hover i {
    animation: pulse 1s infinite;
}

.header .contact-header a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1em; /* Slightly smaller contact info */
}
.header .contact-header a i {
    margin-right: 5px; /* Reduced icon spacing */
    transform: scaleX(-1);
}

.header .contact-header a:hover {
    color: #ffd700;
}

.hamburger-menu {
    display: none; 
    font-size: 1.8em;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

/* Hero Section */
.hero {
    background: url('images/hero_banner.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: #fff;
    font-size: 3.8em;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

/* About Us Section */
.about-us {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 2;
    min-width: 300px;
    animation: fadeIn 1s ease-out;
}

.about-images {
    flex: 1;
    min-width: 250px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: scale(1.03);
}

/* Services Section */
.services {
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-card i {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.service-card p {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1;
}

/* Warranty Section */
.warranty-section {
    background-color: #f0f0f0;
    padding: 60px 0;
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.warranty-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.warranty-card i {
    font-size: 3.5em;
    color: #ff8c00;
    margin-bottom: 15px;
}

.warranty-card h3 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.warranty-card p {
    color: #555;
}

.warranty-cta {
    text-align: center;
    margin-top: 40px;
}


/* Why Choose Us Section */
.why-choose-us {
    background-color: #eef7ff;
    padding: 60px 0;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.reason-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
}

.reason-item i {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.reason-item p {
    font-weight: 600;
    color: #444;
}

/* How It Works Section */
.how-it-works {
    background-color: #f0f8ff;
    padding: 60px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Needed for positioning the step number */
}

.step-card:hover {
    transform: translateY(-8px);
    /* CORRECTED: Fixed the box-shadow property to include a vertical offset */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Step Number styling */
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.step-icon {
    font-size: 3.5em;
    color: #007bff;
    margin-bottom: 20px;
}

.step-card h3 {
    color: #333;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

.step-card p {
    color: #555;
    font-size: 1em;
}

/* Customer Reviews Section */
.customer-reviews {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.review-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    /* Added to ensure the container itself does not cause overflow */
    margin: 0 -20px; 
    padding-left: 20px;
    padding-right: 20px;
}

.review-card {
    flex: 0 0 32%;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    scroll-snap-align: start;
    box-sizing: border-box; /* Added to fix potential overflow issues */
}

.review-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}

.review-card h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2em;
}

.review-card .stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    color: #555;
}

.carousel-nav {
    text-align: center;
    margin-top: 20px;
}

.carousel-nav button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.carousel-nav button:hover {
    background-color: #0056b3;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    background-color: #f9f9f9;
    color: #333;
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Added to fix potential overflow */
}

.faq-question::after {
    content: '\002B';
    font-size: 1.5em;
    color: #007bff;
    font-weight: bold;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.faq-question.active {
    background-color: #eef7ff;
}

.faq-question.active::after {
    content: '\2212';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Contact Form Section */
.contact-form {
    background-color: #eef7ff;
    padding: 60px 0;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    background-color: #28a745;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #218838;
}

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

/* Floating Call Button */
.call-float {
    position: fixed;
    bottom: 95px;
    right: 25px;
    left: auto; /* Explicitly set to auto to prevent overflow */
    background-color: #007bff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.call-float:hover {
    transform: scale(1.1);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    left: auto; /* Explicitly set to auto to prevent overflow */
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
       transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: #222;
    color: #eee;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer .footer-info,
.footer .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer h3 {
    color: #fff;
    text-align: left;
    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 8px;
    color: #bbb;
}

.footer p a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer p a:hover {
    color: #007bff;
}

.footer p .fas.fa-phone-alt {
    transform: scaleX(-1);
    display: inline-block;
    margin-right: 5px;
}

.footer-social a {
    color: #eee;
    font-size: 1.5em;
    margin-right: 15px;
}

.footer-social a:hover {
    color: #007bff;
}

.footer .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
}

.footer .disclaimer-text {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 992px) {
    /* The hamburger menu only appears on screen sizes below 992px */
    .hamburger-menu {
        display: block;
    }

    .header .navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0060c0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        padding: 15px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s;
        z-index: 9999;
    }

    .header .navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header .navigation a {
        padding: 12px 20px;
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        box-sizing: border-box;
    }

    .header .navigation a:last-child {
        border-bottom: none;
    }

    .header .contact-header a {
        font-size: 1em;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .about-content {
        flex-direction: column;
    }
    .about-images {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .review-card {
        flex: 0 0 48%;
    }
    /* Updated: Hero buttons for mobile */
    .hero-content .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    .btn-hero-secondary {
        margin: 10px auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
        margin-top: 30px;
        margin-bottom: 25px;
    }
    .top-bar .container {
        flex-direction: column;
    }
    .top-bar p {
        margin-bottom: 5px;
    }
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .header .logo {
        order: 0;
    }
    .header .contact-header {
        order: 1;
    }
    .hamburger-menu {
        order: 2;
        margin-left: 15px;
    }
    .hero {
        padding: 80px 20px;
    }
    .service-grid, .reason-grid, .process-steps, .warranty-grid {
        grid-template-columns: 1fr;
    }
    .about-us, .services, .why-choose-us, .how-it-works, .customer-reviews, .faq-section, .contact-form, .warranty-section {
        padding: 40px 0;
    }
    .review-carousel {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .review-card {
        flex: 0 0 80%;
        min-width: unset;
    }
    .carousel-nav {
        display: flex;
        justify-content: center;
    }
    .carousel-nav button {
        padding: 8px 12px;
        font-size: 1em;
    }
    .call-float {
        width: 50px;
        height: 50px;
        font-size: 2em;
        bottom: 80px;
        right: 8px;
        left: auto;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 2em;
        bottom: 15px;
        right: 8px;
        left: auto;
    }
    .footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer .footer-info, .footer .footer-social {
        min-width: unset;
    }
    .footer h3 {
        text-align: center;
    }
    .footer-social a {
        margin: 0 10px;
    }
    .faq-accordion {
        margin: 30px 15px 0;
    }
    .faq-question {
        font-size: 1em;
        padding: 18px 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .service-card, .reason-item, .step-card, .warranty-card {
        padding: 20px;
    }
    .review-card {
        flex: 0 0 95%;
    }
}
/* Ensure all form inputs have the same width by overriding other rules */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Also, add some spacing between the form groups for a cleaner look */
.form-group {
    margin-bottom: 20px;
}
