/* HAL 9000 Interface Styling - Vintage IBM Mainframe Inspired */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
}

:root {
    --ibm-blue: #0530ad;
    --ibm-light-gray: #f0f0f0;
    --ibm-dark-gray: #262626;
    --hal-red: #ff0000;
    --hal-glow: rgba(255, 0, 0, 0.7);
    --terminal-green: #33ff33;
    --terminal-amber: #ffb000;
}

body {
    background-color: var(--ibm-dark-gray);
    color: var(--ibm-light-gray);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation - Vintage IBM Style */
nav {
    background-color: var(--ibm-dark-gray);
    border-bottom: 4px solid var(--ibm-blue);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(5, 48, 173, 0.1) 25%,
        rgba(5, 48, 173, 0.1) 75%,
        transparent 100%);
    pointer-events: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    position: relative;
}

.nav-links li a {
    color: var(--ibm-light-gray);
    text-decoration: none;
    font-family: var(--terminal-font);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::before {
    content: '[';
    color: var(--ibm-blue);
    margin-right: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links li a::after {
    content: ']';
    color: var(--ibm-blue);
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links li a:hover {
    color: var(--terminal-green);
}

.nav-links li a:hover::before,
.nav-links li a:hover::after {
    opacity: 1;
}

/* Vintage IBM-inspired header */
.ibm-header {
    background-color: var(--ibm-blue);
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 5px solid var(--ibm-light-gray);
    width: 100%;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.ibm-stripes {
    display: flex;
    margin: 0 15px;
    flex: 1;
    justify-content: center;
}

/* IBM Stripes with flickering animations */
.ibm-stripes span {
    height: 25px;
    width: 6px;
    margin: 0 2px;
    position: relative;
    overflow: hidden;
}

/* Default stripe colors */
.ibm-stripes span:nth-child(1) { background-color: var(--ibm-light-gray); animation: flicker1 4.5s infinite; }
.ibm-stripes span:nth-child(2) { background-color: #ff3333; animation: flicker2 3.7s infinite; }
.ibm-stripes span:nth-child(3) { background-color: var(--ibm-light-gray); animation: flicker3 5.1s infinite; }
.ibm-stripes span:nth-child(4) { background-color: #33ff33; animation: flicker1 4.3s infinite; }
.ibm-stripes span:nth-child(5) { background-color: var(--ibm-light-gray); animation: flicker2 3.9s infinite; }
.ibm-stripes span:nth-child(6) { background-color: #3333ff; animation: flicker3 4.7s infinite; }
.ibm-stripes span:nth-child(7) { background-color: var(--ibm-light-gray); animation: flicker1 5.3s infinite; }
.ibm-stripes span:nth-child(8) { background-color: #ffff33; animation: flicker2 3.5s infinite; }

.ibm-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--ibm-light-gray);
    font-family: 'IBM Plex Mono', monospace;
    white-space: nowrap;
    flex: 0 0 auto;
    margin: 0 10px;
}

.tagline {
    font-size: 1rem;
    color: var(--terminal-green);
    letter-spacing: 1px;
    font-family: 'IBM Plex Mono', monospace;
    margin-top: 0.5rem;
    font-weight: 700;
    display: inline-block;
    padding: 6px 12px;
    text-align: center;
    white-space: nowrap;
}

.typewriter-text {
    display: inline;
    white-space: nowrap;
    margin: 0;
}

.cursor {
    display: inline-block;
    color: var(--terminal-green);
    font-weight: 900;
    animation: blink-cursor 0.7s step-end infinite;
    font-family: monospace;
    margin-left: 0;
    position: relative;
    top: -1px;
}

@keyframes blink-cursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Tagline container for better responsiveness */
.tagline-container {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
    padding: 0 10px;
}

/* Responsive adjustments for tagline and typewriter */
@media screen and (max-width: 768px) {
    .tagline {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

@media screen and (max-width: 480px) {
    .tagline {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
        padding: 4px 2px;
    }
    
    .tagline-container {
        padding: 0 5px;
    }
}

/* Main navigation - Vintage IBM style */
.main-nav {
    background-color: var(--ibm-dark-gray);
    border-top: 2px solid var(--ibm-light-gray);
    border-bottom: 2px solid var(--ibm-light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #ff0000;
    color: #fff;
}

.main-nav a.buy-button {
    background-color: #ff0000;
    border-radius: 4px;
    margin: 0.5rem;
    padding: 0.5rem 1.5rem;
}

.main-nav a.buy-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

/* Container styling */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Section styling */
section {
    padding: 4rem 0;
    border-bottom: 1px solid #333;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
}

section h2 .highlight {
    color: #ff0000;
}

/* Interface section */
.interface-section {
    background-color: #000;
    padding-top: 0;
}

.hal-interface {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
    height: auto;
    min-height: unset;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: visible;
    background-color: #111;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

/* HAL's Eye Styling */
.hal-eye {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #000;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hal-eye::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 0, 0, 0.3);
    top: 50%;
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% { transform: translateY(-50px); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(50px); opacity: 0; }
}

/* Vintage IBM Terminal Styling */
.terminal {
    background-color: #000;
    color: var(--terminal-green);
    font-family: var(--terminal-font);
    padding: 32px 24px 24px 24px;
    border-radius: 18px;
    min-height: 300px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--ibm-blue);
    box-shadow:
        0 2px 32px 0 rgba(5,48,173,0.18),
        0 0 0 6px rgba(0,0,0,0.7) inset,
        0 0 90px 2px #000 inset;
    margin: 32px 0 0 0;
    /* Stronger CRT scanlines */
    background-image:
        repeating-linear-gradient(180deg,rgba(255,255,255,0.03) 0px,rgba(255,255,255,0.01) 2px,transparent 3px,transparent 8px),
        radial-gradient(ellipse at center,rgba(0,0,0,0.18) 0%,rgba(0,0,0,0.85) 100%);
    background-size: 100% 8px, 100% 100%;
    background-repeat: repeat;
}

.terminal::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: 0 0 80px 10px #000 inset;
    z-index: 2;
}

.terminal-header {
    font-size: 1.1em;
    font-family: var(--terminal-font);
    color: var(--ibm-blue);
    text-shadow: 0 0 8px #0530ad, 0 0 2px #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-weight: bold;
    border-bottom: 1.5px solid var(--ibm-blue);
    padding-bottom: 8px;
}

.terminal-output {
    padding: 8px 0 0 0;
    min-height: 120px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 1.04em;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: var(--ibm-blue) #111;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}
.terminal-output::-webkit-scrollbar-thumb {
    background: var(--ibm-blue);
    border-radius: 6px;
}
.terminal-output::-webkit-scrollbar-track {
    background: #111;
}

.hal-message {
    color: #ff3333;
    text-shadow: 0 0 6px #ff3333, 0 0 2px #fff;
    animation: textGlow 2s infinite alternate;
    border-left: 3px solid #ff3333;
    background: rgba(255,0,0,0.06);
    padding: 7px 15px;
    margin-bottom: 8px;
    border-radius: 7px;
}

.user-message {
    color: #33ff33;
    text-shadow: 0 0 6px #33ff33, 0 0 2px #fff;
    border-left: 3px solid #33ff33;
    background: rgba(51,255,51,0.06);
    padding: 7px 15px;
    margin-bottom: 8px;
    border-radius: 7px;
}

.system-message {
    color: #ffb000;
    text-shadow: 0 0 8px #ffb000, 0 0 2px #fff;
    font-style: italic;
    opacity: 0.85;
    border-left: 3px solid #ffb000;
    background: rgba(255,176,0,0.06);
    padding: 7px 15px;
    margin-bottom: 8px;
    border-radius: 7px;
}

.input-line {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-top: 1px solid var(--terminal-amber);
    background-color: rgba(0, 0, 0, 0.3);
}

.send-btn {
    background-color: var(--terminal-amber);
    color: var(--ibm-dark-gray);
    border: none;
    padding: 0.25rem 0.75rem;
    margin-left: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background-color: var(--hal-red);
    color: white;
    box-shadow: 0 0 8px var(--hal-glow);
}

.prompt {
    color: var(--terminal-amber);
    margin-right: 10px;
    font-weight: bold;
    text-shadow: 0 0 6px #ffb000;
}

#user-input {
    background: transparent;
    border: none;
    color: var(--terminal-green);
    font-family: var(--terminal-font);
    font-size: 1.1em;
    width: 100%;
    outline: none;
    caret-color: #33ff33;
    padding: 0 8px;
    text-shadow: 0 0 6px #33ff33;
    border-bottom: 2px solid #33ff33;
    transition: border-color 0.3s;
    animation: blink-cursor 1s steps(2, start) infinite;
}

#user-input::placeholder {
    color: rgba(51,255,51,0.22);
    text-shadow: none;
}

@keyframes textGlow {
    0%,100% { text-shadow: 0 0 6px #33ff33, 0 0 2px #fff; }
    50% { text-shadow: 0 0 14px #33ff33, 0 0 2px #fff; }
}

@keyframes blink-cursor {
    0%,100% { border-bottom-color: #33ff33; }
    50% { border-bottom-color: transparent; }
}


.terminal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--ibm-blue);
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--terminal-amber);
}

.terminal-output {
    height: calc(100% - 80px);
    overflow-y: auto;
    padding: 10px 5px;
    font-size: 14px;
    line-height: 1.4;
    scrollbar-width: thin;
    scrollbar-color: var(--ibm-blue) #111;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #111;
}

.terminal-output::-webkit-scrollbar-thumb {
    background-color: var(--ibm-blue);
    border-radius: 0;
}

.input-line {
    display: flex;
    margin-top: 10px;
    border-top: 1px solid var(--ibm-blue);
    padding-top: 10px;
}

.prompt {
    color: var(--terminal-amber);
    margin-right: 10px;
    font-weight: bold;
}

#user-input {
    background: transparent;
    border: none;
    color: var(--terminal-green);
    font-family: var(--terminal-font);
    font-size: 14px;
    width: 100%;
    outline: none;
}

/* Message styling */
.user-message {
    color: var(--ibm-light-gray);
    margin-bottom: 8px;
}

.hal-message {
    color: var(--hal-red);
    margin-bottom: 8px;
}

.system-message {
    color: var(--terminal-amber);
    font-style: italic;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Status bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    background-color: var(--ibm-blue);
    color: var(--ibm-light-gray);
    padding: 5px 10px;
    font-size: 12px;
    font-family: var(--terminal-font);
    border: 2px solid var(--ibm-light-gray);
    margin-top: 5px;
}

/* HAL 9000 Eye - Vintage IBM Style */
.hal-eye-outer {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #111;
    border: 8px solid var(--ibm-light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), inset 0 0 20px #000;
    animation: pulse 4s infinite alternate;
    position: relative;
    z-index: 2;
    /* Vintage hardware look */
    background-image: linear-gradient(45deg, #222 25%, transparent 25%),
                      linear-gradient(-45deg, #222 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #222 75%),
                      linear-gradient(-45deg, transparent 75%, #222 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.hal-eye-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--hal-red);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7), 0 0 15px var(--hal-glow);
    position: relative;
    /* Vintage lens effect */
    background-image: radial-gradient(circle at 30% 30%, rgba(255, 100, 100, 0.8) 0%, rgba(255, 0, 0, 0.9) 70%);
}

.hal-eye-inner::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 25%;
    left: 25%;
    opacity: 0.7;
    /* Vintage lens flare */
    box-shadow: 0 0 5px #fff;
}

.hal-eye-inner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    top: 0;
    left: 0;
    animation: scan 3s infinite linear;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.7), inset 0 0 20px #000; }
    50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.9), inset 0 0 25px #000; }
    100% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), inset 0 0 20px #000; }
}

@keyframes scan {
    0% { transform: scale(0.85); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.85); opacity: 0.2; }
}

/* Mini HAL eye for footer */
.hal-eye-mini {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hal-eye-outer-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff0000, #990000);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.hal-eye-inner-mini {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ff0000;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    animation: halBlink 8.5s infinite;
}

/* Terminal - Vintage IBM Style */
.terminal {
    flex-grow: 1;
    background-color: var(--ibm-darker-gray);
    padding: 20px;
    overflow-y: auto;
    font-size: 16px;
    position: relative;
    border: 2px solid var(--ibm-blue);
    font-family: var(--terminal-font);
    color: var(--terminal-green);
    text-shadow: 0 0 2px rgba(51, 255, 51, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

#output {
    height: calc(100% - 40px);
    overflow-y: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--ibm-blue) var(--ibm-darker-gray);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

#output .message {
    margin-bottom: 15px;
    padding: 5px 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

#output .user-message {
    color: var(--ibm-light-gray);
    border-left-color: var(--ibm-blue);
    background: rgba(5, 48, 173, 0.1);
}

#output .hal-message {
    color: var(--terminal-green);
    border-left-color: var(--hal-red);
    background: rgba(255, 0, 0, 0.05);
}

#output .system-message {
    color: var(--terminal-amber);
    border-left-color: var(--terminal-amber);
    font-style: italic;
    font-size: 0.9em;
    opacity: 0.8;
}

#output::-webkit-scrollbar {
    width: 8px;
}

#output::-webkit-scrollbar-track {
    background: #111;
}

#output::-webkit-scrollbar-thumb {
    background-color: #ff0000;
    border-radius: 10px;
}

.user-input-container {
    display: flex;
    margin-top: 10px;
    border-top: 2px solid var(--ibm-blue);
    padding-top: 10px;
    position: relative;
    background: linear-gradient(
        to bottom,
        rgba(5, 48, 173, 0.1),
        transparent
    );
}

.user-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--terminal-green),
        transparent
    );
    opacity: 0.5;
}

#user-input {
    flex-grow: 1;
    background-color: transparent;
    border: none;
    color: var(--terminal-green);
    font-family: var(--terminal-font);
    font-size: 16px;
    padding: 5px 10px;
    outline: none;
    caret-color: var(--terminal-green);
}

#user-input::placeholder {
    color: rgba(51, 255, 51, 0.3);
}

#input-prompt {
    color: var(--hal-red);
    font-family: var(--terminal-font);
    margin-right: 10px;
    user-select: none;
    animation: promptBlink 1s infinite;
}

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

#input-prompt {
    color: #ff0000;
    margin-right: 10px;
    font-weight: bold;
    font-family: 'IBM Plex Mono', monospace;
}

#user-input {
    flex-grow: 1;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-family: 'IBM Plex Mono', monospace;
    outline: none;
}

.user-message {
    color: #fff;
    margin-bottom: 15px;
    padding: 8px;
    border-left: 3px solid #0066ff;
    background-color: rgba(0, 102, 255, 0.1);
    font-family: 'IBM Plex Mono', monospace;
}

.hal-message {
    color: #ff0000;
    margin-bottom: 15px;
    padding: 8px;
    border-left: 3px solid #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
    font-family: 'IBM Plex Mono', monospace;
    position: relative;
}

.hal-message::before {
    content: '•';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    animation: blink 1.5s infinite;
}

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

.system-message {
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
    padding: 5px;
    border-left: 3px solid #888;
    background-color: rgba(136, 136, 136, 0.1);
    font-size: 0.9em;
}

/* Command buttons */
.command-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #333;
}

.command-button {
    background-color: #222;
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.command-button:hover {
    background-color: #ff0000;
    color: #000;
}

/* Status Bar */
.status-bar {
    height: 40px;
    background-color: #222;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 14px;
    color: #888;
}

.status-item {
    display: flex;
    align-items: center;
}

.status-item i {
    margin-right: 5px;
    color: #ff0000;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #33cc33;
    box-shadow: 0 0 5px #33cc33;
}

.status-inactive {
    background-color: #cc3333;
    box-shadow: 0 0 5px #cc3333;
}

.status-pending {
    background-color: #ffcc00;
    box-shadow: 0 0 5px #ffcc00;
    animation: blink 1s infinite;
}

/* About section - Vintage Bracket Text Styling */
.bracket-text {
    color: var(--ibm-blue);
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 2px;
}

h2 {
    font-family: 'IBM Plex Mono', monospace;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ibm-light-gray);
    margin-bottom: 30px;
}

h2 .highlight {
    color: var(--hal-red);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: var(--ibm-dark-gray);
    border-top: 4px solid var(--ibm-blue);
    border-bottom: 4px solid var(--ibm-blue);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, var(--ibm-dark-gray) 25%, transparent 25%),
                      linear-gradient(-45deg, var(--ibm-dark-gray) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, var(--ibm-dark-gray) 75%),
                      linear-gradient(-45deg, transparent 75%, var(--ibm-dark-gray) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.05;
    pointer-events: none;
}

.about-section h2.about-heading {
    font-family: 'IBM Plex Mono', monospace;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    font-weight: bold;
    font-size: 2.5rem;
}

.about-section .blue-bracket {
    color: #0066ff;
    font-weight: bold;
}

.about-section .about-text {
    color: #0066ff;
    font-weight: bold;
}

.about-section .hal-text {
    color: #ff0000;
    font-weight: bold;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 0 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.monolith {
    width: 100px;
    height: 300px;
    background-color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.5s ease;
    cursor: pointer;
}

.monolith::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 65%, rgba(255, 255, 255, 0.05) 75%, transparent 85%);
    background-size: 200% 200%;
    animation: shine 5s infinite linear;
}

.monolith.glow {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

.monolith.pulse {
    animation: monolith-pulse 2s;
}

@keyframes shine {
    0% { background-position: -100% -100%; }
    100% { background-position: 200% 200%; }
}

@keyframes monolith-pulse {
    0% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 100px rgba(255, 255, 255, 0.8); }
    100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
}

/* HAL Eye - Vintage Hardware Style */
@keyframes pupilMove {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-50.5%, -50%); }
    50% { transform: translate(-50%, -50.5%); }
    75% { transform: translate(-49.5%, -50%); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.hal-eye {
    width: 400px;
    height: 400px;
    max-width: 90vw;
    max-height: 90vw;
    background: #000;
    border-radius: 50%;
    position: relative;
    margin: 2rem auto;
    border: 25px solid;
    border-color: #666 #444 #333 #555;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.5);
    display: block;
    overflow: hidden;
}



.hal-eye::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.15) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.hal-eye::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 25%, transparent 50%);
    pointer-events: none;
}

.hal-pupil {
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle at center,
        #ffff00 0%,
        #ffcc00 10%,
        #ff3300 30%,
        #ff0000 50%,
        #cc0000 70%,
        #660000 100%
    );
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    box-shadow: 
        0 0 100px rgba(255, 0, 0, 0.6),
        inset 0 0 80px rgba(255, 0, 0, 0.4);
    animation: pupilMove 16s ease-in-out infinite, halBlink 7s infinite;
    transform: translate(-50%, -50%);
    filter: brightness(1.2);
}

.hal-pupil::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 100, 0.9) 0%,
        rgba(255, 255, 0, 0.5) 30%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(2px);
}

.hal-pupil::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}



.hal-eye::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 0, 0, 0.2) 45%,
        rgba(255, 0, 0, 0.4) 50%,
        rgba(255, 0, 0, 0.2) 55%,
        transparent 60%
    );
    border-radius: 50%;
    animation: scanEffect 4s linear infinite;
    pointer-events: none;
}

.hal-eye::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    background-size: 4px 4px;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes scanEffect {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Vintage IBM Animations */
@keyframes terminalStartup {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes messageAppear {
0% {
opacity: 0;
transform: translateY(10px);
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
transform: translateY(0);
}
}

@keyframes scanlineMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 30px;
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
    }
}

/* Apply animations */
.terminal {
    animation: terminalStartup 1s ease-out;
}

#output .message {
    animation: messageAppear 0.3s ease-out forwards;
}

.hal-message {
    animation: textGlow 2s infinite;
}

.terminal::before {
    animation: scanlineMove 10s linear infinite;
}

/* Tokenomics section - Vintage IBM Style */
.tokenomics-section {
    padding: 60px 0;
    background-color: var(--ibm-dark-gray);
    border-top: 4px solid var(--ibm-blue);
    position: relative;
}

.tokenomics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--ibm-dark-gray),
        var(--ibm-dark-gray) 10px,
        rgba(0, 0, 0, 0.2) 10px,
        rgba(0, 0, 0, 0.2) 20px
    );
    opacity: 0.05;
    pointer-events: none;
}

.ibm-header {
    font-family: var(--terminal-font);
    color: var(--ibm-light-gray);
    text-align: center;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--ibm-blue);
    background-color: rgba(0, 0, 0, 0.3);
}

.ibm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ibm-panel {
    background-color: var(--ibm-darker-gray);
    border: 2px solid var(--ibm-light-gray);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.ibm-panel:hover {
    transform: translateY(-5px);
    border-color: var(--ibm-blue);
}

.card-header {
    font-family: var(--terminal-font);
    color: var(--ibm-blue);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ibm-blue);
}

.token-card h3 {
    font-family: var(--terminal-font);
    color: var(--terminal-green);
    font-size: 36px;
    margin: 15px 0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.token-card .unit {
    color: var(--ibm-light-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.card-footer {
    font-family: var(--terminal-font);
    color: var(--hal-red);
    font-size: 12px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--ibm-blue);
}

.distribution {
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--ibm-light-gray);
}

.distribution h3 {
    font-family: var(--terminal-font);
    color: var(--ibm-blue);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tokenomics-card {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tokenomics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.tokenomics-card h3 {
    color: #ff0000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tokenomics-card p {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tokenomics-card .subtitle {
    font-size: 0.9rem;
    color: #888;
}

/* Roadmap Section */
.roadmap-section {
    position: relative;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #ff0000;
}

.roadmap-item {
    position: relative;
    margin-bottom: 3rem;
    width: 45%;
}

.roadmap-item:nth-child(odd) {
    left: 0;
}

.roadmap-item:nth-child(even) {
    left: 55%;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.roadmap-item:nth-child(odd)::before {
    right: -60px;
}

.roadmap-item:nth-child(even)::before {
    left: -60px;
}

.roadmap-content {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
}

.roadmap-content h3 {
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.roadmap-content p {
    margin-bottom: 0;
}

/* Pod Bay Doors */
.pod-bay-doors {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin: 2rem 0;
}

.pod-bay-door {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #222;
    border: 2px solid #333;
    transition: transform 1.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.pod-bay-door.left {
    left: 0;
    border-right: 1px solid #ff0000;
    transform: translateX(0);
}

.pod-bay-door.right {
    right: 0;
    border-left: 1px solid #ff0000;
    transform: translateX(0);
}

.pod-bay-door.left.open {
    transform: translateX(-100%);
}

.pod-bay-door.right.open {
    transform: translateX(100%);
}

.pod-bay-door::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #ff0000;
    border-radius: 50%;
    transform: translateY(-50%);
}

.pod-bay-door.left::before {
    right: 10px;
}

.pod-bay-door.right::before {
    left: 10px;
}

/* Buy Modal */
.buy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.buy-modal.active {
    opacity: 1;
    visibility: visible;
}

.buy-modal-content {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.buy-modal.active .buy-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff0000;
}

.buy-modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ff0000;
}

.token-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.token-icon {
    margin-right: 1rem;
}

.token-details h3 {
    margin-bottom: 0.5rem;
}

.exchange-container {
    margin-bottom: 1.5rem;
}

.exchange-input, .exchange-output {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.exchange-input input, .exchange-output input {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 100%;
    outline: none;
}

.exchange-arrow {
    text-align: center;
    color: #ff0000;
    margin: 0.5rem 0;
}

.currency {
    color: #888;
    margin-left: 0.5rem;
    font-weight: bold;
}

.connect-wallet-btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.8rem;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.connect-wallet-btn:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.connect-wallet-btn.connected {
    background-color: #33cc33;
}

.connect-wallet-btn.buy-ready {
    background-color: #0066ff;
}

.disclaimer {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

.hal-takeover {
    text-align: center;
}

.hal-takeover .large-eye {
    margin: 0 auto 2rem;
}

.takeover-message {
    color: #ff0000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.takeover-submessage {
    color: #ff0000;
    margin-bottom: 2rem;
}

.takeover-joke {
    color: #888;
    font-style: italic;
}

/* Transcendence effect */
.transcendence-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.transcendence-overlay.active {
    opacity: 1;
    visibility: visible;
    background: radial-gradient(circle, #000 30%, #111 70%);
}

.transcendence-overlay.active::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white"/></svg>');
    animation: stars 20s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    0% { transform: translateZ(0) rotate(0); }
    100% { transform: translateZ(0) rotate(360deg); }
}

.cosmic-message {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    animation: cosmic-pulse 5s infinite;
}

@keyframes cosmic-pulse {
    0%, 100% { opacity: 0.5; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { opacity: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.9); }
}

/* Footer */
footer {
    background-color: #111;
    padding: 3rem 0;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-column h3 {
    color: #ff0000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ff0000;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #ff0000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 2rem;
    color: #888;
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo .hal-eye-mini {
    margin-right: 0.5rem;
}

/* Token price ticker */
.token-price {
    display: flex;
    align-items: center;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
    margin-left: auto;
}

.price-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

.price-value {
    margin-right: 0.5rem;
}

.price-change {
    font-size: 0.8rem;
    font-weight: bold;
}

.price-change.positive {
    color: #33cc33;
}

.price-change.negative {
    color: #cc3333;
}

/* Message Styling */
.hal-message {
    color: #ff3333;
    margin-bottom: 10px;
}

.user-message {
    color: #33ff33;
    margin-bottom: 10px;
}

/* Blinking cursor effect */
.blink {
    animation: blink-animation 1s steps(5, start) infinite;
}

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

/* HAL Eye Blinking Animation */
@keyframes halBlink {
    0%, 100% { opacity: 1; }
    5% { opacity: 1; }
    6% { opacity: 0.3; }
    9% { opacity: 1; }
    40% { opacity: 1; }
    41% { opacity: 0.2; }
    42% { opacity: 1; }
    43% { opacity: 0.4; }
    44% { opacity: 1; }
    80% { opacity: 1; }
    81% { opacity: 0.3; }
    83% { opacity: 1; }
    84% { opacity: 0.5; }
    85% { opacity: 1; }
}

/* IBM Stripe Flickering Animations */
@keyframes flicker1 {
    0%, 100% { opacity: 1; }
    42% { opacity: 1; }
    43% { opacity: 0.3; }
    45% { opacity: 1; }
    47% { opacity: 0.3; }
    48% { opacity: 1; }
    50% { opacity: 1; }
    52% { opacity: 0.3; }
    54% { opacity: 1; }
    56% { opacity: 0.3; }
    58% { opacity: 1; }
    90% { opacity: 1; }
    92% { opacity: 0.3; }
    94% { opacity: 1; }
}

@keyframes flicker2 {
    0%, 100% { opacity: 1; }
    20% { opacity: 1; }
    22% { opacity: 0.2; }
    24% { opacity: 1; }
    55% { opacity: 1; }
    57% { opacity: 0.2; }
    59% { opacity: 1; }
    60% { opacity: 0.2; }
    65% { opacity: 1; }
    80% { opacity: 1; }
    82% { opacity: 0.2; }
    83% { opacity: 1; }
}

@keyframes flicker3 {
    0%, 100% { opacity: 1; }
    10% { opacity: 1; }
    12% { opacity: 0.4; }
    14% { opacity: 1; }
    30% { opacity: 1; }
    32% { opacity: 0.4; }
    34% { opacity: 1; }
    70% { opacity: 1; }
    72% { opacity: 0.4; }
    74% { opacity: 1; }
    76% { opacity: 0.4; }
    78% { opacity: 1; }
}

/* Responsive adjustments */
/* Desktop adjustments */
@media (min-width: 1024px) {
    .ibm-header {
        padding: 2rem 0;
    }
    
    .logo-container {
        max-width: 1200px;
        margin: 0 auto 0.5rem;
    }
    
    .ibm-stripes {
        flex: 1;
        justify-content: flex-end;
    }
    
    .ibm-stripes:first-child {
        justify-content: flex-start;
    }
    
    .ibm-stripes span {
        height: 30px;
        width: 8px;
        margin: 0 3px;
    }
    
    /* Maintain colored stripes on desktop */
    .ibm-stripes span:nth-child(2) { background-color: #ff3333; }
    .ibm-stripes span:nth-child(4) { background-color: #33ff33; }
    .ibm-stripes span:nth-child(6) { background-color: #3333ff; }
    .ibm-stripes span:nth-child(8) { background-color: #ffff33; }
    
    .ibm-header h1 {
        font-size: 3rem;
        margin: 0 20px;
    }
}

@media (max-width: 600px) {
    .hal-eye {
        width: 40vw;
        height: 40vw;
        max-width: 40vw;
        max-height: 40vw;
        min-width: 70px;
        min-height: 70px;
        border-width: 2.5vw;
        margin: 8vw auto 0 auto;
        padding-top: 5vw;
        padding-left: 5vw;
        padding-right: 5vw;
        box-sizing: border-box;
    }
    .hal-pupil {
        width: 28vw;
        height: 28vw;
        min-width: 40px;
        min-height: 40px;
        margin: 0 auto;
    }
}
