/* ==========================================
   MINECRAFT THEME LANDING PAGE
   ========================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minecraft Color Palette */
    --grass-green: #7cbd4e;
    --dirt-brown: #8b5a3c;
    --sky-blue: #78a7ff;
    --cloud-white: #ffffff;
    --stone-gray: #7d7d7d;
    --wood-brown: #9c6f3a;
    --coal-black: #1a1a1a;
    --diamond-cyan: #4dd0e1;
    --gold-yellow: #ffeb3b;
    --redstone-red: #dc143c;

    /* UI Colors */
    --bg-dark: #1a1a1a;
    --text-white: #ffffff;
    --text-shadow: #3f3f3f;
    --button-gray: #525252;
    --button-hover: #6e6e6e;

    /* Rarity Colors */
    --legendary: #ff6b00;
    --epic: #a335ee;
    --rare: #0070dd;
    --uncommon: #1eff00;
    --common: #9d9d9d;

    /* Font */
    --pixel-font: 'Press Start 2P', cursive;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--pixel-font);
    background: var(--sky-blue);
    color: var(--text-white);
    line-height: 1.8;
    overflow-x: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* ===== PIXELATED SKY BACKGROUND ===== */
.minecraft-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            #78a7ff 0%,
            #a8d5ff 50%,
            #d4e9ff 100%);
    z-index: -2;
}

/* ===== FLOATING PIXEL CLOUDS ===== */
.clouds-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 0;
    opacity: 0.8;
    animation: floatCloud linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
}

/* Pixelated Cloud Shape */
.cloud {
    width: 80px;
    height: 16px;
    box-shadow:
        16px 0 0 white,
        32px 0 0 white,
        48px 0 0 white,
        64px 0 0 white;
}

.cloud::before {
    width: 32px;
    height: 16px;
    top: -16px;
    left: 16px;
    box-shadow: 16px 0 0 white, 32px 0 0 white;
}

.cloud::after {
    width: 16px;
    height: 16px;
    top: -32px;
    left: 32px;
}

.cloud-1 {
    top: 10%;
    left: -100px;
    animation-duration: 60s;
}

.cloud-2 {
    top: 30%;
    left: -150px;
    animation-duration: 80s;
    animation-delay: 10s;
}

.cloud-3 {
    top: 50%;
    left: -200px;
    animation-duration: 100s;
    animation-delay: 20s;
}

@keyframes floatCloud {
    from {
        transform: translateX(-200px);
    }

    to {
        transform: translateX(calc(100vw + 200px));
    }
}

/* ===== MAIN GAME CONTAINER ===== */
.game-container {
    position: relative;
    min-height: 100vh;
    padding: 2rem 1rem;
    z-index: 1;
}

/* ===== MINECRAFT HEADER ===== */
.minecraft-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    margin-bottom: 2rem;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.minecraft-title {
    position: relative;
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.title-shadow {
    position: absolute;
    top: 4px;
    left: 4px;
    color: var(--text-shadow);
    z-index: 1;
}

.title-text {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    text-shadow: 2px 2px 0 var(--text-shadow);
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.subtitle {
    font-size: clamp(0.6rem, 2vw, 1rem);
    color: var(--gold-yellow);
    text-shadow: 2px 2px 0 var(--text-shadow);
    letter-spacing: 2px;
}

/* ===== MINECRAFT MENU BUTTONS ===== */
.menu-section {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    width: 100%;
}

.mc-button {
    background: var(--button-gray);
    border: 4px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    color: white;
    padding: 1rem 2rem;
    font-family: var(--pixel-font);
    font-size: clamp(0.7rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    text-shadow: 2px 2px 0 #000000;
    image-rendering: pixelated;
}

.mc-button:hover {
    background: var(--button-hover);
    transform: scale(1.05);
}

.mc-button:active {
    border-color: #000000 #ffffff #ffffff #000000;
    transform: scale(0.98);
}

.mc-button.main-button {
    background: var(--grass-green);
    animation: pulse 2s ease-in-out infinite;
}

.mc-button.main-button:hover {
    background: #8fd15f;
}

.mc-button.small {
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(124, 189, 78, 0.7);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(124, 189, 78, 0);
    }
}

.button-text {
    position: relative;
    z-index: 1;
}

/* ===== INFO BOX ===== */
.info-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--button-gray);
    border: 8px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.info-box.active {
    transform: translate(-50%, -50%) scale(1);
}

.info-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 #000000;
    color: var(--gold-yellow);
}

.info-content p {
    font-size: 0.7rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: white;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: white;
    text-shadow: 4px 4px 0 var(--text-shadow);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    color: var(--gold-yellow);
    text-shadow: 2px 2px 0 var(--text-shadow);
}

/* ===== INVENTORY GRID (Project Cards) ===== */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.inventory-slot {
    background: rgba(0, 0, 0, 0.7);
    border: 4px solid var(--stone-gray);
    padding: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.inventory-slot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.inventory-slot:hover::before {
    border-color: var(--gold-yellow);
}

.inventory-slot:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--gold-yellow);
    box-shadow: 0 10px 40px rgba(255, 235, 59, 0.3);
}

.inventory-slot.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.inventory-slot.coming-soon:hover {
    transform: none;
    border-color: var(--stone-gray);
}

.item-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.item-info {
    text-align: center;
}

.item-info h3 {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 0 #000000;
}

.rarity {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rarity.legendary {
    color: var(--legendary);
}

.rarity.epic {
    color: var(--epic);
}

.rarity.rare {
    color: var(--rare);
}

.rarity.uncommon {
    color: var(--uncommon);
}

.rarity.common {
    color: var(--common);
}

.item-desc {
    font-size: 0.65rem;
    color: #cccccc;
    line-height: 1.6;
}

.hover-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.2), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s;
    pointer-events: none;
}

.inventory-slot:hover .hover-glow {
    transform: translate(-50%, -50%) scale(1.5);
}

/* ===== STATS SECTION ===== */
.stats-section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-block {
    background: rgba(0, 0, 0, 0.7);
    border: 4px solid var(--dirt-brown);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-block:hover {
    transform: translateY(-5px);
    border-color: var(--gold-yellow);
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold-yellow);
    text-shadow: 3px 3px 0 #000000;
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 0.7rem;
    color: white;
}

/* ===== FOOTER ===== */
.minecraft-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 4px solid var(--dirt-brown);
    padding: 2rem 1rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content p {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--diamond-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-yellow);
}

.copyright {
    font-size: 0.5rem !important;
    opacity: 0.7;
}

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--grass-green);
    opacity: 0.5;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.5;
    }

    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .minecraft-header {
        padding: 2rem 1rem 1rem;
    }

    .minecraft-title {
        letter-spacing: 2px;
    }

    .subtitle {
        letter-spacing: 1px;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-content h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 1rem 0.5rem;
    }

    .mc-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.6rem;
    }

    .item-icon {
        font-size: 3rem;
    }
}

/* ===== CUSTOM SCROLLBAR (Minecraft Style) ===== */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: var(--dirt-brown);
    border: 2px solid var(--coal-black);
}

::-webkit-scrollbar-thumb {
    background: var(--stone-gray);
    border: 2px solid var(--coal-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--button-hover);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--grass-green);
    color: white;
}

/* ===== PIXEL PERFECT RENDERING ===== */
canvas,
img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}