@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container for consistent spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Section */
#header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

#header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

#main h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

#under {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: #34495e;
    margin-bottom: 2rem;
    font-style: italic;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#image {
    display: flex;
    justify-content: center;
    align-items: center;
}

#image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.1));
}

/* About Section */
#about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    opacity: 1;
    transform: none;
}

#about .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.slika {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    height: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kdo-smo {
    text-align: center;
}

.kdo-smo h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.kdo-smo h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: white;
}

.kdo-smo p {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
#services {
    padding: 5rem 0;
    background: #f8f9fa;
}

#services h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    width: 100%;
}

#services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card p {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.6;
}

/* Reference Section */
#reference {
    padding: 5rem 0;
    text-align: center;
    background: white;
}

#reference hr {
    border: none;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100px;
    margin: 0 auto 2rem;
}

#reference h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #2c3e50;
}

/* Contact Section */
#contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

#contact h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #5a6c7d;
}

.contact-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Continuous Scrolling Logos */
.logos-container {
    margin-top: 3rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    border-radius: 15px;
    position: relative;
    width: 100%;
}

.logos-scroll {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    width: max-content;
    animation: scroll-logos 25s linear infinite;
}

.logo-item {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-shrink: 0;
    min-width: 200px;
    transition: transform 0.3s ease;
}


.logo-item:hover {
    transform: translateY(-2px);
}

.logos-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

/* Footer */
#footer {
    padding: 3rem 0 1rem;
    background: #2c3e50;
    color: white;
    opacity: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    #header .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    #about .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .slika {
        height: 200px;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logos-scroll {
        gap: 2rem;
        animation-duration: 20s;
    }
    
    .logo-item {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        min-width: 160px;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Initial state for animated elements */
section:not(#header):not(#footer):not(#about) {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* Prevent flash of unstyled content */
body:not(.loaded) section:not(#header):not(#footer):not(#about) {
    opacity: 0;
    transform: translateY(30px);
}

body:not(.loaded) .card {
    opacity: 0;
    transform: translateY(30px);
}

/* Fade in class added by JavaScript */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger animation for cards */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }
.card:nth-child(5) { transition-delay: 0.5s; }
.card:nth-child(6) { transition-delay: 0.6s; }

/* Header animations */
#header {
    opacity: 1;
    transform: none;
}

#main h1 {
    animation: fadeInLeft 1s ease-out;
}

#under {
    animation: fadeInLeft 1s ease-out 0.2s both;
}

button {
    animation: fadeInUp 1s ease-out 0.4s both;
}

#image img {
    animation: fadeInRight 1s ease-out 0.3s both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.8s both;
    cursor: pointer;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid #667eea;
    border-radius: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #667eea;
    border-radius: 2px;
    animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Add backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
    .slika {
        backdrop-filter: blur(10px);
    }
}