/* ===================================
   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: fixed;
    right: 20px;
    top: 15px;
    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-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%;
}

/* ===================================
   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, var(--button-color), #0DAC4B);
    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(170deg, var(--button-color), #0DAC4B);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 120px;
    justify-content: center;
}

.btn-apply:hover {
    background: linear-gradient(170deg, var(--button-color), #0DAC4B);
    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-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;
    }
    
    .theme-toggle-desktop {
        display: none;
    }
    
    .theme-toggle-wrapper {
        display: block;
    }
    
    .theme-toggle-mobile {
        display: flex;
        position: relative;
        right: auto;
        top: auto;
        margin: 0 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;
    }
}
