/* General Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: #003366;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    width: 150px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav ul li a.active, .nav ul li a:hover {
    background-color: #0055cc;
}

/* Slider Styles */
.slider {
    position: relative;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

.overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.overlay p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.overlay .btn {
    padding: 0.8rem 2rem;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* Slider Navigation Dots */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.nav-dot.active {
    background-color: #007BFF;
}

/* Services Section */
.services {
    padding: 50px;
    background-color: white;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.services-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item img {
    max-width: 200px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 24px;
    margin-top: 20px;
}

.service-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-list {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 80%; /* Adjust for medium screens */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .service-item {
        width: 100%; /* Full width for small screens */
        margin-bottom: 20px;
    }
}

/* Animations */
.hero-image img {
    animation: bounceIn 2s ease-in-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.btn {
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Hide all slides by default */
.slide {
    display: none;
}

/* Show only the active slide */
.slide.active {
    display: block;
}

/* Style for Slider Overlay Text */
.slider .overlay h1, .slider .overlay p {
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Adding shadow effect */
}

.slider .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.slider .overlay h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.slider .overlay p {
    font-size: 1.2em;
    margin-bottom: 1em;
}
