:root {
    --acid-green: #ccff00;
    --cyber-black: #080808;
    --grid-line: rgba(204, 255, 0, 0.1);
    --glass: rgba(20, 20, 20, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    background-color: var(--cyber-black);
    color: white;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- FONDO Y EFECTOS CRT --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    perspective: 500px;
}

/* --- LAYOUT PRINCIPAL --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    width: 100%;
}

/* --- HEADER HUD --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--acid-green);
    background: linear-gradient(90deg, var(--cyber-black) 0%, rgba(204, 255, 0, 0.05) 50%, var(--cyber-black) 100%);
}

.system-status {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blink {
    width: 10px;
    height: 10px;
    background: var(--acid-green);
    box-shadow: 0 0 10px var(--acid-green);
    animation: blinking 1s infinite;
}

@keyframes blinking {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.social-hud {
    display: flex;
    gap: 15px;
}

.hud-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
    transition: 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hud-btn:hover {
    background: var(--acid-green);
    color: black;
    border-color: var(--acid-green);
    box-shadow: 0 0 15px var(--acid-green);
    transform: translateY(-2px);
}

/* --- LOGO AREA --- */
.hero-section {
    height: 45vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-construct {
    position: relative;
    transform: skewX(-5deg);
}

.ni-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    line-height: 0.8;
    font-weight: 900;
    letter-spacing: -5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.zer-box {
    background: var(--acid-green);
    color: black;
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    line-height: 0.8;
    font-weight: 900;
    padding: 0 20px;
    display: inline-block;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
    position: relative;
}

.zer-box::after {
    content: "v.2.0";
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 1rem;
    font-family: 'Share Tech Mono';
    letter-spacing: 0;
}

.signature {
    font-family: 'Mr Dafoe', cursive;
    font-size: 2rem;
    position: absolute;
    bottom: -30px;
    right: -20px;
    color: white;
    text-shadow: 2px 2px 0 #000;
    transform: rotate(-10deg);
    z-index: 2;
}

/* --- MARQUEE (SCROLLING TEXT) --- */
.marquee-container {
    background: var(--acid-green);
    color: black;
    overflow: hidden;
    white-space: nowrap;
    padding: 5px 0;
    margin-bottom: 3rem;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    transform: rotate(-1deg);
    border-top: 2px solid white;
    border-bottom: 2px solid white;
}

.marquee-content {
    display: inline-block;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- PROYECTOS --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 50px;
}

.project-card {
    background: var(--glass);
    border: 1px solid #333;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Decoración de esquinas */
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--acid-green);
    border-left: 2px solid var(--acid-green);
}

.project-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--acid-green);
    border-right: 2px solid var(--acid-green);
}

.project-card:hover {
    border-color: var(--acid-green);
    background: rgba(204, 255, 0, 0.05);
    transform: scale(1.01);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.1);
}

.project-card:hover h3 {
    animation: glitch-text 0.3s infinite;
    color: var(--acid-green);
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.p-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.p-desc {
    color: #888;
    font-size: 1rem;
}

.p-tech {
    font-size: 0.8rem;
    color: var(--acid-green);
    border: 1px solid var(--acid-green);
    padding: 2px 6px;
    display: inline-block;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.action-arrow {
    font-size: 3rem;
    font-family: 'Rajdhani', sans-serif;
    opacity: 0.5;
    transition: 0.3s;
}

.project-card:hover .action-arrow {
    opacity: 1;
    color: var(--acid-green);
    transform: translateX(10px);
}

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    color: #444;
    padding: 40px 0;
    font-size: 0.85rem;
    border-top: 1px solid #111;
    margin-top: auto;
    line-height: 1.6;
}

.site-footer span {
    color: var(--acid-green);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .ni-text,
    .zer-box {
        font-size: 4.5rem;
    }

    .project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .action-arrow {
        align-self: flex-end;
    }
}