html {
    scroll-behavior: smooth;
}

body {
    overflow: auto !important;
    position: relative;
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: rgb(0, 0, 0);
}

@font-face {
    font-family: 'Captain Nelson Script';
    src: url('assets/fonts/captainnelson/CaptainNelson Script.woff2') format('woff2'),
         url('assets/fonts/captainnelson/CaptainNelson Script.woff') format('woff'),
         url('assets/fonts/captainnelson/CaptainNelson Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Captain Nelson SerifRough';
    src: url('assets/fonts/captainnelson/Captain Nelson Serif Rough.woff2') format('woff2'),
         url('assets/fonts/captainnelson/Captain Nelson Serif Rough.woff') format('woff'),
         url('assets/fonts/captainnelson/Captain Nelson Serif Rough.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Captain Nelson SerifInlineRough';
    src: url('assets/fonts/captainnelson/Captain Nelson Serif Inline Rough.woff2') format('woff2'),
         url('assets/fonts/captainnelson/Captain Nelson Serif Inline Rough.woff') format('woff'),
         url('assets/fonts/captainnelson/Captain Nelson Serif Inline Rough.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Abercu Bold';
    src: url('assets/fonts/apercu/Apercu Pro Bold.woff2') format('woff2'),
         url('assets/fonts/apercu/Apercu Pro Bold.woff') format('woff'),
         url('assets/fonts/apercu/Apercu Pro Bold.ttf') format('truetype'),
         url('assets/fonts/apercu/Apercu Pro Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Abercu Regular';
    src: url('assets/fonts/apercu/Apercu Regular.woff2') format('woff2'),
         url('assets/fonts/apercu/Apercu Regular.woff') format('woff'),
         url('assets/fonts/apercu/Apercu Regular.ttf') format('truetype'),
         url('assets/fonts/apercu/Apercu Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Abercu Light';
    src: url('assets/fonts/apercu/Apercu Light.woff2') format('woff2'),
         url('assets/fonts/apercu/Apercu Light.woff') format('woff'),
         url('assets/fonts/apercu/Apercu Light.ttf') format('truetype'),
         url('assets/fonts/apercu/Apercu Light.otf') format('opentype');
}

@font-face {
    font-family: "Font Awesome 5 Solid";
    src: url("assets/fonts/fa/fa-solid-900.woff2") format("woff2"),
         url("assets/fonts/fa/fa-solid-900.woff") format("woff");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Font Awesome 5 Light";
    src: url("assets/fonts/fa/fa-light-300.woff2") format("woff2"),
         url("assets/fonts/fa/fa-light-300.woff") format("woff");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Font Awesome 5 Regular";
    src: url("assets/fonts/fa/fa-regular-400.woff2") format("woff2"),
         url("assets/fonts/fa/fa-regular-400.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Font Awesome 5 Duotone";
    src: url("assets/fonts/fa/fa-solid-900.woff2") format("woff2"),
         url("assets/fonts/fa/fa-solid-900.woff") format("woff");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Font Awesome 5 Brands";
    src: url("assets/fonts/fa/fa-brands-400.woff2") format("woff2"),
         url("assets/fonts/fa/fa-brands-400.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

/* Poppins Thin */
@font-face {
    font-family: 'Poppins Thin';
    src: url('assets/fonts/poppins/Poppins-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Thin';
    src: url('assets/fonts/poppins/Poppins-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

/* Poppins Extra Light */
@font-face {
    font-family: 'Poppins Extra Light';
    src: url('assets/fonts/poppins/Poppins-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Extra Light';
    src: url('assets/fonts/poppins/Poppins-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

/* Poppins Light */
@font-face {
    font-family: 'Poppins Light';
    src: url('assets/fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Light';
    src: url('assets/fonts/poppins/Poppins-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* Poppins Regular */
@font-face {
    font-family: 'Poppins Regular';
    src: url('assets/fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Regular';
    src: url('assets/fonts/poppins/Poppins-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Poppins Medium */
@font-face {
    font-family: 'Poppins Medium';
    src: url('assets/fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Medium';
    src: url('assets/fonts/poppins/Poppins-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

/* Poppins Semi Bold */
@font-face {
    font-family: 'Poppins Semi Bold';
    src: url('assets/fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Semi Bold';
    src: url('assets/fonts/poppins/Poppins-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

/* Poppins Bold */
@font-face {
    font-family: 'Poppins Bold';
    src: url('assets/fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Bold';
    src: url('assets/fonts/poppins/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

/* Poppins Extra Bold */
@font-face {
    font-family: 'Poppins Extra Bold';
    src: url('assets/fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Extra Bold';
    src: url('assets/fonts/poppins/Poppins-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

/* Poppins Black */
@font-face {
    font-family: 'Poppins Black';
    src: url('assets/fonts/poppins/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Black';
    src: url('assets/fonts/poppins/Poppins-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}



/* ===========================================
   BACKGROUND EFFECTS
=========================================== */
#backgroundContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensures nothing overflows outside the viewport */
    z-index: -1; /* Ensure it sits behind the main content */
    pointer-events: auto;
}

#sky {
    position: absolute;
    bottom: 45%;
    width: 100%;
    height: 55%;
    background: linear-gradient(
        rgba(0, 0, 0, 1) 0%, /* Black at the top */
        rgb(52, 0, 88) 20%, /* Deep purple */
        rgb(141, 0, 75) 40%, /* Reddish-purple */
        rgb(228, 62, 1) 60%, /* Bright orange */
        rgba(255, 140, 0, 1) 80%, /* Yellow-orange */
        rgb(255, 187, 0) 100% /* Golden-yellow at the bottom */
    );
    z-index: 1;
}

#star-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
#starsContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    pointer-events: auto; /* Enable click detection */
}
/* Background Stars */
.starlet {
    position: absolute;
    will-change: transform, opacity, box-shadow; /* Animated properties */
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.6);
    animation: shimmer infinite ease-in-out; /* Infinite shimmer animation */
}

@keyframes shimmer {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
}

#shootingStarCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure it is above stars but below UI */
    pointer-events: none; /* Allow clicks to pass through */
}

.shooting-star {
    position: absolute;
    will-change: transform, opacity; /* Animating movement and opacity */
    z-index: 2;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    opacity: 0; /* Initial opacity controlled dynamically */
}

#sun {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 0, 1) 100%);
    box-shadow: 0 0 30px 15px rgba(255, 255, 0, 0.5);
    z-index: 4;
}

#ocean {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background: rgba(14, 0, 143, 0) 100%;
}

#waveCanvasContainer {
    position: relative;
    width: 100%;
    height: 100%;
}

#waveCanvas {
    position: absolute;
    will-change: transform; /* Smooth wave movements */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Waves are on top of reflections */
}

/* Sun Reflection */
#sunReflection {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(255, 255, 0, 0.3) 0%,
        rgba(255, 140, 0, 0.15) 25%,
        rgba(0, 0, 0, 0) 50%
    );
    opacity: 1; /* Initially invisible */
    pointer-events: none;
    z-index: 8; 

}

/* Sky Reflection */
#skyReflection {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 69, 0, 0.2) 0%,
        rgba(255, 20, 147, 0.15) 15%,
        rgba(75, 0, 130, 0.1) 20%,
        rgba(0, 0, 0, 0) 50%
    );
    opacity: 1; /* Initially invisible */
    pointer-events: none;
    z-index: 7; /* Behind waves but above sun reflection */
}

/* ===========================================
   WELCOME SECTION
=========================================== */
#welcome-section {
    text-align: center;
    padding: 10px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.welcome-grid {
    justify-content: center;
    background: linear-gradient(45deg, rgba(15, 15, 15, 0.5), rgba(37, 37, 37, 0.75), rgba(0, 0, 0, 0.75));
    background-size: cover; /* Optional: Ensures gradient covers the container */
    padding: 20px; /* Optional: Adds spacing inside the grid */
    border-radius: 10px; /* Optional: Adds rounded corners */
}


#welcome-section h1 {
    font-size: 3.5rem;
    margin-top: 10px;
    margin-bottom: -20px;
    color: white;
    font-family: 'Captain Nelson Script', cursive;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

#welcome-section p {
    font-family: 'Poppins Light';
    font-weight: italic;
    font-size: 1.5rem;
    margin-top: 10px; /* Moves it closer to the buttons */
    margin-bottom: 80px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    color: white;
}

/* About Us Button Styling */
.about-button {
    display: inline-block; /* Makes it behave like a button */
    background: linear-gradient(45deg, #ff00ea, #55004a); /* Stylish gradient */
    color: white; /* Text color */
    padding: 10px 20px; /* Spacing inside the button */
    margin-top: -10px;
    margin-bottom: 60px;
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline from links */
    font-family: 'Captain Nelson Script', cursive;
    font-size: 1rem; /* Adjust font size */
    font-weight: bold; /* Bold text */
    box-shadow: 0 0 10px rgba(255, 0, 179, 0.5); /* Optional: Glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

/* Hover Effect */
.about-button:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 0 15px rgba(255, 0, 212, 0.7); /* Stronger glow */
    background: linear-gradient(45deg, #550047, #ff00f2); /* Reverse gradient on hover */
}

@media (max-width: 768px) {
    .about-button {
        font-size: 0.9rem; /* Smaller text size */
        padding: 8px 15px; /* Adjust padding */
    }
}

/* ===========================================
   FEATURED CONTENT
=========================================== */
#featured-content {
    text-align: center;
}

#featured-content h2 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: -20px;
    margin-top: 20px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

#featured-content p {
    font-family: 'Poppins Light';
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.content-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(45deg, rgba(15, 15, 15, 0.75), rgba(37, 37, 37, 0.75), rgba(0, 0, 0, 0.75));
    background-size: cover; /* Optional: Ensures gradient covers the container */
    padding: 20px; /* Optional: Adds spacing inside the grid */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.content-card {
    background: rgb(70, 70, 70);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    width: 450px;
    box-shadow: 0 0 10px rgba(133, 0, 122, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(133, 0, 122, 0.7);
}

.content-card h3 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.content-card p {
    font-family: 'Poppins Light';
    font-size: 1rem;
    color: white;
    margin-bottom: 15px;
}

.content-card a {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-decoration: none;
    color: #ff9900;
    font-weight: bold;
}

/* Target for Indicators */
.indicator-target {
    position: relative; /* Ensures absolute children are positioned relative to the section */
    overflow: visible; /* Prevents children from being clipped */
    top: 0;
    left: 0;
    width: 100%;
    height: 10px; /* Increase height for debugging visibility */
    /*background-color: rgba(255, 0, 212, 0.5);  Temporary visible red background for debugging */
    pointer-events: none; /* Prevent interfering with interactions */
    margin-bottom: -20px;
    z-index: 1;
}

/* General Indicator Styling */
.section-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-indicator {
    position: relative; /* Positioned relative to the section */
    margin-bottom: 10px;
    opacity: 1;
}

.section-break {
    position: relative; /* Positioned relative to the section */
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

/* Visible Indicator */
.indicator-visible {
    opacity: 1;
    pointer-events: auto;
}

.bottom-indicator img {
    width: 40px;
    height: auto;
}

.section-indicator img{
    width: 80px;
    height: auto;
}

.indicator-text {
    margin-top: 5px;
    font-size: 1rem;
    color: white;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease, font-size 0.3s ease, opacity 0.3s ease;
    background: linear-gradient(45deg, #161616de, #353535dc); /* Gradient background */
    color: white; /* Text color */
    border-top: 2px solid #525252; /* Optional: Divider line at the top */
    border-bottom: 2px solid #525252; /* Optional: Divider line at the bottom */
}

.section-title.enlarging {
    font-size: 3rem;
    transform: scale(1.1);
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        top: -40px;
    }

    .indicator-text {
        font-size: 0.9rem;
    }
}


/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* =====================
ABOUT SECTION
======================== */

/* About Section Styling */
#about {
    text-align: center; /* Center-align text */
}

.about-container {
    background: linear-gradient(45deg, #161616, #353535); /* Gradient background */
    border-top: 2px solid #525252; /* Optional: Divider line at the top */
    border-bottom: 2px solid #525252; /* Optional: Divider line at the bottom */
    padding: 50px 20px; /* Space inside the section */
}

#about h2 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    margin-top: -60;
    margin-bottom: 20px;
    margin-top: -10px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

#about h3 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white; /* Text color */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

#about p {
    font-family: 'Poppins Regular';
    font-size: 1.1rem; /* Slightly larger than default text */
    line-height: 1.6; /* Improve readability */
    margin-bottom: 20px; /* Space below paragraphs */
    color: white; /* Text color */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

a.gradient-link {
    display: inline-block; /* Enables scaling effect */
    text-decoration: none; /* Removes underline */
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: bold;
    color: transparent; /* Makes the text transparent */
    background: linear-gradient(90deg, #0077ff, #00ffcc); /* Initial gradient */
    background-clip: text;
    -webkit-background-clip: text; /* Safari/Chrome support */
    padding: 2px 4px; /* Makes the clickable area slightly larger */
    border-radius: 4px; /* Optional, to soften the edges */
    transition: background 0.3s ease, transform 0.3s ease; /* Smooth hover transitions */
}

a.gradient-link:hover {
    background: linear-gradient(90deg, #00ffcc, #0077ff); /* Reverse gradient */
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.02); /* Subtle size increase on hover */
}

.brand-highlight {
    font-family: 'Poppins Bold', sans-serif; /* Or any other font */
    font-weight: italic;
    font-size: 1.1rem; /* Slightly larger than the paragraph font size */
    color: #ffffff; /* Custom color to make it stand out */
    letter-spacing: 0.5px; /* Optional, for subtle spacing */
}

/* Responsive Design */
@media (max-width: 768px) {
    #about {
        padding: 30px 15px;
    }

    #about h2 {
        font-size: 1.5rem;
    }

    #about p {
        font-size: 1rem;
    }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    background: linear-gradient(90deg, #0077ff, #00ffcc);
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #00ffcc, #0077ff);
}

/* ===========================================
   PROJECT UPDATES
=========================================== */
#project-updates {
    text-align: center;
}

#project-updates h2 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: -10px;
    margin-top: -10px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

#project-updates p {
    font-family: 'Poppins Light';
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.project-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(45deg, rgba(15, 15, 15, 0.75), rgba(37, 37, 37, 0.75), rgba(0, 0, 0, 0.75));
    background-size: cover; /* Optional: Ensures gradient covers the container */
    padding: 20px; /* Optional: Adds spacing inside the grid */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.project-card {
    background: rgb(70, 70, 70);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    width: 500px;
    box-shadow: 0 0 10px rgba(133, 0, 122, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(133, 0, 122, 0.7);
}

.project-card h3 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.project-card p {
    font-family: 'Poppins Light';
    font-size: 1rem;
    color: white;
    margin-bottom: 15px;
}

.project-card a {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-decoration: none;
    color: #ff9900;
    font-weight: bold;
}

/* ===========================================
   SERVER CONTENT
=========================================== */
#server-content {
    text-align: center;
}

#server-content h2 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: -10px;
    margin-top: -10px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

#server-content p {
    font-family: 'Poppins Light';
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.server-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(45deg, rgba(15, 15, 15, 0.75), rgba(37, 37, 37, 0.75), rgba(0, 0, 0, 0.75));
    background-size: cover; /* Optional: Ensures gradient covers the container */
    padding: 20px; /* Optional: Adds spacing inside the grid */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.server-card {
    background: rgb(70, 70, 70);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    width: 500px;
    box-shadow: 0 0 10px rgba(133, 0, 122, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(133, 0, 122, 0.7);
}

.server-card h3 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

/* Subtitle Styling */
.server-card h4 {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-size: 1.5rem; /* Slightly smaller than the title */
    font-weight: bold; /* Makes it less bold than the title */
    color: white; /* Light gray to contrast the title */
    margin: 5px 0 10px 0;
}

@media (max-width: 768px) {
    .content-card h4 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .content-grid .project-grid .server-grid {
        flex-direction: column; /* Stack cards vertically on smaller screens */
    }
}

.server-card p {
    font-family: 'Poppins Light';
    font-size: 1rem;
    color: white;
    margin-bottom: 15px;
}

.server-card a {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-decoration: none;
    color: #ff9900;
    font-weight: bold;
}

/* ===========================================
   FOOTER
=========================================== */
/* Footer Styling */
footer {
    position: relative;
    font-size: 0.8rem;
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    background: #000;
    padding: 20px;
    width: 100%;
    z-index: 50;
    text-align: center;
}


.footer-logo {
    position: absolute; /* Position the logo independently of the text */
    left: 30%; /* Position the logo 20px from the left edge */
    top: 50%; /* Vertically center relative to the footer */
    transform: translateY(-50%); /* Adjust for perfect centering */
    height: auto; /* Adjust logo size */
    width: auto; /* Maintain aspect ratio */
}

.footer-text {
    margin: 0; /* Remove default margins */
    left: 50%; /* Position the logo 20px from the left edge */
}

footer a {
    color: rgb(255, 200, 0);
    text-decoration: underline;
}

footer a:hover {
    color: rgb(255, 255, 255);
}

/* ============ XENFORO START */ssssssaaaaaaaa

header, nav, section {
    display: block;
}

.pageWrapper--fixed{
    width: 100%;
    position: relative;
    left: 0;
    transition: max-width .2s, ease-in left .2s;
}

.p-pageWrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-grow: 1;
    z-index: 10;
}

@media (min-width: 901px) {
    .p-pageWrapper {
        margin-top: 0px;
    }
}

.p-header {
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(45deg, #161616de, #353535dc); /* Gradient background */
    border-top: 2px solid #525252; /* Optional: Divider line at the top */
    border-bottom: 2px solid #525252; /* Optional: Divider line at the bottom */
    padding-bottom: 15px;
}

.p-header-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    width: calc(100% - 40px);
    position: relative;
}

.p-header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
    max-width: 100%;
    font-family: 'Captain Nelson Script', cursive;
    font-size: 3rem; /* Keep smaller than title */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    color: white;
}

.p-header-content a {
    color: white;
}

.p-header-text {
    margin-top: -20px;
    margin-bottom: -20px;
}

.p-header-subtitle {
    font-family: 'Poppins Extra Light';
    font-size: 1.5rem;
    margin-top: -60px; /* Moves it closer to the buttons */
    margin-bottom: -30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    color: white;
}

.p-header-logo {
    vertical-align: middle;
    margin-top: 20px;
    margin-right: 20px;
}

.p-pageWrapper .p-navSticky{
    top: 40px !important;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
    border-bottom: 1px solid #ddd; /* Optional: Adds a subtle border */
}

@supports (position: sticky) or (position: -webkit-sticky) {
    .p-pageWrapper .p-navSticky{
        position: webkit sticky;
        position: sticky;
        top: 0;
    }
}

.p-nav {
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(45deg, #161616de, #353535dc); /* Gradient background */
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    transition: ease-in .15s all;
}

.p-nav-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    width: calc(100% - 40px);
    transition: max-width .2s;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.p-nav .p-nav-menuTrigger {
    display: none;
    vertical-align: middle;
    align-self: center;
    margin-right: 5px;
    color: inherit;
    padding: 0 8px;
}

.button.button--plain, button.button a.button.button--plain {
    background: none;
    color: rgba(255, 255, 255, 0.7);
    border: none;
}

[type=reset], [type=submit], button, html [type=button] {
    -webkit-appearance: button;
}

.p-nav-menuTrigger {
    position: relative;
}

.rippleButton {
    position: relative;
}

.rippleButton .ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: inherit;
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}

.button, button.button a.button {
    display: inline-block;
    border: 1px solid transparent;
    -webkit-transition: background-color .1s ease, border-color .1s ease, color .1s ease;
    transition: background-color .1s ease, border-color .1s ease, color .1s ease;
    -webkit-transition: background-color .2s ease;
    transition: background-color .2s ease;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    text-align: center;
    outline: none;
    line-height: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: content-box;
    -webkit-appearance: none;
    will-change: box-shadow;
    transition: all .3s cubic-bezier(.25, .8, .25, 1);
    border: none;
    white-space: nowrap;
    text-decoration: none !important;
    vertical-align: bottom;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(72, 168, 245, 0.1);
}

button, input, optgroup, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.4;
}

button, input, optgroup, select, textarea {
    font-family: sans-serif;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, hr, input {
    overflow: visible;
}

button {
    appearance: auto;
    text-rendering: auto;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: center;
    align-items: flex-start;
    cursor: default;
    box-sizing: border-box;
    margin: 0em;
    padding-block: 1px;
    padding-inline: 6px;
    border-width: 2px;
    border-style: outset;
    border-color: buttonborder;
    border-image: initial;
}

.button>.button-text, button.button a.button>.button-text {
    border-right: 1px solid transparent;
}

.button .button-text, button.button a.button .button-text {
    display: inline-flex;
    align-items: center;
}

@media (min-width: 900px) {
    .p-nav-inner .p-header-logo {
        display: none;
    }
}

.p-nav-inner .p-header-logo {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.p-header-logo {
    vertical-align: middle;
}

.p-nav-scroller {
    margin-right: auto;
    max-width: 100%;
}

.hScroller {
    overflow-y: hidden;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-overflow-scrolling: touch;
}

.hScroller-scroll.is-calculated {
    overflow-x: scroll;
    padding-bottom: 30px;
    margin-bottom: -30px;
}

.hScroller-scroll {
    display: block;
    white-space: nowrap;
    word-wrap: normal;
    overflow-x: hidden;
}

.p-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0;
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

li {
    display: list-item;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}

div {
    display: block;
    unicode-bidi: isolate;
}

.p-nav-list .p-navEl {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 50px;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}

.rippleButton {
    position: relative;
}

.p-navEl {
    display: inline-flex;
    align-items: center;
}

.p-navEl:before, .p-navEl:after {
    content: " ";
    display: table;
}

.p-nav a:not(.button) {
    color: inherit;
}

.p-nav-list .p-navEl-link, .p-nav-list .p-navEl-splitTrigger {
    padding-top: 16px;
    padding-bottom: 16px;
    display: inline-flex;
    align-items: center;
}

.p-nav-list .p-navEl-link {
    padding: 0 16px;
}

body .p-navEl-link, body .offCanvasMenu-link {
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    -webkit-font-smoothing: initial;
}

.p-navEl-link {
    float: left;
    text-decoration: none !important;
    max-height: 100%;
}

a {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    text-decoration: none;
}

a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id]:before, .offCanvasMenu-link:not(.mdi):not(.fa)[data-nav-id]:before {
    content: "\F0256";
    display: inline-block;
    text-align: center;
}

.p-navEl-link:before, .offCanvasMenu-link:before {
    display: inline-block;
    font: normal normal normal 18px / 1 "Material Design Icons";
    font-size: 110%;
    font-weight: normal;
    line-height: inherit;
    width: auto;
    font-size: 18px !important;
    padding-right: 4px;
}

.p-nav-list .p-navEl.is-selected {
    color: #8BC34A;
    font-weight: 600;
    background: #42464d;
}

.hScroller-action.hScroller-action--end {
    right: 0;
    justify-content: flex-end;
    text-align: right;
}

.hScroller-action {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    padding: 0 5px;
    display: none;
    cursor: pointer;
}

.hScroller-action.hScroller-action--start {
    left: 0;
    justify-content: flex-start;
    text-align: left;
}

.p-sectionLinks {
    font-size: 1.3rem;
    color: #bcc0c7;
    background: #42464d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: ease-in .15s all;
}

.p-sectionLinks .pageContent {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;
    min-height: 40px;
    height: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    width: calc(100% - 40px);
    transition: max-width .2s;
}

.p-sectionLinks-list .p-navEl-link, .p-sectionLinks-list .p-navEl-splitTrigger {
    padding-top: 2px;
    padding-bottom: 2px;
}

.p-sectionLinks-inner {
    margin-right: auto;
}

.p-sectionLinks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
}

.p-sectionLinks-list .p-navEl {
    font-size: 1.3rem;
    height: 40px;
}

.p-sectionLinks-list .p-navEl-link {
    padding: 0 8px;
}

.p-sectionLinks-list>li {
    display: inline-block;
}

.p-sectionLinks .hScroller-action.hScroller-action--end {
    background: #42464d;
    background: linear-gradient(to right, rgba(66, 70, 77, 0) 0%, #42464d 33%);
}

.p-sectionLinks .hScroller-action.hScroller-action--start {
    background: #42464d;
    background: linear-gradient(to right, #42464d 66%, rgba(66, 70, 77, 0) 100%);
}

.p-navEl:before, .p-navEl:after {
    content: " ";
    display: table;
}

.p-navEl:after {
    clear: both;
}

.p-nav-opposite {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.p-sectionLinks .p-nav-opposite a:not(.button) {
    color: inherit;
}

.p-navgroup-link:first-of-type {
    border-top-left-radius: 4px;
    border-left: none;
}

a.uix_sidebarTrigger__component {
    display: inline-flex;
    align-items: center;
}

.p-navgroup-link {
    float: left;
    padding: 8px;
    display: inline-flex;
    align-items: center;
}

a.uix_sidebarTrigger__component i {
    font-size: 18px;
    margin-left: -7px;
}

.far, .fa, .fas, .fab, .fal {
    display: inline-block;
    font: normal normal normal 18px / 1 "Material Design Icons";
    font-size: inherit;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
    width: auto;
}

.uix_sidebarTrigger--phrase {
    display: none;
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="thxpress"]:before {
    font-family: "Font Awesome 5 Regular"; /* Or the correct font-family */
    content: "\f1ea"; /* Unicode for 'newspaper' */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="th_donate"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f06b"; /* Unicode for 'gift' */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="home"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f015"; /* Unicode for 'home' */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="forums"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f57d"; /* Unicode for 'globe' */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="projects"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f14e"; /* Unicode for 'compass' */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="supportus"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f004"; /* Unicode for 'heart' */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="contact"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f0e0"; /* Unicode for 'envelope' */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="featured"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f005"; /* Star icon */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="projectUpdates"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f1ea"; /* Newspaper icon */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="servers"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f233"; /* Server icon */
}

.p-navEl-link:not(.mdi):not(.fa)[data-nav-id="aboutUs"]:before {
    font-family: "Font Awesome 5 Regular";
    content: "\f0c0"; /* Users icon */
}

/* Social Media Section */
#social-media {
    display: inline-block;
    align-items: center;
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px; /* Adjust spacing above Discord button */
    text-align: center;
    justify-self: center; /* Aligns the Discord section in the grid */
}

#discord-button {
    width: 80px;
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#discord-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#discord-text {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Youtube */

#youtube-button {
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#youtube-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#youtube-text {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Facebook */

#facebook-button {
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#facebook-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#facebook-text {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Instagram */

#instagram-button {
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#instagram-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#instagram-text {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Twitter */

#twitter-button {
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#twitter-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#twitter-text {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
    font-family: 'Captain Nelson SerifInlineRough', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}