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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #e9f3fc; /* Light blue background */
    color: #333;
    padding: 0;
    line-height: 1.6;
}

h1 {
    font-family: 'Times New Roman', serif;
    font-weight: bolder;
    color: #0078D7; /* Deep blue */
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in-out;
}

h2 {
    font-size: 1.6em;
    color: #005BB5; /* Medium blue */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

p {
    font-size: 1.1rem;
    color: #005BB5;
    margin-bottom: 30px;
    font-weight: normal;
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 6px;
    animation: fadeIn 1s ease-in-out;
}

section {
    margin-bottom: 50px;
}

.container {
    background: #f3faff;
    padding: 8px;
    border-radius: 8px;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #9bc7f3; /* Medium blue */
    padding: 20px;
    color: #8d0505;
    border-radius: 6px;
    animation: slideIn 1s ease-out;
}

.header img {
    max-width: 150px;
    height: auto;
}

.sub-header {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 2px;
    animation: fadeIn 1.5s ease-in-out;
}


/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-around;
    background-color: #ffffff;
    padding: 2px;
    margin-top: -12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    animation: fadeIn 2s ease-in-out;
}

.nav-link {
    color: #005BB5; /* Medium blue */
    font-size: 1.5rem;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
    position: relative;
}

.nav-link:hover {
    background-color: #e1f0ff; /* Light blue hover */
    transform: scale(1.03);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #005BB5;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Cover Image Section */
.cover-image-container {
    width: 100%;
    max-width: 1000px; /* Restrict maximum width */
    height: 500px; /* Set fixed height */
    margin: 0 auto; /* Center container horizontally */
    position: relative;
    overflow: hidden; /* Hide overflow for responsive scaling */
    animation: fadeIn 2s ease-in-out;
}
.cover-image {
     position: absolute;
    top: 60%; /* Align center vertically */
    left: 50%; /* Align center horizontally */
    width: 100%; /* Ensure full width coverage */
    height: 100%; /* Ensure full height coverage */
    object-fit: cover; /* Scale image to cover container */
    transform: translate(-50%, -50%); /* Move to center */
    transition: opacity 1s ease-in-out;
}
.about-us p{
    
    font-size: 1.1rem;
    color: #005BB5;
    margin-bottom: 30px;
    font-weight: normal;
    background-color: #f3faff;
    padding: 15px;
    border-radius: 6px;
    animation: fadeIn 1s ease-in-out;
    
}

/* Social Media Section */
.social-media {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    font-size: 2rem;
    color: #0078D7; /* Deep blue */
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    color: #333;
    transform: scale(1.05);
    animation: pulse 1s infinite alternate;
}

.social-icon i {
    display: inline-block;
}

/* Services Section */
.services-section {
    background-color: #f3faff; /* Very light blue */
    padding: 50px 0;
    animation: fadeIn 2s ease-in-out;
}

.services-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: nowrap;
}


.service-card img {
    max-width: 100px;
    margin-bottom: 20px;
    border: 4px solid #0078D7; /* Blue border */
    border-radius: 50%; /* Make the border circular */
    padding: 5px; /* Add padding between the image and border */
    box-shadow: 0px 4px 12px rgb(155 199 243); /* Subtle shadow for better visibility */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth effects */
}

.service-card h3 {
    font-size: 1.4em;
    color: #005BB5; /* Medium blue */
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: #777;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}


.service-card img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}


.service-card-link {
    text-decoration: none; /* Remove underline */
    display: block; /* Make the link block-level to encompass the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-link:hover {
    transform: scale(1.03); /* Scale the entire link */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card {
    background-color: #ffffff;
    padding: 26px;
    border-radius: 50px;
    box-shadow: 0px 4px 12px rgb(155 199 243);
    text-align: center;
    border: 1px solid #0078D7;
}

.service-card img {
    max-width: 100px;
    margin-bottom: 20px;
    border: 4px solid #0078D7;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0px 4px 12px rgb(155 199 243);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
    font-size: 1.4em;
    color: #005BB5;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: #777;
}

.service-card img:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
}


/* Container for the logo slider */
.logo-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%; /* Adjust the width as needed */
    display: flex;
    justify-content: center; /* Center logos horizontally */
    align-items: center; /* Center logos vertically */
}

/* The wrapper for all logos */
.logo-slider {
    display: flex;
    transition: transform 0.5s ease; /* Smooth transition for sliding */
    padding:20px;
    justify-content: center; /* Center logos within the slider */
}

/* Individual logo items */
.logo-item {
    margin: 0 10px; /* Space between logos */
    transition: transform 0.3s ease, filter 0.3s ease; /* Add smooth hover effect */
}

/* Make the logos responsive by adjusting the size */
.logo-item img {
    width: 100%; /* Ensure logos fill their container */
    max-width: 150px; /* Max width for logos */
    height: auto; /* Keep aspect ratio */
    border-radius:50px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border: 4px solid #0078D7;
}

/* Hover effect for logo item */
.logo-item:hover {
    transform: scale(1.1); /* Slightly scale up logo */
    filter: brightness(1.2); /* Slightly brighten logo on hover */
}

/* Arrow buttons for navigation */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(243, 250, 255);
    color: #0078d7;
    border: none;
    font-size: 4rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.arrow.prev {
    left: 10px;
}

.arrow.next {
    right: 10px;
}
/* Stats Bar - CAD Style with Hover Animation */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
    padding: 20px;
    background-color: #f3faff;
    font-family: 'Arial', sans-serif;
}

.stat-item {
     display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #f3faff; /* Deep green */
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 40px; /* Adds rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds subtle shadow */
    border: 1px solid #0078D7;
    text-align: center;
    margin: 10px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item h2 {
    font-size: 2.8rem;
    color: #0078d7;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.stat-item:hover h2 {
    color: #27ae60; /* Highlight color on hover */
}

.stat-item p {
    font-size: 1.2rem;
    color: #0078d7;
    background-color : #f3faff;
    font-weight: 700;
}

.stat-item .counter {
    font-size: 2rem;
    font-weight: bold;
    transition: none; /* No transition when not hovered */
}



/* Animation for numbers */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums; /* Ensures consistent number spacing */
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-form {
    width: 45%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0078D7; /* Deep blue focus */
    outline: none;
}

.contact-form button {
    background-color: #0078D7; /* Deep blue */
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #005BB5; /* Medium blue */
    transform: scale(1.03);
}

/* Map Section */
.map {
    width: 45%;
    background: #f3faff; /* Very light blue */
    height: 400px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

/* Our Service Industries Section */
.industries-section {
    background-color: #f3faff; /* Very light blue */
    padding: 50px 0;
    animation: fadeIn 2s ease-in-out;
}

.industries-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.industry-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgb(155 199 243);
    text-align: center;
    flex: 1 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #0078D7; /* Blue border */
}

.industry-card h3 {
    font-size: 1.4em;
    color: #005BB5; /* Medium blue */
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 1rem;
    color: #777;
}

.industry-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}


/* Footer Section */
.footer {
    text-align: center;
    background-color: #f3faff; /* Darker blue */
    color:#f3faff;
    padding: 0px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 1.5em;
    animation: slideIn 1s ease-out;
}

.footer a {
    color: #FFD700; /* Gold color */
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}


/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form,
    .map {
        width: 80%;
    }

    .services-container {
        flex-direction: column;
    }

    .industries-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .service-card,
    .industry-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header img {
        max-width: 120px;
    }

    .social-icon {
        font-size: 1.5rem;
    }

    .stats-bar {
        flex-direction: column;
    }

    .contact-form,
    .map {
        width: 100%;
        margin-bottom: 20px;
    }

    .cover-image-container {
        padding-bottom: 75%; /* Maintain aspect ratio */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }

    .sub-header {
        font-size: 1.4em;
    }

    p {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 10px;
    }

    .social-icon {
        font-size: 1.8rem;
    }

    .service-card,
    .industry-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .stats-bar {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }

    .map {
        height: 300px; /* Adjust the height for smaller screens */
    }
}
