#hero {
    height: 100vh;
    min-height: 520px;
}

@media (max-width: 640px) {
    #hero {
        height: 86vh;
        min-height: 420px;
    }
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-img {
    transform: scale(1);
    will-change: transform;
}

.hero-img.kenburns {
    animation: kenburns 7s ease-in-out forwards;
}

@keyframes kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.12);
    }
}

.cap-words {
    text-transform: capitalize;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .hero-img.kenburns {
        animation: none;
    }
}

.hero-bottom-bar {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 500px;
    z-index: 5;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.4) 45%,
        rgba(0, 0, 0, 0.22) 65%,
        rgba(0, 0, 0, 0.1) 75%,
        rgba(0, 0, 0, 0.04) 85%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-dots {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    align-items: center;
    gap: 10px;
}

.hero-dots .current {
    font-size: 40px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.hero-dots .separator {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transform: rotate(-70deg);
    -webkit-transform: rotate(-70deg);
    -moz-transform: rotate(-70deg);
    -ms-transform: rotate(-70deg);
    -o-transform: rotate(-70deg);
}

.hero-dots .total {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.font-signature {
    font-family: "Allura", cursive;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.animated-grid {
    background-image:
        linear-gradient(
            to right,
            rgba(249, 115, 22, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(249, 115, 22, 0.05) 1px,
            transparent 1px
        );
    background-size: 40px 40px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

.typing-dot {
    animation: typingBounce 2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typingBounce {
    0%,
    70%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    35% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-glow:hover {
    box-shadow:
        0 0 20px rgba(249, 115, 22, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.quick-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-btn:hover {
    transform: translateY(-2px);
}

#chat-messages-public::-webkit-scrollbar,
#quick-actions-panel::-webkit-scrollbar {
    width: 6px;
}

#chat-messages-public::-webkit-scrollbar-track,
#quick-actions-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#chat-messages-public::-webkit-scrollbar-thumb,
#quick-actions-panel::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.4);
    border-radius: 10px;
}

#chat-messages-public::-webkit-scrollbar-thumb:hover,
#quick-actions-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.6);
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249, 115, 22, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===== SECTION REVEAL ANIMATIONS ===== */

.reveal,
.reveal-item {
    opacity: 0;
    transform: translateY(50px) rotateX(15deg) scale(0.95);
    transform-origin: top center;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible,
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px) rotateY(20deg) scale(0.94);
    transform-origin: left center;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) rotateY(-20deg) scale(0.94);
    transform-origin: right center;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(55px) rotateX(18deg) scale(0.95);
    transform-origin: bottom center;
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}

/* ===== STAGGER DELAYS ===== */
.reveal-delay-1 {
    transition-delay: 0.05s;
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

.reveal-delay-3 {
    transition-delay: 0.6s;
}

.reveal-delay-4 {
    transition-delay: 0.2s;
}

.reveal-delay-5 {
    transition-delay: 0.7s;
}

.reveal-delay-6 {
    transition-delay: 0.4s;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-item,
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}
