@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #6B46C1;
    --secondary-purple: #8B5CF6;
    --dark-bg: #0F0B1E;
    --darker-bg: #080510;
    --accent-gold: #FBBF24;
    --accent-blue: #3B82F6;
    --text-light: #E5E7EB;
    --text-gray: #9CA3AF;
    --star-color: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'San Francisco', 'Helvetica Neue', Arial, sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.minecraft-font {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7em;
}

/* Animated Background */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--star-color);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.nebula {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.3) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.nebula:nth-child(2) {
    top: 50%;
    right: -200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(15, 11, 30, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 1));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8)); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-purple);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-purple);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-purple), var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFloat 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-gray);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.online-players {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    margin-bottom: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}

.online-indicator {
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-download {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-download i {
    margin-right: 0.5rem;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-download:hover::before {
    width: 300px;
    height: 300px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-download:active {
    transform: translateY(-1px);
}

.btn-download.secondary {
    background: linear-gradient(135deg, var(--accent-gold), #F59E0B);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-download.secondary:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

/* Floating Elements */
.floating-ruin {
    position: absolute;
    opacity: 0.1;
    animation: floatAround 15s infinite ease-in-out;
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -50px) rotate(90deg); }
    50% { transform: translate(-30px, -100px) rotate(180deg); }
    75% { transform: translate(-80px, -50px) rotate(270deg); }
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--secondary-purple), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-purple);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: iconFloat 2s ease-in-out infinite;
}

.feature-icon i {
    display: inline-block;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-purple);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Why Play Section */
.why-play {
    background: rgba(139, 92, 246, 0.03);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1400px;
}

.checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
    animation: slideInLeft 0.6s ease-out both;
}

.checklist li:nth-child(1) { animation-delay: 0.1s; }
.checklist li:nth-child(2) { animation-delay: 0.2s; }
.checklist li:nth-child(3) { animation-delay: 0.3s; }
.checklist li:nth-child(4) { animation-delay: 0.4s; }
.checklist li:nth-child(5) { animation-delay: 0.5s; }
.checklist li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.check-icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
    animation: checkPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
}

.check-icon i {
    display: inline-block;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Mechanics Section */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mechanic-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mechanic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.mechanic-card:hover::after {
    left: 100%;
}

.mechanic-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
}

.mechanic-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.mechanic-card h3 i {
    margin-right: 0.5rem;
}

/* Video Section */
.video-section {
    background: rgba(15, 11, 30, 0.5);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1400px;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    background: var(--darker-bg);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-blue));
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.trailer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-purple);
    animation: playPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    background: white;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

/* SVG Decorations */
.svg-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 6rem;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-download {
        width: 100%;
    }

    section {
        padding: 4rem 1rem;
    }

    .about-grid,
    .mechanics-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

