:root {
    --text-primary: #F0F0F0;
    --text-bright: #FFFFFF;
    --deep-black: #0A0A0A;
    --glow-color: rgba(240, 240, 240, 0.3);
}

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

body {
    font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
    background-color: var(--deep-black);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.memphis-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-primary);
    opacity: 0.6;
    font-size: 14px;
}

.shape-1 { top: 15%; left: 10%; animation: float 4s ease-in-out infinite; }
.shape-2 { top: 25%; right: 15%; animation: pulse 3s ease-in-out infinite; }
.shape-3 { top: 60%; left: 8%; animation: bounce 3.5s ease-in-out infinite; }
.shape-4 { top: 70%; right: 12%; animation: float 5s ease-in-out infinite reverse; }
.shape-5 { top: 40%; left: 5%; animation: slide 4s ease-in-out infinite; }
.shape-6 { top: 80%; right: 25%; animation: pulse 2.5s ease-in-out infinite; }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ascii-logo {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.6rem, 3vw, 1.4rem);
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--glow-color);
    margin-bottom: 1.5rem;
    white-space: pre;
}

/* Tagline typing animation with trailing cursor */
.tagline-container {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--glow-color);
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
}

.tagline-typer {
    display: inline-flex;
    flex-wrap: wrap;
}

.char {
    opacity: 0;
    white-space: pre;
    animation: charAppear 0.05s ease-out forwards;
}

.tagline-cursor {
    display: inline-block;
    opacity: 0;
    color: var(--text-bright);
}

.tagline-cursor.visible {
    animation: blink 0.8s step-end infinite;
}

@keyframes charAppear {
    to { opacity: 1; }
}

/* CTA Section */
.cta-section {
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contact button - frame appears first, then text types with trailing cursor */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: bold;
    text-decoration: none;
    color: var(--deep-black);
    background-color: var(--text-bright);
    border: 2px solid var(--text-bright);
    box-shadow: 0 0 15px var(--glow-color);
    opacity: 0;
    animation: showButton 0.1s ease-out 3.6s forwards;
    position: relative;
}

.btn-typer {
    display: inline-flex;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typeButton 1.4s steps(11) 3.7s forwards;
}

.btn-text {
    display: inline;
}

.btn-cursor {
    display: inline-block;
    color: var(--text-bright);
    animation: blink 0.8s step-end infinite;
}

@keyframes showButton {
    to { opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes typeButton {
    from { width: 0; }
    to { width: 100%; }
}

.contact-btn:hover {
    background-color: var(--deep-black);
    color: var(--text-bright);
    box-shadow: 0 0 30px var(--glow-color);
}

/* Footer */
footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(240, 240, 240, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'Courier New', Courier, monospace;
}

.copyright {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

.linkedin-link {
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
}

.linkedin-link:hover {
    filter: drop-shadow(0 0 10px var(--glow-color));
    transform: scale(1.1);
}

.linkedin-icon {
    width: 24px;
    height: 24px;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 480px) {
    .tagline-typer {
        white-space: normal;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .shape {
        display: none;
    }
}

/* Scanlines Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
}
