/* ================================================
   VELYRA — RAW, HANDCRAFTED GAMING AESTHETIC
   ZERO AI. 100% GRIT.
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Outfit:wght@500;800;900&display=swap');

/* ---------- RESET & BASICS ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #050505; color: #Eaeaea; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
body { overflow-x: hidden; position: relative; zoom: 0.9; }
a { text-decoration: none; color: inherit; }

/* ---------- NOISE TEXTURE ---------- */
.noise {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.04;
    background-image: 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; mix-blend-mode: overlay;
}

/* ---------- NAV ---------- */
.nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 32px; position: fixed; top: 18px; left: 4vw; right: 4vw;
    background: #09090b; border: 2px solid #222;
    z-index: 1000; text-transform: uppercase;
    border-radius: 32px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nav-logo { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; color: #fff; }
.nav-links { display: flex; gap: 32px; font-weight: 700; color: #888; }
.nav-links a { transition: color 0.1s; }
.nav-links a:hover { color: #f04e76; }
.nav-btn {
    background: #fff; color: #000; border: none; font-family: 'JetBrains Mono', monospace;
    font-weight: 800; font-size: 1rem; padding: 10px 20px; cursor: pointer;
    box-shadow: 4px 4px 0 #f04e76; transition: transform 0.1s, box-shadow 0.1s;
    border-radius: 12px 4px 12px 4px; transform: rotate(-1deg);
}
.nav-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #f04e76; }
.nav-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #f04e76; }

/* ---------- LAYOUT (BENTO GRID) ---------- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px; padding: 120px 4vw 4vw 4vw;
    max-width: 1400px; margin: 0 auto;
}

.bento-box {
    background: #0f0f11; border: 2px solid #2a2a30;
    padding: 40px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
}

/* Typography Basics */
h1, h2, h3 { font-family: 'Outfit', sans-serif; text-transform: uppercase; line-height: 0.9; margin: 0; color: #fff; }
.bento-box p { color: #999; line-height: 1.6; margin-top: auto; font-size: 1.05rem; }

/* ---------- GRID BLOCKS ---------- */

/* 1. HERO BLOCK */
.hero-block {
    grid-column: span 12; grid-row: span 3;
    padding: 64px 50px; justify-content: flex-end; border-color: #333;
    border-radius: 36px 14px 48px 14px;
}
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: grayscale(50%) contrast(1.2); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,17,1) 0%, rgba(15,15,17,0) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }

.status-pill {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
    background: #000; color: #10b981; padding: 8px 16px; border: 2px solid #222;
    margin-bottom: 24px; font-size: 0.9rem; border-radius: 50px; transform: rotate(-2deg);
}
.dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; }

.mega-title { font-size: clamp(4rem, 10vw, 8rem); font-weight: 900; letter-spacing: -3px; color: #fff; margin-bottom: 24px; }
.hero-desc { font-size: 1.2rem; max-width: 500px; margin-bottom: 40px; margin-top: 0; }

.cta-btn {
    display: inline-block; background: #f04e76; color: #000; border: 2px solid #f04e76;
    font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 900;
    padding: 16px 32px; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 6px 6px 0 #000; transition: all 0.1s;
    border-radius: 8px 24px 8px 8px; transform: rotate(1deg);
}
.cta-btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 #000; }
.cta-btn.outline { background: transparent; color: #fff; border-color: #fff; box-shadow: 6px 6px 0 #fff; }
.cta-btn.outline:hover { color: #000; background: #fff; }

/* 2. ABOUT BLOCK (PINK) */
.feature-block { grid-column: span 5; grid-row: span 2; border-radius: 12px 64px 12px 24px; }
.pink-bg { background: #f04e76; border-color: #ff6a90; color: #000; box-shadow: 8px 8px 0 #000; }
.pink-bg h2, .pink-bg p { color: #000; }
.pink-bg p { font-weight: 600; font-size: 1.1rem; }
.block-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.block-head h2 { font-size: 3rem; letter-spacing: -2px; }
.pixel-icon { width: 72px; height: 72px; image-rendering: pixelated; filter: drop-shadow(4px 6px 0 rgba(0,0,0,0.3)); transform: rotate(-4deg); }

/* 3. STATS BLOCK */
.stats-block { grid-column: span 7; display: flex; flex-direction: row; gap: 40px; align-items: center; justify-content: center; border-radius: 100px; padding: 20px 40px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.stat-num { font-family: 'Outfit', sans-serif; font-size: 4rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -2px; }
.stat-lbl { color: #666; font-weight: 800; letter-spacing: 2px; }

/* 4. SKILLS OVERVIEW */
.skills-block { grid-column: span 8; grid-row: span 2; background: #18181c; border-color: #3a3a44; justify-content: space-around; border-radius: 24px 8px 32px 8px; padding: 32px 48px; }
.skills-header h2 { font-size: 3.2rem; letter-spacing: -1px; margin-bottom: 12px; transform: rotate(-1deg); display: inline-block; color: #e2e2e8; }
.skills-header p { margin-top: 0; color: #888; font-size: 1.1rem; }
.pixel-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; justify-content: flex-start; }
.skill-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.skill-item img { width: 56px; height: 56px; filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.6)); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.skill-item:hover img { transform: translateY(-4px); }
.skill-item span { font-size: 0.8rem; font-weight: 800; color: #888; }

/* 5. MINI INFO */
.dark-block { grid-column: span 4; background: #08080a; border-color: #1a1a1e; border-radius: 8px 24px 8px 24px; }
.dark-block h2 { font-size: 2.2rem; color: #f04e76; margin-bottom: 12px; transform: rotate(1deg); }

/* 6. MODPACK */
.modpack-block { grid-column: span 12; display: flex; flex-direction: row; align-items: center; justify-content: space-between; background: #111; padding: 50px 60px; border-radius: 36px 12px 36px 12px; }
.modpack-info h2 { font-size: 3.8rem; letter-spacing: -3px; margin-bottom: 16px; transform: rotate(-1deg); }
.modpack-info p { max-width: 440px; margin-top: 0; margin-bottom: 32px; font-size: 1.15rem; color: #aaa; }
.modpack-tags { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; transform: rotate(1deg); }
.tag { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px #444; text-transform: uppercase; transition: color 0.2s; }
.tag:hover { color: #fff; -webkit-text-stroke: 0px; }

/* ---------- FOOTER ---------- */
.footer { background: #f04e76; color: #000; border-top: 2px solid #000; padding-top: 16px; position: relative; z-index: 10; overflow: hidden; }
.marquee-text { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 900; letter-spacing: -1px; border-bottom: 2px solid rgba(0,0,0,0.1); padding-bottom: 16px; white-space: nowrap; margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 0 4vw 24px; font-weight: 800; align-items: center; }
.discord-link { font-size: 1.2rem; text-decoration: underline; text-underline-offset: 4px; }
.discord-link:hover { background: #000; color: #f04e76; text-decoration: none; padding: 4px 12px; }

/* ---------- TOAST ---------- */
.toast {
    position: fixed; bottom: 32px; right: 32px; transform: translateY(100px); left: auto;
    background: #10b981; color: #000; padding: 14px 28px; border: 2px solid #000;
    font-weight: 800; box-shadow: 6px 6px 0 #000; z-index: 9999;
    transition: transform 0.2s; pointer-events: none; border-radius: 8px 24px 8px 8px;
    transform: rotate(-1deg) translateY(100px);
}
.toast.show { transform: rotate(-1deg) translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .feature-block { grid-column: span 12; }
    .stats-block { grid-column: span 12; }
    .skills-block { grid-column: span 12; }
    .dark-block { grid-column: span 12; }
    .modpack-block { flex-direction: column; align-items: flex-start; gap: 40px; }
    .modpack-tags { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .mega-title { font-size: 4.5rem; }
    .nav-links { display: none; }
}
