/* Reset i osnovni stilovi za sve stranice */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header stilovi - UNIVERZALNI za sve stranice */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo stilovi - za stranice koje imaju .logo klasu */
.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo h1 i {
    color: #e74c3c;
    margin-right: 10px;
}

.tagline {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Header h1 za jednostavnu index stranicu */
header h1:not(.logo h1) {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* Navigacija - UNIVERZALNA za sve stranice */
nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 5px;
}

nav ul li a:hover {
    background-color: #f2f2f2;
    color: #e74c3c;
}

nav ul li a.active {
    background-color: #e74c3c;
    color: white;
}

/* Simple nav za jednostavnu index stranicu */
nav a:not(nav ul li a) {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:not(nav ul li a):hover {
    background-color: #f2f2f2;
    color: #e74c3c;
}

/* Hero sekcija - za kompleksne stranice */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1523170335258-f5ed11844a49?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1180&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1547996160-81f8f43f6bc6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1180&q=80');
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content span {
    color: #e74c3c;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px);
}

/* Sekcije - za kompleksne stranice */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f2f2f2;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-size: 2.2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #e74c3c;
    margin: 15px auto;
    border-radius: 2px;
}

/* Usluge - za kompleksne stranice */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Brendovi - za kompleksne stranice */
.brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.brand {
    background-color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.brands-note {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
}

/* Koraci - za kompleksne stranice */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Kontakt - za kompleksne stranice */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-text a {
    color: #e74c3c;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Forma - za kompleksne stranice */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Footer - za kompleksne stranice */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

.footer-column h3 i {
    margin-right: 10px;
}

.footer-column p, .footer-column a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
}

.footer-column a {
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
    transition: padding 0.3s;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* STILOVI ZA JEDNOSTAVNU INDEX STRANICU */
/* Glavni sadržaj za jednostavnu index stranicu */
body > h1:not(header h1),
body > p:not(footer p),
body > h2:not(footer h2),
body > ul:not(footer ul),
body > ol:not(footer ol) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 20px;
}

/* Prvi h1 (naslov ispod headera) za jednostavnu stranicu */
body > h1:first-of-type:not(header h1) {
    color: #2c3e50;
    font-size: 2.2rem;
    margin: 30px auto 20px;
    padding: 0 20px 10px;
    border-bottom: 3px solid #e74c3c;
}

/* Paragrafi za jednostavnu stranicu */
body > p:not(footer p) {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

body strong {
    color: #e74c3c;
}

/* Naslovi h2 za jednostavnu stranicu */
body > h2:not(footer h2) {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 30px auto 15px;
    padding: 0 20px 8px;
    border-bottom: 2px solid #eee;
}

/* Liste za jednostavnu stranicu */
body > ul:not(footer ul),
body > ol:not(footer ol) {
    margin-left: 40px;
    margin-bottom: 25px;
}

body > ul:not(footer ul) li,
body > ol:not(footer ol) li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Kontakt informacije na dnu jednostavne stranice */
body > p:last-of-type:not(footer p) {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 800px;
    border-left: 4px solid #e74c3c;
}

/* Responsivnost - UNIVERZALNA */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo, header h1 {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
        margin-top: 10px;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    nav a:not(nav ul li a) {
        margin: 0 5px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    body > h1:first-of-type:not(header h1) {
        font-size: 1.8rem;
    }
    
    body > h2:not(footer h2) {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        width: 200px;
        text-align: center;
    }
    
    nav a:not(nav ul li a) {
        display: block;
        width: 200px;
        text-align: center;
        margin: 5px auto;
    }
    
    body > ul:not(footer ul),
    body > ol:not(footer ol) {
        margin-left: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
}

/* =========== RESPONZIVNOST =========== */

/* 1. Osnovne responzivne podešavanja */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* 2. Mobile-first media queries */
@media (max-width: 768px) {
    /* Stilovi za mobilne */
    body {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Sakrij elemente koji zauzimaju previše prostora */
    .desktop-only {
        display: none !important;
    }
    
    /* Meni za mobilne */
    .nav-menu {
        flex-direction: column;
    }
}

/* 3. Desktop stilovi (opciono) */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Dodaj na KRAJ tvog postojećeg CSS-a */

/* Sprečava horizontalno skrolovanje */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Flexbox za responzivne kontejnere */
.responsive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.responsive-item {
    flex: 1 1 300px; /* Minimum 300px, raste po potrebi */
}

/* Tabela na mobilnom */
@media (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto;
    }
}
/* ==================== ANIMACIJE ==================== */

/* Fade-in animacija za sve sekcije */
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animirani hover efekti za kartice */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Pulsirajući efekat za CTA dugmad */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary:hover {
    animation: pulse 0.6s ease;
}

/* Animacija za brendove */
.brand {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.brand:hover::before {
    left: 100%;
}

.brand:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Animacija za korake */
.step {
    transition: all 0.4s ease;
}

.step:hover .step-number {
    transform: rotate(360deg);
    background-color: #c0392b;
}

.step-number {
    transition: all 0.6s ease;
}

/* Loading animacija za hero sekciju */
.hero-content h2 span {
    display: inline-block;
    position: relative;
}

.hero-content h2 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #e74c3c;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineExpand 1.5s ease-in-out infinite alternate;
}

@keyframes underlineExpand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Animacija za kontakt ikone */
.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
    background-color: #c0392b;
}

/* Fade-in za footer */
footer {
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ==================== POBOLJŠANA RESPONZIVNOST ==================== */

/* Tableti (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-container {
        gap: 30px;
    }
}

/* Mobilni (576px - 768px) */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .services {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brands {
        gap: 10px;
    }
    
    .brand {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-column h3 {
        justify-content: center;
    }
}

/* Mali mobilni (do 576px) */
@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 5px 0;
        width: 100%;
    }
    
    nav ul li a {
        justify-content: center;
        padding: 10px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin: 5px 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Stil za veoma male ekrane (do 360px) */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .brand {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* ==================== DODATNE ANIMACIJE ==================== */

/* Blagi shake efekat za dugme pozovi */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.btn-secondary:hover {
    animation: shake 0.3s ease;
}

/* Floating animacija za hero sat */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero::after {
    content: '🕒';
    position: absolute;
    font-size: 50px;
    right: 10%;
    bottom: 20%;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

.hero {
    position: relative;
    overflow: hidden;
}

/* Glowing efekat za aktivne linkove */
nav ul li a.active {
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

/* Postepeno pojavljivanje za liste */
ul li, ol li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animacija za list items */
ul li:nth-child(1) { animation-delay: 0.1s; }
ul li:nth-child(2) { animation-delay: 0.2s; }
ul li:nth-child(3) { animation-delay: 0.3s; }
ul li:nth-child(4) { animation-delay: 0.4s; }
ul li:nth-child(5) { animation-delay: 0.5s; }
ul li:nth-child(6) { animation-delay: 0.6s; }

/* Responsivna animacija - isključi na mobilnim ako je potrebno */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== ANIMACIJE ZA TEKST ==================== */

/* Osnovna animacija za pojavljivanje */
.animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Typewriter efekat */
.typewriter {
    overflow: hidden; /* Sakriva tekst dok se ne otkuca */
    border-right: .15em solid orange; /* Kursor */
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

/* Typewriter animacija */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}


/* ==================== NOVE ANIMACIJE ==================== */

/* Typewriter efekat */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #e74c3c;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: 
        typing 3.5s steps(40, end),
        blink 0.75s step-end infinite;
}

/* Tekst animacije */
.animate-text {
    background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Pulse animacija za dugmad */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

.pulse:hover {
    animation: none;
    transform: scale(1.05);
}

/* Shake animacija */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake:hover {
    animation: shake 0.5s;
}

/* Fade in up sa kašnjenjem */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

/* Zoom in animacija */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoomIn {
    animation: zoomIn 0.8s ease forwards;
}

/* Bounce in animacija */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounceIn {
    animation: bounceIn 0.8s ease forwards;
}

/* Fade in left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

/* Fade in right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

/* Fade in down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

/* Rotate animacija */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* Highlight efekat */
.highlight {
    color: #e74c3c;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e74c3c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.highlight:hover::after {
    transform: scaleX(1);
}

/* ==================== RESPONZIVNE POBOLJŠANJA ==================== */

/* Super responzivni kontejner */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .brands {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .brands {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .brand {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-column h3 {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 20px;
    }
}

/* Touch-friendly dugmadi za mobilne */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav ul li a {
        padding: 12px 15px;
    }
}

/* Poboljšanje za landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

/* Sprečavanje horizontalnog skrolovanja */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Poboljšanje za iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}

/* Stil za kontatk info box */
.contact-info-box {
    background: linear-gradient(135deg, #f9f9f9, #fff);
    border-left: 4px solid #e74c3c;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info-box p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-info-box i {
    color: #e74c3c;
    margin-right: 10px;
    width: 20px;
}