/* MASTER THEME: CYAN NEON / MATTE BLACK 
   ENGINE: FULLY CENTERED, SPACED & RESPONSIVE 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@900&family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
    --bg-black: #050505;
    --bg-surface: #0f0f0f;
    --cyan: #00f2ff;
    --cyan-glow: rgba(0, 242, 255, 0.3);
    --text-white: #ffffff;
    --text-dim: #888888;
    --border-dim: rgba(255, 255, 255, 0.08);

    /* Centering Constants */
    --container-max-width: 1200px;
    --desktop-padding: 80px;
    --mobile-padding: 30px;
    --section-gap: 140px;

    --font-heading: 'Montserrat', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
    --curve: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-smooth: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
}

/* Selection Polish */
::selection {
    background: var(--cyan);
    color: var(--bg-black);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto !important;
    padding: 0 var(--desktop-padding);
    width: 100%;
    position: relative;
}

/* Text Unlock */
p,
.full-desc,
.message-card,
input,
textarea {
    -webkit-user-select: text;
    user-select: text;
    cursor: auto;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* --- PAGE LOADER --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s var(--curve);
}

.loader-overlay.loaded {
    transform: translateY(-100%);
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
    animation: loaderProgress 0.6s ease-in-out forwards;
}

@keyframes loaderProgress {
    0% {
        width: 0;
        opacity: 1;
    }

    100% {
        width: 100px;
        opacity: 1;
    }
}

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--curve), transform 1s var(--curve);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HUD NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--cyan);
}

.btn-nav {
    border: 1px solid var(--cyan);
    padding: 10px 20px !important;
    border-radius: 2px;
    color: var(--cyan) !important;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    text-align: center;
}

.hero-frame {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    font-weight: 900;
}

.cyan-text {
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.hero-desc {
    font-family: var(--font-mono);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* --- BUTTONS --- */
.btn {
    padding: 1.2rem 2.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    transition: 0.4s var(--curve);
    cursor: pointer;
}

.btn-cyan {
    background: var(--cyan);
    color: var(--bg-black);
}

.btn-cyan:hover,
.btn-outline:hover {
    box-shadow: 0 0 30px var(--cyan-glow);
    transform: translateY(-5px);
}

.btn-outline {
    border: 1px solid var(--cyan);
    color: var(--cyan);
    margin-left: 15px;
}

/* --- BENTO GRID --- */
.section-gap {
    padding: var(--section-gap) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    text-align: center;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--cyan);
    margin: 20px auto 60px auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.bento-item {
    grid-column: span 12;
    height: 450px;
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    overflow: hidden;
    position: relative;
    transition: 0.5s var(--curve);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.bento-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .bento-large {
        grid-column: span 7;
    }

    .bento-small {
        grid-column: span 5;
    }
}

/* --- FOOTER --- */
footer {
    padding: 100px 0 60px 0;
    border-top: 1px solid var(--border-dim);
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

/* --- MOBILE MENU SYSTEM --- */
.menu-toggle {
    display: none;
    /* Hidden on Desktop */
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--cyan-glow);
}

/* MOBILE RESPONSIVE REPAIR */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--mobile-padding);
    }

    .menu-toggle {
        display: flex !important;
        /* Forces hamburger to show */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Off-screen */
        width: 100%;
        height: 100vh;
        background: #050505;
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.7s var(--curve);
        z-index: 1500;
        display: flex;
        /* Override desktop flex */
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links a {
        font-size: 1.8rem;
        font-family: var(--font-heading);
        letter-spacing: 4px;
    }

    .btn-nav {
        width: 80%;
        text-align: center;
        font-size: 1.2rem !important;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- MOUSE GLOW --- */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s;
}

/* --- BENTO LINK REPAIR --- */
#featured-bento a.bento-item {
    display: block !important; /* Forces visibility */
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 100%;
    height: 450px; /* Matches your original bento-item height */
    overflow: hidden;
}

/* Ensure the image fills the new anchor tag */
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fix for the reveal animation on dynamic items */
.bento-item.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--curve);
}

.bento-item.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}