@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #111;
    font-family: 'Inter', sans-serif;
}

#root {
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #4cd137; /* Retro Green */
    z-index: 10;
    pointer-events: none;
    max-width: 400px;
    font-family: 'VT323', monospace;
}

h1 {
    margin: 0;
    font-size: 3.5rem; /* Bigger for pixel font */
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(76, 209, 55, 0.7); /* Phosphor Glow */
    text-transform: uppercase;
}

p {
    margin-top: 5px;
    opacity: 0.9;
    line-height: 1.4;
    font-size: 1.3rem;
    color: #4cd137;
}

.info-card {
    margin-top: 2rem;
    background: rgba(0, 10, 0, 0.85); /* Dark terminal bg */
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 4px; /* Sharper corners */
    border: 1px solid #4cd137; /* Retro Green Border */
    box-shadow: 0 0 15px rgba(76, 209, 55, 0.2);
    pointer-events: auto;
    animation: fadeIn 0.3s ease-out;
    font-family: 'VT323', monospace;
}

.info-card h2 {
    margin-top: 0;
    color: #4cd137;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(76, 209, 55, 0.5);
    font-size: 2rem;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 5px; /* Less round */
    margin: 0 auto 1rem auto;
    display: block;
    border: 2px solid #4cd137;
    object-fit: cover;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0;
}

.social-btn {
    text-decoration: none;
    color: #4cd137;
    background: transparent;
    border: 1px solid #4cd137;
    padding: 5px 10px;
    border-radius: 2px;
    font-size: 1.2rem;
    transition: all 0.2s;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
}

.social-btn:hover {
    background: #4cd137;
    color: #111;
    box-shadow: 0 0 10px rgba(76, 209, 55, 0.5);
}

.info-card button {
    background: transparent;
    color: #4cd137;
    border: 1px solid #4cd137;
    padding: 6px 16px;
    border-radius: 2px;
    font-size: 1.2rem;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
}

.info-card button:hover {
    background: #4cd137;
    color: #111;
    box-shadow: 0 0 10px rgba(76, 209, 55, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.controls-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.control-btn {
    background: transparent;
    color: #4cd137;
    border: 1px solid #4cd137;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 1rem;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
    pointer-events: auto;
}

.control-btn:hover {
    background: #4cd137;
    color: #111;
    box-shadow: 0 0 10px rgba(76, 209, 55, 0.5);
}

.control-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.high-contrast .overlay {
    color: #00ff00;
}

.high-contrast h1,
.high-contrast .info-card h2,
.high-contrast .info-card p,
.high-contrast .skill-tag {
    color: #00ff00;
    text-shadow: none;
}

.high-contrast .info-card {
    background: #000000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.high-contrast .social-btn,
.high-contrast .info-card button,
.high-contrast .control-btn {
    color: #00ff00;
    border-color: #00ff00;
}

.high-contrast .social-btn:hover,
.high-contrast .info-card button:hover,
.high-contrast .control-btn:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.high-contrast .skill-tag {
    background: #00ff00;
    color: #000000;
}

.high-contrast .profile-img {
    border-color: #00ff00;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.cursor {
    animation: blink 1s step-end infinite;
    color: #4cd137;
    margin-left: 2px;
}


/* scanlines */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .overlay {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: auto;
    }

    h1 {
        font-size: 1.8rem;
        white-space: nowrap;
    }

    p {
        font-size: 1.1rem;
    }

    .info-card {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .info-card h2 {
        font-size: 1.5rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

.skills-container {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #4cd137;
    color: #000;
    padding: 2px 8px;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    border-radius: 2px;
    margin-right: 5px;
    font-weight: bold;
    cursor: default;
    border: none;
}
