/* ===== CSS Variables ===== */
:root {
    --primary: #7289da;
    /* Discord blue */
    --primary-dark: #5b73c4;
    --secondary: #ff6b6b;
    --accent: #4ecdc4;

    --bg-primary: #0a0f1c;
    --bg-secondary: #0f1729;
    --bg-tertiary: #141f36;

    --text-primary: #ffffff;
    --text-secondary: #a0b3d6;
    --text-muted: #6b7b9c;

    --border: #1e2a4a;
    --glass: rgba(255, 255, 255, 0.05);
    --glow: 0 0 20px rgba(114, 137, 218, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: all 0.3s ease;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(114, 137, 218, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 20%);
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Loading Animation ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.discord-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.discord-logo {
    font-size: 4rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== Header & Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.site-nav a:hover {
    color: var(--text-primary);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

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

.btn-portfolio {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(114, 137, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.server-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 300px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.preview-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.server-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.server-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.server-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.preview-channels {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.channel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-secondary);
}

.channel:hover {
    background: var(--glass);
    color: var(--text-primary);
}

.channel.active {
    background: var(--glass);
    color: var(--text-primary);
}

.channel i {
    font-size: 0.875rem;
}

.preview-members {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}

.member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.member-avatar1 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-image: url("https://i.postimg.cc/HxcBy6GZ/discord-pfp.png");
    position: relative;
}

.member.online .member-avatar1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    border: 2px solid var(--bg-tertiary);
}

.member.idle .member-avatar1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #faa61a;
    border: 2px solid var(--bg-tertiary);
}

@keyframes float {

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

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

.member-avatar2 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
}

.member.online .member-avatar2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    border: 2px solid var(--bg-tertiary);
}

.member.idle .member-avatar2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #faa61a;
    border: 2px solid var(--bg-tertiary);
}

@keyframes float {

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

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

.member-avatar3 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
}

.member.online .member-avatar3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    border: 2px solid var(--bg-tertiary);
}

.member.idle .member-avatar3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #faa61a;
    border: 2px solid var(--bg-tertiary);
}

@keyframes float {

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

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


/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(114, 137, 218, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-illustration {
    position: relative;
    width: 300px;
    height: 300px;
}

.illustration-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border);
}

.central-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.user {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--border);
    animation: orbit 20s linear infinite;
}

.user-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.user-2 {
    top: 20%;
    right: 20%;
    animation-delay: -5s;
}

.user-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.user-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ===== Join Section ===== */
.join {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.join-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.join-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(114, 137, 218, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.join-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.join-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.join-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-elements {
    position: relative;
    width: 200px;
    height: 200px;
}

.element {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.element-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: -4s;
}

.element-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: -6s;
}

/* ===== Footer ===== */
.site-footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-content p {
    color: var(--text-secondary);
    max-width: 400px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {

    .hero-inner,
    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual,
    .about-visual {
        order: -1;
    }

    .join-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {

    .hero-actions,
    .about-actions {
        flex-direction: column;
    }

    .server-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .join-card {
        padding: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .server-preview {
        width: 100%;
    }

    .community-illustration {
        width: 250px;
        height: 250px;
    }
}