.hero {
    position: relative;
    padding: 120px 20px 150px;
    text-align: center;
    color: white;
    background: transparent;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/banner.png');
    background-size: cover;
    background-position: center;
    z-index: 1;

    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 40%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 40%,
            rgba(0, 0, 0, 0) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.content-container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    max-width: 750px;
    margin: 20px auto;
    font-size: 1.2rem;
    color: #fdfdfd;
    line-height: 1.6;
}

.server-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1100px;
    margin: -100px auto 150px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.server-card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #202020;
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.server-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.server-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(63, 185, 80, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.server-card:hover::after {
    opacity: 1;
}

.server-card ul {
    text-align: left;
    display: inline-block;
    margin-top: 20px;
    color: #adbac7;
}

.ip-box {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 8px 20px;
    background: #2d312d;
    border: 1px solid #2b2e31;
    border-radius: 8px;
    color: #62f382;
    font-weight: bold;
    margin: 15px 0;
    cursor: pointer;
    min-width: 220px;
    transition: all 0.2s ease;
}

.ip-box:hover {
    background: #505152;
    color: #9cc4f1;
}

.community-section {
    padding: 40px 20px;
    margin-bottom: 80px;
}

.community-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.community-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.discord-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #5865F2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 15px;
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
}

.community-embed iframe {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.feature-card {
    background: linear-gradient(145deg, #1e1e1e, #181818);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #3fb950;
}

.feature-banner {
    width: 100%;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #0d1117;
}

.pixel-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.5s ease;
}

.feature-card:hover .pixel-banner {
    transform: scale(1.1);
}

.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #3fb950;
    letter-spacing: 0.5px;
    text-align: center;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #adbac7;
    margin: 0;
    flex-grow: 1;
}

.video-section {
    padding-bottom: 100px;
    text-align: center;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(63, 185, 80, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* TEMP */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-warning {
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* End TEMP */

@media (max-width: 900px) {
    .community-flex {
        flex-direction: column;
        text-align: center;
    }

    .server-grid {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .server-card {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 1000px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   Cookie Floating Card Styling 
------------------------------ */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100%;
    max-width: 320px;
    background-color: #1e1e1e;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid #30363d;
    border-radius: 16px; 
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.cookie-popup.hidden {
    transform: translateY(150%);
    opacity: 0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #3fb950;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: #adbac7; 
    text-align: left;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.cookie-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-accept {
    background-color: #3fb950;
    color: #fff;
}

.btn-accept:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
}

.btn-decline {
    background-color: transparent;
    color: #adbac7;
    border: 1px solid #adbac7;
}

.btn-decline:hover {
    background-color: #da3633;
    color: #fff;
    border-color: #da3633;
    transform: translateY(-2px);
}

@media (max-width: 400px) {
    .cookie-popup {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
    }
}