* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    overflow-x: hidden;
}

/* Animate On Scroll (AOS) Base Classes */
.aos-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section (Compact) */
.cover-top {
    padding: 40px 20px 20px;
    text-align: center;
    background-color: #000000;
}

.rio-logo-img {
    width: 90%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}


.rio-sub1 {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    font-weight: 800;
    color: #1b9ac7;
    font-style: italic;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rio-sub2 {
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #ffffff;
    font-style: italic;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Maintenance Section Styles */
.maintenance-section {
    padding: 30px 10px;
    text-align: center;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.maintenance-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.maintenance-section p {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.5;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #1b9ac7;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-top: 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Middle Section: Gallery & Contact */
.cover-mid {
    background-color: #000;
    color: #fff;
    padding: 20px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Thumbnail Grid on the Page */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-color: #555;
}

.divider {
    width: 100%;
    max-width: 1200px;
    height: 2px;
    background-color: #333;
    margin: 40px 0 30px 0;
}

.contact-details {
    display: flex;
    gap: 50px;
    font-size: 1.2rem;
    font-weight: 800;
}

.contact {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact:hover {
    color: #1b9ac7;
}

/* Footer Section: Powered By */
.cover-bot {
    background-color: #000;
    padding: 40px 10%;
    text-align: center;
}

.poweredby-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Modal Lightbox Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);

    /* Animation states */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Content scale animation */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: -40px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #ccc;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 5;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: -80px;
}

.carousel-control.next {
    right: -80px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .close-btn {
        right: 10px;
        top: 10px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        font-size: 1.4rem;
    }
}