/* FONT IMPORTS*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Orbitron:wght@700&display=swap');

/* --- Root Variables for Theme --- */
:root {
    --bg-color: #0a0b12; /* Deep dark background */
    --text-color: #f4f6f8; /* Light text */
    --card-bg: #1f2029; /* Darker card/element background */
    --accent-aqua: #00e2e2; /* Primary aqua accent */
    --accent-yellow: #ffc800; /* Secondary yellow accent */
    --shadow-color: rgba(0, 0, 0, 0.4); /* Dark shadows for dark mode */
    --selection-bg: #00a0a0; /* Aqua for text selection */
    --selection-color: #0a0b12; /* Dark text on aqua selection */
}

/* Light Mode Theme */
.light-mode {
    --bg-color: #f4f6f8; /* Light background */
    --text-color: #0a0b12; /* Dark text */
    --card-bg: #e0e4eb; /* Lighter card/element background */
    --accent-aqua: #008f8f; /* Darker aqua for light mode */
    --accent-yellow: #d4a700; /* Darker yellow for light mode */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Lighter shadows for light mode */
    --selection-bg: #008f8f; /* Darker aqua for text selection */
    --selection-color: #f4f6f8; /* Light text on darker aqua selection */
}

/* New CSS for the yellow username in the welcome message */
.username-yellow {
    color: #ffff00;
}

/* --- DASHBOARD PANNEL - NORMAL SQUARE SIZE --- */
.dashboard-container {
    padding: 20px;
    text-align: center;
}

.dashboard-container h1 {
    font-size: 2.5rem;
}

.dashboard-container p {
    font-size: 1.1rem;
}

.dashboard-cards {
    display: grid;
    /* Sets the cards to a fixed normal size of 200px */
    grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
    gap: 35px;
    margin-top: 30px;
    justify-content: center;
}

.dashboard-cards .card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border: 2px solid transparent;
    aspect-ratio: 1 / 1; /* Makes the card a perfect square */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.6), 0 6px 15px rgba(0,0,0,0.6);
    border-color: #ffff00;
}

.dashboard-cards .card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--accent-aqua);
}

.dashboard-cards .card h3 {
    margin-bottom: 4px;
    font-size: 1.15rem;
}

.dashboard-cards .card p {
    font-size: 0.85rem;
    color: #999;
}

/* --- Global Transitions for Smooth Theme Change --- */
body, header, .players-online-container, .dropdown-menu,
.hero-section, .features-section, .feature-card,
.inside-view-section, .fps-bar-container, .final-cta-section,
footer, .language-manager, .theme-toggle,
.social-icons a, .footer-dropdowns a, .page-placeholder,
.team-section, .team-member-card, .floating-discord-button,
.auth-container, .auth-card, .dashboard-button { /* Include all elements affected by theme vars */
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Individual elements that need specific color transitions */
.logo-text, .nav-links a, .feature-icon,
.client-name-title, .tagline, .download-button, .dashboard-button,
.client-name, .fps-bar, .footer-bottom p, .footer-bottom a,
.page-placeholder h2, .page-placeholder p,
.team-section h2, .team-member-card h3, .team-member-card p, .team-member-email,
.auth-container h2, .auth-form label, .auth-form input, .auth-submit-button,
.forgot-password-link, .auth-no-account a, .auth-have-account a {
    transition: color 0.5s ease, background-color 0.5s ease;
}

/* --- Custom Text Selection (Highlight) --- */
::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}
::-moz-selection { /* Firefox compatibility */
    background: var(--selection-bg);
    color: var(--selection-color);
}

/* --- General Body & Scrollbar Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
body::-webkit-scrollbar {
    width: 12px;
}
body::-webkit-scrollbar-thumb {
    background-color: var(--accent-aqua);
    border-radius: 6px;
    border: 3px solid var(--bg-color);
}
body::-webkit-scrollbar-track {
    background-color: var(--card-bg);
}

/* --- Header Styles --- */
header {
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px var(--shadow-color);
    border-bottom: 1px solid rgba(0, 226, 226, 0.1);
}

/* Logo */
.logo-container .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-aqua);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Centered Nav Links */
.header-main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    position: relative;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}
.nav-links a:hover {
    color: var(--accent-aqua);
    transform: translateY(-3px);
    text-shadow: 0 0 8px rgba(0, 226, 226, 0.5);
}
.nav-links a i {
    font-size: 0.9em;
}

    /* Dropdown Menu - General Styles */
    .dropdown-menu {
        position: absolute;
        background-color: var(--card-bg);
        min-width: 180px;
        padding: 10px 0;
        border-radius: 8px;
        box-shadow: 0 8px 20px var(--shadow-color);
        opacity: 0;
        transform: translateY(10px); /* Initial position for slide-down effect */
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        z-index: 100;
        display: none; /* Hidden by default */
        top: auto; /* Reset default absolute positioning */
        left: auto; /* Reset default absolute positioning */
    }
    .dropdown-menu.show {
        display: block; /* Show when 'show' class is present */
        opacity: 1;
        transform: translateY(0px); /* Slide up into view */
        pointer-events: auto;
    }

    /* Header Dropdown Menu (for MORE) - Specific Positioning */
    /* This targets the dropdown menu that is a direct child of the .more-dropdown link */
    .more-dropdown.nav-link > .header-dropdown-menu {
        /* Position relative to the .more-dropdown link itself */
        top: calc(100% + 5px); /* 5px below the bottom of the link */
        left: 50%; /* Center horizontally relative to the link */
        transform: translateX(-50%) translateY(10px); /* Initial position for slide-down */
        background-color: var(--card-bg);
        border-radius: 8px;
        box-shadow: 0 8px 20px var(--shadow-color);
        min-width: 180px;
        z-index: 1000;
        transition: opacity 0.3s ease, transform 0.3s ease; /* Ensure transition applies */
    }
    .more-dropdown.nav-link > .header-dropdown-menu.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0px); /* Slide up into view when shown */
    }

    .header-dropdown-menu a {
        display: block;
        padding: 10px 20px;
        color: var(--text-color);
        text-align: left;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .header-dropdown-menu a:hover {
        background-color: var(--accent-aqua); /* Aqua highlight on hover */
        color: var(--bg-color); /* Dark text on hover */
        transform: none; /* Reset transform from parent A tag hover */
        text-shadow: none;
    }
    

/* Dashboard Button */
.header-right-info {
    display: flex;
    flex-shrink: 0;
    margin-right: 10px; /* Instead of 40px */
}

.dashboard-button {
    background-color: var(--accent-aqua);
    color: var(--bg-color);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 226, 226, 0.3);
    position: relative;
    left: -50px; /* Moves button slightly left */
}

.dashboard-button:hover {
    background-color: #00a0a0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 226, 226, 0.4);
}

/*  MESSAGE BOX STYLED  */

/* --- Message Container Styles --- */
.message-container {
    margin-top: 15px;
    padding: 12px 20px; /* Slightly more padding */
    border-radius: 8px; /* Consistent rounded corners */
    font-size: 0.95em; /* Slightly larger font */
    font-weight: bold;
    text-align: center;
    /* Hidden by default in CSS; JavaScript will toggle display: block */
    display: none; 
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(-20px); /* Initial state for slide-in animation */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Smooth animation */
}

/* Specific styles for success messages */
.message-container.success {
    background-color: #28a74533; /* Light green background with transparency */
    color: #28a745; /* Darker green text */
    border: 1px solid #28a745; /* Green border */
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2); /* Subtle green shadow */
    opacity: 1; /* Make visible */
    display: block; /* Ensure it's visible when this class is applied by JS */
}

/* Specific styles for error messages */
.message-container.error {
    background-color: #dc354533; /* Light red background with transparency */
    color: #dc3545; /* Darker red text */
    border: 1px solid #dc3545; /* Red border */
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2); /* Subtle red shadow */
    opacity: 1; /* Make visible */
    display: block; /* Ensure it's visible when this class is applied by JS */
}

/* Specific styles for info messages */
.message-container.info {
    background-color: #007bff33; /* Light blue background with transparency */
    color: #007bff; /* Darker blue text */
    border: 1px solid #007bff; /* Blue border */
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2); /* Subtle blue shadow */
    opacity: 1; /* Make visible */
    display: block; /* Ensure it's visible when this class is applied by JS */
}


/* ---  BUTTON DISABLE STYLE --- */
.auth-submit-button:disabled {
    opacity: 0.6;              /* dimmed look */
    cursor: not-allowed;       /* proper disabled cursor */
    pointer-events: none;      /* no hover/active events */
    transform: none !important; /* cancel hover animations if any */
}

/* --- Main Content Area --- */
main {
    min-height: calc(100vh - 80px - 200px); /* Adjust for header and footer heights */
    padding-top: 80px; /* Offset for sticky header */
}

.page-content {
    display: none; /* Hidden by default, shown by JS */
    padding-bottom: 5rem; /* Ensure space above footer */
}
.page-content.active {
    display: block; /* Only active page is shown */
}

.page-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    text-align: center;
    background-color: var(--card-bg);
    margin: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-color);
}
.page-placeholder h2 {
    font-size: 3rem;
    color: var(--accent-aqua);
    margin-bottom: 1rem;
}
.page-placeholder p {
    font-size: 1.5rem;
    color: var(--text-color);
}


/* --- Hero Section --- */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Adjusted for header height (approx 80px) */
    padding-top: 2rem; /* Reduced top padding to move content up */
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: left;
    max-width: 550px;
    margin-right: 5rem;
}

.client-name-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-aqua);
    text-shadow: 0 0 20px rgba(0, 226, 226, 0.7);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.download-button {
    font-weight: bold;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    margin: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.hero-download-btn {
    background: linear-gradient(45deg, var(--accent-aqua), #00a0a0); /* Aqua gradient for download button */
    color: var(--bg-color);
    box-shadow: 0 8px 15px rgba(0, 226, 226, 0.3); /* Aqua shadow */
}

.hero-download-btn:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 226, 226, 0.5); /* Stronger aqua shadow */
    background: linear-gradient(45deg, #00a0a0, var(--accent-aqua));
}

.client-overview {
    position: relative;
    perspective: 1000px;
}

.overview-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px var(--shadow-color);
    transition: transform 0.5s ease;
    border: 3px solid var(--accent-aqua);
}

.overview-image:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-color);
}


/* --- Features Section --- */
.features-section {
    padding: 5rem 3rem;
    text-align: center;
    background-color: var(--card-bg);
}

.features-section h2 {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--card-bg);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
    background-color: #2a2b38;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--accent-aqua);
    margin-bottom: 1rem;
    display: block;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: var(--accent-yellow);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Inside View Section --- */
.inside-view-section {
    padding: 5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color), var(--card-bg));
}

.inside-view-section h2 {
    font-size: 2.5rem;
    color: var(--accent-aqua);
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-images {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    border-radius: 15px;
    box-shadow: 0 15px 30px var(--shadow-color);
    position: relative;
    max-width: 100%;
}

.carousel-images img {
    min-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: var(--accent-aqua);
    color: var(--bg-color);
}

.left-arrow { left: -25px; }
.right-arrow { right: -25px; }


/* --- Best FPS Section --- */
.best-fps-section {
    padding: 5rem 3rem;
    text-align: center;
    background-color: var(--bg-color);
}

.best-fps-section h2 {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.fps-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.fps-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--card-bg);
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.client-name {
    font-weight: bold;
    color: var(--accent-aqua);
    min-width: 120px;
    text-align: left;
    margin-right: 1.5rem;
    font-size: 1.1rem;
}

.fps-bar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--bg-color);
    font-weight: bold;
    padding-right: 10px;
    border-radius: 8px;
    transition: width 1s ease-out, background-color 0.5s ease;
}

/* Specific bar colors and widths */
.vision-bar { width: 90%; background: linear-gradient(90deg, var(--accent-aqua), #00b0b0); }
.badlion-bar { width: 60%; background: linear-gradient(90deg, var(--accent-yellow), #d4a700); }
.lunar-bar { width: 50%; background: linear-gradient(90deg, var(--accent-aqua), #00b0b0); }
.feather-bar { width: 30%; background: linear-gradient(90deg, var(--accent-yellow), #d4a700); }
.optifine-bar { width: 15%; background: linear-gradient(90deg, var(--accent-aqua), #00b0b0); }

/* Final Call to Action Section */
.final-cta-section {
    padding: 5rem 3rem;
    background-color: var(--card-bg);
    border-top: 1px solid rgba(255, 200, 0, 0.1);
    display: flex; /* Use flex to center content */
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
}

.final-cta-section p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text-color);
}

.final-cta-download-btn {
    background: linear-gradient(45deg, var(--accent-aqua), #00a0a0);
    color: var(--bg-color);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 15px rgba(0, 226, 226, 0.3);
    transition: all 0.3s ease;
}
.final-cta-download-btn:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 226, 226, 0.5);
    background: linear-gradient(45deg, #00a0a0, var(--accent-aqua));
}

/* --- Footer Styles --- */
footer {
    background-color: var(--bg-color);
    padding: 2rem 3rem 1.5rem;
    border-top: 1px solid var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
}

.footer-primary-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center vertically */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Default align left */
    gap: 0.5rem;
    min-width: 200px; /* Ensure columns don't get too small */
}

.footer-info {
    align-items: flex-start; /* Align logo and text to left */
}
.footer-info .logo-text {
    font-size: 1.5rem;
}
.footer-info p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
}

.footer-socials {
    flex-grow: 1; /* Allows it to take up available space */
    align-items: center; /* Center socials horizontally */
    margin: 0 auto; /* Center social icons horizontally */
}
.social-icons {
    display: flex;
    gap: 1rem; /* Space between icons */
}
.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: var(--accent-aqua); /* Changed to aqua */
    transform: translateY(-3px);
}

.footer-lang {
    align-items: flex-end; /* Align language manager to the right */
}
.language-manager {
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    background-color: var(--card-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative; /* For dropdown positioning */
}
.language-manager:hover {
    background-color: var(--accent-aqua);
    color: var(--bg-color);
}
/* Language Dropdown Menu */
.language-dropdown-menu {
    top: auto; /* Override default header dropdown behavior */
    bottom: 100%; /* Make it drop upwards from footer */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Initial position */
    min-width: 150px; /* Ensure enough width */
    display: none; /* Hidden by default */
    position: absolute; /* Needed for positioning */
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-color);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 100;
    max-height: 200px; /* Max height for scrollbar */
    overflow-y: auto; /* Add scrollbar if content overflows */
}
/* Custom scrollbar for language dropdown */
.language-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}
.language-dropdown-menu::-webkit-scrollbar-thumb {
    background-color: var(--accent-aqua);
    border-radius: 4px;
}
.language-dropdown-menu::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

/* Show dropdown on click (via JS adding 'show' class) */
.language-manager.show .language-dropdown-menu {
    display: block; /* Show on click */
    opacity: 1;
    transform: translateX(-50%) translateY(0px); /* Slide up into view */
    pointer-events: auto; /* Allow interaction */
}
.language-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.language-dropdown-menu a:hover {
    background-color: var(--accent-aqua);
    color: var(--bg-color);
}


.footer-divider {
    border: 0;
    height: 1px;
    background-color: var(--card-bg);
    margin: 1.5rem 0;
}

.footer-bottom-row {
    display: flex;
    justify-content: flex-start; /* Align to start (left) */
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    flex-shrink: 0; /* Prevent copyright from shrinking */
}
.footer-copyright p {
    margin: 0;
    color: var(--text-color);
}

.footer-legal-contact {
    display: flex;
    gap: 1rem; /* Space between Contact and Legal */
    align-items: center;
    margin-left: auto; /* Push to the left */
}
.footer-legal-contact .footer-dropdowns {
    position: relative; /* For dropdown positioning */
}
.footer-link-divider {
    color: var(--text-color);
    font-weight: bold;
}

.footer-legal-contact .dropdown-menu {
    top: auto; /* Drop down from the bottom of the trigger */
    bottom: 100%; /* Positions the dropdown above the trigger */
    left: 0; /* Align left to the trigger */
    transform: translateY(10px); /* Adjust initial position */
    display: none; /* Hidden by default */
    position: absolute; /* Needed for positioning */
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-color);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 100;
    min-width: 180px;
}
/* Changed from :hover to .show for click functionality */
.footer-legal-contact .contact-dropdown.show + .footer-contact-menu,
.footer-legal-contact .legal-dropdown.show + .footer-legal-menu,
.footer-contact-menu.show, .footer-legal-menu.show { /* .show class added by JS */
    display: block;
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
}

.footer-bottom-row a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.footer-bottom-row a:hover {
    color: var(--accent-aqua);
}

/* Day/Night Mode Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--accent-aqua);
    border: none;
    box-shadow: 0 4px 10px var(--shadow-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease; /* Added color transition */
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}
.theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--accent-aqua);
    color: var(--bg-color); /* Correct color for hover */
}
/* Ensure sun icon has yellow accent in light mode */
body.light-mode .theme-toggle i.fa-sun {
    color: var(--accent-yellow);
}

/* --- Floating Discord Button --- */
.floating-discord-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: linear-gradient(45deg, #5865f2, #4752c4); /* Discord purple gradient */
    color: #f0f4f8;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0; /* Initial state for scroll animation */
    transform: translateX(-100%);
}
.floating-discord-button.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.floating-discord-button:hover {
    transform: translateY(-5px) translateX(0);
    box-shadow: 0 12px 20px rgba(88, 101, 242, 0.6);
}


/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }


/* --- Scroll-Triggered Animations --- */
/* Initial hidden state for elements that will animate on scroll */
/* Apply to all sections and feature cards for consistent animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px); /* Default slide up */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Specific animation directions for elements */
.hero-content.animate-on-scroll { /* Override default for hero content */
    transform: translateX(-100px); /* Slide from left */
}
.client-overview.animate-on-scroll { /* Override default for client overview */
    transform: translateX(100px); /* Slide from right */
}
.fps-bar-container.animate-on-scroll { /* Override default for FPS bars */
    transform: translateX(-50px); /* Slide from left for FPS bars */
}


/* Final visible state */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}


/* --- Team Page Specific Styles --- */
.team-section {
    padding: 5rem 3rem;
    text-align: center;
    background-color: var(--card-bg);
}
.team-section h2 {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.team-member-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}
.skin-viewer {
    width: 128px; /* Standard Minecraft skin size */
    height: 256px; /* Standard Minecraft skin size */
    margin-bottom: 1rem;
    overflow: hidden; /* Hide any overflow from the image */
    position: relative;
    border-radius: 8px;
    background-color: #2a2b38; /* Placeholder background */
}
.minecraft-skin-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure skin fits */
    transition: transform 0.3s ease;
}
.team-member-card h3 {
    font-size: 1.5rem;
    color: var(--accent-aqua);
    margin-bottom: 0.5rem;
}
.team-member-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}
.team-member-email {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.team-member-email:hover {
    color: var(--accent-aqua);
}

/* --- BLOCKED SCREEN STYLES --- */

/* Base container for the blocked message */
.blocked-screen {
    display: none; /* Hidden by default, toggle with JS */
    text-align: center;
    padding: 40px; /* More generous padding */
    background: transparent; /* Changed to transparent to match container background */
    color: #00ffff; /* Default text color for the card */
    box-shadow: none; /* Removed box shadow to match app's aesthetic */
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease-out forwards;
    font-family: 'Inter', sans-serif; /* Default font for general text in this block */
}

/* Animation for when the blocked screen appears */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Heading for the blocked screen */
.blocked-screen h2 {
    font-family: 'Orbitron', sans-serif; /* Sci-fi inspired font for heading */
    font-size: 28px; /* Larger, more impactful heading */
    color: #00ffff; /* Your brand color */
    margin-bottom: 15px;
    font-weight: 700; /* Ensure bold weight */
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); /* Glowing text effect */
}

/* Paragraph text within the blocked screen */
.blocked-screen p {
    font-family: 'Inter', sans-serif; /* Inter font for paragraph text */
    font-size: 17px; /* Slightly larger paragraph text */
    color: #b0b0b0; /* Softer grey for body text */
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Animated Warning Icon */
.blocked-screen .warning-icon {
    font-size: 60px; /* Larger icon */
    color: #ff4d4d; /* Red warning color */
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out forwards;
    position: relative;
    z-index: 1;
}

/* Animation for the warning icon */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* --- Circle Timer Styles --- */

/* Container for the SVG circle timer */
.circle-timer-container {
    position: relative;
    width: 120px; /* Size of the circle timer */
    height: 120px;
    margin: 25px auto; /* Center it with more vertical space */
}

/* SVG element itself */
.circle-timer-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start stroke from the top */
    /* Apply SVG filter for the glow effect (defined in HTML <defs>) */
    filter: url(#circularGlow); 
    display: block; /* Ensure SVG itself is visible */
}

/* Background circle of the timer */
.circle-bg {
    fill: none;
    stroke: rgba(0, 144, 255, 0.2); /* Lighter blue background for the circle */
    stroke-width: 8;
}

/* Progress circle of the timer */
.circle-progress {
    fill: none;
    stroke: #00FFFF; /* Bright blue for timer progress */
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear; /* Smooth animation for progress */
}

/* Digital timer text inside the circle */
.circle-timer-container .block-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif; /* Orbitron font for digital time */
    font-weight: bold;
    font-size: 28px; /* Prominent digital time inside circle */
    color: #ffcc00; /* Yellow for digital text */
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6); /* Matching yellow glow */
    z-index: 1; /* Ensure text is above SVG */
}

/* --- Reset Button Styles (matches main app buttons) --- */
.reset-btn {
    background: linear-gradient(45deg, var(--accent-yellow), #d4a700); /* Gradient button */
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.3);
}

.reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 200, 0, 0.5);
}

.reset-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 6px rgba(255, 200, 0, 0.4);
}



/* --- Auth Page Specific Styles --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px - 200px); /* Adjust for header/footer */
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-color), var(--card-bg));
}
.auth-card {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--card-bg);
}
.auth-card h2 {
    font-size: 2rem;
    color: var(--accent-aqua);
    margin-bottom: 2rem;
    text-transform: uppercase;
}
.auth-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.auth-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--card-bg);
    border-radius: 8px;
    background-color: #2a2b38; /* Darker input background */
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
}
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-aqua);
    box-shadow: 0 0 0 3px rgba(0, 226, 226, 0.3);
}
.auth-submit-button {
    background: linear-gradient(45deg, var(--accent-yellow), #d4a700);
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.3);
}

.auth-submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 200, 0, 0.5);
}
.auth-link-wrapper {
    margin-top: 1.5rem;       /* more spacing from login button */
}

.forgot-password-link {
    display: inline-block;    /* only text width */
    color: var(--accent-aqua);
    font-size: 1rem;          /* slightly bigger font */
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #ebebeb;
}

#auth-no-account-container {
    display: inline-flex;    /* keeps texts on same line */
    align-items: center;
    gap: 0.5rem;             /* spacing between text and link */
    font-size: 1rem;
    margin-top: 1rem;        /* spacing from Forgot password */
}

.auth-text-small {
    font-size: 0.95rem;
    color: #ffffff;
}

#auth-signup-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

#auth-signup-link:hover {
    color: #d4a700;
}

/* Container for "Already have an account? Login" */
#auth-have-account-container {
    margin-top: 1.5rem;        /* push it down a little */
    font-size: 1.01rem;   
    font-weight: bold;        /* slightly bigger text */
    color: #ffffff;            /* white text */
    text-align: center;        /* center align */
}

/* The "Login" link */
#auth-have-account-container a {
    color: #ffffff;            /* white link */
    text-decoration: underline; /* underline */
    margin-left: 0-px;           /* little space after text */
    transition: color 0.3s ease;
}

/* Hover effect for Login link */
#auth-have-account-container a:hover {
    color: #d4a700;
}

.auth-remembered{
  margin-top:1.5rem;
  text-align:center;
  font-size:1.08rem;
  color:#fff;
}
.auth-remembered .auth-inline-link,
.auth-remembered .auth-inline-link:link,
.auth-remembered .auth-inline-link:visited{
  color:#fff !important;
  margin-left: -0.5px;     
  font-weight: bold;
  text-decoration:underline;
  transition: color .3s ease;
}
.auth-remembered .auth-inline-link:hover{
  color: #d4a700 !important;
}


/* --- Error Page Specific Styles --- */
.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Make it take up most of the viewport height */
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color), var(--card-bg));
    margin: 2rem 3rem;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
}
.error-container h2 {
    font-size: 6rem; /* Larger for 404 */
    color: var(--accent-aqua);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 226, 226, 0.7);
}
.error-container p {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 600px;
}
.go-home-button {
    background: linear-gradient(45deg, var(--accent-yellow), #d4a700); /* Yellow-orange gradient */
    color: var(--bg-color);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none; /* Remove underline */
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(255, 200, 0, 0.3);
}
.go-home-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 200, 0, 0.5);
    background: linear-gradient(45deg, #d4a700, var(--accent-yellow));
}

/* Add these to your existing global transitions */
.error-container, .go-home-button {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.error-container h2, .error-container p, .go-home-button {
    transition: color 0.5s ease, background-color 0.5s ease;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    .header-main-nav {
        width: 100%;
        margin: 0;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-right: 0;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1.5rem 3rem;
    }
    .hero-content {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    .client-overview {
        margin-top: 2rem;
    }
    .footer-primary-row, .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        align-items: center;
    }
    .footer-info {
        align-items: center;
    }
    .footer-lang {
        align-items: center; /* Center language manager on mobile */
    }
    .footer-legal-contact {
        flex-direction: column;
        gap: 0.5rem;
        margin-right: 0; /* Remove margin on mobile */
        margin-left: 0; /* Remove margin on mobile */
    }
    .footer-link-divider {
        display: none; /* Hide divider on mobile */
    }
    .footer-legal-contact .dropdown-menu {
        position: static; /* Make dropdowns flow naturally on mobile */
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    .footer-legal-contact .footer-dropdowns > a {
        width: 100%;
        display: block;
    }
}

@media (max-width: 768px) {
    header { padding: 1rem; }
    .client-name-title { font-size: 2.5rem; }
    .tagline { font-size: 1.1rem; }
    .inside-view-carousel { flex-direction: column; }
    .carousel-arrow { position: relative; left: auto; right: auto; margin: 1rem auto; }
    .fps-bar-container { flex-direction: column; align-items: flex-start; padding: 0.5rem; }
    .client-name { min-width: unset; margin-right: 0; margin-bottom: 0.5rem; }
    .fps-bar {
        width: 100% !important; /* Force full width on mobile for better visibility */
        justify-content: center;
        padding: 10px 0;
    }
    .auth-card {
        padding: 2rem;
    }
}