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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    background-image: 
        radial-gradient(ellipse at top, #1a1a2e 0%, transparent 50%),
        radial-gradient(ellipse at bottom, #0a0a0a 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a9eff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: 30px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #333;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 50%, #5865F2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.logo-wave {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 10px;
}

.wave-path {
    stroke: #00ff88;
    stroke-width: 1.5;
    fill: none;
    filter: drop-shadow(0 0 3px #00ff88);
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { d: path('M0,5 Q5,2 10,5 T20,5'); }
    50% { d: path('M0,5 Q5,8 10,5 T20,5'); }
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

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

.nav-item a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-item a:hover,
.nav-item a.active {
    color: #4a9eff;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a9eff, #00ff88);
    transition: width 0.3s ease;
}

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

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    transform: translateX(5px);
}

/* Nested Submenu Styles for Docs Menu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.dropdown-submenu .submenu-arrow {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover .submenu-arrow {
    transform: rotate(90deg);
    color: #4a9eff;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 8px 0;
    margin-left: 8px;
}

/* Submenu positioned to the left (dynamically applied via JavaScript) */
.submenu.position-left {
    left: auto !important;
    right: 100% !important;
    margin-left: 0 !important;
    margin-right: 8px !important;
    transform: translateX(10px) !important;
}

.dropdown-submenu:hover .submenu.position-left {
    transform: translateX(0) !important;
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.submenu a:hover {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    transform: translateX(3px);
}

/* Language badges */
.lang-badge {
    display: inline-block;
    background: rgba(74, 158, 255, 0.15);
    color: #74a3ff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu dividers */
.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 12px;
    border: none;
    padding: 0;
}

/* Special styling for docs menu */
.docs-menu {
    min-width: 280px;
}

.docs-menu .dropdown-submenu .submenu-toggle:hover {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    transform: translateX(5px);
}

/* Language Switcher Styles */  
.nav-item {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4a9eff;
}

.lang-flag {
    font-size: 16px;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .lang-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin-top: 10px;
}

.nav-item:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu li {
    padding: 0;
}

.language-menu a {
    display: block;
    padding: 10px 16px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.language-menu a::after {
    display: none;
}

.language-menu a:hover {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
}

.language-menu a.active {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

.cta-button {
    background: linear-gradient(135deg, #5865F2 0%, #4a9eff 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(135deg, #4a9eff 0%, #00ff88 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.4);
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
}

.mobile-toggle:hover,
.mobile-toggle:active {
    background: rgba(74, 158, 255, 0.2);
    transform: translateY(-1px);
}

.mobile-toggle span {
    width: 22px;
    height: 3px;
    background: #ffffff;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle:hover span {
    background: #4a9eff;
}

/* Login Button */
.nav-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Discord Button */
.nav-discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    height: 38px;
    justify-content: center;
}

.nav-discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
    background: linear-gradient(135deg, #6a77f2 0%, #5865f2 100%);
    color: #ffffff !important;
}

/* Desktop/Mobile Item Controls */
.mobile-user-item,
.mobile-discord-item {
    display: none; /* Hidden on desktop */
}

.desktop-user-item {
    display: block; /* Shown on desktop */
}

/* User Avatar */
.nav-user-icon {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.user-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-user-icon:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(88, 101, 242, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="3s" repeatCount="indefinite"/></circle></svg>') repeat;
    background-size: 100px 100px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 60px;
    font-size: 14px;
    color: #4a9eff;
    font-weight: 600;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1001;
    visibility: visible;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(74, 158, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(74, 158, 255, 0.6); }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 50%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #e2e8f0;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary {
    background: linear-gradient(135deg, #5865F2 0%, #4a9eff 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, #4a9eff 0%, #00ff88 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4a9eff;
    transform: translateY(-3px);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4a9eff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    color: #e2e8f0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a9eff, transparent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #00ff88;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a9eff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5865F2 0%, #4a9eff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-description {
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: #e2e8f0;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(10, 10, 10, 0.3) 100%);
    position: relative;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-description {
    color: #e2e8f0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: 
        radial-gradient(ellipse at center, rgba(88, 101, 242, 0.2) 0%, transparent 50%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: #e2e8f0;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a9eff;
}

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

.footer-links li {
    margin: 10px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* Social Media Icons */
.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(114, 137, 218, 0.2);
    color: #7289da;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.3);
    border-color: rgba(114, 137, 218, 0.5);
}

.discord-icon:hover {
    background: rgba(114, 137, 218, 0.2);
    color: #7289da;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
        /* Desktop-specific hero-badge fix */
        @media (min-width: 769px) {
            .hero-badge {
                display: inline-block !important;
                visibility: visible !important;
                opacity: 1 !important;
                position: relative !important;
                z-index: 1001 !important;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                position: fixed;
                top: 80px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 80px);
                background: rgba(10, 10, 10, 0.98);
                flex-direction: column;
                justify-content: start;
                padding-top: 30px;
                transition: left 0.3s ease;
                overflow-y: auto;
            }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile nav items */
    .nav-item {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .nav-item > a {
        display: block;
        padding: 20px 30px;
        text-align: center;
        width: calc(100% - 20px);
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        margin: 5px 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 500;
    }

    .nav-item > a:hover,
    .nav-item > a:active {
        background: rgba(74, 158, 255, 0.1);
        transform: translateY(-1px);
    }

    /* Mobile dropdown adjustments */
    /* Reset all inherited link styles for dropdown toggles */
    .dropdown-toggle {
        text-decoration: none !important;
        border: none !important;
        outline: none !important;
        color: #e2e8f0 !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        padding: 20px 30px;
        width: calc(100% - 20px);
        margin: 5px 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 500;
        position: relative;
    }

    /* Remove any inherited pseudo-elements that might create lines */
    .dropdown-toggle * {
        text-decoration: none !important;
        border: none !important;
    }

    .dropdown-toggle:hover,
    .dropdown-toggle:active,
    .dropdown-toggle:focus,
    .dropdown-toggle:visited {
        background: rgba(74, 158, 255, 0.1) !important;
        transform: translateY(-1px);
        text-decoration: none !important;
        color: #e2e8f0 !important;
        border: none !important;
    }

    .dropdown-toggle::before {
        display: none !important;
    }

    .dropdown-toggle::after {
        /* This rule is now handled by the higher specificity .nav-item .dropdown-toggle::after rule above */
        display: none !important;
    }

    .dropdown-menu {
        position: static;
        background: rgba(26, 26, 46, 0.9);
        border: none;
        border-radius: 8px;
        margin: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        width: 100%;
    }

    .dropdown.mobile-active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        border-left: 4px solid #4a9eff;
        background: rgba(26, 26, 46, 0.95);
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu a {
        display: block;
        padding: 12px 40px;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu a:hover {
        transform: none;
        background: rgba(74, 158, 255, 0.1);
    }

    /* Mobile language switcher */
    .nav-item .language-toggle {
        margin: 5px 10px;
        padding: 20px 30px;
        justify-content: center;
        width: calc(100% - 20px);
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 500;
        position: relative;
    }

    .nav-item .language-toggle:hover,
    .nav-item .language-toggle:active {
        background: rgba(74, 158, 255, 0.1);
        transform: translateY(-1px);
    }

    /* Show original language arrow on mobile */
    .lang-arrow {
        display: inline-block !important;
        font-size: 14px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .nav-item.mobile-active .lang-arrow {
        transform: rotate(180deg);
    }

    .language-menu {
        position: static;
        background: rgba(26, 26, 46, 0.9);
        border: none;
        border-radius: 8px;
        margin: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        width: 100%;
    }

    .nav-item.mobile-active .language-menu {
        opacity: 1;
        visibility: visible;
        max-height: 120px;
        border-left: 4px solid #4a9eff;
        background: rgba(26, 26, 46, 0.95);
    }

    .language-menu li {
        width: 100%;
    }

    .language-menu a {
        display: block;
        padding: 12px 40px;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

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

    .feature-card {
        padding: 30px 20px;
    }

            .stats {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

    .stat-item {
        padding: 20px;
    }
    
    /* Mobile social media icons */
    .social-media {
        justify-content: center;
        margin-top: 20px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Ensure all clickable elements have proper touch targets */
    .nav-item > a,
    .dropdown-toggle,
    .nav-item .language-toggle {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(74, 158, 255, 0.3);
        tap-highlight-color: rgba(74, 158, 255, 0.3);
    }

    /* Active states for better touch feedback */
    .nav-item > a:active,
    .dropdown-toggle:active,
    .nav-item .language-toggle:active {
        background: rgba(74, 158, 255, 0.2);
        transform: translateY(0);
    }

    /* Improve dropdown menu items */
    .dropdown-menu a,
    .language-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: rgba(74, 158, 255, 0.3);
        tap-highlight-color: rgba(74, 158, 255, 0.3);
    }

    .dropdown-menu a:active,
    .language-menu a:active {
        background: rgba(74, 158, 255, 0.2);
    }

    /* Mobile submenu styles */
    .dropdown-submenu .submenu {
        position: static;
        background: rgba(16, 16, 32, 0.9);
        border: none;
        border-radius: 8px;
        margin: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        width: 100%;
        margin-left: 0;
    }

    .dropdown-submenu.mobile-active .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        border-left: 4px solid #4a9eff;
        background: rgba(16, 16, 32, 0.95);
    }

    .dropdown-submenu .submenu-toggle {
        padding: 12px 40px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        font-size: inherit;
        font-family: inherit;
    }

    .dropdown-submenu .submenu-toggle:hover {
        transform: none;
        background: rgba(74, 158, 255, 0.1);
    }

    .submenu a {
        padding: 10px 60px;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .submenu a:hover {
        transform: none;
        background: rgba(74, 158, 255, 0.08);
    }

    .lang-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    .dropdown.mobile-active .dropdown-toggle,
    .nav-item.mobile-active .language-toggle {
        background: rgba(74, 158, 255, 0.3) !important;
        border-left: 4px solid #4a9eff;
        color: #4a9eff;
    }

    .nav-item.mobile-active .language-menu {
        opacity: 1;
        visibility: visible;
        max-height: 120px;
        border-left: 4px solid #4a9eff;
        background: rgba(26, 26, 46, 0.95);
    }

    /* Hide original dropdown arrow on mobile */
    .dropdown-arrow {
        display: none !important;
    }

    /* Show both the original arrow and CSS triangle on mobile */
    .dropdown-arrow {
        display: inline-block !important;
        font-size: 14px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .dropdown.mobile-active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Show language arrow on mobile */
    .lang-arrow {
        display: inline-block !important;
        font-size: 14px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .nav-item.mobile-active .lang-arrow {
        transform: rotate(180deg);
    }

    /* Higher specificity to override nav-item styles */
    .nav-item .dropdown-toggle,
    .nav-item a.dropdown-toggle {
        text-decoration: none !important;
        border: none !important;
        outline: none !important;
        color: #e2e8f0 !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        padding: 20px 30px;
        width: calc(100% - 20px);
        margin: 5px 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 500;
        position: relative;
    }

    .nav-item .dropdown-toggle:hover,
    .nav-item .dropdown-toggle:active,
    .nav-item .dropdown-toggle:focus,
    .nav-item .dropdown-toggle:visited,
    .nav-item a.dropdown-toggle:hover,
    .nav-item a.dropdown-toggle:active,
    .nav-item a.dropdown-toggle:focus,
    .nav-item a.dropdown-toggle:visited {
        background: rgba(74, 158, 255, 0.1) !important;
        transform: translateY(-1px);
        text-decoration: none !important;
        color: #e2e8f0 !important;
        border: none !important;
    }

    /* Disable the nav-item a::after underline for dropdown toggles on mobile */
    .nav-item .dropdown-toggle::after {
        display: none !important;
    }

    .dropdown.mobile-active .dropdown-toggle::after {
        display: none !important;
    }

    /* Improve touch handling for iOS */
    .dropdown-toggle,
    .nav-item .language-toggle {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }

    /* Better touch feedback */
    .dropdown-toggle:active,
    .nav-item .language-toggle:active {
        background: rgba(74, 158, 255, 0.2) !important;
        transform: scale(0.98);
    }

    /* Mobile User Item Controls */
    .mobile-discord-item,
    .mobile-user-item {
        display: block !important;
        margin-bottom: 10px !important;
    }

    .mobile-discord-item {
        order: -2; /* Show Discord first in mobile */
    }

    .mobile-user-item {
        order: -1; /* Show user/login second in mobile */
    }

    .desktop-user-item {
        display: none !important; /* Hide desktop version on mobile */
    }

    /* Style the mobile item containers */
    .mobile-discord-item,
    .mobile-user-item {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Style the mobile Discord button */
    .mobile-discord-item .mobile-discord-btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: auto !important;
        max-width: 200px !important;
        margin: 5px auto !important;
        padding: 15px 30px !important;
        background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%) !important;
        border-radius: 8px !important;
        border: none !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-decoration: none !important;
    }

    /* Style the mobile user item buttons */
    .mobile-user-item .nav-user-icon,
    .mobile-user-item .nav-login-btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: auto !important;
        max-width: 200px !important;
        margin: 5px auto !important;
        padding: 15px 30px !important;
        background: rgba(255, 193, 7, 0.1) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 193, 7, 0.3) !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
    }

    .mobile-user-item .nav-login-btn {
        background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%) !important;
        color: #000 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border: none !important;
    }

    .mobile-discord-item .mobile-discord-btn:hover {
        background: linear-gradient(135deg, #6a77f2 0%, #5865f2 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3) !important;
    }

    .mobile-user-item .nav-user-icon:hover,
    .mobile-user-item .nav-login-btn:hover {
        background: rgba(255, 193, 7, 0.2) !important;
        transform: translateY(-2px) !important;
    }

    .mobile-user-item .nav-login-btn:hover {
        background: linear-gradient(135deg, #ffcd3c 0%, #ffa500 100%) !important;
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3) !important;
    }
}

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

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

                .stats {
                grid-template-columns: 1fr;
                margin-top: 50px;
            }

    .features,
    .services,
    .cta-section {
        padding: 80px 0;
    }
} 