/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h3, h2 {
    color: #333;
    margin-bottom: 15px;
}

h1 {
    color: #0066cc;
    font-size: 2.5rem;
}

/* Header and Navigation */
header {
    background-color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

header.scrolled {
    background-color: #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

nav .logo h1 {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.nav-links li a:hover {
    background-color: #0066cc;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background-attachment: fixed;
}

.hero h2, .hero p {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-button {
    background-color: #fff;
    color: #0066cc;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #f4f4f4;
    transform: translateY(-5px);
}

/* About Us Section */
.about-us {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.about-us p {
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Services Section */
.services {
    text-align: center;
    padding: 50px 0;
}


.service-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Style for each card */
.card {
    position: relative;
    width: 250px;  /* Fixed width for the card */
    height: 250px; /* Fixed height for the card */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;  /* Ensures flexbox layout */
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

/* Style for the image inside the card */
.card-image {
    width: 100%;  /* Ensures the image takes up the full width of the card */
    height: 100%; /* Ensures the image takes up the full height of the card */
    object-fit: cover;  /* Ensures the image covers the area without stretching */
    object-position: center;  /* Centers the image */
    transition: opacity 0.3s ease;
}

/* The content text section, initially hidden */
.card-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Dark background for contrast */
    color: white;
    opacity: 0; /* Initially hidden */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Allows scrolling if the text overflows */
}

/* The text inside the card when hovered */
.card:hover .card-info {
    opacity: 1; /* Text becomes visible on hover */
}

/* Hide the image when hovered and show the text */
.card:hover .card-image {
    opacity: 0; /* Image becomes invisible when hovering */
}


/* Style for headings and paragraph inside the card */
.card-info h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.card-info p {
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

/* Case Studies Section */
.case-studies {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.case-study {
    background-color: #f4f4f4;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
}

.case-study h3 {
    color: #0066cc;
}

/* Testimonials Section */
.testimonials {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.testimonial {
    background-color: #fff;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial h4 {
    font-size: 1.1rem;
    color: #0066cc;
}

/* Contact Section */
.contact {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact button {
    background-color: #0066cc;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact button:hover {
    background-color: #004a99;
}

/* Footer Styles */
footer {
    text-align: center; /* Centers the text inside the footer */
    padding: 20px; /* Optional: Adds some padding around the footer content */
    background-color: #333; /* Optional: Adds a background color */
    color: white; /* Optional: Sets the text color to white */
    position: relative; /* Optional: Ensures the footer behaves normally in the layout */
    width: 100%; /* Ensures the footer spans the full width of the page */
}

footer p {
    margin: 0; /* Removes default margin around the paragraph */
}

/* Mobile responsiveness for the service cards */
@media (max-width: 768px) {
    
        /* Hide the menu items by default on mobile */
    .nav-links {
        display: none;  /* Hidden by default */
        flex-direction: column;  /* Stack vertically */
        width: 100%;
        background-color: #333; /* Background color for dropdown */
        position: absolute;
        top: 60px; /* Space below the header */
        left: 0;
        padding: 10px 0;
        text-align: center;
    }

    /* Display the hamburger icon on mobile */
    .hamburger-menu {
        display: block;
        cursor: pointer;
    }

    /* Style the hamburger icon */
    .hamburger-menu i {
        color: #fff;
        font-size: 2rem;
        padding: 10px;
    }

    /* Style for individual links in the dropdown */
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.2rem;
        text-align: left;
        border-top: 1px solid #ddd; /* Border between items */
    }

    /* Optionally, add hover effect to links in the dropdown */
    .nav-links li a:hover {
        background-color: #0066cc;
    }
    
        /* Show the dropdown menu when the 'active' class is added */
    .nav-links.active {
        display: flex;
    }
    
    .service-cards {
        flex-direction: column; /* Stack the cards vertically on smaller screens */
        align-items: center;
    }

    .card {
        width: 90%; /* Make the cards take up more width on smaller screens */
        height: auto; /* Allow height to adjust dynamically */
    }

    .hero h2 {
        font-size: 2rem; /* Smaller font size for mobile */
    }

    .hero p {
        font-size: 1rem; /* Smaller text size for mobile */
    }

    .cta-button {
        font-size: 1rem; /* Adjust button size */
        padding: 10px 25px;
    }

    .about-us p {
        font-size: 1rem;
    }

    .testimonial p {
        font-size: 0.9rem;
    }

    .testimonial h4 {
        font-size: 1rem;
    }
}
