@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #9d50bb;
    --secondary-color: #6e48aa;
    --bg-dark: #0f0f13;
    --text-light: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #9d50bb, #6e48aa);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #9d50bb;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #6e48aa;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #4776E6;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Helper class for vertical stacking content */
.container-block {
    display: block !important;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.btn-connect {
    padding: 10px 25px;
    background: var(--gradient-primary);
    border-radius: 30px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(157, 80, 187, 0.4);
    transition: all 0.3s ease;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(157, 80, 187, 0.6);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b8b8b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 30px rgba(157, 80, 187, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-main:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(157, 80, 187, 0.6);
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    background: linear-gradient(to right, #fff, #9d50bb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: rgba(157, 80, 187, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Increased min-width for wider cards like screenshot */
    gap: 30px;
    margin-bottom: 50px;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    padding-bottom: 20px;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: rgba(157, 80, 187, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 30px auto 15px auto;
    padding: 3px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(157, 80, 187, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-img i {
    font-size: 3rem;
    color: #fff;
}

.member-info {
    padding: 10px 20px;
}

.member-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-role {
    color: #9d50bb;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Level Title - Added to match screenshot */
.level-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 25px 0;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    text-align: left;
    line-height: 1.2;
}

/* Role Badges - Added to match screenshot */
.role-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: 1px;
}

.role-owner {
    color: #FFD700;
    border: 1px solid #FFD700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.role-admin {
    color: #ff4757;
    border: 1px solid #ff4757;
    background: rgba(255, 71, 87, 0.1);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.1);
}

.role-mod {
    color: #2ed573;
    border: 1px solid #2ed573;
    background: rgba(46, 213, 115, 0.1);
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.1);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid var(--card-border);
    margin-top: 100px;
}

/* Scroll Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Rules & Philosophy Styles */
.rules-section {
    min-height: 100vh;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    border-color: rgba(157, 80, 187, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(157, 80, 187, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.5rem;
    color: #9d50bb;
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.feature-list li i {
    color: #9d50bb;
    font-size: 0.8rem;
}

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

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: #5865F2; /* Discord Color */
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.btn-discord:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(88, 101, 242, 0.7);
    background: #4752c4;
}

.team-discord-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    width: 36px;
    height: 36px;
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    transform: translateZ(20px);
    text-decoration: none;
}

.team-discord-link:hover {
    transform: translateZ(25px) scale(1.1);
    background: #5865F2;
    color: #fff;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

/* Tabs Styles */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(157, 80, 187, 0.4);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Detailed Rules Styles */
.intro-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 30px !important;
}

.rules-block h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-block h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.rules-list {
    list-style: none;
    padding-left: 15px;
}

.rules-list li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.rules-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9d50bb;
    font-weight: bold;
}

.rules-list strong {
    color: #fff;
}
