:root {
    --main-color: #2c3d39;
    --hover-color: #73827e;
    --accent-gold: #c5a059;
    --bg-color: #f4f6f5;
    --white: #ffffff;
    --glass-strong: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 15px 40px rgba(44, 61, 57, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--main-color); overflow-x: hidden; line-height: 1.6; }

#pocetna, #programi, #galerija, #iskustva, #tim, #kontakt, #vauceri {
    scroll-margin-top: 110px; 
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

ul { list-style: none !important; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }

#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loader-container { position: relative; width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; }
.loader-icon { width: 50px; height: 50px; object-fit: contain; z-index: 2; }
.spinning-circle {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 3px solid transparent; border-top: 3px solid var(--main-color);
    border-radius: 50%; animation: spin 1s linear infinite; z-index: 1;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#backToTop {
    position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px;
    background: var(--main-color); color: var(--white); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
    cursor: pointer; z-index: 900; opacity: 0; visibility: hidden; transition: 0.4s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#backToTop.show { opacity: 1; visibility: visible; bottom: 30px; }
#backToTop.hidden-by-modal { opacity: 0; visibility: hidden; }

header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1200px;
    padding: 8px 30px; display: flex; justify-content: space-between; align-items: center; z-index: 1000;
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5); border-radius: 50px; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.logo { display: flex; align-items: center; }
.logo img { height: 70px; width: 70px; object-fit: cover; border-radius: 50%; }

.nav-links { display: flex; gap: 35px; }
.nav-links a { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; position: relative; color: var(--main-color); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--hover-color); transition: 0.3s; }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; font-size: 1.5rem; color: var(--main-color); cursor: pointer; padding-top: 5px; }

.hero {
    height: 100vh; width: 100%; position: relative; background: url('pozadina.png') center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px;
}
.hero::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1; 
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 4rem; font-weight: 700; margin-bottom: 20px; color: white; }
.hero p { font-size: 1.3rem; font-weight: 500; margin-bottom: 0; color: #f0f0f0; }

.scroll-down-container {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: 0.3s;
}
.scroll-text { color: white; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 10px; font-weight: 600; }
.scroll-arrow { color: var(--accent-gold); font-size: 2rem; animation: bounce 2s infinite; }
.scroll-down-container:hover .scroll-text { color: var(--accent-gold); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.btn { padding: 15px 40px; background: var(--main-color); color: var(--white); border: none; border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; display: inline-block; }
.btn:hover { background: var(--hover-color); transform: translateY(-3px); }

.voucher-section { 
    width: 100%; height: 700px; background: url('vaucerik.png') center/cover no-repeat; cursor: pointer; 
}

.sponsors-static {
    width: 100%; background: #fff; padding: 30px 5%; display: flex; justify-content: center; align-items: center; gap: 40px;
    flex-wrap: wrap; border-bottom: 1px solid #eee;
}
.sponsor-logo {
    display: flex; align-items: center; justify-content: center; width: 120px; height: 60px; opacity: 0.7; transition: 0.3s; margin: 0 auto;
}
.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); }
.sponsor-logo:hover { opacity: 1; }
.sponsor-logo:hover img { filter: grayscale(0%); }

.section-padding { padding: 100px 5%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--main-color); }
.section-subtitle { text-align: center; margin-bottom: 40px; color: #777; font-size: 0.9rem; margin-top: -40px; }
.section-title span { color: var(--hover-color); font-weight: 300; }

.programs-container { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; margin-bottom: 30px; }
.program-item { text-align: center; width: 320px; }
.program-img-wrapper { 
    width: 280px; height: 280px; margin: 0 auto 25px; border-radius: 50%; overflow: hidden; 
    border: none; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.program-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.program-item h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--main-color); }
.program-item p { color: #666; font-size: 0.95rem; padding: 0 20px; }

.team-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.team-member { text-align: center; width: 300px; }
.img-wrapper { width: 250px; height: 250px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 5px solid rgba(255,255,255,0.5); }
.team-member img { width: 100%; height: 100%; object-fit: cover; }

.gallery-section-dark { background-color: var(--main-color); color: white; }
.title-light, .subtitle-light { color: white !important; }
.title-light span { color: var(--accent-gold) !important; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 15px; max-width: 1400px; margin: 0 auto;
}
.gallery-item { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; cursor: pointer; transition: 0.3s; }
.gallery-item:hover { transform: scale(1.03); z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(3) { grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(8) { grid-column: span 2; grid-row: span 2; }

.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.review-card { padding: 30px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-soft); }

.contact-wrapper {
    display: flex; justify-content: center; align-items: stretch; gap: 0; max-width: 1200px; margin: 0 auto;
    min-height: 500px; box-shadow: var(--shadow-soft); border-radius: 30px; overflow: hidden;
}
.contact-card-dark { flex: 1; background: var(--main-color); color: white; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.contact-header h3 { font-size: 2rem; margin-bottom: 10px; color: var(--white); }
.gold-line { width: 60px; height: 3px; background: var(--accent-gold); margin-bottom: 30px; }
.info-block { margin-bottom: 25px; }
.info-label { font-size: 0.8rem; letter-spacing: 2px; color: var(--accent-gold); text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.info-value { font-size: 1.1rem; }
.info-value i { margin-right: 10px; color: var(--accent-gold); }
.hours-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 1rem; }
.hours-row .dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,0.3); margin: 0 10px; position: relative; top: -4px; }
.contact-btn-outline {
    display: inline-block; padding: 12px 30px; border: 1px solid var(--accent-gold); color: var(--accent-gold);
    border-radius: 50px; font-weight: 600; transition: 0.3s; text-transform: uppercase; font-size: 0.9rem;
}
.contact-btn-outline:hover { background: var(--accent-gold); color: white; }
.map-container { flex: 1; border-radius: 0; }
.map-container iframe { width: 100%; height: 100%; filter: grayscale(100%); }

footer { background: linear-gradient(to top, #eef2f3, #ffffff); padding-top: 60px; }
.footer-content { display: flex; flex-direction: column; align-items: center; padding-bottom: 40px; text-align: center; }
.footer-icons { display: flex; gap: 25px; margin-bottom: 40px; justify-content: center; }
.icon-circle { 
    width: 50px; height: 50px; border-radius: 50%; background: var(--white); 
    display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: var(--main-color); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; 
}
.icon-circle:hover { background: var(--main-color); color: var(--white); transform: translateY(-3px); }

.footer-links-container { 
    display: flex; justify-content: center; gap: 80px; text-align: center; flex-wrap: wrap; width: 100%; max-width: 800px;
}
.footer-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; color: var(--main-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; margin-bottom: 8px; color: #666; transition: 0.3s; font-size: 0.95rem; }
.footer-col a:hover { color: var(--hover-color); }
.created-by { background: var(--white); padding: 15px 0; text-align: center; font-size: 0.8rem; border-top: 1px solid #eee; }
.created-by a { font-weight: 700; color: var(--hover-color); }
.copyright-text { font-size: 0.95rem; font-weight: 400; margin-top: 30px; opacity: 0.8; color: var(--main-color); }

.overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.6); backdrop-filter: none; z-index: 1999; display: none; opacity: 0; transition: 0.3s; 
}
.overlay.active { display: block; opacity: 1; }

.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 4000; justify-content: center; align-items: center; }
.lightbox-content { position: relative; max-width: 90%; max-height: 80%; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 5px; box-shadow: 0 0 50px rgba(0,0,0,0.5); 
    transition: opacity 0.4s ease, transform 0.4s ease; opacity: 1; transform: scale(1);
}
.lightbox img.fade-out { opacity: 0; transform: scale(0.9); }
.lightbox-close { 
    position: absolute; top: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; justify-content: center; align-items: center; color: white; font-size: 1.5rem; cursor: pointer; z-index: 4002; transition: 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: white; font-size: 1.2rem; cursor: pointer; z-index: 4001; transition: 0.3s;
}
.lightbox-arrow:hover { background: var(--accent-gold); color: white; transform: translateY(-50%) scale(1.1); }
.arrow-left { left: 30px; }
.arrow-right { right: 30px; }

.bottom-sheet { position: fixed; bottom: -100%; left: 0; width: 100%; background: var(--white); border-radius: 30px 30px 0 0; padding: 30px; z-index: 2000; transition: bottom 0.4s ease; text-align: center; }
.bottom-sheet.active { bottom: 0; }
.sheet-option { display: flex; align-items: center; justify-content: space-between; background: var(--bg-color); padding: 15px 20px; margin-bottom: 15px; border-radius: 15px; text-decoration: none; color: var(--main-color); font-weight: 600; }

@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .voucher-section { background: url('vaucerita.png') center/cover no-repeat; height: 600px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(5) { grid-column: span 2; }
    .gallery-item:nth-child(8) { grid-row: span 2; }
}

@media (max-width: 768px) {
    header { top: 10px; padding: 10px 20px; width: 95%; }
    .hamburger { display: block; }
    .nav-links { 
        position: absolute; top: calc(100% + 15px); left: 0; width: 100%; 
        background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.4); flex-direction: column; padding: 30px; gap: 20px; border-radius: 20px; 
        box-shadow: 0 20px 60px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateY(-10px); 
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 2000; 
    }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .contact-wrapper { flex-direction: column; height: auto; border-radius: 30px; }
    .contact-card-dark, .map-container { flex: auto; width: 100%; }
    .map-container { height: 350px; }
    
    .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .review-card { padding: 15px; font-size: 0.85rem; }
    
    .arrow-left { left: 10px; width: 45px; height: 45px; }
    .arrow-right { right: 10px; width: 45px; height: 45px; }
    .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; }
}

@media (max-width: 600px) {
    .voucher-section { background: url('vaucerit.png') center/cover no-repeat; height: auto; aspect-ratio: 1080/1350; }
    .hero h1 { font-size: 2.5rem; }
    .programs-container { flex-direction: column; align-items: center; }
    .footer-links-container { flex-direction: column; align-items: center; gap: 20px; text-align: center; } 
    .footer-col { flex: 0 0 auto; align-items: center; text-align: center; }
    .sponsors-static { flex-wrap: nowrap; justify-content: space-between; padding: 20px 10px; gap: 5px; }
    .sponsor-logo { width: 22%; height: 50px; }
    .sponsor-logo img { transform: scale(0.9); }
}