/* Image slider styles */
.image-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    perspective: 1200px;
    margin: 0.2rem auto;
    border-radius: 20px;
    box-shadow: 0 0 60px #003b36aa;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.image-slide.img-active {
    opacity: 1;
    transform: scale(1);
}

/* Text effect overlay */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-color: rgba(5, 5, 32, 0.5);
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.typing-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    mix-blend-mode: lighten;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cursor {
    display: inline-block;
    color: #0ff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    animation: blink 0.75s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.message-counter {
    position: relative;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.1em;
}

.highlight-blue {
    color: #0ff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    font-weight: 400;
}

.highlight-green {
    color: #0f6;
    text-shadow: 0 0 10px #0f6, 0 0 20px #0f6;
    font-weight: 400;
}

.highlight-pink {
    color: #f0f;
    text-shadow: 0 0 10px #f0f, 0 0 20px #f0f;
    font-weight: 400;
}

.bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.glitch {
    animation: glitch 0.3s linear;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); }
    40% { transform: translate(5px, -5px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
    100% { transform: translate(0); }
}

/* Mobile adjustments */
@media (max-width: 700px) {
    .image-container {
        height: 450px;
    }
    .typing-text {
        font-size: 22px;
        min-height: 120px;
        letter-spacing: 0.03em;
    }
    .message-counter {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .image-container {
        height: 380px;
    }
    
    .typing-text {
        font-size: 18px;
        min-height: 100px;
        letter-spacing: 0.02em;
    }
    
    .message-counter {
        font-size: 12px;
        margin-bottom: 10px;
    }
}