body {
    margin: 0;
    height: 100vh;
    background: #2c2f33; /* Discord's dark background color */
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Bold weight for Discord-like typography */
    color: white;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0; /* Behind content */
}

header {
    position: relative;
    z-index: 10;
    background: transparent; /* Fully transparent header */
    padding: 1rem;
    text-align: center;
    pointer-events: auto;
}

header h1 {
    margin: 0;
    font-size: 4rem;
    color: #7289da; /* Discord's blurple color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;  
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
}

header nav a:hover {
    color: #7289da; /* Blurple on hover */
    text-decoration: none;
}

header nav a.active {
    color: #7289da; /* Highlight the active page */
    font-weight: 800; /* Slightly bolder for emphasis */
}

main {
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

main h2, main p, .cta-button, .terms-button {
    pointer-events: auto;
}

main h2 {
    font-size: 3rem;
    color: #7289da;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

main p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 1rem auto;
    color: #dcddde; /* Discord's light text color */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    position: relative;
    padding: 15px 30px;
    border-radius: 7px;
    border: 1px solid rgb(114, 137, 218);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.2s ease-in;
    pointer-events: auto;
}

.cta-button:hover {
    background: rgb(114, 137, 218);
    box-shadow: 0 0 150px 5px rgb(114, 137, 218);
    transition: all 0.2s ease-out;
}

.cta-button:hover::before {
    -webkit-animation: sh02 0.5s 0s linear;
    -moz-animation: sh02 0.5s 0s linear;
    animation: sh02 0.5s 0s linear;
}

.cta-button::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    -o-transform: skewX(-20deg);
    transform: skewX(-20deg);
}

@keyframes sh02 {
    from {
        opacity: 0;
        left: 0%;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
        left: 100%;
    }
}

.cta-button:active {
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease-in;
}

footer {
    position: relative;
    z-index: 10;
    background: transparent; /* Fully transparent footer */
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    pointer-events: auto;
}

/* Container for cards */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Space between cards */
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    padding: 2rem;
    position: relative;
    z-index: 5; /* Ensure cards are above the particle canvas */
    pointer-events: none; /* Allow clicks to pass through container */
}

/* Container for wide card */
.container-wide {
    display: flex;
    flex-direction: column; /* Stack card and arrow vertically */
    justify-content: center;
    align-items: center;
    padding: 0 2rem 2rem 2rem;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

/* Card styling */
.card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border: 1px solid #4d4d4d; /* Light gray border */
    border-radius: 10px; /* Rounded corners for Discord-like aesthetic */
    padding: 2rem;
    max-width: 300px; /* Limit card width */
    text-align: center;
    pointer-events: auto; /* Enable clicks on cards */
    backdrop-filter: blur(5px); /* Optional: Adds a frosted glass effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Wide card styling */
.card-wide {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #4d4d4d;
    border-radius: 10px;
    padding: 2.2rem; /* Slightly increased padding */
    width: 100%;
    max-width: 1000px; /* Slightly increased width */
    text-align: center;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Terms card styling */
.terms-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border: 1px solid #4d4d4d; /* Light gray border */
    border-radius: 10px; /* Rounded corners */
    padding: 2rem;
    max-width: 600px; /* Wider than regular cards for readability */
    width: 100%;
    text-align: left; /* Align text left for better list readability */
    pointer-events: auto;
    backdrop-filter: blur(5px); /* Frosted glass effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 4px 15px #444444; /* Subtle shadow */
}

.terms-card h2 {
    font-size: 2rem; /* Slightly smaller than main h2 for hierarchy */
    color: #7289da; /* Discord blurple */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    text-align: center; /* Center the heading */
}

.terms-card ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.terms-card li {
    font-size: 1.1rem;
    color: #dcddde; /* Discord light text */
    font-weight: 400; /* Less bold for readability */
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem; /* Space for custom bullet */
}

.terms-card li::before {
    content: '•'; /* Custom bullet */
    color: #7289da; /* Blurple bullet */
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

/* Stats header for back button */
.stats-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

/* Stats container for mini cards */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Space between mini cards */
    flex-wrap: wrap;
}

/* Mini card styling */
.mini-card {
    max-width: 300px; 
    padding: 1.5rem; 
}

/* Hover effect for cards */
.card:hover, .card-wide:hover, .mini-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 4px 15px #444444; /* Subtle shadow */
}

/* Card header to align icon and title */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and title */
    justify-content: center;
    margin-bottom: 1rem; /* Space below header */
}

/* Adjust icon size and alignment */
.card-header i {
    font-size: 1.5rem; /* Adjust icon size */
    line-height: 1; /* Ensure proper vertical alignment */
}

/* Card heading */
.card-header h3 {
    font-size: 1.8rem;
    color: #7289da; /* Discord blurple */
    margin: 0; /* Remove default margin to align with icon */
}

/* Card paragraph */
.card p, .card-wide p {
    font-size: 1rem;
    color: #dcddde; /* Discord light text */
    margin: 0 0 1.5rem;
    font-weight: 400; /* Less bold for readability */
}

/* Mini card paragraph */
.mini-card p {
    font-size: 2.3rem; /* Increased size for mini-card */
    color: #dcddde; /* Discord light text */
    margin: 0 0 1.5rem;
    font-weight: 400; /* Less bold for readability */
}

/* Card button */
.card button, .card-wide button, .mini-card button, .stats-header button {
    background: #7289da; /* Discord blurple */
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    pointer-events: auto;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.card button:hover, .card-wide button:hover, .mini-card button:hover, .stats-header button:hover {
    background: #677bc4; /* Darker blurple on hover */
}

/* Terms section styling */
#terms {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px); /* Match main section height */
}

/* Terms buttons styling */
.terms-button {
    background: #7289da; /* Discord blurple */
    border: none;
    border-radius: 5px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    margin: 0.5rem; /* Space between buttons */
}

.terms-button:hover {
    background: #677bc4; /* Darker blurple on hover */
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 4px 15px #444444; /* Subtle shadow */
}

/* Status dot styling */
.status-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: #6bce70; /* Discord's green for online status */
    border-radius: 50%; /* Make it circular */
    margin-right: 8px; /* Space between dot and text */
    vertical-align: middle; /* Align with text */
    animation: pulse 1.5s infinite ease-in-out; /* Apply pulsing animation */
}

/* Pulsing animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Additional CSS for How it Works page - Add to your existing styles.css */

/* How it Works section */
#how-it-works {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
}

/* Steps container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Step card styling */
.step-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #4d4d4d;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    pointer-events: auto;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.2);
    border-color: #7289da;
}

/* Step number styling */
.step-number {
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.3);
}

/* Step content */
.step-content {
    flex: 1;
}

.step-content .card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 1rem;
    color: #dcddde;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dcddde;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.feature-list li i {
    color: #43b581;
    font-size: 0.8rem;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Feature card styling */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #4d4d4d;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.15);
}

.feature-card .card-header {
    margin-bottom: 1rem;
}

.feature-card .card-header i {
    font-size: 2.5rem;
    color: #7289da;
    margin-bottom: 0.5rem;
}

.feature-card .card-header h3 {
    font-size: 1.3rem;
    color: #7289da;
    margin: 0;
}

.feature-card p {
    font-size: 1rem;
    color: #dcddde;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

/* Responsive design for How it Works */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        align-self: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    #how-it-works .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .step-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}