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

:root {
    --secondary: #E8600A;
    --accent: #D4A017;
    --sage: #3A4B5C;
    --dark: #111820;
    --darker: #0D0D0D;
    --light: #f5f5f5;
    --mc-inset: inset -3px -3px 0 rgba(0,0,0,0.4), inset 3px 3px 0 rgba(255,255,255,0.15);
}

html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'VT323', monospace;
    font-size: 1.9rem;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    padding: 0.7rem 2rem;
    background: #0a0a0a;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--sage);
    box-shadow: 0 4px 0 #000;
}

.nav-brand {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.35rem;
    color: var(--secondary);
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--light);
    text-decoration: none;
    text-shadow: 1px 1px 0 #000;
    transition: color 0.1s;
}

.nav-links a:hover { color: var(--secondary); }

.nav-shop-btn {
    background: var(--secondary);
    color: white !important;
    padding: 0.45rem 1rem;
    box-shadow: var(--mc-inset), 2px 2px 0 #000;
    transition: filter 0.1s !important;
}

.nav-shop-btn:hover { color: white !important; filter: brightness(1.15); }

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ── Mobile dropdown ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 57px; left: 0; right: 0;
    background: #0a0a0a;
    z-index: 999;
    border-bottom: 4px solid var(--sage);
}

.mobile-menu.active { display: block; }

.mobile-menu a {
    display: block;
    padding: 1.1rem 2rem;
    color: var(--light);
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.05rem;
    border-bottom: 2px solid var(--sage);
    transition: color 0.1s, background 0.1s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--secondary); background: rgba(255,255,255,0.05); }

.mobile-shop-btn { color: var(--secondary) !important; }
.mobile-shop-btn:hover { color: var(--secondary) !important; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.65));
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--darker));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 24px rgba(232, 96, 10, 0.6));
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 4.5rem;
    font-weight: 400;
    text-shadow: 4px 4px 0 #000, -2px -2px 0 #000;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.hero h1 span { color: var(--secondary); }

.hero > .hero-content > p {
    font-family: 'VT323', monospace;
    font-size: 2.7rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    animation: bounce 2s ease-in-out infinite;
}

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

/* ── Minecraft-stil knapper ── */
.server-ip, .card-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.05rem;
    padding: 0.9rem 1.8rem;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-decoration: none;
    color: white;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
    background: var(--secondary);
    box-shadow: var(--mc-inset), 3px 3px 0 #000;
    transition: filter 0.1s, transform 0.1s;
    line-height: 1.4;
}

.server-ip:hover, .card-btn:hover { filter: brightness(1.15); }

.server-ip:active, .card-btn:active {
    box-shadow: inset 3px 3px 0 rgba(0,0,0,0.4), inset -3px -3px 0 rgba(255,255,255,0.1), 1px 1px 0 #000;
    transform: translate(2px, 2px);
}

.btn-facebook { background: #1877F2; }
.btn-green    { background: #3a7a1e; }

/* ── Sektioner ── */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-dark {
    max-width: 100%;
    background: #0a0a0a;
    border-top: 4px solid var(--sage);
    border-bottom: 4px solid var(--sage);
    padding: 5rem 0;
}

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

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    text-shadow: 3px 3px 0 #000;
    line-height: 1.6;
}

/* ── About section ── */
.about-lead {
    font-family: 'VT323', monospace;
    font-size: 2.1rem;
    text-align: center;
    opacity: 0.85;
    max-width: 750px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar {
    background: var(--dark);
    padding: 2.5rem 2rem;
    border: 4px solid var(--sage);
    box-shadow: 4px 4px 0 #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: border-color 0.1s, transform 0.1s;
}

.pillar:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
}

.pillar-icon {
    font-size: 3rem;
    line-height: 1;
}

.pillar h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.3rem;
    color: var(--secondary);
    text-shadow: 2px 2px 0 #000;
    line-height: 1.6;
}

.pillar p {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* ── Community grid ── */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.community-card {
    background: var(--dark);
    padding: 2.5rem 2rem;
    border: 4px solid var(--sage);
    box-shadow: 4px 4px 0 #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: border-color 0.1s, transform 0.1s;
}

.community-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
}

.community-card-icon {
    font-size: 3rem;
    line-height: 1;
}

.community-card h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.3rem;
    color: var(--secondary);
    text-shadow: 2px 2px 0 #000;
    line-height: 1.6;
}

.community-card p {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    opacity: 0.8;
    line-height: 1.5;
    flex: 1;
}

/* ── Slideshow ── */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 4px solid var(--sage);
    box-shadow: 6px 6px 0 #000;
    background: var(--dark);
    overflow: hidden;
}

.slideshow-track {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.slideshow-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.75);
    color: white;
    border: 3px solid var(--sage);
    font-size: 2.5rem;
    line-height: 1;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 2px 2px 0 #000;
    transition: background 0.1s, border-color 0.1s;
}

.slide-btn:hover { background: var(--secondary); border-color: var(--secondary); }
.slide-prev { left: 0.5rem; }
.slide-next { right: 0.5rem; }

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem;
    background: rgba(0,0,0,0.6);
    flex-wrap: wrap;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.1s;
}

.dot.active {
    background: var(--secondary);
    box-shadow: 1px 1px 0 #000;
}

/* ── Datapacks page ── */
.page-header {
    padding: 7rem 2rem 3rem;
    text-align: center;
}

.page-header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.4rem;
    color: var(--secondary);
    text-shadow: 3px 3px 0 #000;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.page-header p {
    font-family: 'VT323', monospace;
    font-size: 2.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--dark);
    padding: 2rem;
    border: 4px solid var(--sage);
    box-shadow: 4px 4px 0 #000;
}

.info-card h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.35rem;
    color: var(--secondary);
    text-shadow: 2px 2px 0 #000;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.info-list li {
    padding: 0.5rem 1rem;
    background: rgba(58, 75, 92, 0.25);
    border-left: 4px solid var(--secondary);
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0 #000;
    transition: opacity 0.1s;
}

.back-btn:hover { opacity: 0.8; }

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #0a0a0a;
    border-top: 4px solid var(--sage);
    box-shadow: 0 -4px 0 #000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer p {
    font-family: 'VT323', monospace;
    font-size: 1.65rem;
    opacity: 0.6;
}

footer .footer-desc {
    font-size: 1.9rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

/* ── Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.3rem; }
    .hero-logo { width: 160px; }
    section { padding: 4rem 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .about-pillars { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    nav { padding: 0.7rem 1rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero { padding: 5rem 1rem 3rem; }
    .hero-logo { width: 130px; }
    .hero h1 { font-size: 2.25rem; }
    .hero > .hero-content > p { font-size: 2.1rem; }

    .server-ip, .card-btn { font-size: 0.9rem; padding: 0.8rem 1.2rem; }

    section { padding: 3rem 1rem; }
    .section-dark { padding: 3rem 0; }
    .section-inner { padding: 0 1rem; }
    .section-title { font-size: 1.5rem; }

    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .about-pillars {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .community-card { padding: 1.8rem 1.5rem; }

    .page-header { padding: 5.5rem 1rem 2rem; }
    .page-header h1 { font-size: 1.65rem; }
    .content { padding: 1rem 1rem 3rem; }
    .info-grid { grid-template-columns: 1fr; }
    .info-card { padding: 1.5rem; }

    footer { padding: 2rem 1rem; }
}

/* ── Small Mobile ── */
@media (max-width: 480px) {
    .hero-logo { width: 100px; }
    .hero h1 { font-size: 1.65rem; }
    .hero > .hero-content > p { font-size: 1.8rem; }
    .server-ip, .card-btn { font-size: 0.85rem; padding: 0.7rem 1rem; }
    .section-title { font-size: 1.3rem; }
    .community-card h3 { font-size: 1.1rem; }
    .page-header h1 { font-size: 1.35rem; }
}
