@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
    --primary-color: #3b82f6; --primary-color-hover: #2563eb; --neon-color: #00eaff;
    --dark-bg: #0a0a0f; --light-dark-bg: #111521; --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff; --text-secondary: #a0a0b0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif; background-color: var(--dark-bg);
    color: var(--text-primary); overflow-y: auto; overflow-x: hidden;
    position: relative;
}
.neon-glow {
    color: var(--neon-color);
    text-shadow: 0 0 5px rgba(0, 234, 255, 0.8), 0 0 15px rgba(0, 234, 255, 0.6), 0 0 30px rgba(0, 234, 255, 0.4);
}

.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--dark-bg);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.logo-anim {
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
    width: 80%; max-width: 800px;
}
.preloader.move-logo .logo-anim {
    transform: scale(0.35) translate(-145%, -480%);
}
.preloader.move-logo { background-color: transparent; }
.logo-anim text {
    stroke: var(--neon-color); stroke-width: 1; fill: transparent;
    stroke-dasharray: 1200; stroke-dashoffset: 1200;
    animation: 
        draw 2.5s ease-in-out forwards,
        fill 0.8s ease-in-out forwards 2.5s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill: var(--neon-color); } }

.site-wrapper {
    opacity: 0; transition: opacity 1s ease 0.5s;
}
.site-wrapper.visible { opacity: 1; }
.logo-placeholder { opacity: 0; transition: opacity 0.5s ease; }
.logo-placeholder.visible { opacity: 1; }

body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.5), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(0, 234, 255, 0.4), transparent 30%),
        radial-gradient(circle at 60% 80%, rgba(91, 33, 182, 0.5), transparent 25%);
    filter: blur(100px);
    animation: moveGradient 30s linear infinite alternate;
}
@keyframes moveGradient {
    0%   { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.4) rotate(180deg); }
}
.container, header, footer { position: relative; z-index: 2; }
.container {
    width: 85%; max-width: 1100px; margin: 0 auto; z-index: 2; position: relative;
}
section { padding: 80px 0; }
section h2 { font-size: 2.5rem; margin-bottom: 60px; text-align: center; }
header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 10;
    background: rgba(10, 10, 15, 0.3); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color);
}
nav.container { display: flex; justify-content: space-between; align-items: center; }

/* === NOVI STILOVI ZA LOGO SLIKU === */
.logo {
    display: block; /* Da se link ponaša kao blok */
    line-height: 0; /* Uklanja prazan prostor ispod slike */
}
.logo img {
    height: 45px; /* Definišemo visinu logoa u navigaciji */
    width: auto; /* Širina će se automatski prilagoditi */
}
/* ================================== */

.nav-btn {
    padding: 10px 25px; font-weight: 500; color: var(--text-primary); background-color: transparent;
    border: 2px solid var(--primary-color); border-radius: 50px; cursor: pointer; text-decoration: none; transition: all 0.3s ease;
}
.nav-btn:hover {
    background-color: var(--primary-color); box-shadow: 0 0 20px rgba(59, 130, 246, 0.6); transform: translateY(-3px);
}
#hero {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 100vh; padding-top: 140px; gap: 40px;
}
#hero h2 { margin-bottom: 0; }
.hero-content { flex: 1; max-width: 600px; }
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px;
}
.hero-content p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 500px; }
.cta-button {
    display: inline-flex; align-items: center; gap: 15px; padding: 18px 40px;
    font-size: 1.1rem; font-weight: 700; color: #fff; background-color: var(--primary-color);
    border: none; border-radius: 12px; text-decoration: none; cursor: pointer; transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: var(--primary-color-hover); box-shadow: 0 0 25px rgba(59, 130, 246, 0.7); transform: translateY(-5px);
}
.cta-button i { font-size: 1.2rem; }

.hero-video-container {
    flex: 1; display: flex; justify-content: center; align-items: center;
}
.hero-video {
    width: 100%; max-width: 550px; border-radius: 12px;
    border: 2px solid var(--border-color); background-color: rgba(17, 21, 33, 0.3);
}
#features .features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; text-align: left;
}
.feature-card {
    padding: 30px; border-radius: 20px; border: 1px solid var(--border-color);
    background: rgba(17, 21, 33, 0.3); backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.feature-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; }
.steps-container { display: flex; justify-content: space-around; align-items: flex-start; gap: 20px; }
.step { text-align: center; max-width: 250px; }
.step-number {
    width: 50px; height: 50px; border-radius: 50%; background-color: var(--primary-color);
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem;
    font-weight: 700; margin: 0 auto 20px auto;
}
.step i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--text-secondary); }
.step-arrow { font-size: 3rem; color: var(--primary-color); margin-top: 85px; }
.testimonials-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.testimonial-card {
    padding: 30px; border-radius: 20px; border: 1px solid var(--border-color);
    background: rgba(17, 21, 33, 0.3); backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
}
.testimonial-card p { font-style: italic; color: var(--text-secondary); line-height: 1.7; margin-bottom: 25px; flex-grow: 1; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--primary-color); border: 2px solid var(--border-color);
}
.user-info span { font-weight: 500; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; cursor: pointer;
}
.faq-question span { font-size: 1.1rem; font-weight: 500; }
.faq-question i { font-size: 1.2rem; transition: transform 0.3s ease; }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p { color: var(--text-secondary); line-height: 1.7; padding-bottom: 0px; }
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
#cta {
    text-align: center; background: rgba(17, 21, 33, 0.2);
    border-radius: 20px; margin-top: 80px; border: 1px solid var(--border-color);
}
#cta h2 { font-size: 2.5rem; margin-bottom: 15px; }
#cta p { color: var(--text-secondary); margin-bottom: 30px; }
footer { padding: 30px 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-secondary); }

/* === NOVI STILOVI ZA LOGO U FOOTERU === */
.footer-logo {
    height: 50px; /* Malo veći logo u footeru */
    width: auto;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    #hero { flex-direction: column; text-align: center; padding-top: 120px; min-height: auto; padding-bottom: 60px; }
    .hero-content { max-width: 100%; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-video-container { margin-top: 40px; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    section h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .nav-btn { padding: 8px 20px; font-size: 14px; }
    .logo img { height: 40px; } /* Malo manji logo na mobilnom */
    .preloader.move-logo .logo-anim { transform: scale(0.32) translate(-140%, -600%); }
}
.hidden-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.hidden-section.visible { opacity: 1; transform: translateY(0); }