* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Micro 5", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #1a1a1a;
    padding: 20px 0;
    border-bottom: 2px solid #0f3492;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 40px;
    font-weight: 400;
    transition: transform 0.3s;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-play {
    color: #dddddd;
}

.logo-ray {
    color: #0f3492;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: #0f3492;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.hero h2 {
    font-size: 56px;
    color: #0f3492;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #0f3492;
    animation: fadeInUp 1s ease-out 0.2s both, glow 3s ease-in-out infinite;
}

.hero p {
    font-size: 24px;
    color: #b0b0b0;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-button {
    display: inline-block;
    padding: 20px 60px;
    background-color: #0f3492;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: "Micro 5", sans-serif;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(15, 52, 146, 0.4);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-button:hover {
    background-color: #0c2870;
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(15, 52, 146, 0.6);
}

/* Mods Section */
.mods-section {
    padding: 60px 0;
}

.mods-section h2 {
    font-size: 36px;
    color: #0f3492;
    margin-bottom: 40px;
    text-align: center;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.mod-card {
    background-color: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease-out both;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mod-card:hover {
    transform: translateY(-8px);
    border-color: #0f3492;
    box-shadow: 0 15px 40px rgba(15, 52, 146, 0.3);
}

.mod-image {
    width: 100%;
    height: 250px;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-card h3 {
    color: #dddddd;
    font-size: 26px;
    margin-bottom: 12px;
    flex-grow: 1;
}

.mod-card .game-name {
    color: #0f3492;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.mod-card p {
    color: #b0b0b0;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.download-mod-btn {
    width: 100%;
    padding: 16px;
    background-color: #0f3492;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: "Micro 5", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: auto;
}

.download-mod-btn:hover {
    background-color: #0c2870;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(15, 52, 146, 0.4);
}

/* Upload Section */
.upload-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.upload-section h2 {
    font-size: 36px;
    color: #0f3492;
    margin-bottom: 40px;
    text-align: center;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-form input,
.upload-form textarea {
    padding: 15px;
    background-color: #0a0a0a;
    border: 2px solid #2a2a2a;
    border-radius: 5px;
    color: #e0e0e0;
    font-family: "Micro 5", sans-serif;
    font-size: 16px;
}

.upload-form input:focus,
.upload-form textarea:focus {
    outline: none;
    border-color: #0f3492;
}

.upload-form button {
    padding: 15px;
    background-color: #0f3492;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-family: "Micro 5", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-form button:hover {
    background-color: #0c2870;
}

/* About Section */
.about-section {
    padding: 60px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 36px;
    color: #0f3492;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #0f3492;
}

footer p {
    color: #888;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 40px;
    border: 2px solid #0f3492;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.modal-content h3 {
    color: #0f3492;
    font-size: 28px;
    margin-bottom: 30px;
}

.ad-container {
    background-color: #0a0a0a;
    padding: 40px;
    border-radius: 5px;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-timer {
    font-size: 20px;
    color: #0f3492;
    margin-top: 20px;
}

.download-btn {
    padding: 15px 40px;
    background-color: #0f3492;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-family: "Micro 5", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover:not(:disabled) {
    background-color: #0c2870;
}

.download-btn:disabled {
    background-color: #2a2a2a;
    color: #666;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }
    
    nav {
        gap: 15px;
    }
    
    nav a {
        font-size: 14px;
    }
    
    .mods-grid {
        grid-template-columns: 1fr;
    }
}

/* Code Upload Section */
.code-upload-info {
    text-align: center;
    padding: 40px;
}

.code-upload-info p {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.code-btn {
    padding: 15px 40px;
    background-color: #0f3492;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-family: "Micro 5", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.code-btn:hover {
    background-color: #0c2870;
}

/* Code Modal */
.code-input {
    width: 100%;
    padding: 15px;
    background-color: #0a0a0a;
    border: 2px solid #2a2a2a;
    border-radius: 5px;
    color: #e0e0e0;
    font-family: "Micro 5", sans-serif;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.code-input:focus {
    outline: none;
    border-color: #0f3492;
}

.code-verify-btn {
    width: 100%;
    padding: 15px;
    background-color: #0f3492;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-family: "Micro 5", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.code-verify-btn:hover {
    background-color: #0c2870;
}

.error-message {
    color: #ff4444;
    margin-top: 15px;
    font-size: 16px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #0f3492;
}

.modal-content {
    position: relative;
}

.upload-modal-content {
    max-width: 600px;
}

/* Details Modal */
.details-modal-content {
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
}

.details-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #2a2a2a;
}

.details-image-large {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #0f3492;
    transition: transform 0.3s ease;
}

.details-image-large:hover {
    transform: scale(1.02);
}

.details-info-center {
    text-align: center;
    width: 100%;
}

.details-title {
    color: #dddddd;
    font-size: 42px;
    margin-bottom: 15px;
}

.details-game {
    color: #0f3492;
    font-size: 28px;
    margin-bottom: 30px;
}

.details-download-btn-large {
    padding: 20px 60px;
    font-size: 22px;
    width: auto;
    min-width: 300px;
}

.details-content {
    text-align: left;
    color: #e0e0e0;
    padding: 20px;
    background-color: #0a0a0a;
    border-radius: 10px;
    line-height: 1.8;
}

.details-content h1 {
    color: #0f3492;
    font-size: 28px;
    margin: 20px 0 15px 0;
}

.details-content h2 {
    color: #0f3492;
    font-size: 22px;
    margin: 20px 0 10px 0;
}

.details-content h3 {
    color: #dddddd;
    font-size: 18px;
    margin: 15px 0 10px 0;
}

.details-content p {
    margin: 10px 0;
    color: #b0b0b0;
    font-size: 14px;
}

.details-content strong {
    color: #dddddd;
}

.details-content a {
    color: #0f3492;
    text-decoration: none;
}

.details-content a:hover {
    text-decoration: underline;
}

/* Scrollbar for details modal */
.details-modal-content::-webkit-scrollbar {
    width: 10px;
}

.details-modal-content::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.details-modal-content::-webkit-scrollbar-thumb {
    background: #0f3492;
    border-radius: 5px;
}

.details-modal-content::-webkit-scrollbar-thumb:hover {
    background: #0c2870;
}

/* Responsive for details modal */
@media (max-width: 768px) {
    .details-image-large {
        max-width: 100%;
    }
    
    .details-title {
        font-size: 28px;
    }
    
    .details-game {
        font-size: 20px;
    }
    
    .details-download-btn-large {
        min-width: 200px;
        padding: 15px 40px;
        font-size: 18px;
    }
}

/* Sidebar Ads */
.sidebar-ad {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px #0f3492, 0 0 20px #0f3492;
    }
    50% {
        text-shadow: 0 0 20px #0f3492, 0 0 40px #0f3492, 0 0 60px #0f3492;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations */
.hero {
    animation: fadeIn 1s ease-out;
}

.hero h2 {
    animation: fadeInUp 1s ease-out 0.2s both, glow 3s ease-in-out infinite;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.logo-text {
    animation: slideInLeft 0.8s ease-out;
}

nav a {
    animation: slideInRight 0.8s ease-out;
    animation-fill-mode: both;
}

nav a:nth-child(1) {
    animation-delay: 0.1s;
}

nav a:nth-child(2) {
    animation-delay: 0.2s;
}

.mod-card {
    animation: fadeInUp 0.6s ease-out both;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.mod-card:hover {
    transform: translateY(-10px);
    border-color: #0f3492;
    box-shadow: 0 10px 30px rgba(15, 52, 146, 0.3);
}

.mod-card:nth-child(1) { animation-delay: 0.1s; }
.mod-card:nth-child(2) { animation-delay: 0.2s; }
.mod-card:nth-child(3) { animation-delay: 0.3s; }
.mod-card:nth-child(4) { animation-delay: 0.4s; }
.mod-card:nth-child(5) { animation-delay: 0.5s; }
.mod-card:nth-child(6) { animation-delay: 0.6s; }

.download-mod-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-mod-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-mod-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-mod-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(15, 52, 146, 0.4);
}

.download-btn {
    transition: all 0.3s ease;
}

.download-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(15, 52, 146, 0.4);
}

.mods-section h2,
.about-section h2 {
    animation: fadeInUp 0.8s ease-out both;
}

.about-section p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: fadeInUp 0.4s ease-out;
}

.details-image {
    transition: transform 0.3s ease;
}

.details-image:hover {
    transform: scale(1.02);
}

.sidebar-ad {
    animation: slideInLeft 0.8s ease-out;
}

.sidebar-ad-right {
    animation: slideInRight 0.8s ease-out;
}

footer {
    animation: fadeIn 1s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Button click animation */
button:active {
    transform: scale(0.95);
}

/* Link hover animation */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0f3492;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.download-manager-btn {
    background-color: #0f3492;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
}

.download-manager-btn:hover {
    background-color: #0c2870;
    box-shadow: 0 5px 15px rgba(15, 52, 146, 0.4);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 1.5s forwards;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 64px;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #2a2a2a;
    border-top: 4px solid #0f3492;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #888;
    font-size: 18px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Modal centering fix */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 40px;
    border: 2px solid #0f3492;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.details-modal-content {
    max-width: 1400px !important;
    width: 95% !important;
}
