@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;400;600&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    background: #000 url('../images/a.webp') center/cover fixed no-repeat;
    overflow: hidden;
    height: 100vh;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Dark Top -> Pure Black Bottom */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 75%, #000 100%);
    z-index: 1;
    pointer-events: none;
}

/* SLIDER LAYOUT */
#slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    /* Transition handled by JS to avoid initial jump */
}

.slide {
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* CARDS - SOLID STYLE */
.content-box {
    background: transparent;
    /* Removed background */
    border: none;
    box-shadow: none;
    padding: 50px 0;
    /* Adjusted padding since no border */
    border-radius: 4px;
    /* Sharper corners */
    max-width: 1000px;
    width: 90%;
    text-align: left;
    transform: translateY(-50px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    /* Readability */
}

.home-box {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}

/* TYPE */
h1.logo {
    font-size: 6rem;
    font-weight: 200;
    margin: 0;
    letter-spacing: -2px;
}

.regem-x {
    font-weight: 600;
    color: #e53e3e;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: #aaa;
    margin-top: 10px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
    font-weight: 200;
    margin: 0 0 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    color: #eee;
}

.server-ip {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    background: rgba(229, 62, 62, 0.1);
    /* Slight red tint */
    border: 1px solid #e53e3e;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.server-ip:hover {
    background: #e53e3e;
    color: white;
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.4);
}

.btn {
    color: #888;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    color: white;
}

/* GRIDS */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.9;
    transition: 0.3s;
}

.gallery-grid img:hover {
    opacity: 1;
    transform: scale(1.02);
}

.team-grid {
    display: flex;
    gap: 40px;
}

.card {
    text-align: center;
}

.card img,
.card .placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    /* Consistent spacing */
    border: 2px solid #333;
    display: block;
    /* Ensure block model matches */
}

.card .placeholder {
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: bold;
}

.card img {
    object-fit: cover;
    opacity: 1;
}

.card h3 {
    margin: 0;
    font-weight: 400;
    font-size: 1.4rem;
}

.card p {
    color: #666;
    margin-top: 5px;

    font-size: 0.9rem;
}

/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-btn:hover,
.close-btn:focus {
    color: #e53e3e;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9)
    }

    to {
        transform: scale(1)
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 200;
    line-height: 2.2;
    color: #ddd;
}

.feature-list strong {
    font-weight: 600;
    color: #e53e3e;
    margin-right: 15px;
}

/* DOCK */
#dock-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 280px;
    z-index: 50;
}

/* NAV */
.slider-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0;
    /* Square dots for minimal look */
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #e53e3e;
    transform: scale(1.5);
}

/* TOOLTIP - FLOATING TEXT */
.mc-tooltip {
    position: fixed;
    /* Position set by JS */
    top: 0;
    left: 0;
    transform: translate(-50%, -100%);
    /* Center horizontally, sit above point */
    text-align: center;
    padding: 0;
    background: transparent;
    /* No BG */
    box-shadow: none;
    border: none;
    pointer-events: none;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.2s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Readability */
    width: auto;
    white-space: nowrap;
}

.mc-tooltip.active {
    opacity: 1;
}

.mc-tooltip h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
}

.tt-desc {
    margin: 5px 0 0 0;
    color: #ddd;
    font-weight: 500;
    font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* TYPOGRAPHY */
    h1.logo {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 2rem;
    }

    /* LAYOUT */
    .content-box {
        padding: 30px 20px;
        width: 90%;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 1);
        /* Stronger shadow for mobile readability */
    }

    .server-ip {
        font-size: 1.1rem;
        padding: 12px 25px;
    }

    /* GRIDS */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-grid img {
        height: 140px;
    }

    .team-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .card {
        width: 40%;
    }

    .feature-list {
        font-size: 1rem;
    }

    /* NAV DOTS - Move to bottom */
    .slider-nav {
        top: auto;
        bottom: 300px;
        /* Above dock */
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    /* DOCK */
    #dock-container {
        height: 220px;
    }

    /* Slightly smaller dock area */

    /* TOOLTIP */
    .mc-tooltip h3 {
        font-size: 1.2rem;
    }

    .tt-desc {
        font-size: 0.8rem;
    }

    /* Better spacing for mobile */
    .content-box {
        transform: translateY(-80px);
        /* Move content up more to clear dock */
    }
}

/* SHORT SCREENS (Small phones) */
@media (max-height: 750px) {
    #dock-container {
        height: 180px;
        /* Smaller dock */
    }

    .slider-nav {
        bottom: 220px;
        /* Follow dock down */
    }

    h1.logo {
        font-size: 2.8rem;
        /* Smaller logo */
    }

    .subtitle {
        margin-bottom: 15px;
        margin-top: 5px;
    }

    .content-box {
        transform: translateY(-60px);
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .server-ip {
        padding: 10px 20px;
        font-size: 1rem;
    }
}