.hero-section {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2; /* Ensures the content is above the video */
    color: white; /* Makes the text visible */
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #007bff; /* Button color */
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.hero-content .btn:hover {
    background-color: #0056b3;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.it-services {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.service {
    height: 400px;
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    margin-bottom: 60px; /* Spaced service cards */
    background: rgba(158, 220, 245, 0.893); /* Transparent background */
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px; /* Balanced padding */
    transition: transform 0.3s ease-in-out;
    gap: 20px; /* Ensures consistent spacing between image and content */
}

/* For odd cards (1st, 3rd, 5th): Image on the right and content on the left */
.service:nth-child(odd) .image {
    order: 2; /* Image comes second */
}

.service:nth-child(odd) .content {
    order: 1; /* Content comes first */
}

/* For even cards (2nd, 4th, 6th): Image on the left and content on the right */
.service:nth-child(even) .image {
    order: 1; /* Image comes first */
}

.service:nth-child(even) .content {
    order: 2; /* Content comes second */
}

.image {
    flex: 1;
    max-width: 50%; /* Balanced width for images */
    padding: 10px; /* Reduced padding for closer alignment */
    transition: transform 0.3s ease-in-out;
}

.image img {
    width: 100%; /* Full width for images */
    height: 300px;
    display: block;
    border-radius: 8px; /* Rounded corners for the image */
    transition: transform 0.3s ease-in-out;
    border: 4px solid rgb(51, 51, 132); /* Added border */
}

.image:hover img {
    transform: scale(1.05); /* Scale image slightly on hover */
}

.content {
    flex: 1;
    max-width: 50%; /* Balanced content width */
    padding: 10px; /* Reduced padding for better alignment */
    text-align: left; /* Justified text alignment for a cleaner appearance */
}

.content h2 {
    font-size: 2em; /* Prominent heading size */
    margin-bottom: 20px;
    color: #2c3e50; /* Retains title color */
    text-align: left;
}

.content p {
    text-align: left;
    font-size: 1.2em; /* Readable paragraph font size */
    color: #555;
    line-height: 1.8; /* Improved spacing between lines */
    margin-bottom: 20px; /* Uniform spacing between paragraphs */
    word-spacing: 0.02em; /* Reduced word spacing for better readability */
}

.content p:last-child {
    margin-bottom: 0; /* Prevents unnecessary spacing at the end */
}

@media (max-width: 768px) {
    .service {
        flex-direction: column; /* Stacks items vertically */
    }

    .service .image, .service .content {
        max-width: 100%; /* Full width for smaller screens */
    }

    .content {
        padding: 15px; /* Slightly reduced padding for small screens */
        font-size: 1em; /* Adjusted font size for readability */
    }

    .content h2 {
        font-size: 1.5em; /* Reduced heading size for mobile screens */
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .service {
        flex-direction: column; /* Stacks items vertically */
        text-align: center; /* Center-align content for mobile view */
        padding: 20px; /* Adds extra padding for small screens */
        gap: 15px; /* Reduces gap between elements */
    }

    .service .image {
        max-width: 100%; /* Full width for images */
        margin-bottom: 0; /* Remove bottom margin to eliminate space */
    }

    .service .image img {
        height: 140px; /* Maintains aspect ratio for better responsiveness */
    }

    .service .content {
        padding-top: 5px;
        max-width: 100%; /* Full width for content */
        padding: 0; /* Remove padding for no space between image and content */
        font-size: 1rem; /* Adjusted font size for readability */
        text-align: justify; /* Justifies text for a structured appearance */
    }

    .service .content h2 {
        font-size: 1.5rem; /* Reduced heading size for mobile */
        margin-bottom: 10px; /* Adjusted spacing below headings */
        text-align: center; /* Center-aligned heading on mobile */
    }

    .service .content p {
        font-size: 0.75rem; /* Slightly smaller font for better fit */
        margin-bottom: 10px; /* Reduced margin for compact look */
        line-height: 1.6; /* Keeps good line spacing */
    }
}
