:root {
    --bg: #0f0f0f;
    --text: #e6e6e6;
    --accent: #d3b76d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
ul { list-style: none; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left:0;
    width: 100%; height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    width: 60px; height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 10px; }
::-webkit-scrollbar-thumb { background-color: var(--accent); border-radius: 10px; border: 3px solid #1a1a1a; }

/* Navbar */
.header { position: fixed; top:0; width: 100%; z-index:1000; }
.navbar {
    display: flex; justify-content: space-between; align-items:center;
    padding: 15px 30px; height: 80px;
    width: 100%;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    z-index:1000;
}
.header.scrolled .navbar { background-color: rgba(0,0,0,0.85); backdrop-filter: blur(10px); }

.logo img { max-height: 100px; transition: transform 0.25s ease; }
.logo img:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 25px; flex-wrap: wrap; }
.nav-links a {
    color: #fff; text-decoration: none; font-weight: 500;
    position: relative; transition: color 0.3s ease;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
    background-color: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 20px; }
.social-icons a { color: #fff; font-size: 18px; transition: transform 0.2s ease; }
.social-icons a:hover { color: var(--accent); transform: translateY(-2px); }

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s ease;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        height: calc(100vh - 80px);
        width: 250px;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 40px;
        gap: 25px;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .social-icons {
        display: none; /* optional */
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Hero */
.hero-normal {
    position: relative; width: 100%; height: 60vh;
    display: flex; justify-content: center; align-items: center;
    text-align: center; overflow: hidden;
}
.hero-normal .hero-img {
    position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; z-index:1;
}
.hero-normal .hero-content { position: relative; z-index:2; color:#fff; }
.hero-normal h1 { font-size:2.8rem; color: var(--accent); margin-bottom:10px; }
.hero-normal p { font-size:1.2rem; }

/* Što nudimo */
.celebration-offer { text-align:center; padding:60px 20px; }
.celebration-offer h2 { font-size:2.2rem; color: var(--accent); margin-bottom:35px; }
.offer-cards { display:flex; justify-content:center; gap:30px; flex-wrap:wrap; }
.offer-card {
    background-color: rgba(255,255,255,0.05);
    border: 2px solid var(--accent);
    border-radius:12px;
    padding:25px;
    width:260px;
    transition: transform 0.3s;
}
.offer-card:hover { transform: scale(1.05); }
.offer-card i { font-size:2rem; color: var(--accent); margin-bottom:12px; }
.offer-card h3 { color: var(--accent); margin-bottom:10px; }
.offer-card p { font-size:0.95rem; }

@media (max-width: 768px) {

    .offer-cards {
        flex-direction: column;
        align-items: center;   /* centrira kartice */
    }

    .offer-card {
        width: 90%;            /* umjesto 260px */
        max-width: 350px;      /* da ne budu preširoke */
    }
}

/* Kapacitet i prostor */
.celebration-space { padding:50px 20px; }
.space-row { display:flex; align-items:center; gap:40px; margin-bottom:50px; }
.space-row img { width:50%; border-radius:12px; object-fit:cover; box-shadow:0 10px 20px rgba(0,0,0,0.2); }
.space-text { width:50%; }
.reverse { flex-direction: row-reverse; }

/* Galerija */
.celebration-gallery { text-align:center; padding:50px 20px; }
.celebration-gallery h2 { color: var(--accent); font-size:2rem; margin-bottom:30px; }
.gallery-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:15px; }
.gallery-grid img { width:100%; border-radius:12px; object-fit:cover; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.05); }

/* CTA */
.celebration-cta { text-align:center; padding:60px 20px; background-color:#000; }
.celebration-cta h2 { font-size:2rem; color: var(--accent); margin-bottom:15px; }
.celebration-cta p { font-size:1.1rem; margin-bottom:25px; }
.celebration-cta .btn {
    display:inline-block; padding:12px 30px; color:#fff;
    background-color: var(--accent); text-decoration:none;
    border-radius:8px; font-weight:bold; transition: background-color 0.3s;
}
.celebration-cta .btn:hover { background-color:#b89c58; }

/* Responsive */
@media (max-width:1024px) {
    .space-row { flex-direction: column; }
    .space-row img, .space-text { width:100%; text-align:center; }
    .reverse { flex-direction: column; }
    .offer-cards { flex-direction: column; gap:20px; }
}

@media (max-width:768px) {
    .hero-normal { height:50vh; }
    .hero-normal h1 { font-size:2rem; }
    .hero-normal p { font-size:1rem; }
}

@media (max-width:480px) {
    .navbar { flex-direction: column; gap:10px; padding:15px; height:auto; }
    .nav-links { gap:15px; justify-content:center; flex-wrap:wrap; }
    .social-icons { margin-top:10px; }
    .offer-card { width:100%; padding:20px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap:10px; }
    .celebration-cta h2 { font-size:1.5rem; }
    .celebration-cta p { font-size:1rem; }
}
