body {
    font-family: 'Verdana', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #F0F3F5;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Header & Navbar */
header {
    padding-bottom: 25px;
    width: 100%;
    overflow: hidden; /* Ensures no extra space */
}

/* Top Banner */
.top-banner {
    background: #001833 !important; /* Matches navbar's starting color */
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Adds a soft dark blur */
}



/* Navigation with Smooth Gradient */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    background: linear-gradient(to bottom, rgba(0, 24, 51, 1) 0%, rgba(0, 43, 91, 0.95) 50%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    width: 100%;
}

/* Logo Styling */
.logo {
    margin-left: 60px; /* Slightly shifts the logo right */
}

.logo img {
    width: 140px;
    display: block;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 50px; /* Keeps navigation aligned properly */
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    padding: 10px 15px;
    border-radius: 8px;
}

/* Active Page Indicator */
.nav-links a.active {
    background: #FF5733 !important;
    color: white !important;
    border-radius: 8px;
}

/* Hover Effect */
.nav-links a:hover {
    background: #FF5733 !important;  /* Red background on hover */
    color: white !important;
    border-radius: 8px;
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url("../Images/raj.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    animation: fadeSlideIn 1s ease-in-out;
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 10px;
}

section, .hero, .services {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible, .hero.visible, .services.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services {
    text-align: center;
    padding: 50px 20px;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Service Container */
.service-container {
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Service Box */
.service-box {
    width: 42%;
    height: 450px;
    background: #d0eef7;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    justify-content: space-between;
    /* transition: transform 0.3s ease; */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-box.visible {
    opacity: 1;
    transform: translateX(0);
}

.service-box:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.service-text {
    padding: 20px;
}

.service-text h3 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-text p {
    font-size: 1.1rem;
    color: #333;
}
/* Service Image */
.service-image {
    width: 100%; /* Ensures the image spans the full width */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 10px 10px; /* Keeps bottom edges rounded */
}

.service-image img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images scale properly without distortion */
    border-radius: 0 0 10px 10px; /* Keeps rounded corners */
}

/* Footer */
footer {
    margin-top: 30px;
    background: linear-gradient(to right, #003366, #004080);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-contact-form input {
    width: 90%;
    max-width: 350px;
    padding: 10px;
    margin-top: 5px;
    border-radius: 20px;
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
}

.footer-contact-form button {
    transition: transform 0.3s ease-in-out;
}

.footer-contact-form button:hover {
    transform: scale(1.1);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .container {
        width: 100%;
        padding: 10px;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .content {
        flex-direction: column;
        text-align: center;
    }
}

button, input, select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
