/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #45567d;
    --secondary-color: #7d4556;
    --accent-color: #567d45;
    --light-color: #f0f0f0;
    --dark-color: #2a2a2a;
    --gold-color: #d4af37;
    --header-height: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #1a1a1a;
    background-image: url('https://via.placeholder.com/1920x1080/1a1a1a/333333?text=');
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--light-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-color);
}

button {
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: var(--header-height);
    background-color: rgba(26, 26, 26, 0.9);
    border-bottom: 2px solid var(--gold-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.tagline {
    font-size: 0.9rem;
    color: var(--light-color);
    letter-spacing: 5px;
    margin-top: -5px;
}

.server-info {
    color: var(--light-color);
    font-size: 0.9rem;
}

.server-time {
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tour-btn {
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid var(--light-color);
}

.tour-btn:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.register-btn {
    background-color: var(--accent-color);
    color: white;
}

.register-btn:hover {
    background-color: #678d55;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(86, 125, 69, 0.4);
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
}

.login-btn:hover {
    background-color: #55678d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(69, 86, 125, 0.4);
}

/* Main Content Styles */
main {
    padding-top: var(--header-height);
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background-image: url('https://via.placeholder.com/1920x1080/2a2a2a/555555?text=');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.9));
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

.hero p {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: var(--gold-color);
    color: var(--dark-color);
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background-color: #e5c04d;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background-color: rgba(26, 26, 26, 0.8);
}

.stat-box, .news-box {
    background-color: rgba(42, 42, 42, 0.9);
    border: 1px solid var(--gold-color);
    border-radius: 5px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover, .news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.stat-box h3, .news-box h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.stat-item, .news-item {
    display: flex;
    justify-content: space-between;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(240, 240, 240, 0.1);
}

.stat-value {
    font-weight: 600;
    color: var(--gold-color);
}

.news-item p {
    color: var(--light-color);
    text-align: center;
    width: 100%;
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: rgba(42, 42, 42, 0.7);
}

.feature-card {
    background-color: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--gold-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--gold-color);
}

.feature-card p {
    color: var(--light-color);
}

/* Game Tour Section */
.game-tour {
    padding: 4rem 2rem;
    background-color: rgba(26, 26, 26, 0.8);
    text-align: center;
}

.game-tour h2 {
    margin-bottom: 3rem;
}

.tour-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tour-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgba(42, 42, 42, 0.9);
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.tour-step:hover {
    transform: scale(1.02);
}

.tour-step:nth-child(even) {
    flex-direction: row-reverse;
}

.tour-image {
    flex: 1;
}

.tour-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.tour-image img:hover {
    transform: scale(1.05);
}

.tour-text {
    flex: 2;
    text-align: left;
}

.tour-step:nth-child(even) .tour-text {
    text-align: right;
}

.tour-text h3 {
    color: var(--gold-color);
}

.tour-text p {
    color: var(--light-color);
}

/* Screenshots Section */
.screenshots {
    padding: 4rem 2rem;
    background-color: rgba(42, 42, 42, 0.7);
    text-align: center;
}

.screenshots h2 {
    margin-bottom: 3rem;
}

.screenshot-gallery {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.screenshot {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.5s ease;
}

.screenshot:hover img {
    transform: scale(1.1);
}

/* Footer Styles */
footer {
    background-color: rgba(26, 26, 26, 0.9);
    color: var(--light-color);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 2px solid var(--gold-color);
}

.social-media {
    margin-bottom: 2rem;
}

.social-media h3 {
    color: var(--gold-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(240, 240, 240, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--gold-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-color);
}

.copyright {
    color: rgba(240, 240, 240, 0.7);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: rgba(42, 42, 42, 0.95);
    border: 2px solid var(--gold-color);
    border-radius: 5px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--light-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--gold-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(240, 240, 240, 0.3);
    border-radius: 4px;
    background-color: rgba(26, 26, 26, 0.8);
    color: var(--light-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--gold-color);
    color: var(--dark-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #e5c04d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: var(--light-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--gold-color);
}

/* Animations */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(86, 125, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(86, 125, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(86, 125, 69, 0);
    }
}

.glow-animation {
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(69, 86, 125, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(69, 86, 125, 0.8);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .tour-step, .tour-step:nth-child(even) {
        flex-direction: column;
    }
    
    .tour-text, .tour-step:nth-child(even) .tour-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .server-info {
        margin-bottom: 1rem;
    }
    
    nav {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        height: auto;
        padding: 4rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-box, .news-box {
        width: 100%;
        max-width: 400px;
    }
    
    .feature-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
