/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: linear-gradient(rgba(0, 174, 239, 0.6), rgba(0, 174, 239, 0.6)),
                url('background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
}

/* Header */
header {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 10px;
}

header .logo {
    max-width: 100%;
    width: 500px;
    height: auto;
    margin-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

/* RGB Animated Title */
.animated-title {
    font-size: 3em;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, violet);
    background-size: 400% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: rgb-animation 5s linear infinite;
}

@keyframes rgb-animation {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}


/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 0;
    text-align: center;
    overflow-x: auto; /* Enables horizontal scrolling on very small screens */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    white-space: nowrap;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    display: inline-block;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}




/* Services Section */
.horizontal-services {
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
}

.horizontal-services h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

.service-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Arrow buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 2;
}


.service-card {
    flex: 0 0 auto;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.service-card h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.1rem;
    color: white;
    text-align: center;
}

.service-card p {
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

/* Lightbox Customizations (Optional override for style) */
.lightboxOverlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

.lightbox .lb-image {
    border-radius: 8px;
}

/* Contact Section */
#contact {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

#contact a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 0;
    font-size: 0.9em;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .service-wrapper {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    header .logo {
        width: 80%;
    }

    .animated-title {
        font-size: 2em;
    }

    .service-card {
        width: 200px;
    }
}

