/* Base Styles */
:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --secondary: #3498db;
    --dark: #2c3e50;
    --darker: #1a252f;
    --light: #ecf0f1;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #2ecc71;
    --minecraft-green: #55ff55;
    --minecraft-dark: #1e1e1e;
    --minecraft-dirt: #8B4513;
    --minecraft-grass: #55aa55;
    --minecraft-stone: #808080;
    --minecraft-wood: #8B4513;
    --minecraft-water: #3a7dbd;
    --minecraft-lava: #ff6a00;
}

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

html {
    scroll-behavior: smooth;
    font-size: 1rem; /* Base font size */
}

/* Ensure consistent font rendering across devices */
@media screen and (max-width: 992px) {
    html {
        font-size: 100%; /* 16px by default */
    }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    html {
        font-size: 100%; /* Maintain same base size */
    }
    
    body {
        -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjust */
        text-size-adjust: 100%;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: var(--minecraft-dark);
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 1rem; /* Base size */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 2vw, 1.1rem); }

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--minecraft-green);
}

p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

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

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.highlight {
    color: var(--minecraft-green);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--minecraft-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

button, .btn, input, textarea, select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1rem;
}

.btn-gradient {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-size: 200% auto;
    transition: 0.5s;
    border: none;
}

.btn-gradient:hover {
    background-position: right center;
    color: white;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

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

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

.minecraft-loading {
    text-align: center;
    background: rgba(26, 26, 26, 0.9);
    padding: 40px 50px;
    border-radius: 15px;
    border: 2px solid #2ecc71;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pixel-loader {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    position: relative;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="0" y="0" width="64" height="64" fill="%232ecc71"/><rect x="8" y="8" width="48" height="48" fill="%2327ae60"/><rect x="16" y="16" width="32" height="32" fill="%232ecc71"/><rect x="24" y="24" width="16" height="16" fill="%2327ae60"/></svg>') no-repeat center center;
    background-size: contain;
    animation: rotate 2s linear infinite;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(46, 204, 113, 0.2);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.minecraft-text {
    background: linear-gradient(45deg, #55ff55, #55aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.nav-link {
    color: white;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://i.imgur.com/3Gm0VXa.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="10" height="10" fill="%232ecc71" fill-opacity="0.1"/></svg>');
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin: 2.5rem 0;
    animation: fadeInUp 1s ease 0.6s both;
}

.server-status {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 2rem;
    animation: fadeIn 1s ease 0.9s both;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--success);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.9rem;
    color: #fff;
    margin-right: 15px;
}

.online {
    color: var(--success);
    font-weight: 600;
}

.players-online {
    font-size: 0.9rem;
    color: #ccc;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: 15px;
    border-left: 3px solid var(--primary);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 10px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 3px;
    animation: scroll 2s infinite;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: arrowDown 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes arrowDown {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* About Section */
.about-section {
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L200,0 L200,200 L0,200 Z" fill="%232ecc71" fill-opacity="0.03"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
    padding-right: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.minecraft-window {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.minecraft-window:hover {
    transform: perspective(1000px) rotateY(0);
}

.window-header {
    height: 30px;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-buttons {
    display: flex;
    gap: 8px;
}

.window-buttons span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-buttons .red { background: #ff5f56; }
.window-buttons .yellow { background: #ffbd2e; }
.window-buttons .green { background: #27c93f; }

.window-content {
    padding: 20px;
    background: #1e1e1e;
}

.additional-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.minecraft-window:hover .additional-image {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.2);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.youtube-channel-link {
    margin-top: 20px;
    text-align: center;
}

.btn-youtube-channel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    border: 2px solid transparent;
}

.btn-youtube-channel:hover {
    background: linear-gradient(135deg, #cc0000 0%, #aa0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-youtube-channel i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:first-child { margin-left: 0; }
.stat-item:last-child { margin-right: 0; }

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: 'Minecraft', 'Press Start 2P', cursive, sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features-section {
    background: #121212;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><circle cx="100" cy="100" r="1" fill="%232ecc71" fill-opacity="0.05"/></svg>');
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(46, 204, 113, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

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

.feature-card p {
    color: #aaa;
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="none" stroke="%232ecc71" stroke-width="0.5" stroke-dasharray="5,5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.join-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.join-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.info-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    min-width: 250px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(46, 204, 113, 0.3);
}

.info-box i {
    font-size: 2rem;
    margin-right: 20px;
    color: var(--primary);
}

.info-box h4 {
    color: white;
    margin: 0 0 5px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-box p, .info-box a {
    margin: 0;
    color: #aaa;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.copy-text {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.copy-text::after {
    content: 'Copy';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-text:hover::after {
    opacity: 1;
}

.copy-message {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-text.copied + .copy-message {
    opacity: 1;
}

.discord-link {
    color: #7289da !important;
    font-weight: 600;
}

.discord-link:hover {
    color: #8ea1e1 !important;
    text-decoration: underline;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.version-info p {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1rem;
    color: #aaa;
}

.version-info i {
    margin-right: 10px;
    color: var(--primary);
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

.footer-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-section p {
    color: #777;
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #aaa;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #777;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-section ul li i {
    margin-right: 8px;
    color: var(--primary);
    font-size: 0.8rem;
}

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

.footer-bottom p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.footer-bottom p:first-child {
    margin-bottom: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch:hover::before {
    animation: glitch-effect 3s infinite linear alternate-reverse;
    color: #0ff;
    z-index: -2;
}

.glitch:hover::after {
    animation: glitch-effect 2s infinite linear alternate-reverse;
    color: #f0f;
    z-index: -1;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .minecraft-window {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 20px);
        margin: 10px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 50px 0;
        transition: 0.3s;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        margin: 15px 0;
        font-size: 1.2rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 250px;
        margin: 10px 0 !important;
    }
    
    .server-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-box {
        width: 100%;
        max-width: 300px;
        margin: 10px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 100%;
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .server-status {
        flex-direction: column;
        padding: 15px;
    }
    
    .status-text {
        margin: 10px 0;
    }
    
    .players-online {
        margin-top: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
