:root {
    --primary-color: #000000;
    --secondary-color: #444444;
    --bg-color: #f4f4f4;
    --accent-color: #0000ff;
    --border-color: #000000;
    --grid-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", Courier, monospace;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--primary-color);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border: 10px solid var(--primary-color);
}

header {
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    background-color: var(--bg-color);
}

.logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

/* Feature 4: Hover Inversion */
.content-area:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.content-area:hover p {
    color: #cccccc; /* Make paragraph readable on dark bg */
}

.content-area:hover .contact-btn {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--bg-color);
    box-shadow: 6px 6px 0px rgba(255,255,255,0.3); /* White shadow */
}

.content-area:hover .contact-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(255,255,255,0.3);
}

/* Feature 2: Blinking Cursor */
h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -1px;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

p {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 1px;
}

.contact-btn:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    transform: translate(2px, 2px);
}

/* Feature 3: System Status Badge */
.system-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #00ff00; /* Terminal Green */
    padding: 0.5rem 1rem;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 0.75rem;
    border: 1px solid #00ff00;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #00ff00; /* Glow effect */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    border-top: 4px solid var(--primary-color);
    background-color: var(--bg-color);
    text-transform: uppercase;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    body {
        border-width: 5px;
    }
    
    .content-area {
        border-left: none;
        border-right: none;
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2.25rem;
    }
    
    .logo {
        max-width: 200px;
    }

    .system-status {
        bottom: 10px;
        right: 10px;
        font-size: 0.7rem;
    }
}
