@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --bg-color: #0b0b0c;
    --text-color: #f5f6f8;
    --text-muted: #888888;
    --accent-color: #a5d8ff;
    --glow-color: #a5d8ff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --font-alt: 'Monument Extended', sans-serif;
}

@font-face {
    font-family: 'Monument Extended';
    src: url('fonts/MonumentExtended.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
    background: linear-gradient(to top, var(--bg-color), transparent), linear-gradient(rgba(11, 11, 12, 0.7), rgba(11, 11, 12, 0.7)), url('assets/hbg.webp') no-repeat center center/cover;
}

.hero-main-logo {
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.hero-main-logo:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 100;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 200;
    color: var(--text-muted);
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.hero-smp {
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-color);
    font-family: var(--font-alt);
    letter-spacing: 0.1em;
}

/* Features Section */
.section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

/* Feature Cards Grid */
.map-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: -8rem auto 4rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Minimal default border */
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
    text-align: left;
    min-height: 550px;
    overflow: hidden;
    will-change: transform;
}

/* Local Spotlight Border Glow */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    /* Border thickness */
    background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            var(--spotlight-color, rgba(255, 255, 255, 0.2)),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0;
    /* Intense mouse spotlight only */
    background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            var(--inner-glow, rgba(255, 255, 255, 0.12)),
            transparent 40%);
}

.feature-card:hover::after {
    opacity: 1;
}

.map-card-bg {
    --spotlight-color: rgba(134, 255, 115, 0.6);
    --inner-glow: rgba(134, 255, 115, 0.12);
    background:
        linear-gradient(rgba(134, 255, 115, 0.04), rgba(134, 255, 115, 0.04)),
        linear-gradient(rgba(13, 13, 18, 0.7), rgba(13, 13, 18, 0.9)),
        url('assets/mc.webp') no-repeat center center/cover !important;
}

.wiki-card-bg {
    --spotlight-color: rgba(245, 245, 98, 0.6);
    --inner-glow: rgba(245, 245, 98, 0.12);
    background:
        linear-gradient(rgba(245, 245, 98, 0.04), rgba(245, 245, 98, 0.04)),
        linear-gradient(rgba(13, 13, 18, 0.7), rgba(13, 13, 18, 0.9)),
        url('assets/wikibg.webp') no-repeat center bottom/cover !important;
}

.discord-card-bg {
    --spotlight-color: rgba(88, 101, 242, 0.6);
    --inner-glow: rgba(88, 101, 242, 0.12);
    background:
        linear-gradient(rgba(88, 101, 242, 0.04), rgba(88, 101, 242, 0.04)),
        linear-gradient(rgba(13, 13, 18, 0.7), rgba(13, 13, 18, 0.9)),
        url('assets/dcbg.webp') no-repeat center center/cover !important;
}

/* Backgrounds */
.map-card-bg {
    background: linear-gradient(rgba(13, 13, 18, 0.7), rgba(13, 13, 18, 0.9)), url('assets/mc.webp') no-repeat center center/cover;
}

.discord-card-bg {
    background: linear-gradient(rgba(13, 13, 18, 0.7), rgba(13, 13, 18, 0.9)), url('assets/dcbg.webp') no-repeat center center/cover;
}

.wiki-card-bg {
    background: linear-gradient(rgba(13, 13, 18, 0.7), rgba(13, 13, 18, 0.9)), url('assets/wikibg.webp') no-repeat center bottom/cover;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    z-index: 2;
}

.feature-icon {
    font-size: 2rem;
    color: #666;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: #f5f6f8;
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f5f6f8;
    margin-bottom: 0.3rem;
}

.feature-card-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Online Pill */
.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(165, 216, 255, 0.05);
    color: #a5d8ff;
    padding: 0.35rem 1.6rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(165, 216, 255, 0.2);
    align-self: flex-start;
    margin-bottom: auto;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.pill-smp {
    color: #86FF73;
    border-color: rgba(134, 255, 115, 0.2);
    background: rgba(134, 255, 115, 0.05);
}

.pill-smp:hover {
    background: rgba(134, 255, 115, 0.12);
    border-color: rgba(134, 255, 115, 0.5);
}

.pill-discord {
    color: #5865f2;
    border-color: rgba(88, 101, 242, 0.2);
    background: rgba(88, 101, 242, 0.05);
}

.pill-discord:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.5);
}

.pill-wiki {
    color: #F5F562;
    border-color: rgba(245, 245, 98, 0.2);
    background: rgba(245, 245, 98, 0.05);
}

.pill-wiki:hover {
    background: rgba(245, 245, 98, 0.12);
    border-color: rgba(245, 245, 98, 0.5);
}

.online-indicator {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-alt);
    transition: var(--transition);
}

.footer-copyright span {
    color: inherit;
    transition: var(--transition);
}

.footer-copyright:hover {
    color: #ec2913 !important;
}

.footer-copyright:hover span {
    color: #f5f6f8 !important;
}

/* Footer & Social Tooltips */
.site-footer {
    padding: 6rem 10%;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: #f5f6f8;
}

.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #f5f6f8;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1) transparent transparent transparent;
}

.tooltip-container:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Magic Trail Particles */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    animation: particle-fade 0.8s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes particle-fade {
    0% {
        opacity: var(--opacity);
        transform: scale(1) translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: scale(0) translate(var(--dir-x), var(--dir-y));
    }
}

/* Lightbox Redirection */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(4px);
}

.lightbox-content {
    background: linear-gradient(145deg, rgba(13, 13, 18, 0.98), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2rem 3.5rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--theme-rgb), 0.1);
    transform: scale(0.98);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
    min-width: 550px;
    position: relative;
    overflow: hidden;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--theme-color);
    opacity: 0.02;
    pointer-events: none;
}

.lightbox.active .lightbox-content {
    transform: translateY(0);
}

.lightbox-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

#redirect-icon {
    font-size: 1.8rem;
    color: var(--theme-color);
}

.redirect-info {
    display: flex;
    flex-direction: column;
}

.redirect-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.redirect-destination {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.3);
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: var(--theme-color);
    width: 100%;
    box-shadow: 0 0 10px var(--theme-color);
}

/* Mobile */
@media (max-width: 900px) {
    .map-container {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}