@font-face {
    font-family: 'Minecraft Seven';
    src: url('Minecraft-Seven_v2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraft Ten';
    src: url('Minecraft-Tenv2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #050507;
    --text-color: #ffffff;
    --primary-color: #d946ef;
    /* Fuchsia/Purple */
    --secondary-color: #8b5cf6;
    /* Violet */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(217, 70, 239, 0.15);
    --font-main: 'Minecraft Seven', sans-serif;
    --font-header: 'Minecraft Ten', sans-serif;
    /* Use same font or maybe bold version */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 1.2rem;
    /* VT323 is small, so bump up size */
}

/* Background Setup */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.3), rgba(5, 5, 7, 0.95)), url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: -1;
    filter: brightness(0.8);
    image-rendering: pixelated;
    /* Enhance retro feel if image has pixel art style, mostly for font though */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 7, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.highlight {
    color: var(--primary-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switch {
    border: 1px solid var(--glass-border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(217, 70, 239, 0.3);
    line-height: 1.1;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.2s;
}

.subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.4s;
    max-width: 600px;
}

/* IP Copy Component */
.ip-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

.ip-container:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.2);
}

.ip-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.ip-address {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.copy-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.status-indicator {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4ade80;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.8s;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}

/* Features & Rules Section */
.features,
.rules {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px -10px rgba(217, 70, 239, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: #aaa;
    line-height: 1.7;
}

/* Connection Section */
.connect {
    padding: 4rem 0 8rem;
}

.glass-panel {
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    backdrop-filter: blur(20px);
}

.connection-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.divider {
    width: 1px;
    height: 100px;
    background: var(--glass-border);
}

.platform i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    border-top: 1px solid var(--glass-border);
    background: #020203;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .connection-details {
        flex-direction: column;
        gap: 2rem;
    }

    .divider {
        width: 100%;
        height: 1px;
    }

    .navbar {
        padding: 1rem;
    }
}