/* ==========================================
   1. OSNOVNI STILOVI I RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0b0f19;
    color: #e0e6ed;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

/* Particles.js pozadina */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Utility klase */
.section-padding {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.neon-text {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.neon-box {
    border: 1px solid #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}

.neon-box:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
    background: #00f2fe;
    color: #0b0f19 !important;
}

/* Glassmorphism efekat */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

/* ==========================================
   2. NAVIGACIJA (HEADER)
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.logo span {
    color: #00f2fe;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00f2fe;
}

.lang-selector button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.lang-selector button.active,
.lang-selector button:hover {
    background: #00f2fe;
    color: #0b0f19;
    border-color: #00f2fe;
}

/* ==========================================
   3. HERO SEKCIJA
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    color: #00f2fe;
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================
   4. O NAMA I USLUGE
   ========================================== */
h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #00f2fe;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.about-p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #cbd5e0;
}

.services-grid, .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* ==========================================
   5. TEHNOLOGIJE (TECH STACK) - SVE U JEDNOM REDU
   ========================================== */
.tech-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
}

.tech-card {
    flex: 1 1 0;
    min-width: 100px;
    max-width: 140px;
    padding: 12px 8px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.tech-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 6px;
}

.tech-card h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 2px;
    white-space: nowrap;
}

.tech-card p {
    color: #00f2fe;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ==========================================
   6. PROJEKTI / PROGRAMI (4 U REDU)
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image-wrapper:hover .zoom-img {
    transform: scale(1.08);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image-wrapper:hover .img-overlay {
    opacity: 1;
}

.img-overlay span {
    color: #fff;
    background: rgba(0, 242, 254, 0.2);
    border: 1px solid #00f2fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
}

.project-info p {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00f2fe;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ==========================================
   7. FAQ (ČESTO POSTAVLJANA PITANJA)
   ========================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 242, 254, 0.4);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #00f2fe;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #a0aec0;
    font-size: 0.95rem;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px 20px;
}

/* ==========================================
   8. KONTAKT & FOOTER
   ========================================== */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.contact-mail {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.contact-mail a {
    text-decoration: none;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #00f2fe;
}

#contact-form button {
    cursor: pointer;
    background: transparent;
}

footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #718096;
    font-size: 0.85rem;
}

/* ==========================================
   9. LIGHTBOX MODAL ZA GALERIJU SLIKA
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.lightbox-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    text-align: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-counter {
    color: #a0aec0;
    margin-top: 10px;
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #00f2fe;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-arrow:hover {
    background: #00f2fe;
    color: #0b0f19;
}

.lightbox-arrow.left { left: 30px; }
.lightbox-arrow.right { right: 30px; }

/* ==========================================
   10. RESPONSIVE ADAPTACIJA
   ========================================== */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .tech-grid {
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .tech-card {
        flex: 0 0 100px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-arrow.left { left: 10px; }
    .lightbox-arrow.right { right: 10px; }
}