/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #fff;
    background: #111;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Header / Navigacija */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(17,17,17,0.9);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    flex-wrap: wrap;
    gap: 10px;
}

nav .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #c49b63;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #c49b63;
}

/* Hero sekcija */
.hero {
    position: relative;
    height: 130vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: -35px;
}

.slides {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Overlay - FIXED for mobile */
.hero .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    z-index: 10;
    width: 90%;
    max-width: 500px;
    padding: 20px;
}

/* Naslov */
.hero .overlay h1 {
    font-size: 2.2em;
    color: var(--hero-title-color);
    margin-bottom: 20px;
    text-align: left;
}

/* Podnaslov */
.hero .overlay h2 {
    font-size: 1.2em;
    color: #a2a500;
    margin-bottom: 20px;
}

/* Lista sa checkmark-om */
.hero .overlay ul.features {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px 0;
}

.hero .overlay ul.features li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: var(--hero-feature-color);
    font-size: 1.3em;
}

/* Checkmark */
.hero .overlay ul.features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #a2a500;
    font-size: 1.3em;
    line-height: 1.3em;
}

/* Dugme */
.hero .overlay .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c49b63;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.hero .overlay .btn:hover {
    background: #a67c52;
}

/* Particles / animacija pozadine */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--particles-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translate(-50%, -60%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* Sekcije */
section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

section h2 {
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #c49b63;
}

/* Usluge */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service {
    background: #c49b63;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-desc {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    width: 100%;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-desc {
    opacity: 1;
}

.portfolio-desc h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Kontakt forma */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: auto;
}

form input, form textarea {
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

form button {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: #c49b63;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #a67c52;
}

/* Footer */
footer {
    background: #222;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #ccc;
}

/* CSS promenljive za teme */
:root {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #c49b63;
    --accent-color-hover: #a67c52;
    --card-bg: #c49b63;
    --card-text: #333;
    --footer-bg: #222;
    --footer-text: #ccc;
    --particles-color: rgba(255, 255, 255, 0.12);
    --hero-title-color: #ffffff;
    --hero-feature-color: #fff;
}

body {
    color: var(--text-color);
    background: var(--bg-color);
    scroll-behavior: smooth;
}

header {
    background: rgba(17,17,17,0.9);
}

nav .logo {
    color: var(--accent-color);
}

nav ul li a {
    color: var(--text-color);
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hero .overlay .btn {
    background: var(--accent-color);
}

.hero .overlay .btn:hover {
    background: var(--accent-color-hover);
}

.service {
    background: var(--card-bg);
    color: var(--card-text);
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

/* Light mode */
body.light-mode {
    --bg-color: #fdfaf6;
    --text-color: #866d59;
    --accent-color: #a67c52;
    --accent-color-hover: #c4925f;
    --card-bg: #fff4e8;
    --card-text: #2f241b;
    --footer-bg: #ead8c0;
    --footer-text: #3a2c20;
    --hero-title-color: #4a3422;
    --hero-feature-color: #4a3422;
    --particles-color: rgba(0, 0, 0, 0.2);
}

#theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
}

#theme-toggle:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

/* RADOVI */
#portfolio {
    padding: 80px 20px;
}

#portfolio h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.work-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.work-image {
    flex: 1;
}

.work-image img {
    width: 100%;
    max-width: 500px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.work-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-text h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.work-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* STATISTIKA */
#stats {
    width: 100%;
    background-color: #000000;
    color: #ffc107;
    padding: 60px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat p {
    font-size: 1.2rem;
    color: #fff;
}

/* TOP BAR */
.page-header {
    background: #000;
    padding: 100px 20px 40px;
    text-align: center;
}

.page-header h1 {
    color: #c49b63;
    font-size: 3rem;
    letter-spacing: 2px;
}

/* GALERIJA */
.gallery {
    padding: 80px 20px;
    text-align: center;
}

.subtitle {
    color: #aaa;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Contact buttons */
.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    transform: translateY(-30px);
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    transition: 0.3s ease;
    display: inline-block;
}

.message-btn {
    background-color: #007bff;
}

.message-btn:hover {
    background-color: #0056b3;
}

.call-btn {
    background-color: #28a745;
}

.call-btn:hover {
    background-color: #1e7e34;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    /* Nav */
    nav {
        padding: 12px 16px;
        justify-content: center;
    }

    nav ul {
        gap: 12px;
        justify-content: center;
    }

    /* Hero */
    .hero .overlay h1 {
        font-size: 1.5em;
    }

    .hero .overlay h2 {
        font-size: 1em;
    }

    .hero .overlay ul.features li {
        font-size: 1em;
    }

    /* Sections */
    section {
        padding: 50px 16px;
    }

    section h2 {
        font-size: 1.8em;
    }

    /* Services */
    .service {
        width: 100%;
        max-width: 340px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Work sections */
    .work-section {
        flex-direction: column;
        text-align: center;
    }

    .work-image img {
        max-width: 100%;
        height: 220px;
    }

    .work-text {
        text-align: center;
    }

    /* Stats */
    .stats-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .stat h3 {
        font-size: 2.5rem;
    }

    .stat p {
        font-size: 1rem;
    }

    /* Page header */
    .page-header h1 {
        font-size: 2rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Contact buttons */
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        transform: none;
    }

    /* Form */
    form {
        width: 100%;
        padding: 0 10px;
    }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-box {
    display: inline-block;
    background: rgba(196, 155, 99, 0.85);
    padding: 18px 28px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-box h1 {
    font-size: 2.1em;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.slides::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.55)
    );
    top: 0;
    left: 0;
}

/* LISTA */
.nesto-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nesto-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #fff;
}

/* LUKSUZNI CHECKMARK (kvadratić kao na slici) */
.nesto-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #c49b63;
    color: #111;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.hero-box {
    background: rgba(30, 22, 10, 0.72);
    border-radius: 6px;
    padding: 36px 40px 32px;
    max-width: 480px;
    backdrop-filter: blur(4px);
}

.guarantee-title {
    font-size: 2em;
    font-weight: 900;
    color: #ffd000;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.divider {
    width: 100%;
    height: 2px;
    background: #c49b63;
    margin-bottom: 20px;
    opacity: 0.7;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.check-list li {
    position: relative;
    padding-left: 38px;
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #fff;
    font-weight: 500;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #c49b63;
    color: #111;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.cta-btn {
    display: inline-block;
    padding: 13px 28px;
    background: #c49b63;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.cta-btn:hover {
    background: #a67c52;
    transform: translateY(-2px);
}

/* ===== FLOATING CONTACT BUTTONS ===== */
.float-btns {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9000;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn svg {
    width: 24px;
    height: 24px;
}

.float-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.float-btn.whatsapp  { background: #25D366; }
.float-btn.viber     { background: #7360F2; }
.float-btn.phone     { background: #28a745; }
.float-btn.sms       { background: #007bff; }
.float-btn.mail      { background: #c49b63; }
.float-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

@media (max-width: 768px) {
    .float-btns {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .float-btn {
        width: 46px;
        height: 46px;
    }

    .float-btn svg {
        width: 21px;
        height: 21px;
    }
}

