:root {
    --neon-green: #39ff14;
    --dark-bg: #050505;
    --panel-bg: rgba(10, 10, 12, 0.7);
    --text-main: #e0e0e0;
    --text-dim: #888;
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --border-color: rgba(57, 255, 20, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair; /* Stylistic cursor */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* BACKGROUND EFFECTS */
#cosmicCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.overlay-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, #000 100%);
    z-index: -1;
    pointer-events: none;
}

/* HEADER */
.cyber-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: exclusion;
}

.logo-glitch {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--neon-green);
    position: relative;
    letter-spacing: 2px;
}

/* MENU ANIMATION */
.menu-trigger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--neon-green);
}

.menu-trigger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-trigger.active .bar:nth-child(2) { opacity: 0; }
.menu-trigger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.cyber-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
    backdrop-filter: blur(10px);
}

.cyber-nav.active {
    right: 0;
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 20px 0;
}

.glitch-link {
    font-family: var(--font-header);
    font-size: 2rem;
    color: white;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}

.glitch-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.neon-text {
    display: block;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    margin-bottom: 50px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--neon-green);
    border-right: 2px solid var(--neon-green);
    transform: rotate(45deg);
    margin: -5px;
    animation: scroll 2s infinite;
}

.arrow:nth-child(2) { animation-delay: -0.2s; }
.arrow:nth-child(3) { animation-delay: -0.4s; }

@keyframes scroll {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* CARDS SECTION */
.cards-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-header);
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.line-deco {
    width: 50px;
    height: 3px;
    background: var(--neon-green);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--neon-green);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cyber-card {
    position: relative;
    display: block;
    text-decoration: none;
    background: var(--panel-bg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cyber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.1);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    z-index: 2;
    pointer-events: none;
}

.cyber-card:hover .card-border {
    border-color: var(--neon-green);
    box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.1);
}

.card-content {
    padding: 30px;
    position: relative;
    z-index: 3;
}

.card-content h3 {
    font-family: var(--font-header);
    color: var(--neon-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-content p {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 25px;
}

.card-status {
    font-family: var(--font-header);
    font-size: 0.8rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-green);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* FOOTER */
.cyber-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #000;
}

.cyber-footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.blink {
    color: var(--neon-green);
    animation: blink 1s infinite;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-trigger {
        display: flex;
    }
    .hero-title {
        font-size: 3rem;
    }
}
