/* ==========================================================================
   General styles & Reset
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    min-height: 100%;
    overflow-y: auto;
}

body {
    background: url('../img/bg2.jpg') center center / cover no-repeat fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: -1;
}

h2 {
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

/* ==========================================================================
   Dugmad (Zajednički stilovi za .btn i .submit-btn)
   ========================================================================== */

.btn, 
.submit-btn {
    background-color: #38bdf8;
    color: #0f172a;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 56px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.btn:hover, 
.submit-btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
}

/* ==========================================================================
   Navigacija
   ========================================================================== */

header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: #fff;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   Hero Sekcija
   ========================================================================== */

.hero {
    padding: 10rem 2rem 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 800px;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Usluge / Grid
   ========================================================================== */

.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    color: #38bdf8;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #38bdf8;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #38bdf8;
}

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

/* ==========================================================================
   Tehnologije
   ========================================================================== */

.tech-stack {
    background-color: #0b111e;
    padding: 5rem 2rem;
    text-align: center;
}

.tech-tags {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.tag.legacy {
    border-color: #f59e0b;
    color: #f59e0b;
}

/* ==========================================================================
   Kontakt / Footer
   ========================================================================== */

footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: #38bdf8;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.email-link:hover {
    color: #f8fafc;
}

.copy {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* ==========================================================================
   Modalni Prozor (Započni Projekat)
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

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

.modal-content {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-size: 1.6rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-form .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.project-form label {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.project-form input,
.project-form select,
.project-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
    border-color: #38bdf8;
}

/* ==========================================================================
   Responzivnost
   ========================================================================== */

@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2.3rem; 
    }
    .nav-links { 
        display: none; 
    }
    .services-grid { 
        grid-template-columns: 1fr; 
    }
}


/* ==========================================================================
   SLIDER STA KAZU NASI KLIJENTI O NAMA
   ========================================================================== */
 .testimonial-slider-container {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            min-height: 240px;
        }
        .testimonial-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s;
            text-align: center;
            padding: 2.5rem 2rem;
            background: #1e293b;
            border-radius: 12px;
            border: 1px solid #334155;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            box-sizing: border-box;
        }
        .testimonial-slide.active-slide {
            position: relative;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .testimonial-slide h3 {
            color: #38bdf8;
            font-size: 1.4rem;
            margin-bottom: 1rem;
        }
        .testimonial-slide p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: #e2e8f0;
        }
        .testimonial-author {
            color: #94a3b8 !important;
            font-size: 0.95rem !important;
            margin-top: 1.5rem !important;
            font-weight: 600;
        }
        .slider-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 25px;
        }
        .slider-btn {
            background: #334155;
            color: #ffffff;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease, transform 0.2s ease;
        }
        .slider-btn:hover {
            background: #38bdf8;
            color: #0f172a;
            transform: translateY(-2px);
        }