:root {
    --bg-color: #02040a;
    --terminal-bg: rgba(10, 15, 25, 0.95);
    --text-color: #e0e0e0;
    --primary-green: #00ff41;
    --primary-blue: #00f3ff;
    --dim-green: rgba(0, 255, 65, 0.2);
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Background Effects */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 60%),
        linear-gradient(0deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: -2;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* Terminal Container */
.container {
    width: 100%;
    max-width: 1000px;
    /* Increased from 800px */
    padding: 20px;
}

.terminal-wrapper {
    background: var(--terminal-bg);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    /* Slightly larger radius */
    box-shadow: 0 0 25px var(--dim-green);
    /* Increased glow */
    overflow: hidden;
    position: relative;
}

.terminal-header {
    background: rgba(0, 255, 65, 0.1);
    padding: 12px 20px;
    /* Increased padding */
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--dim-green);
}

.dot {
    width: 14px;
    /* Increased from 10px */
    height: 14px;
    /* Increased from 10px */
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
    /* Make it look clickable for Easter egg */
    transition: transform 0.2s;
}

.dot:hover {
    transform: scale(1.2);
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.title {
    margin-left: auto;
    margin-right: 10px;
    /* Changed from auto to allow lang toggle */
    font-size: 1rem;
    /* Increased from 0.8rem */
    color: var(--primary-green);
    opacity: 0.8;
}

.lang-toggle {
    margin-left: auto;
    font-size: 0.8rem;
    color: #666;
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-green);
    font-weight: bold;
}

.hidden-lang {
    display: none;
}

.terminal-content {
    padding: 40px;
    /* Increased from 30px */
    min-height: 400px;
    /* Increased from 300px */
}

.output {
    font-size: 1.4rem;
    /* Increased from 1.2rem */
    margin-bottom: 25px;
    color: var(--text-color);
}

.prompt {
    color: var(--primary-green);
    margin-right: 10px;
}

#typing-text {
    color: var(--primary-blue);
    text-shadow: 0 0 5px var(--primary-blue);
}

.cursor {
    color: var(--primary-green);
    animation: blink 1s step-end infinite;
}

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

/* Info Block */
.info-block {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
}

.info-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.comment {
    color: #666;
    font-size: 0.9rem;
}

.contact-info {
    margin-top: 30px;
    border-top: 1px dashed var(--dim-green);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    width: fit-content;
}

.email-link {
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

.email-link:hover {
    background: var(--dim-green);
    box-shadow: 0 0 15px var(--primary-green);
    text-shadow: 0 0 5px var(--primary-green);
}

.phone-link {
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.phone-link:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px var(--primary-blue);
    text-shadow: 0 0 5px var(--primary-blue);
}

/* Footer */
.simple-footer {
    position: fixed;
    bottom: 20px;
    font-size: 0.8rem;
    color: #555;
}

.blink {
    animation: blink 1s step-end infinite;
}

/* Mobile */
@media (max-width: 600px) {
    .output {
        font-size: 1rem;
    }

    .terminal-content {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .output {
        font-size: 1.1rem;
    }

    .terminal-content {
        padding: 20px;
        min-height: 300px;
    }

    .title {
        font-size: 0.8rem;
    }

    .email-link {
        font-size: 1rem;
        padding: 8px 16px;
        width: 100%;
        text-align: center;
    }
}

/* Easter Egg Shake Animation */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.self-destruct {
    color: #ff0000 !important;
    text-shadow: 0 0 10px #ff0000 !important;
}

.self-destruct-bg {
    background: rgba(255, 0, 0, 0.1) !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3) !important;
}