:root {
    --midnight-purple: #1a0b2e;
    --vibrant-purple: #7b2cbf;
    --light-purple: #e0d4f5;
    --white: #ffffff;
    --text-dark: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    overflow: hidden;
    /* Prevent scrolling while welcome screen is active */
}

/* =========================================================================
   Welcome Screen 
   ========================================================================= */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--midnight-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: var(--white);
    /* Smooth slide-up transition when hiding */
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.welcome-screen.hide {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.welcome-text {
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    /* Fade in the text nicely */
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.5s;
}

.brand-name {
    font-weight: 900;
    font-size: 4.5rem;
    letter-spacing: 6px;
    background: linear-gradient(90deg, var(--white), var(--vibrant-purple), var(--white));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-top: 15px;
    animation: shine 3s linear infinite;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* =========================================================================
   Main Content & Navbar
   ========================================================================= */
.main-content {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 85px;
    background-color: var(--midnight-purple);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(26, 11, 46, 0.3);
    position: relative;
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.logo-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vibrant-purple), var(--white));
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.5);
    animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
    from {
        box-shadow: 0 0 10px rgba(123, 44, 191, 0.4);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 25px rgba(123, 44, 191, 0.8);
        transform: scale(1.05);
    }
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--white), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-symbol {
    display: flex;
    height: 100%;
    margin-left: 20px;
    gap: 12px;
    transform: skewX(-25deg);
}

.brand-symbol .slash {
    display: block;
    width: 14px;
    height: 100%;
    background-color: var(--white);
    opacity: 0.2;
    animation: runSlash 1.2s infinite linear;
}

.brand-symbol .slash:nth-child(1) {
    animation-delay: 0s;
}

.brand-symbol .slash:nth-child(2) {
    animation-delay: 0.2s;
}

.brand-symbol .slash:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes runSlash {
    0% {
        opacity: 0.1;
        box-shadow: none;
        background-color: var(--white);
    }

    20% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
        background-color: var(--white);
    }

    100% {
        opacity: 0.1;
        box-shadow: none;
        background-color: var(--white);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--vibrant-purple);
    transition: width 0.3s ease;
}

.nav-btn:hover {
    color: var(--light-purple);
}

.nav-btn:hover::after {
    width: 100%;
}

.primary-btn {
    background-color: var(--vibrant-purple);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
}

.primary-btn::after {
    display: none;
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.6);
    background-color: #9042d8;
    color: var(--white);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, var(--light-purple) 0%, var(--white) 60%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.05) 0%, transparent 60%);
    animation: rotateBg 30s linear infinite;
    z-index: 0;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 5rem;
    font-weight: 900;
    color: var(--midnight-purple);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    background-color: var(--midnight-purple);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(26, 11, 46, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(26, 11, 46, 0.4);
    background-color: var(--vibrant-purple);
}

.action-btn:active {
    transform: translateY(0) scale(0.95);
}

/* =========================================================================
   Discord Floating Widget
   ========================================================================= */
.discord-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--midnight-purple), var(--vibrant-purple));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 12px 25px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(26, 11, 46, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    outline: none;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.discord-btn:hover::before {
    left: 100%;
}

.discord-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(123, 44, 191, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.discord-icon {
    width: 24px;
    height: 24px;
    animation: bounceIcon 2s infinite ease-in-out;
}

@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.discord-text {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
}

.discord-panel {
    background-color: var(--midnight-purple);
    width: 320px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.discord-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.discord-panel.hidden {
    display: none;
}

.discord-header {
    background: linear-gradient(90deg, #10061e, var(--midnight-purple));
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.discord-header h3 {
    color: var(--white);
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.discord-members {
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discord-members::-webkit-scrollbar {
    width: 6px;
}

.discord-members::-webkit-scrollbar-thumb {
    background-color: var(--vibrant-purple);
    border-radius: 3px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.member-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.member-avatar-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
}

.member-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #333;
    object-fit: cover;
    border: 2px solid var(--midnight-purple);
}

.member-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--midnight-purple);
}

.status-online {
    background-color: #23a559;
    box-shadow: 0 0 5px #23a559;
}

.status-idle {
    background-color: #f0b232;
    box-shadow: 0 0 5px #f0b232;
}

.status-dnd {
    background-color: #f23f43;
    box-shadow: 0 0 5px #f23f43;
}

.status-offline {
    background-color: rgba(255, 255, 255, 0.3);
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.member-state-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.loading-text {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}

/* =========================================================================
   Responsive Styles (Mobile & Tablets)
   ========================================================================= */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .welcome-text {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 15px 20px;
        height: auto;
        flex-direction: column;
        gap: 15px;
    }

    .nav-brand {
        height: 45px;
    }

    .logo-circle {
        width: 35px;
        height: 35px;
    }

    .brand-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .brand-symbol {
        margin-left: 10px;
        gap: 8px;
        transform: skewX(-20deg);
    }

    .brand-symbol .slash {
        width: 10px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        font-size: 0.95rem;
    }

    .primary-btn {
        padding: 8px 20px;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .action-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .discord-widget-container {
        bottom: 15px;
        right: 15px;
    }

    .discord-panel {
        width: calc(100vw - 30px);
        max-width: 320px;
    }
}