/* =============================================
   BALLS DEEP — Palworld Server
   Aesthetic: Bold arcade / creature collector
   Colors: Deep purple + electric yellow + hot pink
   ============================================= */

:root {
    --bg-deep: #0d0618;
    --bg-mid: #1a0a2e;
    --bg-card: #231244;
    --accent-yellow: #ffd23f;
    --accent-pink: #ff3f8e;
    --accent-blue: #3fa7ff;
    --accent-green: #3fff8e;
    --text-primary: #f0edf5;
    --text-muted: #8b7fa8;
    --text-dim: #5a4f73;
    --font-display: 'Luckiest Guy', cursive;
    --font-body: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating spheres */
.sphere {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    top: -100px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-yellow), transparent 70%);
    bottom: 20%;
    left: -80px;
    animation: float2 25s ease-in-out infinite;
}

.sphere-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-blue), transparent 70%);
    top: 50%;
    right: 10%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 60px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, -40px); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, -50px); } }

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(13, 6, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 210, 63, 0.1);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 3px;
    color: var(--accent-yellow);
    text-shadow: 0 0 20px rgba(255, 210, 63, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(63, 167, 255, 0.4));
}

.hero-logo {
    width: clamp(100px, 15vw, 160px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(63, 167, 255, 0.5));
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease-out;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

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

.nav-discord {
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.4);
    padding: 8px 16px !important;
    border-radius: 6px;
    color: #7289da !important;
    transition: all 0.3s !important;
}

.nav-discord:hover {
    background: rgba(88, 101, 242, 0.3) !important;
    color: #fff !important;
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, rgba(13, 6, 24, 0.4) 0%, rgba(13, 6, 24, 0.7) 60%, var(--bg-deep) 100%), url('/img/bg4.jpeg') center top / cover no-repeat;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent-pink);
    margin-bottom: 20px;
    padding: 6px 20px;
    border: 1px solid rgba(255, 63, 142, 0.3);
    border-radius: 100px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    line-height: 0.9;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-balls {
    display: block;
    font-size: clamp(80px, 18vw, 200px);
    color: var(--accent-yellow);
    text-shadow:
        4px 4px 0 var(--accent-pink),
        8px 8px 0 rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 210, 63, 0.3);
    letter-spacing: 8px;
}

.title-deep {
    display: block;
    font-size: clamp(80px, 18vw, 200px);
    color: transparent;
    -webkit-text-stroke: 3px var(--accent-yellow);
    letter-spacing: 8px;
    margin-top: -10px;
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.3));
}

.hero-tagline {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid;
}

.tag-pvpve { color: var(--accent-pink); border-color: var(--accent-pink); background: rgba(255, 63, 142, 0.1); }
.tag-eu { color: var(--accent-blue); border-color: var(--accent-blue); background: rgba(63, 167, 255, 0.1); }
.tag-players { color: var(--accent-green); border-color: var(--accent-green); background: rgba(63, 255, 142, 0.1); }
.tag-fresh { color: var(--accent-yellow); border-color: var(--accent-yellow); background: rgba(255, 210, 63, 0.1); }

.hero-cta {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--bg-deep);
    box-shadow: 0 4px 20px rgba(255, 210, 63, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 210, 63, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-dim);
}

.btn-secondary:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.btn-discord {
    background: #5865f2;
    color: #fff;
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 8px;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
}

.btn-discord svg { flex-shrink: 0; }

.scroll-hint {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

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

/* ============ SECTIONS ============ */
.section {
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: rgba(26, 10, 46, 0.6);
    border-top: 1px solid rgba(255, 210, 63, 0.05);
    border-bottom: 1px solid rgba(255, 210, 63, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    letter-spacing: 4px;
    color: var(--text-primary);
}

.accent { color: var(--accent-yellow); }

.header-line {
    width: 60px;
    height: 3px;
    background: var(--accent-pink);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ============ ABOUT CARDS ============ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 210, 63, 0.08);
    border-radius: 12px;
    padding: 36px 28px;
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 210, 63, 0.2);
    box-shadow: 0 8px 30px rgba(255, 210, 63, 0.08);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ============ SETTINGS ============ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 210, 63, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 210, 63, 0.08);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-deep);
    transition: background 0.2s;
}

.setting-row:hover {
    background: var(--bg-card);
}

.setting-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.setting-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
}

.setting-value.highlight {
    color: var(--accent-green);
}

/* ============ CONNECT ============ */
.connect-box {
    max-width: 600px;
    margin: 0 auto;
}

.connect-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--accent-yellow);
}

.step-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-text p {
    color: var(--text-muted);
    font-size: 14px;
}

.connect-ip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 2px solid var(--accent-yellow);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 16px;
}

.connect-ip code {
    flex: 1;
    font-family: 'Outfit', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-yellow);
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--accent-yellow);
    color: var(--bg-deep);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover { opacity: 0.8; }
.copy-btn.copied { background: var(--accent-green); }

.connect-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ============ COMMUNITY ============ */
.community-box {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.community-box p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
    padding: 24px 40px;
    border-top: 1px solid rgba(255, 210, 63, 0.05);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-dim);
}

.footer-brand {
    font-family: var(--font-display);
    color: var(--accent-yellow);
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-sep { opacity: 0.3; }

.footer a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav { padding: 12px 20px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 12px; }
    .nav-discord { display: none; }

    .hero { padding: 100px 20px 60px; }

    .title-deep { -webkit-text-stroke: 2px var(--accent-yellow); }

    .hero-cta { flex-direction: column; width: 100%; max-width: 300px; }
    .btn { justify-content: center; }

    .section { padding: 60px 20px; }

    .about-grid { grid-template-columns: 1fr; }

    .settings-grid { grid-template-columns: 1fr; }

    .connect-ip { flex-direction: column; text-align: center; }
    .connect-ip code { font-size: 16px; }

    .footer-content { flex-direction: column; gap: 8px; }
    .footer-sep { display: none; }
}

@media (max-width: 480px) {
    .nav-brand { font-size: 18px; }
    .hero-tags { gap: 6px; }
    .tag { font-size: 10px; padding: 4px 10px; }
}
