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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #f5f5f7;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-section.is-visible { opacity: 1; transform: none; }

.glass {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-panel {
    background: rgba(39, 39, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.text-gradient {
    background: linear-gradient(135deg, #00D9FF 0%, #00b8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Video Background */
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Lili Fire Video - Mobile positioning */
#lili-fire-video {
    object-position: center;
}

@media (max-width: 768px) {
    #lili-fire-video {
        object-position: left center;
    }
}

/* Dashboard Mockup Styles */
.dashboard-bg {
     background-color: #1e293b;
}
/* New clean placeholder style */
.map-placeholder {
    min-height: 350px;
    background-color: #1c1c1e;
    border: 2px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    max-width: 100%;
}
.screenshot-container:hover {
    transform: translateY(-4px);
}
.screenshot-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Carousel for Naročanje Servisa */
.service-carousel {
    position: relative;
    overflow: hidden;
    max-width: 280px;
    margin: 0 auto;
}
.service-carousel-slides {
    display: flex;
    transition: transform 0.3s ease;
}
.service-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}
.service-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.service-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}
.service-carousel-nav.prev {
    left: 8px;
}
.service-carousel-nav.next {
    right: 8px;
}
.service-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.service-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}
.service-carousel-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile Screenshots Animation */
.mobile-screenshot-item {
    opacity: 0;
    animation: fadeInRotate 0.8s ease forwards;
    transition: transform 0.3s ease;
}
.mobile-screenshot-item:nth-child(1) {
    animation-delay: 0.1s;
}
.mobile-screenshot-item:nth-child(2) {
    animation-delay: 0.2s;
}
.mobile-screenshot-item:nth-child(3) {
    animation-delay: 0.3s;
}
@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.mobile-screenshot-item img {
    transition: opacity 0.3s ease-in-out;
}
.screenshot-placeholder {
    min-height: 250px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Pulsing Background Circuit Animation - matching web dashboard */
@keyframes pulse-opacity {
    0%, 100% {
        opacity: 0.10;
    }
    50% {
        opacity: 0.27;
    }
}

.pulsing-bg {
    opacity: 0.12;
}

/* Enhanced text animations */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Gradient text removed - using blue-400 for titles */

/* Glow effects - removed for professional look */

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Subtle Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Section Separators - Center */
.section-separator {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 0 auto;
    max-width: 200px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(96, 165, 250, 0.3) 20%,
        rgba(96, 165, 250, 0.6) 50%,
        rgba(96, 165, 250, 0.3) 80%,
        transparent 100%);
    z-index: 1;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(96, 165, 250, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Ensure sections are above background texture */
section {
    position: relative;
    z-index: 1;
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.clickable-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Carousel Styles */
#feature-carousel {
    display: flex;
    gap: 1rem;
}

@media (min-width: 768px) {
    #feature-carousel > div {
        width: 400px;
    }
}

@media (max-width: 767px) {
    #feature-carousel > div {
        width: calc(100vw - 80px);
    }
}

