/* Latik World - Premium Stylesheet v2.5 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;600;800&family=VT323&display=swap');

:root {
    --primary: #5cb85c;
    --primary-glow: rgba(92, 184, 92, 0.6);
    --secondary: #8B4513;
    --bg-dark: #0a0a0a;
    --bg-panel: rgba(30, 30, 30, 0.6);
    --text-light: #fff;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gold: #FFD700
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 50%, rgba(92, 184, 92, 0.08), transparent 25%), radial-gradient(circle at 85% 30%, rgba(139, 69, 19, 0.08), transparent 25%)
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s
}

ul {
    list-style: none
}

h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900
}

.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%)
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary)
}

.glass {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37)
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--glass-border)
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.8
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s
}

.nav-links a:hover::before {
    width: 100%
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary)
}

.nav-links a.active {
    color: var(--primary);
    opacity: 1
}

.nav-links a.active::before {
    width: 100%
}

.hero-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d
}

.layer-bg {
    background: #87CEEB;
    z-index: 0
}

.layer-stars {
    z-index: 1;
    overflow: hidden
}

.layer-stars::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    animation: kenBurns 20s infinite alternate ease-in-out
}

.layer-grid {
    background-image: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6));
    z-index: 2;
    opacity: 0.8
}

.hero-content {
    z-index: 10;
    text-align: center;
    transform-style: preserve-3d
}

.hero-title {
    font-size: 8rem;
    line-height: 0.8;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 1s ease-out, float 6s ease-in-out infinite
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 3rem;
    animation: slideUp 1s ease-out 0.2s backwards
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0)
    }

    100% {
        transform: scale(1.1) translate(-1%, -1%)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-20px)
    }
}

.server-status-widget {
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 1s ease-out 0.6s backwards
}

.status-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem
}

@media (min-width:768px) {
    .status-row {
        grid-template-columns: repeat(4, 1fr)
    }
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem
}

.status-item i {
    font-size: 1.8rem;
    color: var(--primary)
}

.status-dot {
    font-size: 0.8rem !important;
    color: #5cb85c;
    animation: pulse 2s infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.5
    }
}

.status-info {
    display: flex;
    flex-direction: column
}

.status-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px
}

.status-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Orbitron', sans-serif
}

.status-online {
    color: var(--primary)
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: slideUp 1s ease-out 0.4s backwards
}

.btn {
    padding: 1.2rem 3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%)
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s
}

.btn-primary:hover::before {
    left: 100%
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow)
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(5px)
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff
}

.bento-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem
}

.bento-item {
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary)
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2
}

.bento-wide {
    grid-column: span 2
}

.bento-tall {
    grid-row: span 2
}

.bento-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(92, 184, 92, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px
}

.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem
}

.bento-content p {
    color: #aaa;
    font-size: 1.1rem
}

.faq-category {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 15px
}

.faq-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center
}

.faq-question::before {
    content: '❯';
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1.2rem
}

.faq-answer {
    color: #aaa;
    line-height: 1.8;
    padding-left: 1.5rem
}

.faq-answer code {
    background: rgba(92, 184, 92, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem
}

.leaderboard-card {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border)
}

.leaderboard-header {
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    position: relative
}

.leaderboard-header i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block
}

.leaderboard-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem
}

.leaderboard-header span {
    font-size: 0.85rem;
    opacity: 0.9
}

.leaderboard-list {
    padding: 1.5rem
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px)
}

.leaderboard-entry:last-child {
    margin-bottom: 0
}

.leaderboard-entry .rank {
    font-weight: bold;
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
    min-width: 40px
}

.leaderboard-entry .player-name {
    flex: 1;
    margin: 0 1rem;
    color: #fff
}

.leaderboard-entry .score {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif
}

.vote-grid,
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem
}

.vote-card,
.staff-card {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s
}

.vote-card:hover,
.staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary)
}

.vote-header,
.staff-header {
    background: var(--primary);
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem
}

.vote-body {
    padding: 2rem;
    text-align: center
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: -50px auto 1rem;
    display: block;
    border: 4px solid var(--bg-dark)
}

.staff-card h3 {
    text-align: center;
    margin: 1rem 0 0.5rem
}

.staff-role {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0.5rem auto;
    display: block;
    width: fit-content
}

.rules-section,
.store-section {
    max-width: 900px;
    margin: 0 auto
}

.rule-category {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem
}

.rule-category h3 {
    color: var(--primary);
    margin-bottom: 1rem
}

.rule-category ul {
    list-style: none;
    padding-left: 0
}

.rule-category li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative
}

.rule-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary)
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem
}

.store-item {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s
}

.store-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary)
}

.store-item h3 {
    color: var(--primary);
    margin-bottom: 1rem
}

.store-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin: 1rem 0
}

.glitch-logo {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px var(--primary-glow)
}

.glitch-logo::before,
.glitch-logo::after {
    content: 'LATIK WORLD';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.glitch-logo::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse
}

.glitch-logo::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse
}

.navbar .glitch-logo {
    font-size: 2rem
}

footer .glitch-logo {
    font-size: 4rem
}

footer {
    background: #050505;
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid #222;
    position: relative
}

.footer-links {
    color: #888
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s
}

.footer-links a:hover {
    color: var(--primary)
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0)
    }

    5% {
        clip: rect(80px, 9999px, 90px, 0)
    }

    10% {
        clip: rect(10px, 9999px, 40px, 0)
    }

    100% {
        clip: rect(50px, 9999px, 60px, 0)
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0)
    }

    5% {
        clip: rect(90px, 9999px, 10px, 0)
    }

    10% {
        clip: rect(50px, 9999px, 20px, 0)
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto
    }

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1
    }

    .hero-title {
        font-size: 4rem
    }

    .nav-links {
        gap: 1.5rem
    }

    .status-row {
        grid-template-columns: 1fr 1fr
    }
}