/* Osnovni Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f2f5; /* Jako svijetla, čista pozadina */
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- MINIMALISTIČKI HEADER --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #111;
}

.contact-links {
    display: flex;
    gap: 30px;
}

.contact-links a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #000;
}

/* --- GLAVNI SADRŽAJ --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 5% 50px 5%;
}

.intro {
    text-align: center;
    margin: 30px 0 50px 0;
}

.intro h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

/* --- INTERAKTIVNA HARMONIKA (ACCORDION) --- */
.services-accordion {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 60vh; /* Visina panela */
    min-height: 400px;
    gap: 15px; /* Razmak između panela */
}

/* Pojedinačni panel */
.panel {
    position: relative;
    flex: 1; /* Svi paneli kreću s istom širinom */
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover; /* Slika UVIJEK popunjava cijeli panel */
    background-position: center;
    background-repeat: no-repeat;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Glatka, premium animacija širenja */
    display: flex;
    align-items: flex-end; /* Sadržaj guramo na dno */
    cursor: pointer;
}

/* Povezivanje vaših .jpeg slika kao pozadine */
.panel-radio { background-image: url('image.png'); }
.panel-caffe { background-image: url('lamc.jpeg'); }
.panel-popcorn { background-image: url('lamp.jpeg'); }

/* Zatamnjenje preko slika da se tekst bolje vidi */
.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    transition: opacity 0.4s ease;
}

/* GLAVNA MAGIJA - Efekt širenja na hover */
.panel:hover {
    flex: 4; /* Panel se proširi 4 puta više od ostalih */
}

/* --- TEKST UNUTAR PANELA --- */
.panel-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #fff;
    width: 100%;
    opacity: 0; /* Tekst je nevidljiv dok se ne pređe mišem */
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap; /* Sprječava prelamanje teksta tijekom animacije */
}

/* Prikazivanje teksta samo kada je panel proširen */
.panel:hover .panel-content {
    opacity: 1;
    transform: translateY(0);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #111;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.panel-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.panel-content p {
    font-size: 1.1rem;
    color: #d1d1d1;
}

.main-footer {
    width: 100%;
    padding: 40px 5%;
    margin-top: auto; /* Gura footer na samo dno ako na ekranu fali sadržaja */
    border-top: 1px solid #e1e3e6; /* Vrlo blaga, suptilna linija */
}

.footer-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.main-footer p {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Stilizacija za potpis agencije (kodanum.com) */
.credits a {
    color: #111;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Efekt podvlačenja na hover za link agencije */
.credits a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #111;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.credits a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* --- RESPONZIVNOST (MOBITELI) --- */
@media (max-width: 900px) {
    .top-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .services-accordion {
        flex-direction: column; /* Na mobitelu slažemo okomito */
        height: 80vh; /* Cijela galerija uzima visinu ekrana */
        gap: 15px;
    }
    
    .panel {
        min-height: 150px;
    }
    
    .panel:hover {
        flex: 3; /* Malo manji rast na mobitelima */
    }
    
    /* Na mobitelima uvijek prikazujemo osnovni tekst, a skrivamo paragraf */
    .panel-content {
        opacity: 1;
        transform: translateY(0);
        padding: 20px;
    }
    
    .icon-circle {
        display: none; /* Skrivamo ikone radi uštede prostora */
    }
    
    .panel-content h2 {
        font-size: 1.5rem;
    }
    
    .panel-content p {
        display: none; 
    }
    
    .panel:hover .panel-content p {
        display: block; /* Pokaži tekst kad se tapne na mobitelu */
        white-space: normal;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 10px;
    }
}