html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
}

.section-default {
    background-color: #ffffff; /* čisto belo */
    padding: 80px 20px;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, #66c2c8, #5aaeb2);
    padding: 15px 30px;
    z-index: 1000;
}

/* Logo */
.header-logo {
    font-size: 26px;
    font-weight: bold;
    color: white;
}

.header-logo a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.header-logo a:hover {
    text-decoration: none; /* Uklanja underline na hover */
    color: inherit; /* Sprečava promenu boje na hover */
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
}

/* HERO SECTION */
.hero-image-section {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('../images/hero-slika.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    text-shadow: 0px 6px 16px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards, pulse 5s infinite;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive za tablet uređaje */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px; /* malo manji naslov */
    }
}

/* Responsive za mobilne uređaje */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background: rgba(102, 194, 200, 0.95);
        position: absolute;
        top: 70px;
        left: 10px;
        right: 10px;
        padding: 20px 10px;
        border-radius: 12px;
        gap: 20px;
        z-index: 10;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
        z-index: 20;
    }

    .hero-title {
        font-size: 36px; /* još manji naslov na telefonima */
    }

    .hero-image-section {
        height: 60vh; /* malo manja visina na telefonima */
    }

    .logo img {
        height: 32px;
        width: 32px;
    }
}

/* Responsive za vrlo male uređaje (npr. telefoni ispod 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px; /* Smanjujemo naslov hero sekcije */
    }

    .hero-button a {
        font-size: 12px; /* Smanjujemo dugme hero sekcije */
        padding: 8px 16px;
    }
}

.about-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
  }
  
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
  
.about-text {
    flex: 1 1 500px;
    text-align: left;
}
  
.about-text h2 {
    font-size: 36px;
    color: #3e8e94;
    margin-bottom: 20px;
}
  
.about-text p {
    font-size: 17px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}
  
.about-image {
    flex: 1 1 400px;
    text-align: center;
}
  
.about-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}
  

/* Sekcija usluga */
.services-section {
    padding: 80px 20px;
    background-color: #f4fafa; /* svetlo plava koja se slaže sa header gradijentom */
    text-align: center;
}

.section-title h2 {
    font-size: 36px;
    color: #3e8e94;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 20px auto 10px;
    display: block;
}

.service-card h3 {
    font-size: 20px;
    color: #3e8e94;
    margin: 20px 0 10px;
}

.service-card p {
    font-size: 15px;
    color: #555;
    padding: 0 20px 20px;
}

/* Lokacija sekcija */
.location-section {
    padding: 80px 20px;
    background-color: #f4fafa; /* ista svetla plavo-zelena koja se uklapa */
}

.location-info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-block {
    text-align: center;
    max-width: 250px;
}

.info-block img {
    width: 50px;
    margin-bottom: 15px;
}

.info-block p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.footer {
    background: linear-gradient(180deg, #6ac2c8 0%, #3e8e94 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    width: 80px; /* Povećano za bolju vidljivost logotipa */
    margin-bottom: 20px;
    border-radius: 12px; /* Zaobljene ivice ako želiš */
}

.footer-hospital-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-address, .footer-contact {
    font-size: 16px;
    margin-bottom: 6px;
}


/* Scroll to Top dugme */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: #6ac2c8;
    color: white;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 999;
}

#scrollToTop:hover {
    background: #3e8e94;
    transform: translateY(-3px);
}
