/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.logo img {
    height: 40px;
    margin-right: 5px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('slike/pozadina2.jpg') center/cover no-repeat;
    color: #fff;
    padding-top: 80px;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title-wrapper {
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Floating slogans */
.floating-slogans {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.slogan-item {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: #ffa726;
    opacity: 0;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 167, 38, 0.8),
                 0 0 40px rgba(255, 167, 38, 0.6),
                 3px 3px 15px rgba(0, 0, 0, 0.9);
}

@keyframes fadeInFloat {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.75;
        transform: translateY(0);
    }
}

.slogan-1 {
    top: 15%;
    left: 8%;
    animation: fadeInFloat 1.5s ease 0.5s forwards;
}

.slogan-2 {
    top: 50%;
    right: 10%;
    animation: fadeInFloat 1.5s ease 1s forwards;
}

.slogan-3 {
    bottom: 20%;
    left: 12%;
    animation: fadeInFloat 1.5s ease 1.5s forwards;
}

@keyframes fadeInFloat {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.45;
        transform: translateY(0);
    }
}

/* Decorative lines */
.slogan-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -60px;
    width: 45px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color));
    opacity: 0.8;
}

.slogan-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 45px;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--secondary-color));
    opacity: 0.8;
}

/* About */
#about {
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Services */
#services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.open {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.service-modal.open .service-modal-content {
    transform: scale(1);
}

.close-service-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 30px;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.close-service-modal:hover {
    color: var(--accent-color);
}

.service-modal-body {
    padding: 40px 30px 30px;
}

.service-modal-body h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-modal-body p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.service-modal-body li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-modal-body strong {
    color: var(--primary-color);
}

/* Contact */
#contact {
    background-color: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-right: 15px;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-text p a {
    color: inherit;
    text-decoration: none;
}

.contact-text h4 {
    margin-bottom: -5px;
    color: var(--primary-color);
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.error {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-submit {
    text-align: right;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: block;
    margin-bottom: 40px;
}

.footer-clients {
    text-align: center;
}

.footer-heading {
    font-size: 24px;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0 50px;
    position: relative;
}

.client-logo:nth-child(1) { transform: translateY(-15px); }
.client-logo:nth-child(2) { transform: translateY(10px); }
.client-logo:nth-child(3) { transform: translateY(-8px); }
.client-logo:nth-child(4) { transform: translateY(18px); }
.client-logo:nth-child(5) { transform: translateY(-12px); }
.client-logo:nth-child(6) { transform: translateY(5px); }
.client-logo:nth-child(7) { transform: translateY(-20px); }
.client-logo:nth-child(8) { transform: translateY(12px); }
.client-logo:nth-child(9) { transform: translateY(-5px); }

.client-logo {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    min-width: 140px;
    min-height: 90px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.client-logo:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.client-logo img {
    max-width: 110px;
    max-height: 65px;
    height: auto;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: all 0.4s ease;
}

.client-logo:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    letter-spacing: 0.5px;
}

.error-input {
    border-color: var(--accent-color) !important;
}

.form-success-message {
    display: none;
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    animation: slideIn 0.5s ease;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 50px;
    color: white;
    animation: scaleIn 0.5s ease 0.2s both;
    backdrop-filter: blur(10px);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.form-success-message h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.form-success-message p {
    font-size: 16px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .client-logos {
        gap: 30px 45px;
        padding: 25px 0 40px;
    }
    
    .client-logo {
        min-width: 120px;
        min-height: 80px;
        padding: 20px;
    }
    
    .client-logo img {
        max-width: 95px;
        max-height: 55px;
    }

    .client-logo:nth-child(1) { transform: translateY(-10px); }
    .client-logo:nth-child(2) { transform: translateY(8px); }
    .client-logo:nth-child(3) { transform: translateY(-5px); }
    .client-logo:nth-child(4) { transform: translateY(12px); }
    .client-logo:nth-child(5) { transform: translateY(-8px); }
    .client-logo:nth-child(6) { transform: translateY(4px); }
    .client-logo:nth-child(7) { transform: translateY(-15px); }
    .client-logo:nth-child(8) { transform: translateY(10px); }
    .client-logo:nth-child(9) { transform: translateY(-3px); }

    .slogan-item {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .slogan-1 {
        top: 18%;
        left: 5%;
    }

    .slogan-2 {
        top: 45%;
        right: 5%;
    }

    .slogan-3 {
        bottom: 15%;
        left: 8%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .service-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .service-modal-body {
        padding: 30px 20px 20px;
    }

    .client-logos {
        gap: 25px 35px;
        padding: 20px 0 35px;
    }
    
    .client-logo {
        min-width: 100px;
        min-height: 70px;
        padding: 15px;
    }
    
    .client-logo img {
        max-width: 80px;
        max-height: 45px;
    }
    
    .footer-heading {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .client-logo:nth-child(1) { transform: translateY(-8px); }
    .client-logo:nth-child(2) { transform: translateY(6px); }
    .client-logo:nth-child(3) { transform: translateY(-4px); }
    .client-logo:nth-child(4) { transform: translateY(10px); }
    .client-logo:nth-child(5) { transform: translateY(-6px); }
    .client-logo:nth-child(6) { transform: translateY(3px); }
    .client-logo:nth-child(7) { transform: translateY(-10px); }
    .client-logo:nth-child(8) { transform: translateY(8px); }
    .client-logo:nth-child(9) { transform: translateY(-2px); }

    .slogan-item {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
    }

    .slogan-1 {
        top: 18%;
        left: 3%;
    }

    .slogan-2 {
        top: 40%;
        right: 3%;
    }

    .slogan-3 {
        bottom: 12%;
        left: 5%;
    }

    .slogan-item::before,
    .slogan-item::after {
        width: 30px;
    }

    .slogan-item::before {
        left: -40px;
    }

    .slogan-item::after {
        right: -40px;
    }
}

@media (max-width: 576px) {
    .stats {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 40px 0 20px;
    }

    .client-logos {
        gap: 20px 25px;
        padding: 15px 0 30px;
        max-width: 100%;
    }
    
    .client-logo {
        min-width: 85px;
        min-height: 60px;
        padding: 12px;
    }
    
    .client-logo img {
        max-width: 70px;
        max-height: 40px;
    }

    .footer-heading {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 15px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.4;
    }

    .client-logo:nth-child(1) { transform: translateY(-5px); }
    .client-logo:nth-child(2) { transform: translateY(4px); }
    .client-logo:nth-child(3) { transform: translateY(-3px); }
    .client-logo:nth-child(4) { transform: translateY(6px); }
    .client-logo:nth-child(5) { transform: translateY(-4px); }
    .client-logo:nth-child(6) { transform: translateY(2px); }
    .client-logo:nth-child(7) { transform: translateY(-6px); }
    .client-logo:nth-child(8) { transform: translateY(5px); }
    .client-logo:nth-child(9) { transform: translateY(-2px); }

    .client-logo:hover {
        transform: translateY(-3px) scale(1.02);
    }

    .form-success-message {
        padding: 30px 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 40px;
    }
    
    .form-success-message h3 {
        font-size: 24px;
    }
    
    .form-success-message p {
        font-size: 14px;
    }

    .slogan-item {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .slogan-1 {
        top: 18%;
        left: 2%;
    }

    .slogan-2 {
        top: 35%;
        right: 2%;
    }

    .slogan-3 {
        bottom: 10%;
        left: 3%;
    }

    .slogan-item::before,
    .slogan-item::after {
        display: none;
    }

    @keyframes fadeInFloat {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 0.4;
            transform: translateY(0);
        }
    }
}