/* Matrix Rain & Base Styles */

:root {
    --bg-black: #000000;
    --matrix-green: #00FF41;
    --bright-green: #39FF14;
    --dim-green: #008F11;
    --glow: 0 0 8px #00FF41;
}

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

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: var(--bg-black);
    color: var(--matrix-green);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* Matrix Rain Canvas */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Fixed Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--matrix-green);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.header-content {
    text-align: center;
}

.ascii-name {
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--bright-green);
    text-shadow: var(--glow);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--matrix-green);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Terminal Content Area */
#terminal {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 50px;
    padding-left: 2rem;
    padding-right: 100px;
    max-width: 900px;
}

#terminal-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

/* Fixed Footer (Vertical Icon Column) */
#footer {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.icon-link {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--matrix-green);
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-link:hover {
    color: var(--bright-green);
    transform: scale(1.1);
    filter: drop-shadow(var(--glow));
}

.icon {
    width: 100%;
    height: 100%;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Cursor Animation */
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--matrix-green);
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    #terminal {
        padding-left: 1rem;
        padding-right: 80px;
        padding-top: 110px;
    }

    .ascii-name {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    #footer {
        right: 10px;
    }

    .social-icons {
        gap: 20px;
    }

    .icon-link {
        width: 32px;
        height: 32px;
    }

    #header {
        height: 90px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    #terminal {
        padding-left: 0.5rem;
        padding-right: 60px;
    }

    .ascii-name {
        font-size: 0.85rem;
    }

    .social-icons {
        gap: 15px;
    }

    .icon-link {
        width: 28px;
        height: 28px;
    }
}
