/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Watermark */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 110px;
    font-family: 'Times New Roman', Times, serif;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

/* Main Container */
.container {
    background-color: #1e3c72;
    max-width: 700px;
    width: 90%;
    margin: 6rem auto 4rem;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Spinner */
.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid orangered;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #fff;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    background-image: url('parallax-bg.jpg'); /* Replace with your image */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    z-index: 1;
}

.parallax-section .content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 12px;
}

/* Normal Scrolling Section */
.normal-section {
    background-color: #274b8a;
    padding: 4rem 2rem;
    margin-top: 2rem;
    border-radius: 12px;
}

.normal-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.normal-section p {
    font-size: 1.1rem;
    color: #fff;
}

/* Modal */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-content {
    background: #ffffff;
    color: #1e3c72;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.modal-actions button {
    background-color: #1e3c72;
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-actions button:hover {
    background-color: #274b8a;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    color: orangered;
    background-color: rgba(0, 0, 0, 0.6);
    border-top-left-radius: 10px;
    z-index: 3;
    text-align: right;
}

.footer a {
    color: orangered;
    text-decoration: none;
    font-weight: bold;
}

/* Smooth Fade-in for Modal */
.fade-in {
    animation: fadeInModal 0.8s ease forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 2.5rem 1.5rem;
    }

    .container h1 {
        font-size: 2.2rem;
    }

    .parallax-section {
        padding: 5rem 2rem;
    }

    .normal-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .container h1 {
        font-size: 2rem;
    }

    .parallax-section {
        padding: 4rem 1rem;
    }

    .parallax-section h2,
    .normal-section h2 {
        font-size: 1.7rem;
    }

    .spinner {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }
}

@media (max-width: 480px) {
    .watermark {
        font-size: 60px;
    }

    .container h1 {
        font-size: 1.7rem;
    }

    .parallax-section {
        padding: 3rem 1rem;
    }

    .custom-modal-content {
        padding: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }

    .footer {
        font-size: 0.8rem;
        padding: 0.5rem;
        right: 10px;
        bottom: 8px;
    }
}
