/* Base styles */
:root {
    --terminal-green: #00ff00;
    --terminal-dark-green: #003300;
    --terminal-glow: rgba(0, 255, 0, 0.2);
}

body {
    font-family: 'VT323', monospace;
    background-color: #000;
    color: var(--terminal-green);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
}

/* Logo effects */
.logo-glow {
    filter: brightness(1.1) drop-shadow(0 0 2px var(--terminal-green));
    transition: all 0.3s ease;
    width: 192px;
    height: 192px;
    object-fit: contain;
}

.logo-glow:hover {
    filter: brightness(1.3) drop-shadow(0 0 4px var(--terminal-green));
    transform: scale(1.05);
}

/* Terminal effects */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.terminal-glow {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Special Elite', cursive;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terminal-green);
}

/* Links */
a {
    color: var(--terminal-green);
    text-decoration: none;
    border-bottom: 1px solid var(--terminal-green);
    transition: all 0.3s ease;
}

a:hover {
    background-color: var(--terminal-green);
    color: #000;
}

/* Terminal window */
.terminal-container {
    background: #000;
    border: 1px solid var(--terminal-green);
    border-radius: 5px;
    margin: 2rem auto;
    max-width: 800px;
    height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    padding: 0;
}

.terminal-window {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00;
    padding: 20px;
    font-family: 'VT323', monospace;
    position: relative;
    overflow-y: auto;
    height: 100%;
    font-size: 1rem;
}

.terminal-header {
    background: #000;
    border-bottom: 1px solid var(--terminal-green);
    padding: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
    width: 100%;
}

.terminal-title {
    color: var(--terminal-green);
    font-size: 0.8rem;
    font-family: monospace;
}

.terminal-controls {
    display: flex;
    gap: 6px;
    padding-right: 4px;
}

.control {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--terminal-green);
    opacity: 0.8;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.control:hover {
    filter: brightness(1.2);
}

.minimize { background-color: #004400; }
.maximize { background-color: #006600; }
.close { background-color: #008800; }

.terminal-line {
    display: flex;
    margin-bottom: 0.5em;
    line-height: 1.2;
    position: relative;
    font-size: 1rem;
}

.terminal-line.command-history {
    opacity: 0.7;
    margin-bottom: 0.25em;
}

.terminal-line.command-history .command {
    color: #00ff00;
}

.prompt {
    color: #00ff00;
    margin-right: 0.5em;
    user-select: none;
    font-size: inherit;
}

.input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'VT323', monospace;
    outline: none;
    flex-grow: 1;
    min-width: 1px;
    position: relative;
    font-size: 1rem;
}

.input:focus {
    outline: none;
}

.input:empty:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #00ff00;
    animation: blink 1s step-end infinite;
}

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

.terminal-output {
    color: #00ff00;
    margin: 0.5em 0 1em;
    line-height: 1.2;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-output pre {
    margin: 0.5em 0;
    white-space: pre;
    overflow-x: auto;
}

.terminal-output p {
    margin: 0.25em 0;
}

.terminal-output ul {
    list-style: none;
    padding-left: 1em;
}

.terminal-output li {
    margin: 0.25em 0;
    position: relative;
}

.terminal-output li:before {
    content: '>';
    position: absolute;
    left: -1em;
    color: #006600;
}

/* Header link and nav styling */
.site-title,
.site-title:visited {
    color: #00ff00;
    text-decoration: none;
}

.site-nav {
    margin-top: 1em;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.site-nav a,
.site-nav a:visited {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* Navigation */
nav {
    border-bottom: 1px solid var(--terminal-green);
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.glow-button {
    animation: pulse 2s infinite;
    font-family: 'VT323', monospace;
    letter-spacing: 0.1em;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.3),
                    inset 0 0 5px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6),
                    inset 0 0 10px rgba(0, 255, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.3),
                    inset 0 0 5px rgba(0, 255, 0, 0.3);
    }
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
    font-weight: bold;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

/* Cards for department sections */
.department-card {
    border: 1px solid var(--terminal-green);
    padding: 20px;
    margin: 20px 0;
    background: rgba(0, 20, 0, 0.3);
    transition: all 0.3s ease;
}

.department-card:hover {
    box-shadow: 0 0 20px var(--terminal-glow);
    transform: translateY(-2px);
}

/* Footer */
footer {
    border-top: 1px solid var(--terminal-green);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .terminal-window {
        margin: 10px;
        padding: 10px;
    }
}
