:root {
    --color-grass: #7cb342;
    --color-stone: #78909c;
    --color-dirt: #8d6e63;
    --color-diamond: #4fc3f7;
    --color-lava: #ff5722;
    --color-dark: #1a1a2e;
    --color-darker: #0f0f1a;
    --color-light: #f5f5f5;
    --color-accent: #ffd54f;
    
    --font-display: 'Fredoka', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-display);
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--color-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Grain texture overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 9999;
}

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

/* Header Styles */
.site-header {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--color-grass);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(124, 179, 66, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--color-light);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 179, 66, 0.3), transparent);
    transition: left 0.4s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(124, 179, 66, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--color-grass);
    color: var(--color-dark);
}

.discord-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.discord-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
    margin-bottom: 3rem;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 400;
    animation: fadeIn 0.6s ease-out;
}

.title-main {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-grass), var(--color-diamond));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

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

.server-ip-card {
    background: rgba(26, 26, 46, 0.8);
    border: 3px solid var(--color-grass);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 60px rgba(124, 179, 66, 0.2);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.ip-label {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.ip-display {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--color-grass);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(124, 179, 66, 0.5);
    letter-spacing: 2px;
}

.copy-btn {
    background: linear-gradient(135deg, var(--color-grass), #689f38);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 179, 66, 0.5);
}

.copy-btn:active {
    transform: translateY(-1px);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(124, 179, 66, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--color-grass);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-grass);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.status-text {
    font-weight: 600;
    color: var(--color-grass);
}

/* Decorative Blocks */
.decorative-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.block {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-grass);
    opacity: 0.1;
    border-radius: 8px;
    animation: float 6s ease-in-out infinite;
}

.block-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.block-2 {
    top: 60%;
    right: 15%;
    background: var(--color-diamond);
    animation-delay: 1.5s;
}

.block-3 {
    bottom: 20%;
    left: 20%;
    background: var(--color-accent);
    animation-delay: 3s;
}

.block-4 {
    top: 30%;
    right: 25%;
    background: var(--color-lava);
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.page-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-grass));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.info-card {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(124, 179, 66, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-grass);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.2);
}

.primary-info {
    grid-column: span 2;
    border-color: var(--color-grass);
    background: rgba(124, 179, 66, 0.05);
}

.card-title {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--color-light);
}

.info-value {
    color: var(--color-grass);
    font-weight: 600;
}

.info-code {
    font-family: var(--font-mono);
    background: rgba(124, 179, 66, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: var(--color-grass);
    font-weight: 600;
}

.mod-list, .rule-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mod-item {
    background: rgba(15, 15, 26, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.mod-item:hover {
    background: rgba(124, 179, 66, 0.1);
    transform: translateX(5px);
}

.version {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-diamond);
    background: rgba(79, 195, 247, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.rule-item {
    background: rgba(15, 15, 26, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.rule-item:hover {
    background: rgba(124, 179, 66, 0.1);
    transform: translateX(5px);
}

.rule-item code {
    font-family: var(--font-mono);
    color: var(--color-light);
    font-size: 0.9rem;
}

.rule-value {
    font-family: var(--font-mono);
    color: var(--color-accent);
    font-weight: 600;
    background: rgba(255, 213, 79, 0.1);
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
}

/* Pictures Section */
.pictures-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gallery-item {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(124, 179, 66, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-grass);
    box-shadow: 0 15px 40px rgba(124, 179, 66, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

.image-name {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-grass);
    text-align: center;
    background: rgba(15, 15, 26, 0.8);
}

.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(26, 26, 46, 0.4);
    border: 2px dashed rgba(124, 179, 66, 0.3);
    border-radius: 16px;
    animation: fadeInUp 0.6s ease-out;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-gallery p {
    color: var(--color-light);
    font-size: 1.2rem;
}

.empty-gallery code {
    font-family: var(--font-mono);
    background: rgba(124, 179, 66, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--color-grass);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    color: var(--color-grass);
    transform: rotate(90deg);
}

/* Footer */
.site-footer {
    background: rgba(15, 15, 26, 0.9);
    border-top: 2px solid var(--color-grass);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.site-footer p {
    color: var(--color-light);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .ip-display {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .primary-info {
        grid-column: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .close-lightbox {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}
