/* ============================================
   ARVANTIS V3 — PREMIUM EFFECTS CSS
   Cursor glow, film grain, typewriter, 
   holographic shine, horizontal scroll
   ============================================ */

/* Lenis smooth scroll base */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ============================================
   CURSOR GLOW TRAIL
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0) 70%);
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.cursor-glow.glow-hover {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(6, 182, 212, 0.2) 40%, transparent 70%);
    transform-origin: center center;
}

/* Light theme cursor */
[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(0, 172, 193, 0.35) 0%, rgba(0, 172, 193, 0) 70%);
}

[data-theme="light"] .cursor-glow.glow-hover {
    background: radial-gradient(circle, rgba(0, 172, 193, 0.4) 0%, rgba(124, 58, 237, 0.15) 40%, transparent 70%);
}

/* ============================================
   HERO TYPEWRITER
   ============================================ */
.hero-typewriter {
    font-size: 1.1rem;
    color: var(--aurora-2);
    font-weight: 500;
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    min-height: 1.8em;
    font-family: var(--font-body);
}

.tw-text {
    display: inline;
}

.tw-cursor {
    display: inline-block;
    color: var(--aurora-2);
    animation: cursorBlink 0.8s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

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

/* ============================================
   HOLOGRAPHIC CARD SHINE
   ============================================ */
.holo-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* ============================================
   FILM GRAIN OVERLAY
   ============================================ */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.4;
    image-rendering: pixelated;
    mix-blend-mode: overlay;
}

/* ============================================
   HORIZONTAL SCROLL PORTFOLIO
   ============================================ */
.projects-grid.horizontal-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
    width: max-content;
    padding: 2rem 0;
}

.projects-grid.horizontal-scroll .project-tile {
    width: 350px;
    min-width: 350px;
    flex-shrink: 0;
}

/* Remove the filter buttons for horizontal mode since all are shown */
/* Keep them visible as they still control visibility */

/* ============================================
   SECUREBOT CHAT FIX — Always-visible input
   ============================================ */
.bot-visual .chat-preview {
    display: flex;
    flex-direction: column;
    max-height: none !important;
    overflow: visible !important;
}

.bot-visual .chat-preview .mini-chat-input {
    margin-top: auto;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    padding-top: 0.75rem;
}

/* Chat messages area — scrollable but limited height */
.bot-visual .chat-messages-area {
    flex: 1;
    overflow-y: auto;
    max-height: 180px;
}

/* ============================================
   ROBOT MASCOT RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .cursor-glow { display: none; }
}

@media (max-width: 768px) {
    .hero-typewriter { font-size: 0.95rem; }

    .projects-grid.horizontal-scroll {
        display: grid !important;
        flex-wrap: wrap !important;
        width: auto;
    }
    .projects-grid.horizontal-scroll .project-tile {
        width: auto;
        min-width: auto;
    }

    .film-grain { display: none; }
}
