/* ==========================================================================
 *  1. RESET & CSS VARIABLES
 *  ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --color-dark-blue: #081226;
    --color-navy-text: #0d1e3d;
    --color-white: #ffffff;
}

body {
    font-family: var(--font-sans);
    background-color: #f6f8fb;
    color: var(--color-navy-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
 *  2. HERO & MAIN WRAPPER (Persistent Background)
 *  ========================================================================== */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem 4rem 5rem;
    background: #111 url('images/hero-bg.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    color: var(--color-white);
    overflow-x: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
    z-index: 1;
}

.nav-container,
.page-view {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
 *  3. TOP NAVIGATION & BRANDING
 *  ========================================================================== */
.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo {
    /* Scales cleanly with screen size while matching the old vertical text block */
    height: clamp(65px, 8.5vh, 95px);
    width: auto;            /* Auto-scales to any aspect ratio */
    max-width: 85vw;        /* Prevents horizontal overflow on phones */
    object-fit: contain;
    image-rendering: pixelated; /* Keeps pixel art crisp */
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-white);
    border-bottom: 2px solid var(--color-white);
}

/* ==========================================================================
 *  4. TAB / PAGE-VIEW SWITCHING
 *  ========================================================================== */
.page-view {
    display: none;
    animation: fadeIn 0.35s ease forwards;
}

.page-view.active {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

/* ==========================================================================
 *  5. VIEW 1: HOME
 *  ========================================================================== */
#home-view {
justify-content: flex-end;
margin-bottom: 2rem;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #e5e7eb;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Container to stack Discord above Status */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

/* Shared styling so both buttons are identical in size and shape */
.btn-hero {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 175px;
    padding: 0.7rem 2rem;
    background-color: #f1f5f9;
    color: #0b1a33;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease-in-out;
}

.btn-hero:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
 *  6. VIEW 2: ABOUT US
 *  ========================================================================== */
#about-view {
justify-content: center;
align-items: flex-start;
padding: 2rem 0;
}

.about-card {
    max-width: 780px;
    background: rgba(8, 18, 38, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.about-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

.about-note {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

/* ==========================================================================
 *  7. VIEW 3: GALLERY (2 Columns x 3 Rows)
 *  ========================================================================== */
#gallery-view {
justify-content: flex-start;
align-items: center;
padding: 1.5rem 0 3rem;
}

.gallery-wrapper {
    max-width: 1050px;
    width: 100%;
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 0.4rem;
}

.gallery-subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    background: #000;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
    outline: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    pointer-events: none;
}

/* ==========================================================================
 *  8. LIGHTBOX / FULLSCREEN IMAGE MODAL
 *  ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 2rem;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 20, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.25s ease forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: -5px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: transform 0.15s ease, color 0.15s ease;
}

.lightbox-close:hover {
    color: #79a5cc;
    transform: scale(1.15);
}

/* ==========================================================================
 *  9. SERVERS SECTION (Home Only)
 *  ========================================================================== */
.servers-section {
    background-color: #f8fafc;
    padding: 5rem 2rem 6rem;
}

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

.section-intro {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.server-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-icon {
    width: 72px;
    height: 72px;
    color: var(--color-navy-text);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-icon svg {
    width: 100%;
    height: 100%;
}

.server-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-navy-text);
    margin-bottom: 0.8rem;
}

.server-desc {
    font-size: 0.95rem;
    color: #27374d;
    line-height: 1.4;
}

.server-divider {
    display: block;
    font-size: 1rem;
    color: #64748b;
    margin: 0.2rem 0;
}

/* ==========================================================================
 *  10. FOOTER
 *  ========================================================================== */
.footer {
    background-color: var(--color-dark-blue);
    color: #cbd5e1;
    padding: 4rem 2rem 3rem;
}

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

.footer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.22);
    margin-bottom: 2.5rem;
}

.footer-text {
    font-size: 0.9rem;
    color: #d1d5db;
    letter-spacing: 0.02em;
}

/* ==========================================================================
 *  11. RESPONSIVE DESIGN (Tablets & Mobile)
 *  ========================================================================== */
@media (max-width: 900px) {
    .hero-wrapper {
        padding: 2rem;
    }

    .servers-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1.8rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
    }
}
/* ==========================================================================
 *  FLOATING BOTTOM-RIGHT CONTACT BUTTONS
 *  ========================================================================== */
.floating-contact {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    z-index: 100; /* Stays above background and footer */
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(8, 18, 38, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-btn svg {
    width: 20px;
    height: 20px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    background-color: #0d1e3d;
    border-color: rgba(255, 255, 255, 0.45);
    color: #79a5cc;
}

/* Subtle red accent when hovering over YouTube */
.contact-btn-yt:hover {
    color: #ff4d4d;
}
