@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-darker: #030811;
    --bg-dark: #051124;
    --bg-card: rgba(8, 26, 48, 0.55);
    --bg-card-hover: rgba(12, 38, 71, 0.7);
    --border-color: rgba(6, 182, 212, 0.15);
    --border-hover: rgba(6, 182, 212, 0.38);
    
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.35);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.4);
    
    --curseforge: #f16436;
    --curseforge-glow: rgba(241, 100, 54, 0.3);
    --fabric: #dbcdb4;
    --fabric-glow: rgba(219, 205, 180, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(rgba(7, 12, 30, 0.78), rgba(4, 6, 15, 0.92)), url('./assets/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Effects */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.ambient-light {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(34, 211, 238, 0.03) 50%, rgba(0, 0, 0, 0) 100%);
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.ambient-light-1 {
    top: -10%;
    right: -10%;
}

.ambient-light-2 {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, rgba(6, 182, 212, 0.03) 50%, rgba(0, 0, 0, 0) 100%);
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.15) translate(20px, 20px);
        opacity: 1;
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.4);
}

/* Page Layout Wrapper */
.layout-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    background: rgba(11, 20, 48, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 8px 24px;
    gap: 32px;
    transition: var(--transition-normal);
}

.nav-container:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 4px 20px -5px rgba(6, 182, 212, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.brand:hover .brand-logo {
    transform: scale(1.1) rotate(5deg);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-name span {
    color: var(--cyan);
}

nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--cyan));
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.online-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 9999px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.05);
    transition: var(--transition-normal);
}

.online-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulseDot 2s infinite;
}

.online-badge.offline .online-dot {
    background-color: #ef4444;
    animation: none;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-tag {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan);
    margin-bottom: 24px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
    animation: floatTag 3s infinite ease-in-out;
}

@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(6, 182, 212, 0.2));
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Download Cards/Buttons Section */
.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 48px;
}

.section-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.launcher-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 600px) {
    .launcher-buttons {
        grid-template-columns: 1fr;
    }
}

.launcher-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Curseforge Button Specific Styles */
.launcher-btn.curseforge-btn {
    background: rgba(241, 100, 54, 0.05);
    border: 1px solid rgba(241, 100, 54, 0.2);
    box-shadow: 0 4px 20px rgba(241, 100, 54, 0.02);
}

.launcher-btn.curseforge-btn:hover {
    background: rgba(241, 100, 54, 0.12);
    border-color: var(--curseforge);
    box-shadow: 0 8px 30px var(--curseforge-glow);
    transform: translateY(-2px);
}

.launcher-btn.curseforge-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 100, 54, 0.15), transparent);
    transition: 0.6s;
}

.launcher-btn.curseforge-btn:hover::before {
    left: 100%;
}

/* Fabric Button Specific Styles */
.launcher-btn.fabric-btn {
    background: rgba(219, 205, 180, 0.05);
    border: 1px solid rgba(219, 205, 180, 0.15);
    box-shadow: 0 4px 20px rgba(219, 205, 180, 0.02);
}

.launcher-btn.fabric-btn:hover {
    background: rgba(219, 205, 180, 0.1);
    border-color: var(--fabric);
    box-shadow: 0 8px 30px var(--fabric-glow);
    transform: translateY(-2px);
}

.launcher-btn.fabric-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(219, 205, 180, 0.15), transparent);
    transition: 0.6s;
}

.launcher-btn.fabric-btn:hover::before {
    left: 100%;
}

.btn-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logo svg, .btn-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.curseforge-color {
    fill: var(--curseforge);
}

.fabric-color {
    fill: var(--fabric);
}

/* IP Box Component */
.ip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

.ip-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 20, 48, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px 8px 8px 20px;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.ip-box:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 25px -5px rgba(6, 182, 212, 0.15);
    transform: scale(1.01);
}

.ip-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ip-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan);
    font-weight: 700;
}

.ip-text {
    font-family: 'Outfit', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.ip-copy-btn {
    background: var(--primary);
    color: var(--text-main);
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-box:hover .ip-copy-btn {
    background: #2563eb;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.ip-copy-btn:active {
    transform: scale(0.95);
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--cyan);
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
}

.tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent var(--cyan) transparent;
}

/* Info Cards / Stats section */
.stats-section {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 80px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    text-align: left;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--cyan);
}

.stat-card:hover .stat-icon {
    background: rgba(6, 182, 212, 0.15);
    color: var(--text-main);
    transform: scale(1.05);
    transition: var(--transition-fast);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Features/Dungeons section */
.features-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 80px auto;
    padding: 0 24px;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.features-header p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-box {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: var(--transition-normal);
}

.feature-box:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cyan);
}

.feature-box:hover .feature-img-wrapper {
    color: var(--text-main);
    background: rgba(6, 182, 212, 0.15);
}

.feature-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.feature-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer Section */
footer {
    margin-top: auto;
    width: 100%;
    background: rgba(4, 6, 15, 0.85);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.footer-text a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-text a:hover {
    color: var(--cyan);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-main);
}
