@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* DODATO: html selektor da spreči "igranje" ekrana levo-desno */
html {
    width: 100%;
    overflow-x: hidden !important;
    /* Apsolutna blokada horizontalnog skrola */
    -webkit-text-size-adjust: 100%;
    /* Sprečava zumiranje teksta na iOS-u */
}

body {
    width: 100%;
    /* max-width: 100vw; - Uklonjeno jer uzrokuje bagove na nekim mobilnim browserima */
    overflow-x: hidden !important;
    /* Dupla zaštita */
    position: relative;
    /* Bitno za spotlight */
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gradient-text {
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Reveal efekat pri skrolu */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animacija za AI jezgro */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 60px rgba(37, 99, 235, 0.5);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
        transform: scale(1);
    }
}

.ai-core {
    animation: pulse-glow 3s infinite ease-in-out;
}

/* Smooth Accordion za FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active svg {
    transform: rotate(180deg);
}

/* Plutajuća animacija za Chat elemente */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 5s infinite ease-in-out;
}

/* Spotlight efekat miša */
#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Zamenjeno width: 100% i height: 100vh sigurnijim pozicioniranjem */
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle 200px at var(--x) var(--y), rgba(37, 99, 235, 0.1), transparent 80%);
}

/* Animacija za Trusted By marquee */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* DODATO: Wrapper klasa koja "seče" beskonačnu traku da ne probije sajt */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

/* Stil za demo karticu u chatu */
.demo-booking-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    padding: 15px;
    border-radius: 15px;
    font-size: 11px;
    margin-top: 10px;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Chat Switcher */
.chat-switch {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 99px;
    padding: 4px;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-btn {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 99px;
    transition: all 0.3s ease;
    color: #888;

    /* IZMENJENO: Omogućava tekstu da se pametno prelomi na uskim ekranima umesto da gura layout */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* Stil za dugmiće da izgledaju još više "klikabilno" */
.chat-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* OČIŠĆEN I SPOJEN CHAT-MODE BLOK */
.chat-mode {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    transition: opacity 0.5s ease;
}

.chat-mode.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DEVOPS DODACI - ANIMACIJE */
@keyframes float-delayed {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float-delayed {
    animation: float-delayed 6s infinite ease-in-out;
    animation-delay: 1s;
}

.typing-effect::after {
    content: '▋';
    display: inline-block;
    animation: blink 1s infinite;
    color: #22d3ee;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.grecaptcha-badge {
    visibility: hidden !important;
}