/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #F5F5F5;
    color: #333;
    padding-top: 60px; /* Ensure content doesn't overlap with fixed header */
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box; /* Ensure padding is included in width */
}

header h1 {
    margin: 0;
    font-size: 1.5em;
    color: #FFFFFF;
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #fff; /* White color for links */
    text-decoration: none; /* Remove underline from links */
    margin-left: 15px;
    font-weight: 500;
    font-size: 0.9em;
}

nav a:hover {
    color: #FF6B35; /* Change color on hover */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(197, 48, 48, 0.7), rgba(197, 48, 48, 0.7)), 
    url('inferno45back.webp') no-repeat center center/cover;
    background-attachment: fixed;
    height: 70vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.hero h2 {
    font-size: 2.5em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero a {
    background-color: #FF6B35;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1.1em;
}

/* Section styling */
.section {
    padding: 100px 100px;
}

.section.white {
    background-color: #ffffff;
    color: #333;
    padding: 100px 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section.white .content {
    flex: 1;
    padding-right: 50px;
}

.section.white .image {
    flex: 1;
    padding-left: 50px;
}

.section.white h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #C53030;
}

.section.white h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.section.white p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.section.white a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: bold;
}

.section.white img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Services section */
.services {
    background-color: #f9f9f9;
    padding: 100px 100px;
    text-align: center;
}

.services h2 {
    font-size: 2.5em;
    color: #C53030;
}

.services h3 {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #333;
}

.service-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-box img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
}

.service-box h4 {
    font-size: 1.2em;
    margin: 15px 0 10px 0;
    color: #C53030;
}

.service-box p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.service-box a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: bold;
}

/* Footer styling */
footer {
    padding: 50px 20px; /* Reduced padding for better mobile experience */
    background-color: #f9f9f9;
    display: flex;
    justify-content: center; /* Center the footer content */
    box-sizing: border-box;
    width: 100%;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap; /* Ensures the columns wrap on smaller screens */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    margin-right: 20px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 300px; /* Ensures the columns have a minimum width */
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column iframe#map-iframe {
    width: 100%;
    height: 400px; /* Fixed height for the Google Map iframe */
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-column iframe#map-iframe {
        height: 250px; /* Adjust height for smaller screens */
    }
}

.footer-bottom {
    background-color: #333;
    color: #fff;
    padding: 20px 20px; /* Adjust padding for mobile screens */
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    /* Adjust padding and layout for smaller screens */
    .section.white {
        flex-direction: column;
        padding: 20px;
    }

    .section.white .content,
    .section.white .image {
        padding: 0;
        text-align: center;
    }

    .section.white .content {
        order: 2;
    }

    .section.white .image {
        order: 1;
        margin-bottom: 20px;
    }

    .section.white h2 {
        font-size: 2em;
    }

    .section.white h3 {
        font-size: 1.2em;
    }

    /* Adjust other sections for mobile */
    .section,
    .services {
        padding: 50px 20px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero {
        padding-top: 40px;
        height: 60vh;
    }

    header h1 {
        font-size: 1.2em;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #333;
        width: 100%;
        padding: 20px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: right;
    }

    nav a {
        margin-left: 0;
        font-size: 1.2em; /* Make the menu items slightly larger */
        color: #fff;
        text-decoration: none;
    }

    nav a:hover {
        color: #FF6B35;
    }
}

@media (max-width: 1024px) {
    .section,
    .section.white,
    .services {
        padding: 50px 50px;
    }

    .section.white .content {
        padding-right: 20px;
    }

    .section.white .image {
        padding-left: 20px;
    }
}

#chatbot-container {
    width: 300px;
    border: 2px solid #333;
    border-radius: 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f8f9fa;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#chatbot-header {
    background-color: #ff6600;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
}

#chatbot-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

#chatbot-body {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

#chatbot-messages {
    margin-bottom: 10px;
}

#chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#user-input {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

#send-btn {
    background-color: #ff6600;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-btn:hover {
    background-color: #e55d00;
}

#minimize-chat {
    cursor: pointer;
    font-size: 16px;
    color: white;
    background: none;
    border: none;
}

#chatbot-circle {
    width: 50px;
    height: 50px;
    background-color: #ff6600;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    display: none; /* Initially hidden */
}

#chatbot-circle img {
    width: 30px;
    height: 30px;
}

/* Testimonials Section Styling */
.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.testimonial-box {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}

.testimonial-box p {
    font-style: italic;
    margin: 20px 0;
    text-align: center;
    line-height: 1.8;
    color: #333;
}

.testimonial-box h4 {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.testimonial-box h5 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

#testimonials {
    background: linear-gradient(135deg, #f7f7f7 30%, #e0e0e0 100%);
    padding: 40px 20px;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .testimonial-box {
        width: 100%; /* Make testimonial boxes full width on smaller screens */
    }

    .testimonial-logo {
        width: 80px; /* Reduce the size of logos on smaller screens */
        height: 80px;
    }

    .testimonial-box p {
        font-size: 14px; /* Adjust font size for readability on smaller screens */
    }

    .testimonial-box h4 {
        font-size: 18px;
    }

    .testimonial-box h5 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonial-logo {
        width: 60px; /* Further reduce logo size for small mobile screens */
        height: 60px;
    }

    .testimonial-box p {
        font-size: 13px;
    }

    .testimonial-box h4 {
        font-size: 16px;
    }

    .testimonial-box h5 {
        font-size: 12px;
    }
}