/* Variables */
:root {
    --primary: #7540db;
    --primary-light: #8a53f2;
    --primary-dark: #5d2bb1;
    --secondary: #f04e98;
    --light: #ffffff;
    --light-gray: #f8f9fc;
    --gray: #e0e0e0;
    --dark-gray: #757575;
    --dark: #222236;
    --black: #14141e;
    --accent: #ff9100;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    --text-primary: #14141e;
    --text-secondary: #4f4f6f;
    --text-tertiary: #79798f;
    --transition: all 0.25s ease;
    --border-radius: 8px;
    --card-radius: 12px;
    --box-shadow: 0 5px 20px rgba(20, 20, 30, 0.08);
    --button-shadow: 0 4px 12px rgba(117, 64, 219, 0.15);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header & Navigation */
header {
    background-color: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    height: 70px;
}

header.scrolled {
    height: 60px;
    background-color: rgba(20, 20, 30, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 101;
}

.logo img {
    height: 32px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a {
    position: relative;
    padding: 0.6rem 0.8rem;
    color: var(--light);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a i {
    margin-right: 6px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--primary-light);
    background-color: rgba(117, 64, 219, 0.1);
}

/* Dropdown menu style */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: var(--dark);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 101;
    border-radius: var(--border-radius);
    margin-top: 5px;
    border-top: 2px solid var(--primary);
    padding: 0.5rem;
    animation: fadeIn 0.2s ease;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 7px 6px;
    border-style: solid;
    border-color: transparent transparent var(--primary) transparent;
}

.dropdown-content a {
    color: var(--light);
    padding: 0.7rem 1rem;
    display: block;
    text-align: left;
    transition: var(--transition);
    border-radius: 6px;
    margin: 0.2rem 0;
}

.dropdown-content a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: rgba(117, 64, 219, 0.1);
    color: var(--primary-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown > a::after {
    content: '\f107'; /* Fontawesome angle-down icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Button styles */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    font-size: 0.85rem;
    gap: 0.5rem;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.btn i {
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: var(--button-shadow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(117, 64, 219, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--light);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Mobile menu control */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.3rem;
    padding: 5px;
    z-index: 102;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 102;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    background-color: var(--primary);
    transform: rotate(90deg);
}

/* Menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99;
}

.menu-overlay.active {
    display: block;
}

/* Main content */
main {
    padding-top: 70px;
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--black), var(--dark));
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1200/800') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--light), transparent);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(240, 78, 152, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--light);
}

.hero h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    background: linear-gradient(45deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-light), var(--secondary));
    border-radius: 2px;
    opacity: 0.5;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-image {
    position: relative;
    flex: 1;
    max-width: 500px;
    animation: floatImage 6s ease-in-out infinite;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
}

/* Section Styling */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    position: relative;
    padding: 0 10px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--primary);
    opacity: 0.5;
}

.section-subtitle::before {
    left: -30px;
}

.section-subtitle::after {
    right: -30px;
}

.section-header h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.section-header h3 span {
    color: var(--primary);
}

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

/* Features Section */
.features {
    background-color: var(--light-gray);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--light-gray));
    z-index: 5;
}

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

.feature-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.8rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transition: var(--transition);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    transition: var(--transition);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    background-color: var(--light);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    position: relative;
    flex-wrap: wrap;
}

.steps::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1;
    opacity: 0.3;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 22%;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(117, 64, 219, 0.2);
    color: white;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Servers and Games Showcase */
.servers, .games {
    background-color: var(--light);
}

.servers-grid, .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.server-card, .game-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.server-card:hover, .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.server-img, .game-img {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.server-img img, .game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.server-card:hover .server-img img,
.game-card:hover .game-img img {
    transform: scale(1.05);
}

.server-badge, .game-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-category {
    background: var(--accent);
}

.server-content, .game-content {
    padding: 1.5rem;
}

.server-content h4, .game-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    color: var(--text-primary);
}

.server-card:hover .server-content h4,
.game-card:hover .game-content h4 {
    color: var(--primary);
}

.server-content p, .game-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.server-stats, .game-meta {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.stat, .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat i, .meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.server-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.server-creator {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    gap: 8px;
}

.creator-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--gray);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.server-join {
    padding: 0.35rem 0.9rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.server-join:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--button-shadow);
}

/* Forum Section */
.forum {
    background-color: var(--light-gray);
}

.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-category {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.forum-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
}

.category-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.category-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.category-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-stats i {
    color: var(--primary);
}

.category-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(117, 64, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.category-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* Testimonials */
.testimonials {
    background-color: var(--light);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.8rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

.testimonial-card:hover::before {
    width: 100%;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray);
    overflow: hidden;
    border: 2px solid var(--primary);
}
.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.author-info p {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    background: white;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.about-text h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
}

.about-text li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: -1.5rem;
    font-size: 0.8rem;
}

.team-section {
    margin-top: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--gray);
    margin: 0 auto 1rem;
    border: 3px solid var(--primary);
    overflow: hidden;
    position: relative;
}

.team-member h5 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.team-member p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.team-member .social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.team-member .social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(117, 64, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    font-size: 0.8rem;
}

.team-member .social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: url('/api/placeholder/1200/800') center/cover no-repeat;
    position: relative;
    color: white;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(117, 64, 219, 0.9), rgba(240, 78, 152, 0.8));
    z-index: 1;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    z-index: 2;
}

.cta h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--light);
    padding: 4rem 0 1rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about {
    grid-column: span 2;
}

.footer-logo {
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary);
}

.footer-text {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--light);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(117, 64, 219, 0.3);
    color: white;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--light);
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.newsletter {
    max-width: 500px;
    margin: 0 auto 3rem;
    text-align: center;
}

.newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.newsletter p {
    color: var(--dark-gray);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form .btn {
    padding: 0.7rem 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--dark-gray);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-bottom-links a {
    color: var(--dark-gray);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 5px 15px rgba(117, 64, 219, 0.3);
    font-size: 0.9rem;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(117, 64, 219, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-5deg) translateY(-15px);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Animation for elements on scroll */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 800px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        max-width: 80%;
    }
    
    .steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        width: 45%;
    }
    
    .auth-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .close-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--dark);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
        padding: 80px 1.5rem 2rem;
        z-index: 101;
        overflow-y: auto;
        transition: left 0.3s ease;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links.closing {
        left: -100%;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        border-radius: 0;
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        min-width: auto;
        background-color: transparent;
        box-shadow: none;
        border-top: none;
        padding: 0;
        margin: 0;
        margin-left: 1rem;
        border-left: 2px solid var(--primary);
        display: none;
    }
    
    .dropdown-content::before {
        display: none;
    }
    
    .dropdown-content a {
        padding: 0.7rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown > a.active + .dropdown-content {
        display: block;
    }
    
    .step {
        width: 100%;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: 1;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-stats {
        justify-content: space-between;
        width: 100%;
    }
    
    .section-header h3 {
        font-size: 1.8rem;
    }
    
    .features-grid, .servers-grid, .games-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}