#hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    box-sizing: border-box;
    overflow: visible;
}

.hero-bg-decor {
    /* styles in background.css */
}

.hero-logo {
    margin-bottom: 30px;
    cursor: pointer;
    transition: none;
}

.hero-logo.moving-left {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(calc(-50vw + 160px));
}

.hero-logo.moving-center {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(0);
}

.hero-logo .logo-svg {
    height: 120px;
    width: auto;
    overflow: visible;
}

.hero-logo .logo-bar {
    fill: #252525;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-logo .logo-chevron {
    fill: #252525;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-logo.active .logo-bar {
    transform: translate(81px, 30px) rotate(-90deg);
}

.hero-logo.active .logo-chevron {
    transform: scaleX(-1);
}

.hero-heading {
    text-align: center;
    margin-bottom: 40px;
}

.hero-heading h1 {
    font-family: 'Miriam Libre', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #252525;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-heading p {
    font-family: 'Miriam Libre', sans-serif;
    font-size: 16px;
    color: #3d2e00;
    letter-spacing: 2px;
}

.hero-content {
    display: flex;
    width: 100%;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
}

.hero-left,
.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 50%;
    min-width: 0;
}

.hero-right {
    padding: 0 20px;
    box-sizing: border-box;
}

/* terminal */
#terminal {
    width: 420px;
    background: rgba(37, 37, 37, 0.92);
    border: 1px solid #111;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Miriam Libre', monospace;
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(20, 20, 20, 0.95);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-body {
    padding: 20px 18px;
    font-size: 15px;
    color: #ccc;
    min-height: 60px;
}

.terminal-prompt {
    color: #ffb905;
}

#terminal-cursor {
    animation: blink 0.8s step-end infinite;
}

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

/* ascii display (right side) */
.hero-right #ascii-display {
    position: static;
    transform: none;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        max-width: 100%;
    }

    #terminal {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 60px;
    }

    .hero-heading {
        margin-bottom: 30px;
    }

    .hero-heading h1 {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .hero-heading p {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .hero-content {
        gap: 30px;
        padding: 0 16px;
    }

    #terminal {
        max-width: 100%;
    }

    .terminal-body {
        padding: 16px 14px;
        font-size: 13px;
        min-height: 50px;
    }

    #ascii-display {
        font-size: 10px;
        line-height: 1.1;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 60px 0 40px;
    }

    .hero-heading h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .hero-heading p {
        font-size: 12px;
    }

    .hero-content {
        gap: 24px;
        padding: 0 12px;
    }

    .terminal-header {
        padding: 8px 12px;
    }

    .terminal-dot {
        width: 8px;
        height: 8px;
    }

    .terminal-body {
        padding: 14px 12px;
        font-size: 12px;
    }

    #ascii-display {
        font-size: 8px;
        line-height: 1.0;
    }
}
