/* Typing Text Section Styles */
.typing-section {
    background-color: transparent;
    padding: 2rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.typing-box {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(0,245,255,0.35); /* Base subtle cyan border */
    border-radius: 8px;
    box-shadow:
        0 0 10px rgba(0, 246, 254, 0.2),
        inset 0 0 5px rgba(0, 246, 254, 0.1);
    background: rgba(0, 246, 254, 0.01);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
    animation: boxGlow 3.5s ease-in-out infinite alternate;
    position: relative;
}

.typing-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff, #ff4a3f); 
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.typing-box:hover::before {
    opacity: 1;
}

.typing-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,245,255,0.25);
}

@keyframes boxGlow {
    from {
        box-shadow: 0 0 10px rgba(0, 246, 254, 0.2), inset 0 0 5px rgba(0, 246, 254, 0.1);
        border-color: rgba(0, 246, 254, 0.5);
    }

    to {
        box-shadow: 0 0 25px rgba(0, 246, 254, 0.6), inset 0 0 15px rgba(0, 246, 254, 0.3);
        border-color: rgba(0, 246, 254, 1);
    }
}

#typing-text {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0;
    color: var(--color-primary);
    font-family: 'Orbitron', 'Source Sans Pro', Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.scrolling-words {
    display: inline-flex;
    flex-direction: column;
    height: 1.2em;
    vertical-align: bottom;
    overflow: hidden;
}

.scrolling-words span {
    color: var(--color-secondary) !important;
    animation: scrollUp 6s infinite cubic-bezier(0.64, 0.04, 0.35, 1);
    height: 1.2em;
    line-height: 1.2;
    display: block;
}

@keyframes scrollUp {
    0%, 25% { transform: translateY(0); }
    33%, 58% { transform: translateY(-100%); }
    66%, 91% { transform: translateY(-200%); }
    100% { transform: translateY(-300%); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width: 768px) {
    .typing-section {
        padding: 1.5rem 15px;
    }
    .typing-box {
        padding: 0.8rem 1.5rem;
    }
    #typing-text {
        font-size: clamp(1rem, 5vw, 1.6rem);
    }
}

@media(max-width: 480px) {
    .typing-box {
        padding: 0.7rem 1rem;
    }
    #typing-text {
        font-size: clamp(0.85rem, 5vw, 1.3rem);
    }
}