:root {
    --primary-color: #00674F;
    --primary-dark: #004333;
    --accent-color: #00FFC3;
    --bg-color: #050505;
    --card-bg: rgba(0, 103, 79, 0.1);
    --text-color: #E0E0E0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --scanline-color: rgba(0, 255, 195, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom,
            var(--scanline-color) 50%,
            rgba(0, 0, 0, 0) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 60%, #000 150%);
    pointer-events: none;
    z-index: 99;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 103, 79, 0.3);
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--accent-color);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

h1.glitch {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    text-shadow: 2px 2px var(--primary-color), -2px -2px var(--primary-dark);
    margin-bottom: 1rem;
}

/* Simple glitch effect using keyframes if desired, keeping it static but styled for now for performance/simplicity or adding CSS glitch later */

.tagline {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-shadow: 0 0 5px var(--primary-color);
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.cy-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.cy-btn:hover {
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

.cy-btn:hover::before {
    left: 0;
}

/* Grid Background */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--card-bg) 1px, transparent 1px),
        linear-gradient(90deg, var(--card-bg) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(100px) scale(2);
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 50px;
    }
}

/* Sections */
.container {
    padding: 6rem 5%;
}

.section-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 103, 79, 0.5);
    background: rgba(0, 103, 79, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header .icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.card h3 {
    color: #fff;
    font-size: 1.2rem;
}

.card p {
    color: #aeaeae;
    font-size: 0.9rem;
}

/* Terminal Section */
.terminal-window {
    background: #000;
    border: 1px solid #333;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    max-width: 800px;
    margin: 0 auto;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-header .title {
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 1rem;
    color: var(--accent-color);
    height: 300px;
    overflow-y: auto;
}

.input-line {
    display: flex;
}

.prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-family: inherit;
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
}



footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    border-top: 1px solid #111;
    font-size: 0.8rem;
    color: #666;
}

#timestamp {
    color: var(--primary-color);
}

/* Responsiveness */
@media (max-width: 768px) {
    .uplink-grid {
        grid-template-columns: 1fr;
    }

    h1.glitch {
        font-size: 3rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed, keeping simple */
    }
}