/* ===============================
   GLOBAL STYLES
================================= */
body {
    font-family: 'Libre Baskerville', serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
}

/* ===============================
   NAVIGATION STYLES
================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ===============================
   BUTTON STYLES
================================= */
.primary-cta, .secondary-cta {
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    border-radius: 5px;
}

.primary-cta {
    background-color: #d4af37;
    color: #000;
    text-transform: uppercase;
}

.primary-cta:hover {
    background-color: #000;
    color: #d4af37;
}

.secondary-cta {
    background-color: #000;
    color: #d4af37;
    border: 2px solid #d4af37;
    width: 100%;
}

.secondary-cta:hover {
    background-color: #d4af37;
    color: #000;
}

/* ===============================
   UNIVERSAL MODAL STYLES
================================= */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

/* Show Modal */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Default Modal Container (Used by all modals) */
.modal-container {
    background: #121212; /* Dark theme for premium feel */
    color: #fff;
    width: 35%; /* Default width for modals */
    max-width: 600px; /* Prevents excessive stretching */
    max-height: 75vh;
    margin: 20vh auto;
    padding: 40px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 8px 16px rgb(255, 215, 0, 50%);
    text-align: left;
    overflow: hidden; /* Prevents scrollbar from overflowing */
}

/* Wider Modal for About Us */
#aboutModal .modal-container {
    width: 80%; /* Make About Us modal wider */
    max-width: 1000px;
}

/* Scrollable Content */
.modal-inner {
    max-height: 70vh;
    overflow-y: auto; /* Enables scrolling if content exceeds modal height */
    padding: 10px;
    text-align: left;
    border-radius: 25px; /* Matches the modal-container border-radius */
}

/* Close Button (Applies to all modals) */
.modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #d4af37;
    background: none; /* Ensure no background color */
    border: none; /* No borders */
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    z-index: 10; /* Ensure it's on top */
}
.modal .close:hover {
    color: #f7e29c;
}

/* Close on Click Outside */
.modal:not(.modal-container) {
    cursor: pointer;
}

/* ===============================
   RESPONSIVE FIXES
================================= */
/* Responsive Design for Modals */
@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        padding: 30px;
    }

    #aboutModal h3 {
        font-size: 1.8rem;
    }

    #aboutModal h4 {
        font-size: 1.3rem;
    }

    #aboutModal p,
    #aboutModal li {
        font-size: 1rem;
    }
}

/* ===============================
   CUSTOM SCROLLBAR STYLES 
================================= */

/* For WebKit Browsers (Chrome, Edge, Safari) */
.modal-inner::-webkit-scrollbar {
    width: 8px; /* Thin scrollbar */
    border-radius: 25px; /* Ensures scrollbar edges are rounded */
}

.modal-inner::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1); /* Goldish track */
    border-radius: 25px; /* Matches modal container edges */
    margin: 5px; /* Prevents scrollbar from touching edges */
}

.modal-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #a88627); /* Gold gradient */
    border-radius: 25px; /* Ensures thumb is rounded */
    border: 2px solid rgba(255, 215, 0, 0.3); /* Adds a slight border */
}

.modal-inner::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a88627, #80651b); /* Darker gold on hover */
    border: 2px solid #d4af37; /* Slightly darker gold on hover */
}

/* For Firefox */
.modal-inner {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(255, 215, 0, 0.1);
    border-radius: 25px; /* Ensures scrollbar container is rounded */
}

/* Smooth Scrolling Effect */
.modal-inner {
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 10px; /* Ensure padding doesn't cut off scrollbar */
    clip-path: inset(0 0 0 0 round 25px); /* Clips content to prevent overflow outside corners */
}

/* ===============================
   ABOUT US MODAL STYLES   
================================= */

/* About Us Modal - Special Width */
#aboutModal .modal-container {
    width: 80%; /* Makes it wider than other modals */
    max-width: 1000px;
}

/* Headings (Specific to About Us Modal) */
#aboutModal h3 {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 15px;
}

#aboutModal h4 {
    font-size: 1.5rem;
    color: #f7e29c;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Paragraphs & Lists */
#aboutModal p,
#aboutModal li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
}

/* Bullet Points */
#aboutModal ul {
    list-style: none;
    padding-left: 0;
}

#aboutModal li {
    padding-left: 30px;
    position: relative;
}

#aboutModal li::before {
    content: "✔"; /* Checkmark symbol for aesthetics */
    color: #d4af37;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ===============================
   FOOTER STYLES
================================= */
.footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #d4af37;
}
