/* ============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================ */

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --gold: #d4af37;
    --gold-light: #e8c547;
    --gold-dark: #b8941f;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-gold: #ffd700;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h1 {
    color: var(--gold);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 50px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
    transition: var(--transition);
}

.nav-logo:hover {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(26, 26, 26, 0.85) 50%, rgba(10, 10, 10, 0.85) 100%),
                url('images/loadingscreen2.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.hero-content p {
    font-size: 32px;
    color: var(--gold-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-content .tagline {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.server-invite {
    margin-top: 30px;
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 0.5px;
    font-weight: 500;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--secondary-dark);
    padding: 80px 20px;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.about h2 {
    text-align: center;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text h3,
.about-theme h3 {
    color: var(--gold-light);
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.about-text h3:first-child,
.about-theme h3:first-child {
    margin-top: 0;
}

.about-text p,
.about-theme p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.improvements-list {
    list-style: none;
    margin-top: 20px;
}

.improvements-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-light);
    margin-bottom: 10px;
}

.improvements-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 20px;
}

.about-theme ul {
    list-style: none;
    margin-top: 20px;
}

.about-theme li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-muted);
}

.about-theme li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    background: var(--primary-dark);
    padding: 80px 20px;
}

.features h2 {
    text-align: center;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--tertiary-dark) 100%);
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.feature-card i {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--gold-light);
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   STYLES SECTION
   ============================================ */

.styles {
    background: var(--secondary-dark);
    padding: 80px 20px;
    border-top: 2px solid var(--gold);
}

.styles h2 {
    text-align: center;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 50px;
}

.styles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.styles-column h3 {
    color: var(--gold-light);
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.style-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.style-item {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    padding: 15px;
    border-radius: 4px;
    transition: var(--transition);
}

.style-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.style-item.new-style {
    border-left-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
}

.style-name {
    display: block;
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.style-item.new-style .style-name {
    color: var(--accent-gold);
}

.style-desc {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .styles-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    background: var(--primary-dark);
    padding: 80px 20px;
}

.gallery h2 {
    text-align: center;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    background: var(--secondary-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item h4 {
    color: var(--gold-light);
    font-size: 18px;
    padding: 20px 20px 10px;
}

.gallery-item p {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 20px 20px;
    line-height: 1.6;
}

.addon-link {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 8px 20px;
    background: var(--gold);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.addon-link:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ============================================
   ADMIN DETAILS SECTION
   ============================================ */

.admin-details {
    background: var(--secondary-dark);
    padding: 80px 20px;
    border-top: 2px solid var(--gold);
}

.admin-details h2 {
    text-align: center;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.admin-feature {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.admin-feature:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.admin-feature h3 {
    color: var(--gold-light);
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-feature i {
    color: var(--gold);
    font-size: 24px;
}

.admin-feature p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14px;
}

/* ============================================
   LEGAL NOTICE SECTION
   ============================================ */

.legal-notice {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--tertiary-dark) 100%);
    padding: 60px 20px;
    border-top: 2px solid var(--gold);
}

.legal-content {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content i {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
}

.legal-content h3 {
    color: var(--gold-light);
    font-size: 28px;
    margin-bottom: 20px;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.legal-content li {
    color: var(--text-muted);
    padding: 10px 0 10px 30px;
    position: relative;
}

.legal-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.legal-content a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--primary-dark);
    padding: 80px 20px;
    border-top: 2px solid var(--gold);
}

.contact h2 {
    text-align: center;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 40px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--tertiary-dark) 100%);
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.contact-btn i {
    font-size: 32px;
}

.contact-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Special styling for Join Server button */
.join-server-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary-dark);
    border: 2px solid var(--gold-light);
    font-weight: 800;
    animation: pulse-glow 2s ease-in-out infinite;
}

.join-server-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--primary-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--secondary-dark);
    border-top: 2px solid var(--gold);
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin: 10px 0;
    font-size: 14px;
}

.footer .heart {
    color: var(--gold);
    font-size: 16px;
}

.footer .credit {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 15px;
}

.footer strong {
    color: var(--gold);
}

/* ============================================
   LIGHTBOX GALLERY
   ============================================ */

.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease;
    gap: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 80vw;
}

#lightbox-image {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border: 3px solid var(--gold);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: bold;
}

.lightbox-close:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: bold;
    z-index: 2001;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    max-width: 90vw;
}

#lightbox-counter {
    color: var(--gold);
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

#lightbox-description {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: -65px;
    }

    .lightbox-next {
        right: -65px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: -60px;
        right: 0;
    }

    .lightbox-info {
        margin-top: 15px;
        padding: 10px 15px;
        font-size: 12px;
    }

    #lightbox-counter {
        font-size: 14px;
        margin-bottom: 5px;
    }

    #lightbox-description {
        font-size: 12px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 24px;
    }

    .about h2,
    .features h2,
    .styles h2,
    .gallery h2,
    .admin-details h2,
    .contact h2 {
        font-size: 36px;
    }

    .contact-buttons {
        gap: 15px;
    }

    .contact-btn {
        padding: 20px 30px;
        font-size: 14px;
    }

    .contact-btn i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 20px;
    }

    .hero {
        min-height: 400px;
        padding: 50px 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about h2,
    .features h2,
    .styles h2,
    .gallery h2,
    .admin-details h2,
    .contact h2 {
        font-size: 28px;
    }

    .styles-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}
