/* ===== GLOBALNI STILOVI ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c41e3a;
    --dark-black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-black);
    background-color: var(--white);
    line-height: 1.6;
}

/* ===== NAVIGACIJSKA TRAKA ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-red);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-black);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-black);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animacija kada je aktivan */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* ===== HERO SEKCIJA ===== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    animation: fadeIn 1s;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Kontrole slajdera */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(196, 30, 58, 0.8);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 100;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.slider-btn:hover {
    background-color: var(--primary-red);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Točkice za navigaciju slajdera */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-red);
    width: 30px;
    border-radius: 6px;
}

/* CTA Gumb */
.cta-container {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.cta-btn {
    display: inline-block;
    padding: 15px 50px;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.cta-btn:hover {
    background-color: #a01730;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* ===== GLAVNA SEKCIJA - USLUGE ===== */
.main-services {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--primary-red);
    margin-bottom: 60px;
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15);
}

.card-icon {
    font-size: 50px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-weight: bold;
}

.service-card p {
    color: var(--dark-black);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.service-features li {
    color: var(--dark-black);
    padding: 8px 0;
    font-size: 14px;
}

.service-features li:before {
    color: var(--primary-red);
    font-weight: bold;
}

.service-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: #a01730;
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-black);
    color: var(--white);
    margin-top: 80px;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.footer-section p {
    color: #b0b0b0;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #a01730;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: 20px;
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
}

/* ===== RESPONZIVNI DIZAJN ===== */

/* Tablet (768px i manje) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .hero {
        height: 400px;
    }

    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobilni uređaji (480px i manje) */
@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .nav-container {
        height: 60px;
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .hero {
        height: 300px;
    }

    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .cta-btn {
        padding: 12px 35px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .card-icon {
        font-size: 40px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 13px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 12px;
    }
}