* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080b14;
    color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8%;
    background: #080b14;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #168cff;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    transition: 0.3s;
}

nav a:hover {
    color: #168cff;
}

.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    background:
        radial-gradient(ellipse at center, #142b52 0%, #080b14 70%);
}

.welcome {
    letter-spacing: 6px;
    color: #8bbdff;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 85px);
    font-weight: 900;
    letter-spacing: 4px;
}

.hero h1 span {
    color: #168cff;
}

.hero h2 {
    color: #8bbdff;
    font-size: 18px;
    letter-spacing: 3px;
    margin-top: 20px;
}

.description {
    color: #b8c4d9;
    margin-top: 20px;
    line-height: 1.7;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.primary {
    background: #168cff;
    color: white;
}

.secondary {
    border: 2px solid #168cff;
    color: white;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px #168cff;
}

section {
    padding: 90px 20px;
    text-align: center;
    border-top: 1px solid #172b49;
}

section h2 {
    color: #168cff;
    margin-bottom: 20px;
}

section p {
    color: #b8c4d9;
}

footer {
    text-align: center;
    padding: 25px;
    color: #718096;
}

/* THUNDERIKZSMP BRANDING */

.logo img {
    width: 110px;
    height: auto;
}

.hero {
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.7)),
        url("images/background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-title {
    width: min(90%, 850px);
    height: auto;
    margin-bottom: 20px;
}

.main-slogan {
    width: min(85%, 650px);
    height: auto;
    margin-bottom: 25px;
}

/* SERVER FEATURES */

.section-title {
    font-size: 35px;
    letter-spacing: 3px;
    color: #168cff;
    margin-bottom: 15px;
}

.section-description {
    color: #b8c4d9;
    margin-bottom: 45px;
}

.features-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 60px;
}

.feature-card {
    background: #101a2b;
    border: 1px solid #168cff;
    border-radius: 12px;
    padding: 25px;
    width: 240px;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    flex-direction: column;
}

.feature-card img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #168cff;
}

/* FEATURE POPUPS */

#feature-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    justify-content: center;
    align-items: center;

    z-index: 999999;
}

.popup-content {
    position: relative;
    width: 85%;
    max-width: 500px;
    padding: 35px;

    background: #101a2b;
    border: 1px solid #168cff;
    border-radius: 15px;

    text-align: center;
    color: white;

    box-shadow: 0 0 30px rgba(22, 140, 255, 0.25);

    animation: popupFade 0.3s ease;
}

.popup-content h2 {
    color: #168cff;
    margin-bottom: 20px;
}

.popup-content p {
    color: white;
    line-height: 1.7;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;

    background: none;
    border: none;
    color: white;

    font-size: 30px;
    cursor: pointer;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* JOIN SERVER */

.server-box {
    max-width: 550px;
    margin: 35px auto 0;
    padding: 30px;
    background: #101a2b;
    border: 1px solid #168cff;
    border-radius: 12px;
}

.server-box h3 {
    color: #168cff;
    margin-bottom: 20px;
}

.ip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #080b14;
    border-radius: 6px;
}

.ip-container span {
    color: white;
    overflow-wrap: anywhere;
}

.ip-container button {
    padding: 10px 15px;
    background: #168cff;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.ip-container button:hover {
    background: #713bff;
}

.server-version {
    margin-top: 20px;
    color: #8bbdff;
}

/* ABOUT SECTION */

.about-content {
    max-width: 750px;
    margin: 30px auto;
    padding: 35px;
    background: #101a2b;
    border: 1px solid #168cff;
    border-radius: 12px;
    line-height: 2;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 17px;
}

.about-content h3 {
    color: #168cff;
    margin-top: 25px;
    letter-spacing: 2px;
}

.about-content {
    max-width: 850px;
    margin: 30px auto;
    padding: 45px;
    background: rgba(16, 26, 43, 0.9);
    border: 1px solid #168cff;
    border-radius: 12px;
    line-height: 2;
}

.about-content p {
    margin-bottom: 22px;
    font-size: 17px;
}

.about-content strong {
    color: #168cff;
}

.click-me {
    display: block;
    font-size: 10px;
    color: #8bbdff;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.75;
}

.rules-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.rule-card {
    background: #101a2b;
    border: 1px solid #168cff;
    border-radius: 12px;
    padding: 30px;
    width: 300px;
    text-align: left;
    transition: 0.3s;
}

.rule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px #168cff;
}

.rule-card h3 {
    color: #168cff;
    margin-bottom: 15px;
    font-size: 17px;
}

.rule-card p {
    color: #b8c4d9;
    line-height: 1.7;
}

.support-box {
    max-width: 750px;
    margin: 35px auto 0;
    padding: 45px;
    background: #101a2b;
    border: 1px solid #168cff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(22, 140, 255, 0.15);
}

.support-box h3 {
    color: #168cff;
    font-size: 25px;
    margin-bottom: 25px;
}

.support-box p {
    color: #b8c4d9;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 16px;
}

.donate-button {
    margin-top: 30px;
    padding: 16px 35px;
    background: #168cff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: not-allowed;
    opacity: 0.8;
    transition: 0.3s;
    cursor: pointer;
}

.donate-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #168cff;
}

.support-box h4 {
    color: #8bbdff;
    margin-top: 30px;
    letter-spacing: 2px;
}

.coming-soon {
    width: min(75%, 450px);
    height: auto;
    margin-top: 10px;
    margin-bottom: 15px;
    animation: comingPulse 2s infinite;
}

@keyframes comingPulse {
    0%, 100% {
        opacity: 0.75;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

.join-coming-soon {
    width: min(55%, 300px);
    height: auto;
    margin: 35px auto;
    display: block;
}

html {
    scroll-behavior: smooth;
}

.btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 170, 255, 0.3);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.2);
}

.fade-section {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-title,
.main-slogan {
    opacity: 0;
    animation: heroFadeIn 1.2s ease forwards;
}

.main-slogan {
    animation-delay: 0.4s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Lexend', sans-serif;
}

h1, h2, h3, h4,
button,
.btn,
nav {
    font-family: 'Goldman', sans-serif;
}

/* THUNDERSTORM LIGHTNING EFFECT */

.lightning {
    position: fixed;
    inset: 0;
    background: rgba(100, 180, 255, 0.18);
    opacity: 0;
    pointer-events: none;
    z-index: 999998;
    animation: lightningFlash 6s 0.75s infinite;
}

@keyframes lightningFlash {
    0%   { opacity: 0; }
    2%   { opacity: 0.8; }
    3%   { opacity: 0.1; }
    4%   { opacity: 0.65; }
    5%   { opacity: 0; }
    100% { opacity: 0; }
}

/* SOUND TOGGLE BUTTON */

#sound-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    padding: 12px 20px;
    background: #101c30;
    color: white;
    border: 1px solid #168cff;
    border-radius: 8px;
    font-family: Goldman, sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

#sound-toggle:hover {
    background: #168cff;
    box-shadow: 0 0 15px #168cff;
}

/* FEATURES SECTION IMAGES ONLY */

#features .feature-card img {
    width: 50%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: 0.3s;
}

#features .feature-card:hover img {
    transform: scale(1.03);
}

/* MAKE FEATURE CARDS THE SAME HEIGHT */

#features .features-container {
    align-items: stretch;
}

/* MODRINTH LINKS */

#features .feature-card a {
    display: inline-block;
    margin-top: 15px;
    color: #168cff;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

#features .feature-card a:hover {
    color: white;
    text-shadow: 0 0 10px #168cff;
}

.donate-button-container {
    margin-top: 20px;
}