:root[data-theme="light"] {
    --bg-color: #f4f7f6;
    --text-color: #333333;
    --header-bg: #ffffff;
    --primary-color: #87ceeb;
    --secondary-color: #6bb9d8;
    --border-color: #e0e0e0;
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
}

:root[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --header-bg: #1e1e1e;
    --primary-color: #87ceeb;
    --secondary-color: #6bb9d8;
    --border-color: #333333;
    --modal-bg: #2c2c2c;
    --input-bg: #3c3c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
    max-width: 100vw;
}

body::-webkit-scrollbar {
    display: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    background-color: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo h2 {
    color: var(--text-color);
}

.logo h2 span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Desktop Navigation Dropdowns */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-dropdown-btn {
    display: none;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    z-index: 1001;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a {
    padding: 10px 20px;
    font-size: 13px;
    transition: 0.3s;
}

.nav-dropdown-menu a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-actions button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-actions button:hover {
    color: var(--primary-color);
}

/* Hamburger & Close Menu Dugmad */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.hamburger-btn:hover {
    color: var(--primary-color);
}

.close-menu-btn {
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.close-menu-btn:hover {
    background-color: var(--secondary-color);
}

.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-info {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
}

.dropdown-menu hr {
    border: 0;
    border-top: 1px solid var(--border-color);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.admin-link {
    color: #ff6b6b !important;
}

.search-panel {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    padding: 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-panel.active {
    transform: translateY(0);
    opacity: 1;
}

.search-panel input {
    width: 50%;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 20px 0 0 20px;
    outline: none;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.search-panel button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 20px 20px 0;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    perspective: 1000px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: rotateY(-90deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: rotateY(0deg);
}

.register-content {
    max-width: 600px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

/* Modernizacija Login i Register Modala */
.modern-modal {
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 30px;
}
.modern-modal.register-content {
    max-width: 680px;
}
.modal-header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.modal-header-icon i {
    font-size: 60px;
    color: var(--primary-color);
    background: rgba(135,206,235,0.1);
    border-radius: 50%;
    padding: 15px;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.floating-input {
    position: relative;
    margin-bottom: 20px;
}
.floating-input.full-width {
    grid-column: span 2;
}
.floating-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
    font-size: 22px;
    transition: 0.3s;
}
.floating-input input {
    width: 100%;
    padding: 16px 45px 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s ease;
}
.floating-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(135,206,235,0.15);
    outline: none;
}
.floating-input input:focus ~ i {
    color: var(--primary-color);
}
.floating-input label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
    font-size: 15px;
    pointer-events: none;
    transition: 0.3s;
    background: var(--input-bg);
    padding: 0 5px;
    border-radius: 4px;
}
.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
}
.modern-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(135,206,235,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(135,206,235,0.5);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.full-width {
    grid-column: span 2;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===============================
   AI CHATBOT ASSISTANT
   =============================== */
#ai-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

#ai-chat-btn:hover {
    transform: scale(1.1);
}

.ai-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 550px;
    background: var(--header-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.ai-chat-panel.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

#close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

#close-chat-btn:hover {
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg-color);
    position: relative;
}

.chat-body::-webkit-scrollbar {
    display: none;
}

/* Welcome Animacija */
.chat-welcome-screen {
    position: absolute;
    inset: 0;
    background: var(--header-bg);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.chat-welcome-screen i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.chat-welcome-screen h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 5px;
    animation: slideUp 0.8s forwards;
}

.chat-welcome-screen p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
    animation: slideUp 1s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Agent Overlay */
.agent-overlay {
    display: none !important;
}

.agent-chat-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(135, 206, 235, 0.1);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    margin-bottom: 10px;
    animation: slideUp 0.5s forwards;
}

.agent-chat-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.agent-chat-profile h4 {
    font-size: 14px;
    margin: 0;
    color: var(--primary-color);
}

.agent-chat-profile span {
    font-size: 11px;
    color: gray;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 10px;
}

.chat-msg {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    animation: fadeInMsg 0.3s;
}

@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-user {
    align-self: flex-start;
}

/* Korisnik na LIJEVOJ strani */
.msg-admin {
    align-self: flex-end;
}

/* Admin/Bot na DESNOJ strani */

.msg-bubble {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-user .msg-bubble {
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-bottom-left-radius: 2px;
}

.msg-admin .msg-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 2px;
}

.msg-time {
    font-size: 10px;
    color: gray;
    margin-top: 5px;
}

.msg-user .msg-time {
    text-align: left;
}

.msg-admin .msg-time {
    text-align: right;
}

.chat-img-preview {
    width: 100%;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.chat-doc-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.chat-doc-preview i {
    font-size: 24px;
    color: var(--primary-color);
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.suggestion-btn {
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
}

.chat-action-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-action-btns button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: white;
}

.chat-btn-yes {
    background: #2ecc71;
}

.chat-btn-no {
    background: #e74c3c;
}

.chat-input-area {
    padding: 15px;
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-area.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.chat-attach-btn {
    background: none;
    border: none;
    color: gray;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-attach-btn:hover {
    color: var(--primary-color);
}

.chat-input-area input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
    transition: 0.3s;
}

.chat-input-area input[type="text"]:focus {
    border-color: var(--primary-color);
}

.chat-send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-send-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* ===============================
   INDEX PAGE SECTIONS
   =============================== */

.main-content {
    overflow-x: hidden;
}

.content-wrapper {
    width: 80%;
    margin: 0 auto;
}

/* Skrol Animacije (Početne vrijednosti) */
.scroll-anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-up {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

.scroll-anim.show-anim {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* SECTION 1: HERO SLIDER */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.justified-text {
    text-align: justify;
    text-align-last: center;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 30px;
}

/* Custom Shape Divider Bottom */
.custom-shape-divider-bottom-1700000000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 4;
}

.custom-shape-divider-bottom-1700000000 svg {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
}

.custom-shape-divider-bottom-1700000000 .shape-fill {
    fill: var(--bg-color);
    transition: fill 0.3s;
}

/* SECTION 2: FEATURES & GRID */
.features-section {
    padding-bottom: 80px;
    position: relative;
}

.overlap-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 0 50px;
    flex-wrap: wrap;
}

.skewed-card {
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    transform: skewX(-10deg);
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skewed-card:hover {
    transform: skewX(-10deg) translateY(-10px);
    box-shadow: 0 15px 40px rgba(135, 206, 235, 0.3);
}

.skewed-card .card-inner {
    transform: skewX(10deg);
    /* Ispravljanje texta unutar kose kartice */
    padding: 30px 20px;
    text-align: center;
}

.skewed-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skewed-card h3 {
    margin-bottom: 10px;
}

.skewed-card p {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.grid-section {
    padding: 80px 50px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.grid-item p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* SECTION 3: PARALLAX */
.parallax-section {
    display: flex;
    flex-direction: column;
}

.parallax-row {
    display: flex;
    min-height: 400px;
    width: 100%;
}

.parallax-row.reverse {
    flex-direction: row-reverse;
}

.px-text {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-color);
}

.px-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.px-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    text-align: justify;
}

.px-image {
    flex: 1;
    background-attachment: fixed;
    /* OVO PRAVI PARALLAX EFEKAT */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* SECTION 4: COUNTERS */
.counters-section {
    background: var(--primary-color);
    padding: 60px 50px;
    color: #fff;
    margin-top: 80px;
}

.counter-wrap {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.counter-box {
    text-align: center;
}

.counter-box i {
    font-size: 40px;
    margin-bottom: 10px;
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
}

.counter-box p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION 5: NEWS SLIDER (INFINITE MARQUEE) */
.news-section {
    position: relative;
    padding: 80px 0;
    background: transparent;
    margin-top: 20px;
}

.torn-paper-top,
.torn-paper-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><polygon fill="%2387ceeb" points="0,100 5,0 10,100 15,0 20,100 25,0 30,100 35,0 40,100 45,0 50,100 55,0 60,100 65,0 70,100 75,0 80,100 85,0 90,100 95,0 100,100"/></svg>');
    background-size: 50px 100%;
    z-index: 5;
}

.torn-paper-top {
    top: 0;
    transform: rotate(180deg);
}

.torn-paper-bottom {
    bottom: -10px;
}

.news-slider-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.news-slider-track {
    display: inline-flex;
    gap: 30px;
    padding-left: 30px;
    /* Animacija ide prema desno: od -50% do 0 */
    animation: slideRight 25s linear infinite;
}

.news-slider-track:hover {
    animation-play-state: paused;
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.news-card {
    width: 350px;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    white-space: normal;
}

.news-card:hover {
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.4);
    transform: translateY(-5px);
}

.news-img-wrap {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.1);
}

.news-overlay {
    position: absolute;
    inset: 0;
    background: rgba(135, 206, 235, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: 0.4s;
}

.news-overlay i {
    font-size: 40px;
    margin-bottom: 10px;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
}

.news-content h3 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.news-content p {
    font-size: 14px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SECTION 6: SERVICES TABS */
.services-section {
    padding: 80px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: fadeInTab 0.5s ease;
}

.tab-pane.active {
    display: grid;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tab-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tab-info p {
    line-height: 1.6;
    margin-bottom: 25px;
}

/* SECTION 7: CONTACT */
.contact-section {
    padding: 80px 50px;
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 30px;
    color: #fff;
    background: var(--primary-color);
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===============================
   NEWS SINGLE (Galerija i Tekst)
   =============================== */
.article-container {
    padding: 120px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-gallery {
    float: left;
    width: 45%;
    margin-right: 40px;
    margin-bottom: 20px;
}

.main-image-box {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image-box:hover img {
    transform: scale(1.05);
}

.thumbnails-wrapper {
    position: relative;
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumb-img {
    min-width: calc(25% - 7.5px);
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
    border: 2px solid transparent;
}

.thumb-img.active,
.thumb-img:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    text-align-last: left;
}

.article-text p {
    margin-bottom: 15px;
}

/* Fullscreen Image Modal */
#fullscreen-modal .modal-content {
    max-width: 90vw;
    background: transparent;
    box-shadow: none;
    transform: scale(0.8);
}

#fullscreen-modal.active .modal-content {
    transform: scale(1);
}

#fullscreen-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ===============================
   ADMIN PANEL NEWS
   =============================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-search {
    position: relative;
    width: 300px;
}

.admin-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
}

.admin-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--header-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--primary-color);
    color: #fff;
}

.admin-table tr {
    cursor: pointer;
    transition: background 0.3s;
}

.admin-table tbody tr:hover {
    background: rgba(135, 206, 235, 0.1);
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-delete {
    color: #ff4d4d;
}

.btn-delete:hover {
    color: #cc0000;
    transform: scale(1.1);
}

.btn-toggle {
    color: var(--secondary-color);
}

.btn-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.btn-toggle.hidden {
    color: gray;
}

/* Admin Modal za dodavanje */
#news-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Dropzone za slike */
.dropzone {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: var(--bg-color);
    margin-bottom: 15px;
}

.dropzone.dragover {
    background: rgba(135, 206, 235, 0.2);
}

.dropzone i {
    font-size: 40px;
    color: var(--primary-color);
}

.preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.preview-box {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-box .delete-img {
    position: absolute;
    top: 2px;
    right: 2px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
}

/* Custom WYSIWYG Editor */
.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.editor-toolbar button,
.editor-toolbar select,
.editor-toolbar input[type="color"] {
    padding: 5px 10px;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color);
}

.editor-toolbar button:hover {
    background: var(--primary-color);
    color: white;
}

.editor-area {
    min-height: 200px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    background: var(--input-bg);
    color: var(--text-color);
    overflow-y: auto;
}

.editor-area img {
    max-width: 100%;
    cursor: pointer;
}

/* Custom Notifications (Toasts) */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.success {
    background-color: #2ecc71;
}

.toast.error {
    background-color: #e74c3c;
}

.toast.fadeOut {
    animation: fadeOutRight 0.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Custom Confirm Modal */
#confirm-modal .modal-content {
    text-align: center;
    max-width: 350px;
}

#confirm-modal i.warning-icon {
    font-size: 60px;
    color: #f39c12;
    margin-bottom: 15px;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-cancel {
    background: gray;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===============================
   MAIN FOOTER
   =============================== */
.main-footer {
    background-color: var(--header-bg);
    margin-top: 80px;
    position: relative;
}

.footer-animated-border {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #4facfe, var(--primary-color));
    background-size: 300% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Scrollable Footer News */
.footer-news-list {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

.footer-news-list::-webkit-scrollbar {
    display: none;
}

/* Safari */
.footer-news-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* IE/Firefox */
.footer-news-item {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    transition: 0.3s;
}

.footer-news-item:hover {
    padding-left: 5px;
    border-bottom-color: var(--primary-color);
}

.footer-news-item h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-news-item span {
    font-size: 12px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    opacity: 0.8;
    background: var(--bg-color);
}

/* ===============================
   COOKIE CONSENT MODAL
   =============================== */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 20px;
    z-index: 9999;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    width: 350px;
    max-width: 90%;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-consent.show {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cookie-btns button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    border: none;
}

.cookie-btns .btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.cookie-btns .btn-cancel:hover {
    background: var(--bg-color);
}

/* ===============================
   ADMIN PANEL LAYOUT
   =============================== */
.admin-body {
    overflow-x: hidden;
    background-color: var(--bg-color);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--header-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1100;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--text-color);
    font-size: 1.5rem;
}

.sidebar-header h2 span {
    color: var(--primary-color);
}

.admin-close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
}

.admin-close-btn:hover {
    color: var(--primary-color);
}

.sidebar-links {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.sidebar-links li {
    margin-bottom: 5px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: rgba(135, 206, 235, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-links i {
    font-size: 20px;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - 260px);
    transition: margin-left 0.4s ease, width 0.4s ease;
}

.admin-topbar {
    height: 70px;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s;
}

.admin-hamburger-btn:hover {
    color: var(--primary-color);
}

.admin-search-bar {
    position: relative;
}

.admin-search-bar input {
    padding: 10px 15px 10px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    width: 300px;
    transition: 0.3s;
}

.admin-search-bar input:focus {
    width: 350px;
    border-color: var(--primary-color);
    outline: none;
}

.admin-search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
    font-size: 18px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-icon {
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.topbar-icon:hover {
    color: var(--primary-color);
}

.admin-content {
    padding: 30px;
    flex: 1;
}

/* Stilovi za naslove stranica unutar admin panela */
.page-header {
    margin-bottom: 30px;
}

/* ===============================
   ABOUT US (KOMPANIJA) - BRUTAL MODERN
   =============================== */
.about-hero {
    height: 80vh;
    min-height: 500px;
    padding-top: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?auto=format&fit=crop&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.about-hero h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.about-hero p {
    font-size: 1.5rem;
    max-width: 800px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Moderni redovi: Tekst i Slika */
.about-modern-row {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 100px auto;
    gap: 60px;
    padding: 0 40px;
}

.about-modern-row.reverse {
    flex-direction: row-reverse;
}

.about-modern-text {
    flex: 1;
}

.about-modern-text h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-modern-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 4px;
    background: #2ecc71;
    border-radius: 2px;
}

.about-modern-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.85;
    text-align: justify;
}

.about-modern-img-wrap {
    flex: 1;
    position: relative;
}

.about-modern-img {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.img-backdrop {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    z-index: 1;
    opacity: 0.4;
    transition: 0.5s;
}

.about-modern-row.reverse .img-backdrop {
    left: -30px;
    right: 30px;
}

.about-modern-img-wrap:hover .img-backdrop {
    transform: scale(1.05);
    opacity: 0.6;
}

/* Glassmorphism Parallax Banner */
.about-glass-banner {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.about-glass-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .glass-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.glass-card p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Timeline (Stablo firme) */
.timeline-section {
    padding: 100px 20px;
    background: var(--header-bg);
    overflow: hidden;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 80px;
    font-size: 3rem;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-color), #2ecc71);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    width: 50%;
    padding: 0 50px 50px 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 30px;
    height: 30px;
    background: #2ecc71;
    border: 6px solid var(--header-bg);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px #2ecc71;
    transition: 0.3s;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--primary-color);
    background: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -15px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -15px;
}

.timeline-content {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid var(--border-color);
    transition: 0.4s;
    display: inline-block;
    width: 100%;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(135, 206, 235, 0.2);
    border-color: var(--primary-color);
}

.timeline-content h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.timeline-content span {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color), #2ecc71);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Chart Section */
.about-chart-section {
    padding: 100px 20px;
    background: var(--bg-color);
}

.about-chart-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-chart-text {
    flex: 1;
}

.about-chart-text h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-chart-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.85;
}

.eco-stats {
    list-style: none;
}

.eco-stats li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.eco-stats i {
    color: #2ecc71;
    font-size: 26px;
}

.about-chart-container {
    flex: 1.5;
    height: 400px;
    background: var(--header-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
}

/* ===============================
   CONTACT PAGE
   =============================== */
.contact-page-header {
    text-align: center;
    padding: 150px 20px 80px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(107, 185, 216, 0.1) 100%);
}

.contact-page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-page-content {
    display: flex;
    max-width: 1200px;
    margin: -50px auto 100px;
    background: var(--header-bg);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 10;
    position: relative;
}

.contact-info-box {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-box h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-info-box p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.c-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.c-info-item i {
    font-size: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
}

.c-info-item div h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.c-info-item div p {
    font-size: 1rem;
    margin: 0;
}

.contact-form-box {
    flex: 1.5;
    padding: 50px;
    background: var(--header-bg);
}

.contact-form-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-form .input-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-page-map {
    max-width: 1200px;
    margin: 0 auto 100px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.widget-card {
    background: var(--header-bg);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(135, 206, 235, 0.2);
}

.widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(135, 206, 235, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 30px;
}

.widget-info h3 {
    font-size: 14px;
    color: gray;
    margin-bottom: 5px;
}

.widget-info p {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.widget-info small {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Dashboard Grafikoni */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
}

.chart-card {
    background: var(--header-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.chart-card h3 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.chart-card canvas {
    flex: 1;
    min-height: 0;
}

@media (max-width: 768px) {
    .article-gallery {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .main-image-box {
        height: 250px;
    }

    .thumb-img {
        height: 60px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .content-wrapper {
        width: 95%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .overlap-cards-container {
        margin-top: 30px;
        padding: 0 20px;
    }

    .skewed-card {
        transform: none;
        width: 100%;
    }

    .skewed-card:hover {
        transform: translateY(-5px);
    }

    .skewed-card .card-inner {
        transform: none;
    }

    .text-grid {
        grid-template-columns: 1fr;
    }

    .parallax-row,
    .parallax-row.reverse {
        flex-direction: column;
    }

    .px-image {
        height: 300px;
        background-attachment: scroll;
        /* Na nekim mobitelima fixed zeza */
    }

    .tab-pane {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Prilagodba About stranice za mobitele */
    .about-hero {
        height: 60vh;
        min-height: 400px;
        padding-top: 100px;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-modern-row,
    .about-modern-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin: 60px auto;
        padding: 0 20px;
    }

    .about-modern-text {
        text-align: center;
    }

    .about-modern-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-modern-text p {
        text-align: center;
    }

    .img-backdrop {
        display: none;
    }

    /* Uklanjamo sjenu na mobitelima za čistiji prikaz */
    .about-modern-img {
        height: 300px;
    }

    .about-glass-banner {
        background-attachment: scroll;
        padding: 40px 20px;
    }

    .glass-card {
        padding: 40px 20px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 0 50px 60px;
        text-align: left !important;
    }

    .timeline-dot {
        left: 15px !important;
    }

    .about-chart-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .eco-stats li {
        justify-content: center;
    }

    .about-chart-container {
        width: 100%;
        height: 300px;
        padding: 15px;
    }

    /* Prilagodba Contact stranice za mobitele */
    .contact-page-content {
        flex-direction: column;
        margin: -30px 20px 50px;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 30px;
    }

    .contact-page-map {
        height: 350px;
        margin: 0 20px 50px;
    }

    /* Prilagodba Footera za mobitele */
    .footer-container {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 40px;
    }

    /* Admin Panel Responsive */
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 2000;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .admin-topbar {
        padding: 0 15px;
    }

    .admin-hamburger-btn {
        display: block;
    }

    .admin-close-btn {
        display: block;
    }

    .admin-search-bar input {
        width: 180px;
    }

    .admin-search-bar input:focus {
        width: 200px;
    }

    .admin-content {
        padding: 15px;
    }

    /* Prilagodba grafikona za mobitele */
    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .chart-card {
        height: 300px;
        padding: 15px;
    }

    .dashboard-widgets {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Prilagodba AI Chatbota za mobitele (gosti) */
    #ai-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .ai-chat-panel {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 80px;
        height: 65vh;
        min-height: 400px;
        transform-origin: bottom center;
    }

    /* Prilagodba Admin Chata za mobitele */
    .admin-chat-container {
        flex-direction: column;
        height: auto;
        min-height: 80vh;
    }

    .admin-chat-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: 250px;
        flex: none;
    }

    .admin-chat-main {
        height: 500px;
        flex: none;
    }

    .admin-chat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-chat-actions {
        display: flex;
        width: 100%;
        gap: 10px;
    }

    .admin-chat-actions button {
        margin-left: 0;
        flex: 1;
        padding: 10px;
    }

    .msg-bubble {
        max-width: 90%;
    }

    .admin-chat-input {
        padding: 10px;
    }

    .admin-chat-input input[type="text"] {
        padding: 10px;
    }
header {
    padding: 20px;
}

header.scrolled {
    padding: 10px 20px;
}

/* Raspored elemenata u headeru za mobitele */
.logo {
    flex: 1;
}

.header-actions {
    flex: 1;
    justify-content: center;
    gap: 10px;
}

.hamburger-btn {
    display: block;
    margin-left: auto;
}

/* Roletna (Dropdown) navigacija ispod headera */
.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Prilagodba Dropdowna za mobilne */
.nav-item-dropdown {
    flex-direction: column;
    width: 100%;
}

.nav-link-wrapper {
    width: 100%;
    justify-content: center;
    position: relative;
}

.mobile-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

.nav-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: rgba(135, 206, 235, 0.05);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: none;
    padding: 0;
}

.nav-dropdown-menu.active {
    display: flex;
}

.nav-dropdown-menu a {
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-links a {
    padding: 15px 0;
    width: 100%;
    text-align: center;
}

.close-menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 0;
}

.search-panel input {
    width: 100%;
}

.grid-form {
    grid-template-columns: 1fr;
}

.input-group.full-width {
    grid-column: span 1;
}

.full-width {
    grid-column: span 1;
}
}