:root {
    --bg-color: #f0f2f5;
    --container-bg: rgba(255, 255, 255, 0.97);
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #343a40;
    --heading-color: #212529;
    --border-color: #dee2e6;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --nav-text-color: #495057;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --container-bg: rgba(33, 37, 41, 0.97);
    --section-bg: #2c3034;
    --card-bg: #212529;
    --text-color: #e9ecef;
    --heading-color: #f8f9fa;
    --border-color: #495057;
    --link-color: #4dabf7;
    --link-hover-color: #a5d8ff;
    --nav-text-color: #ced4da;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-image: url('https://th.bing.com/th/id/OIP.AehYDKmSB5-Mp7UYkuWEUAHaEJ?w=274&h=150&c=6&o=7&dpr=1.3&pid=1.7&rm=3');
    background-size: 150% 150%; /* Make the image larger than the screen to allow for movement */
    background-position: center; /* Center the image */
    background-attachment: fixed; /* Keep the image in place while scrolling for a parallax effect */
    background-color: var(--bg-color);
    color: var(--text-color);
    animation: pan-background 40s linear infinite; /* Apply the animation */
    margin: 0;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* This is crucial for positioning the corner button */
    background-color: var(--container-bg);
    padding: 2rem clamp(1rem, 5vw, 3rem); /* Responsive horizontal padding */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.top-right-nav {
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 10; /* Ensures it stays on top */
}

nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.nav-button {
    background: none; border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    color: var(--nav-text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    /* Updated transition for a more engaging hover effect */
    transition: all 0.3s ease-in-out;
}

.nav-button:hover, .nav-button.active {
    background-color: #007bff;
    color: #ffffff;
    transform: translateY(-3px); /* Lifts the button on hover */
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3); /* Adds a colored glow */
}

h1, h2 {
    color: var(--heading-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

h1 {
    font-size: 2.5rem;
}

section {
    background-color: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

ul {
    list-style-type: none;
    padding: 0;
    /* New styles for a grid layout */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

li {
    /* New styles for button-like appearance */
    flex: 1 1 200px; /* Flex properties for a responsive grid */
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

li i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

a, .profile-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

/* Target links inside list items specifically */
li a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-color); /* Darker text for better contrast */
}

a:hover, .profile-link:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: transparent;
    border: none;
    padding: 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Initial state for scroll animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--border-color);
}

.testimonial-quote {
    font-style: italic;
    color: var(--nav-text-color);
    margin-top: 0;
    flex-grow: 1; /* Allows quote to take up available space */
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
}

footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Social Icon Colors --- */
.fa-discord { color: #5865F2; }
.fa-cube { color: #333333; } /* Roblox Icon */
.fa-x-twitter { color: #14171A; }
.fa-facebook { color: #1877F2; }
.fa-twitch { color: #9146FF; }
.fa-youtube { color: #FF0000; }
.fa-instagram { color: #E4405F; }


/* --- Styles for Founders Page --- */
.founder-profile {
    display: flex;
    align-items: center;
    background-color: var(--section-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 3rem; /* Increased separation between profiles */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle initial shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transition for hover */
}

.founder-profile:hover {
    transform: translateY(-5px); /* Lifts the profile card on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 1.5rem;
    border: 3px solid var(--card-bg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.founder-info h2 {
    margin-top: 0;
    border-bottom: none;
}

.note {
    font-style: italic;
    color: var(--nav-text-color);
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* --- Styles for Achievements Page --- */
.timeline {
    position: relative;
    padding-left: 2.5rem; /* Increased padding to make space for the dot and line */
    border-left: 3px solid #007bff;
}

.timeline-item {
    margin-bottom: 2.5rem; /* More space between items */
    position: relative;
    background-color: var(--card-bg); /* Card background */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth hover */
    margin-left: 1rem; /* Push item slightly away from the line */
    z-index: 1; /* Ensure it's above the line */
}

.timeline-item:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem; /* Adjust to align with the main timeline line */
    top: 1.8rem; /* Adjust vertical position to align with the card */
    width: 16px; /* Larger dot */
    height: 16px; /* Larger dot */
    border-radius: 50%;
    background-color: #007bff; /* Dot color */
    border: 4px solid var(--card-bg); /* White border around the dot */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3); /* Glow effect for the dot */
    z-index: 2; /* Ensure dot is above the item and line */
}

.timeline-date {
    font-weight: 700; /* Bolder date */
    color: #007bff; /* Blue color for date */
    margin-bottom: 0.75rem; /* More space below date */
    font-size: 1.1rem; /* Slightly larger font */
    background-color: #e9f5ff; /* Light blue background for the date tag */
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-block; /* Allows padding and background to work */
}

.outro-text {
    margin-top: 2rem;
    font-weight: 500;
    text-align: center;
}
/* --- Keyframes for levitating background --- */
@keyframes pan-background {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- Theme Toggle Button --- */
#darkModeToggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    border: none;
    background-color: var(--section-bg);
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

#darkModeToggle:hover {
    transform: scale(1.1);
}

#darkModeToggle .fa-sun {
    display: none; /* Hide sun icon by default (in light mode) */
}

[data-theme="dark"] #darkModeToggle .fa-sun { display: block; }
[data-theme="dark"] #darkModeToggle .fa-moon { display: none; }


/* --- Styles for Back to Top Button --- */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button on the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #007bff; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
    background-color: #0056b3; /* Add a dark-blue background on hover */
}

/* --- Responsive Design for Mobile Devices --- */
@media (max-width: 768px) {
    body {
        padding: 1rem; /* Reduce body padding on smaller screens */
    }

    .container {
        padding: 1.5rem 1rem; /* Adjust container padding */
    }

    h1 {
        font-size: 2rem; /* Reduce heading size for better fit */
    }

    .top-right-nav {
        position: static; /* Remove absolute positioning */
        display: flex;
        justify-content: center; /* Center the nav buttons */
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }

    #darkModeToggle {
        top: 10px;
        left: 10px;
    }

    .founder-profile {
        flex-direction: column; /* Stack avatar and info vertically */
        text-align: center; /* Center text for a cleaner look */
    }

    .avatar {
        margin-right: 0; /* Remove side margin */
        margin-bottom: 1rem; /* Add bottom margin to separate from text */
    }

    .timeline-item::before {
        /* Adjust dot position to account for smaller padding */
        left: -1.65rem; 
    }
}

/* --- Styles for Accomodities Section --- */
.accomodities h3 {
    color: #007bff;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.accomodities h3 .fa-crown {
    color: #ffc107; /* A nice gold color for the crown */
    margin-right: 0.5rem;
    vertical-align: middle; /* Aligns the icon nicely with the text */
}

.accomodities h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Resetting list styles for this section to be more traditional */
.accomodities ul {
    display: block; /* Override the flex grid */
    list-style-type: disc; /* Use standard bullet points */
    padding-left: 20px; /* Indent the list */
}

.accomodities li {
    flex: none; /* Override flex properties */
    background-color: transparent;
    box-shadow: none;
    padding: 0.25rem 0; /* Simple padding */
    margin-bottom: 0.5rem;
}

.accomodities li:hover {
    transform: none;
    box-shadow: none;
}

.elite-tagline {
    margin-top: 1.5rem;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    color: #0056b3;
}

.elite-banner {
    width: 100%; /* Make the image take the full width of its container */
    max-width: 100%; /* Ensure it doesn't overflow */
    border-radius: 8px; /* Give it rounded corners to match the site's style */
    margin-bottom: 1.5rem; /* Add some space below the image */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* --- Styles for Gallery --- */
.gallery {
    background-color: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 700px; /* Control max width */
    margin: auto;
    aspect-ratio: 16 / 9; /* Maintain a widescreen aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole image is visible */
    background-color: var(--border-color); /* Adds a background for any empty space */
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0; /* Start fully transparent */
    transform: translateY(10px); /* Start slightly lower */
    width: 100%;
    /* A subtle gradient looks more professional than a solid color */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #ffffff;
    padding: 2rem 1.5rem 1rem; /* More vertical padding */
    text-align: center;
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5); /* Improves readability */
    box-sizing: border-box;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth fade and slide transition */
}

.gallery-slide.active .gallery-caption {
    opacity: 1;
    transform: translateY(0); /* Fade and slide the caption into view */
}

/* --- Gallery Navigation Buttons --- */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

/* --- Gallery Dots --- */
.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem; /* Increased gap for better spacing */
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border: none; /* Remove default button border */
    padding: 0;   /* Remove default button padding */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* --- Game Passes Section --- */
.game-passes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.game-pass-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-pass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.game-pass-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.game-pass-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.game-pass-description {
    font-size: 0.9rem;
    color: #6c757d;
    flex-grow: 1; /* Ensures cards have same height in a row */
    margin-bottom: 1rem;
}

.game-pass-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto; /* Pushes footer to the bottom */
}

.game-pass-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--link-color); /* Use the site's primary link color for consistency */
}

.game-pass-button {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    /* Match the transition of other interactive elements */
    transition: all 0.3s ease-in-out;
}

.game-pass-button:hover {
    background-color: #0056b3;
    text-decoration: none;
    /* Add the same lift and glow effect as the main nav buttons */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* --- Menu Page Drink List --- */
.menu-list-details details {
    background-color: var(--section-bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.menu-list-details summary {
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
}

/* --- Interactive Menu Styles --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.menu-item-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.menu-item-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Menu Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: var(--container-bg);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--heading-color);
}

/* --- Careers Page Styles --- */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.job-card h3 {
    margin-top: 0;
    color: var(--link-color);
}

.job-card h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.job-card ul {
    display: block;
    list-style-type: '✓  ';
    padding-left: 20px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.job-card li {
    background: transparent;
    box-shadow: none;
    padding: 0.2rem 0;
}

.apply-button {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    background-color: #007bff;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.apply-button:hover {
    background-color: #0056b3;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.application-steps ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.application-steps li {
    margin-bottom: 0.5rem;
}

.announcement-card {
    background-color: var(--card-bg);
    border-left: 5px solid #007bff;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.announcement-card h2 {
    margin-top: 0;
    color: var(--link-color);
}

.announcement-card h2 .fa-bullhorn {
    margin-right: 0.5rem;
}

.announcement-list {
    display: block;
    list-style-type: '→  ';
    padding-left: 20px;
}

.announcement-list li {
    background: transparent;
    box-shadow: none;
    padding: 0.2rem 0;
}

.deadline {
    font-weight: bold;
    color: #dc3545; /* A red color to indicate urgency */
}

.signature {
    margin-top: 1.5rem;
    text-align: right;
    font-style: italic;
    line-height: 1.4;
}

.no-jobs-message {
    text-align: center;
    font-style: italic;
    color: var(--nav-text-color);
    padding: 2rem 0;
}

.job-listing h3 {
    color: var(--link-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.job-listing p {
    margin-bottom: 1.5rem;
}

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
