/* ==========================================
   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);
}

/* Rezervni vizuelni prikaz za Swiss Taxi kartice dok se ne dodaju slike. */
.taxi-project-image {
    background: linear-gradient(135deg, #082f49 0%, #0f172a 55%, #164e63 100%);
}

.taxi-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.08em;
    z-index: 0;
}

.taxi-image-fallback span {
    font-size: 2.8rem;
}

.taxi-image-fallback strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.taxi-project-image .zoom-img {
    position: relative;
    z-index: 1;
}

.taxi-project-image .zoom-img:not([src]),
.taxi-project-image .zoom-img[src=""] {
    opacity: 0;
}

.taxi-project-image .img-overlay {
    z-index: 2;
}

.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; }
}

/* ==========================================
   MALI PROGRAMERSKI INTRO
   ========================================== */
.dev-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    overflow: hidden;
}

.dev-intro__tech-stage {
    position: absolute;
    width: min(620px, 92vw);
    height: 250px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: devTechStageOut 0.55s ease 4.20s forwards;
}

.dev-tech {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 7px 12px;
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: 8px;
    background: rgba(11, 15, 25, 0.9);
    color: #cbd5e0;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.08);
    font-family: Consolas, 'Courier New', monospace;
    font-size: clamp(0.78rem, 1.8vw, 0.95rem);
    white-space: nowrap;
    opacity: 0;
    will-change: transform, opacity;
}

.dev-tech--php {
    color: #b8c4ff;
    animation: flyPHP 2.90s cubic-bezier(.2,.75,.2,1) 0.05s forwards;
}
.dev-tech--python {
    color: #ffd866;
    animation: flyPython 3.10s cubic-bezier(.2,.75,.2,1) 0.35s forwards;
}
.dev-tech--js {
    color: #fff06a;
    animation: flyJS 2.90s cubic-bezier(.2,.75,.2,1) 0.65s forwards;
}
.dev-tech--html {
    color: #ff9b73;
    animation: flyHTML 3.10s cubic-bezier(.2,.75,.2,1) 0.90s forwards;
}
.dev-tech--sql {
    color: #7ee7ff;
    animation: flySQL 2.90s cubic-bezier(.2,.75,.2,1) 1.15s forwards;
}
.dev-tech--api {
    color: #9effc2;
    animation: flyAPI 2.90s cubic-bezier(.2,.75,.2,1) 1.35s forwards;
}

.dev-intro__code {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: 12px;
    background: rgba(11, 15, 25, 0.92);
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.14);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    opacity: 0;
    animation: devRevealCode 0.2s ease 4.35s forwards,
               devTyping 1.8s steps(14, end) 4.45s forwards,
               devFloat 2.4s ease-in-out infinite 6.25s;
}

.dev-intro__brand span,
.dev-intro__bracket {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.55);
}

.dev-intro__cursor {
    display: inline-block;
    margin-left: 3px;
    color: #00f2fe;
    animation: devBlink 0.55s step-end infinite;
}

.dev-intro--hide {
    opacity: 0;
    visibility: hidden;
}

.dev-intro--hide .dev-intro__code {
    transform: scale(0.92);
}

@keyframes devRevealCode {
    to { opacity: 1; }
}
@keyframes devTyping {
    from { width: 0; }
    to { width: 210px; }
}
@keyframes devBlink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}
@keyframes devFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes devTechStageOut {
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
}

@keyframes flyPHP {
    0% { opacity: 0; transform: translate(-370px,-115px) rotate(-9deg) scale(.84); }
    18%, 72% { opacity: 1; }
    52% { transform: translate(-105px,-48px) rotate(-2deg) scale(1); }
    100% { opacity: 0; transform: translate(245px,70px) rotate(7deg) scale(.92); }
}
@keyframes flyPython {
    0% { opacity: 0; transform: translate(335px,-120px) rotate(8deg) scale(.84); }
    18%, 72% { opacity: 1; }
    52% { transform: translate(68px,-58px) rotate(1deg) scale(1); }
    100% { opacity: 0; transform: translate(-260px,82px) rotate(-7deg) scale(.92); }
}
@keyframes flyJS {
    0% { opacity: 0; transform: translate(-355px,100px) rotate(7deg) scale(.84); }
    18%, 72% { opacity: 1; }
    52% { transform: translate(-32px,42px) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate(300px,-92px) rotate(-6deg) scale(.92); }
}
@keyframes flyHTML {
    0% { opacity: 0; transform: translate(360px,105px) rotate(-8deg) scale(.84); }
    18%, 72% { opacity: 1; }
    52% { transform: translate(118px,32px) rotate(1deg) scale(1); }
    100% { opacity: 0; transform: translate(-285px,-90px) rotate(6deg) scale(.92); }
}
@keyframes flySQL {
    0% { opacity: 0; transform: translate(-315px,5px) rotate(-5deg) scale(.84); }
    18%, 72% { opacity: 1; }
    52% { transform: translate(-145px,18px) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate(330px,-15px) rotate(5deg) scale(.92); }
}
@keyframes flyAPI {
    0% { opacity: 0; transform: translate(320px,-5px) rotate(4deg) scale(.84); }
    18%, 72% { opacity: 1; }
    52% { transform: translate(145px,-4px) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate(-330px,12px) rotate(-5deg) scale(.92); }
}

@media (max-width: 480px) {
    .dev-intro__tech-stage { height: 210px; }
    .dev-tech { font-size: 0.72rem; padding: 6px 9px; }
    .dev-intro__code { padding: 12px 16px; font-size: 1.05rem; }
    @keyframes devTyping { from { width: 0; } to { width: 180px; } }
}


/* ==========================================
   PRODUCTION MONITOR SaaS
   ========================================== */
.production-project-card { position: relative; }
.production-project-image {
    position: relative;
    background: linear-gradient(135deg,#071c29 0%,#0b1724 50%,#073341 100%);
}
.development-badge {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    padding: 5px 10px; background: rgba(245,158,11,.95);
    border: 1px solid rgba(255,193,7,.9); border-radius: 7px;
    color: #111827; font-family: 'Montserrat',sans-serif; font-size: .68rem;
    font-weight: 700; letter-spacing: .05em; box-shadow: 0 0 12px rgba(245,158,11,.35);
    pointer-events: none;
}
.project-tags .development-tag {
    color: #ffc107; border-color: rgba(255,193,7,.55); background: rgba(255,193,7,.08);
}
.production-project-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,transparent 55%,rgba(0,242,254,.06) 100%);
    pointer-events: none; z-index: 1;
}
.production-project-image .zoom-img { position: relative; z-index: 1; }
.production-project-image .img-overlay { z-index: 4; }
@media (max-width:768px) {
    .development-badge { top:8px; right:8px; padding:4px 8px; font-size:.62rem; }
}
