/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #D6D7D9;
    --secondary-color: #1a1a1a;
    --accent-color: #b4a9a9;
    --button-color: #000000;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #1a1a1a;
    --text-primary: #D6D7D9;
    --text-secondary: #8a8a8a;
    --border-color: #2a2a2a;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Theme */
[data-theme="light"] {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #666666;
    --button-color: #1a1a1a;
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-light: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #d0d0d0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Global Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    background-color: var(--bg-dark);
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    /* Animations controlled by JavaScript */
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    margin: 10px 20px;
    width: calc(100% - 40px);
    transform: translateY(0);
}

@media (max-width: 768px) {
    .header.scrolled {
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
    transition: padding 0.4s ease;
}

.header.scrolled .navbar {
    padding: 0.75rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
}

.logo i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    right: auto;
    top: auto;
    overflow: hidden;
    z-index: 1001;
}

.theme-toggle:hover {
    background: var(--bg-darker);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle i {
    position: absolute;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    color: #ffa500;
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .fa-moon {
    color: #f0e68c;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-toggle-wrapper {
    display: none;
}

.theme-toggle-desktop {
    display: flex;
}

.theme-toggle-mobile {
    display: none;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.nav-controls-mobile {
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.language-menu {
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 1002;
}

.language-toggle,
.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(214, 215, 217, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: var(--transition);
}

.language-toggle {
    padding: 0;
}

.language-toggle:hover,
.language-option:hover,
.language-option.active {
    background: var(--bg-darker);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.language-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, 40px);
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid rgba(214, 215, 217, 0.16);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.language-menu:hover .language-options,
.language-menu:focus-within .language-options {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.flag-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.flag-en {
    background: #012169 url('/img/flags/gb.svg') center / cover no-repeat;
}

.flag-fr,
.flag-it {
    background: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66%);
}

.flag-it {
    background: linear-gradient(90deg, #009246 0 33.33%, #ffffff 33.33% 66.66%, #ce2b37 66.66%);
}

.flag-es {
    background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%);
}

.flag-tr {
    background: #e30a17;
}

.flag-tr::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: -3px 0 0 1px #ffffff;
}

.flag-tr::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
}

.flag-pl {
    background: linear-gradient(180deg, #ffffff 0 50%, #dc143c 50%);
}

.flag-de {
    background: linear-gradient(180deg, #000000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-img-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-img-desktop {
        display: none;
    }
    
    .hero-img-mobile {
        display: block;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7), rgba(255, 107, 53, 0.1));
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
        linear-gradient(135deg, rgba(18, 18, 18, 0.88), rgba(54, 58, 62, 0.78));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(214, 215, 217, 0.3);
}

.btn-white {
    background: white;
    color: var(--bg-dark);
}

.btn-white:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-5px) scale(1.05);
}

.btn-apply {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
        rgba(12, 12, 12, 0.72);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 120px;
    justify-content: center;
}

.btn-apply:hover {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.09)),
        rgba(20, 20, 20, 0.82);
    transform: translateY(-5px) scale(1.05);
}

/* ===================================
   Stats Section
   =================================== */
.stats {
    padding: 5rem 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: visible;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.stat-card:hover .stat-number {
    color: var(--accent-color);
}

.stat-card:hover .stat-label {
    color: var(--primary-color);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* ===================================
   Featured Mods Section
   =================================== */
.featured-mods {
    padding: 5rem 0;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mod-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.mod-card:hover {
    transform: translateY(-15px) rotateY(-5deg) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.mod-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.mod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mod-card:hover .mod-image img {
    transform: scale(1.15) rotate(2deg);
}

.mod-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.mod-card:hover .mod-overlay {
    opacity: 1;
}

.mod-content {
    padding: 1.5rem;
}

.mod-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.mod-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mod-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ===================================
   Page Hero (Subpages)
   =================================== */
.page-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-light));
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* ===================================
   About Page
   =================================== */
.about-content {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: var(--bg-dark) !important;
    scroll-margin-top: 80px;
    min-height: 50vh;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary) !important;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary) !important;
}

.about-text strong {
    color: var(--accent-color);
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.values-section {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.value-card:hover {
    transform: translateY(-12px) rotateX(5deg) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Mods Page
   =================================== */
.mods-section {
    padding: 3rem 0 5rem;
}

.mods-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)) auto auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
}

.mods-search-form input,
.mods-search-form select {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.mod-category-label {
    color: var(--accent-color);
    font-weight: 600;
}

.mod-section-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .mods-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .mods-search-form {
        grid-template-columns: 1fr;
    }
}

.mods-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.mods-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.mod-card-full {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.mod-card-full:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.mod-image-full {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.mod-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mod-card-full:hover .mod-image-full img {
    transform: scale(1.1);
}

.mod-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mod-content-full {
    padding: 1.5rem;
}

.mod-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.mod-content-full h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.mod-content-full p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.mod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mod-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
}

.mod-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.no-mods {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-mods i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-mods p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.discord-section {
    padding: 3rem 0 5rem;
    background: var(--bg-darker);
}

.discord-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.discord-icon {
    font-size: 5rem;
    color: #5865F2;
}

.discord-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.discord-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===================================
   Contact Page
   =================================== */
.contact-section {
    padding: 3rem 0 5rem;
    position: relative;
    z-index: 10;
    background: var(--bg-dark);
    scroll-margin-top: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.contact-method:hover {
    border-color: var(--accent-color);
    transform: translateX(10px) scale(1.02);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
}

.contact-method a {
    color: var(--text-secondary);
}

.contact-method a:hover {
    color: var(--accent-color);
}

.social-links-large {
    display: flex;
    gap: 1rem;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links-large a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-8px) rotate(10deg) scale(1.15);
}

.contact-form-wrapper {
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===================================
   Legal Pages
   =================================== */
.legal-content {
    padding: 3rem 0 5rem;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
}

.legal-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.legal-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-text ul {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.legal-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-text a {
    color: var(--accent-color);
}

.legal-text a:hover {
    text-decoration: underline;
}

.legal-text strong {
    color: var(--text-primary);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: var(--accent-color);
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-5px) rotate(5deg) scale(1.1);
}

.footer-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: #ff8c42;
    transform: scale(1.15) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-controls-desktop {
        display: none;
    }

    .theme-toggle-desktop {
        display: none;
    }
    
    .theme-toggle-wrapper {
        display: block;
    }
    
    .theme-toggle-mobile {
        display: flex;
        position: relative;
        right: auto;
        top: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }
    
    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-slogan {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid,
    .values-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .mods-grid-full {
        grid-template-columns: 1fr;
    }
    
    .discord-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.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; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal .modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999999;
    background: rgba(0,0,0,0.8);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.image-modal .modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.mod-image-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mod-image-clickable:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.mod-author {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mod-author i {
    color: var(--accent-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================
   Team Page Styles
   =================================== */
.team-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.role-section {
    margin-bottom: 60px;
}

.role-section:last-child {
    margin-bottom: 0;
}

.role-header {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.team-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card-inner {
    padding: 30px;
    text-align: center;
}

.team-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    transition: var(--transition);
}

.team-card:hover .team-avatar img {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.team-role-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-light);
}

.team-role-badge i {
    color: white;
    font-size: 18px;
}

.team-info {
    margin-top: 15px;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.team-role {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.team-role i {
    font-size: 0.9rem;
}

.team-discord {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 20px;
    margin: 15px auto 0;
    max-width: fit-content;
    transition: var(--transition);
}

.team-discord i {
    color: #5865F2;
    font-size: 1.1rem;
}

.team-card:hover .team-discord {
    background: rgba(88, 101, 242, 0.2);
    transform: scale(1.05);
}

.no-team {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-team i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    opacity: 0.5;
}

.no-team p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.no-team .small-text {
    font-size: 1rem;
    opacity: 0.7;
}

.cta-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.cta-box {
    background: linear-gradient(135deg, #2b7748, #000000);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}

/* Responsive Design for Team Page */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .team-avatar {
        width: 120px;
        height: 120px;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Pagination Styles
   =================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-number:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.pagination-number.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.pagination-dots {
    color: var(--text-secondary);
    padding: 0 5px;
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination-numbers {
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

.mod-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mod-card-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

.mod-preview-meta {
    display: grid;
    gap: 0.65rem;
    padding: 1.25rem 1.5rem;
}

.mod-preview-meta p {
    margin: 0;
    color: var(--text-secondary);
}

.mod-preview-meta .mod-category-label {
    color: var(--text-primary);
    font-weight: 700;
}

.mod-preview-date {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mod-detail-section {
    padding: 9rem 0 6rem;
}

.mod-detail {
    max-width: 1050px;
}

.mod-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.mod-detail-back:hover {
    color: var(--accent-color);
}

.mod-detail-hero {
    overflow: hidden;
    max-height: 620px;
    border: 1px solid var(--border-color);
    border-radius: 24px 24px 0 0;
    background: var(--bg-light);
}

.mod-detail-hero img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.mod-detail-content {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: var(--bg-light);
}

.mod-detail-section-label {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mod-detail-content h1 {
    margin: 0.35rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.mod-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    color: var(--text-secondary);
}

.mod-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mod-detail-description,
.mod-detail-attachments {
    margin: 2.5rem 0;
}

.mod-detail-description h2,
.mod-detail-attachments h2 {
    margin-bottom: 1rem;
}

.mod-detail-description p {
    margin: 0;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.discord-message {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #313338;
    color: #dbdee1;
    font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.discord-avatar {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #5865f2;
    color: #fff;
    font-weight: 700;
    object-fit: cover;
}

.discord-message-body {
    min-width: 0;
}

.discord-message-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.discord-message-header strong {
    color: #f2f3f5;
}

.discord-message-header time {
    color: #949ba4;
    font-size: 0.75rem;
}

.discord-message-content {
    line-height: 1.375;
    overflow-wrap: anywhere;
    white-space: normal;
}

.discord-message-content strong {
    color: #f2f3f5;
    font-weight: 700;
}

.discord-message-content a {
    color: #00a8fc;
    text-decoration: none;
}

.discord-message-content a:hover {
    text-decoration: underline;
}

.discord-inline-code,
.discord-code-block {
    border: 1px solid #1e1f22;
    border-radius: 4px;
    background: #2b2d31;
    color: #dbdee1;
    font-family: Consolas, "Courier New", monospace;
}

.discord-inline-code {
    padding: 0.1em 0.25em;
}

.discord-code-block {
    margin: 0.4rem 0;
    padding: 0.5rem;
    overflow-x: auto;
    white-space: pre-wrap;
}

.discord-quote {
    display: inline-block;
    padding-left: 0.75rem;
    border-left: 4px solid #4e5058;
}

.mod-attachment-list {
    display: grid;
    gap: 0.75rem;
}

.mod-attachment {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mod-attachment:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ===================================
   Home Page Premium Polish
   =================================== */
.hero {
    min-height: 760px;
    background:
        radial-gradient(circle at 12% 20%, rgba(214, 215, 217, 0.14), transparent 30%),
        radial-gradient(circle at 88% 15%, rgba(214, 215, 217, 0.16), transparent 28%),
        linear-gradient(135deg, #050706 0%, #101412 52%, #050505 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    background: linear-gradient(180deg, transparent, var(--bg-dark));
    z-index: 2;
    pointer-events: none;
}

.hero-background img {
    filter: saturate(1.05) contrast(1.08) brightness(0.65);
    transform: scale(1.02);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.58) 45%, rgba(5, 5, 5, 0.78) 100%),
        linear-gradient(135deg, rgba(214, 215, 217, 0.16), rgba(214, 215, 217, 0.08) 48%, rgba(255, 190, 92, 0.12));
}

.hero-content {
    width: min(1120px, calc(100% - 40px));
    max-width: 1120px;
    padding-top: 72px;
    text-align: left;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(214, 215, 217, 0.18);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 55px rgba(0, 0, 0, 0.22);
    color: rgba(214, 215, 217, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.hero-eyebrow::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #d6d7d9;
    box-shadow: 0 0 22px rgba(214, 215, 217, 0.78);
}

.hero-title {
    max-width: 920px;
    margin-bottom: 1rem;
    letter-spacing: 0;
    background: linear-gradient(115deg, #ffffff 0%, #d6d7d9 48%, #b7bec8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-slogan {
    max-width: 660px;
    margin-bottom: 2.4rem;
    color: rgba(214, 215, 217, 0.9);
    font-weight: 600;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
    justify-content: flex-start;
}

.scroll-indicator {
    z-index: 4;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 215, 217, 0.2);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.42);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.btn-primary {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
        linear-gradient(135deg, rgba(18, 18, 18, 0.88), rgba(54, 58, 62, 0.78));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.11)),
        linear-gradient(135deg, rgba(28, 28, 28, 0.9), rgba(72, 76, 82, 0.82));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(214, 215, 217, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(214, 215, 217, 0.26);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(214, 215, 217, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 30px rgba(214, 215, 217, 0.12);
}

.btn-apply {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
        rgba(12, 12, 12, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.btn-apply:hover {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.09)),
        rgba(20, 20, 20, 0.82);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36), 0 0 24px rgba(214, 215, 217, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.about-content,
.featured-mods,
.contact-section {
    background:
        radial-gradient(circle at 8% 8%, rgba(214, 215, 217, 0.06), transparent 26%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.045), transparent 24%),
        var(--bg-dark) !important;
}

.about-text h2,
.contact-info h2,
.section-title {
    background: linear-gradient(120deg, var(--text-primary), #aeb5be);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    letter-spacing: 0;
}

.about-text {
    padding: 1rem 0;
}

.about-image,
.contact-form-wrapper,
.stat-card,
.mod-card,
.contact-method {
    position: relative;
    border-color: rgba(214, 215, 217, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.about-image {
    padding: 10px;
    border: 1px solid rgba(214, 215, 217, 0.13);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.about-image img {
    border-radius: 14px;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.about-image:hover img {
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1.025);
}

.stats {
    background:
        linear-gradient(180deg, rgba(214, 215, 217, 0.055), transparent 34%),
        linear-gradient(135deg, var(--bg-darker), #111111);
}

.stat-card::before,
.mod-card::before,
.contact-form-wrapper::before,
.contact-method::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(214, 215, 217, 0.08), rgba(255, 190, 92, 0.28));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.stat-card:hover,
.mod-card:hover,
.contact-method:hover,
.contact-form-wrapper:hover {
    border-color: rgba(214, 215, 217, 0.32);
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.34), 0 0 42px rgba(214, 215, 217, 0.08);
}

.stat-card:hover::before,
.mod-card:hover::before,
.contact-form-wrapper:hover::before,
.contact-method:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(214, 215, 217, 0.05));
    font-size: 2.2rem;
}

.mod-card {
    border-radius: 18px;
    transform: translateZ(0);
}

.mod-card:hover {
    transform: translateY(-10px);
}

.mod-card:hover .mod-image img {
    transform: scale(1.08);
}

.mod-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.mod-category {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    background: linear-gradient(135deg, rgba(214, 215, 217, 0.96), rgba(150, 156, 166, 0.92));
    color: #101010;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.mod-content h3 {
    color: var(--text-primary);
}

.mod-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(214, 215, 217, 0.1);
}

.contact-method:hover {
    transform: translateX(6px);
}

.contact-form-wrapper {
    border-radius: 18px;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.26);
    border-color: rgba(214, 215, 217, 0.14);
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(214, 215, 217, 0.12);
}

[data-theme="light"] .hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.68)),
        linear-gradient(135deg, rgba(214, 215, 217, 0.26), rgba(255, 190, 92, 0.12));
}

[data-theme="light"] .hero-slogan,
[data-theme="light"] .hero-eyebrow {
    color: rgba(26, 26, 26, 0.82);
}

[data-theme="light"] .hero-title {
    background: linear-gradient(115deg, #111111 0%, #2d2d2d 52%, #7f8791 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-apply {
    color: #141414;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.48)),
        rgba(214, 215, 217, 0.46);
    border-color: rgba(20, 20, 20, 0.1);
    box-shadow: 0 18px 45px rgba(20, 30, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .about-image,
[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .stat-card,
[data-theme="light"] .mod-card,
[data-theme="light"] .contact-method {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 245, 0.72));
    box-shadow: 0 24px 60px rgba(20, 30, 24, 0.1);
}

@media (max-width: 768px) {
    .hero {
        min-height: 700px;
        align-items: flex-end;
        padding-bottom: 7rem;
    }

    .hero-content {
        width: calc(100% - 30px);
        padding-top: 92px;
        text-align: center;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .hero-buttons {
        align-items: stretch;
        justify-content: center;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .contact-method:hover {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background,
    .hero-background img,
    .about-image img,
    .mod-image img,
    .btn,
    .stat-card,
    .mod-card,
    .contact-method {
        transition: none !important;
        animation: none !important;
    }
}

/* Alpine blue gradient interactions */
:root {
    --alpine-blue: #124573;
    --alpine-blue-light: #2476a8;
    --alpine-blue-dark: #0a2947;
    --alpine-gradient: linear-gradient(135deg, var(--alpine-blue-light) 0%, var(--alpine-blue) 52%, var(--alpine-blue-dark) 100%);
}

.btn-primary,
.btn-apply {
    color: #ffffff;
    border-color: rgba(71, 151, 201, 0.55);
    background: var(--alpine-gradient);
    box-shadow: 0 16px 38px rgba(18, 69, 115, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover,
.btn-apply:hover {
    color: #ffffff;
    border-color: rgba(119, 196, 240, 0.8);
    background: linear-gradient(135deg, #3290c6 0%, #176091 48%, #0c355d 100%);
    box-shadow: 0 22px 52px rgba(18, 69, 115, 0.48), 0 0 24px rgba(36, 118, 168, 0.28);
}

.btn-secondary {
    color: #78bde4;
    border-color: rgba(36, 118, 168, 0.72);
    background: rgba(18, 69, 115, 0.1);
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: rgba(119, 196, 240, 0.8);
    background: var(--alpine-gradient);
    box-shadow: 0 20px 46px rgba(18, 69, 115, 0.4);
}

.nav-link::after {
    height: 3px;
    border-radius: 999px;
    background: var(--alpine-gradient);
}

.nav-link:hover,
.nav-link.active {
    color: #4da6d7;
    text-shadow: 0 0 18px rgba(36, 118, 168, 0.4);
}

.footer-links a:hover {
    color: #4da6d7;
    text-shadow: 0 0 16px rgba(36, 118, 168, 0.35);
}

.social-link:hover {
    color: #ffffff;
    border-color: #2476a8;
    background: var(--alpine-gradient);
    box-shadow: 0 12px 28px rgba(18, 69, 115, 0.4);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-apply {
    color: #ffffff;
    border-color: rgba(18, 69, 115, 0.35);
    background: var(--alpine-gradient);
    box-shadow: 0 14px 34px rgba(18, 69, 115, 0.28);
}

[data-theme="light"] .btn-secondary {
    color: #124573;
    border-color: #2476a8;
    background: rgba(18, 69, 115, 0.06);
}

[data-theme="light"] .btn-secondary:hover {
    color: #ffffff;
    background: var(--alpine-gradient);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    width: 1.1rem;
    color: #4da6d7;
    text-align: center;
    transition: var(--transition);
}

.nav-link:hover i,
.nav-link.active i {
    color: #78c8f2;
    transform: translateY(-2px) scale(1.08);
}

.footer-subtitle i {
    margin-right: 0.4rem;
    color: #4da6d7;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-links a i {
    width: 1.1rem;
    color: #2476a8;
    text-align: center;
    transition: var(--transition);
}

.footer-links a:hover i {
    color: #78c8f2;
    transform: scale(1.12);
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
}

.social-link i {
    font-size: 1.1rem;
    line-height: 1;
}

.social-link-discord:hover {
    background: linear-gradient(135deg, #7289da, #5865f2);
}

.social-link-tiktok:hover {
    background: linear-gradient(135deg, #25f4ee, #111111 48%, #fe2c55);
}

.social-link-instagram:hover {
    background: linear-gradient(135deg, #feda75, #d62976 48%, #4f5bd5);
}

/* Team recruitment banner */
.cta-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-darker);
}

.cta-box {
    isolation: isolate;
    max-width: 1050px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
    border: 1px solid rgba(78, 167, 216, 0.42);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 42%),
        linear-gradient(125deg, #071b2d 0%, #124573 52%, #0a2947 100%);
    box-shadow: 0 32px 80px rgba(2, 18, 31, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Unified blue hover treatment for interactive content boxes */
:is(
    .stat-card,
    .mod-card,
    .mod-card-full,
    .value-card,
    .service-card,
    .team-card,
    .discord-card,
    .contact-method,
    .contact-form-wrapper,
    .cta-box
):hover {
    border-color: #124573;
    box-shadow: 0 24px 60px rgba(18, 69, 115, 0.24);
}

.cta-box::before {
    top: -160px;
    right: -100px;
    left: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 190, 239, 0.24), transparent 68%);
    animation: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -65%;
    width: 70%;
    height: 120%;
    border: 1px solid rgba(110, 202, 246, 0.16);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.5rem;
    place-items: center;
    border: 1px solid rgba(154, 220, 252, 0.45);
    border-radius: 20px;
    background: rgba(6, 31, 51, 0.5);
    color: #8ed5f5;
    font-size: 1.65rem;
    box-shadow: 0 14px 35px rgba(2, 18, 31, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.cta-box h2 {
    max-width: 760px;
    margin: 0 auto 1rem;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    text-wrap: balance;
}

.cta-box p {
    max-width: 680px;
    margin: 0 auto 2rem;
    color: rgba(224, 241, 250, 0.82);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    text-wrap: balance;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.cta-actions .btn {
    min-width: 170px;
    justify-content: center;
}

.cta-actions .btn-primary {
    background: linear-gradient(135deg, #55b7e8, #2476a8 45%, #124573);
}

.cta-actions .btn-secondary {
    color: #e8f7ff;
    border-color: rgba(174, 224, 249, 0.48);
    background: rgba(5, 28, 47, 0.32);
}

@media (max-width: 560px) {
    .cta-box {
        border-radius: 22px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}
