body {
    margin: 0;
    background-color: #ffffff;
    padding-top: 100px;
}

.Header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    z-index: 1000;
}
.Logo {
    padding-left: 50px;
}

.Logo img {
    height: 100px;
    width: 115px;
}

.Nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.Nav li {
    margin-left: 2rem;
}

.Nav a {
    text-decoration: none;
    color: #333;
    position: relative;
    transition: color 0.3s ease;
}

.Nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E41B23;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.Nav a:hover {
    color: #E41B23;
}

.Nav a:hover::after {
    transform: scaleX(1);
}

.Nav {
    margin-top: 0px;
    margin-right: 50px;
}

.Nav li.quote-button a {
    background-color: #E41B23;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.Nav li.quote-button a:hover {
    background-color: #C41820;
}

.centimg {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.centimg img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    border-radius: 10px;
    max-width: 1200px;
}

.centimg-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    padding: 20px;
    z-index: 1;
}

.centimg-text .main-text {
    color: #E0FFFF;
    font-size: 100px;
    font-weight: bold;
    margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
    .centimg {
        height: 60vh;
    }
    
    .centimg img {
        width: 95%;
        height: 95%;
    }

    .centimg-text .main-text {
        font-size: 28px;
    }
    .centimg-text .sub-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .centimg {
        height: 50vh;
    }
    
    .centimg-text .main-text {
        font-size: 30px;
    }
}

@media screen and (max-width: 320px) {
    .centimg-text .main-text {
        font-size: 20px;
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    .centimg {
        height: 80vh;
    }
    .centimg-text {
        width: 85%;
    }
    .centimg-text p {
        font-size: 16px;
    }
    .centimg-text br {
        display: none;
    }
}

/* Mobile Phones */
@media screen and (max-width: 480px) {
    .centimg-text p {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Very Small Devices */
@media screen and (max-width: 320px) {
    .centimg-text p {
        font-size: 12px;
    }
}

/* Define the fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.centimg-text {
    position: absolute;
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeIn 1.5s ease-in 0.6s forwards;
}

/* Optional: Add animation to child elements with delay */
.centimg-text h1 {
    animation: fadeIn 1.5s ease-in 0.6s forwards;
}

.centimg-text h1 {
    color: #E41B23;;
    font-size: 100px;
    margin: 0;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.centimg-text h2 {
    font-size: 30px;
    margin: 0;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.img-quote-button {
    background-color: #E41B23;
    text-decoration: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    margin-top: 20px;
    animation: fadeIn 1.5s ease-in 0.6s forwards;
    opacity: 0;  /* Start invisible */
}

.img-quote-button:hover {
    background-color: #C41820;
}

.our-services {
    padding: 50px 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 1400px;  /* Adjust based on your needs */
}

.our-services h1 {
    font-size: 70px;
    color: #333;
    margin-bottom: 50px;
}

.our-services h2 {
    font-size: 30px;
    color: #333;
    margin-top: -20px;
    margin-bottom: 50px;
}

.service-cards {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome/Safari */
.service-cards::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 auto;
    width: 300px;
    min-width: 300px;
    margin-bottom: 0;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 15px 0;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.5;
}
.all-services-button {
    background-color: #E41B23;
    text-decoration: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    margin-top: 50px;  /* Add 100px space above the button */
    display: inline-block;
    animation: fadeIn 1.5s ease-in 0.6s forwards;
    opacity: 0;  /* Start invisible */
}

.all-services-button:hover {
    background-color: #C41820;
}

.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
     /* Added border to make container visible */
}

.social-links a:hover {
    transform: scale(1.25); /* Increases size by 25% */ /* Optional: adds shadow on hover */
}

.social-icon {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.3s ease;
}


.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-section {
        min-width: 200px;
    }
}

/* Reset all navigation styles first */
.Nav ul li a {
    text-decoration: none;
    color: #333;
    position: relative;
    transition: color 0.3s ease;
}

/* Remove any existing hover effects */
.Nav ul li a::after {
    display: none;
}

/* Apply hover and active effects ONLY to the first 4 navigation items */
.Nav ul li:nth-child(-n+5) a::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E41B23;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.Nav ul li:nth-child(-n+4) a:hover {
    color: #E41B23;
}

.Nav ul li:nth-child(-n+4) a:hover::after {
    transform: scaleX(1);
}

/* Active state styles - only for first 4 items */
.Nav ul li:nth-child(-n+4) a.active {
    color: #E41B23;
    font-weight: 600;
}

.Nav ul li:nth-child(-n+4) a.active::after {
    transform: scaleX(1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(8px); /* This adds blur behind the modal */
    -webkit-backdrop-filter: blur(8px); /* For Safari support */
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #E41B23;
}

.modal h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E41B23;
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.2);
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #E41B23;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #C41820;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }
}

/* Add these new styles */
.blur {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

/* Validation styles */
.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: #ff3333;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.2);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff3333;
    background-color: #fff2f2;
}

.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
    border-color: #28a745;
    background-color: #f8fff9;
}

.error-message {
    color: #ff3333;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Add responsive styles for the quote button */
@media (max-width: 968px) {
    .Nav ul li.quote-button {
        margin: 10px 0;
    }
    
    .Nav ul li.quote-button a {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Phone link styles */
.Nav ul li.phone-link a {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 968px) {
    .Nav ul li.phone-link a {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .modal-content {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    .our-services h1 {
        font-size: 28px;
    }

    .our-services h2 {
        font-size: 18px;
    }

    .all-services-button {
        font-size: 18px;
        padding: 0.5rem 1rem;
    }
}

/* Root font sizes for different screens */
:root {
    --base-font: 16px;
    --scale-ratio: 1.2;
}

@media (max-width: 768px) {
    :root {
        --base-font: 14px;
        --scale-ratio: 1.1;
    }
}

/* Fluid typography */
h1 { font-size: calc(var(--base-font) * var(--scale-ratio) * 2.5); }
h2 { font-size: calc(var(--base-font) * var(--scale-ratio) * 2); }
h3 { font-size: calc(var(--base-font) * var(--scale-ratio) * 1.5); }
p { font-size: var(--base-font); }

/* Responsive containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive grid layouts */
@media (max-width: 768px) {
    .service-cards {
        padding: 20px 15px;
        margin: 0 -15px;
    }
    
    .service-card {
        width: 280px;
        min-width: 280px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    margin-top: 50px;
}

.testimonials-section h2 {
    text-align: center;
    color: #333;
    font-size: 36px;
    margin-bottom: 40px;
}

.testimonials-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 350px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #E41B23;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    text-align: center;
}

.stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.client-name {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

.client-position {
    color: #E41B23;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 15px;
    }

    .testimonials-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .testimonials-container {
        padding: 10px 0;
        gap: 20px;
    }

    .testimonial-card {
        width: 280px;
        padding: 20px;
    }

    .testimonial-image {
        width: 60px;
        height: 60px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .client-name {
        font-size: 16px;
    }
}

