/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #ff5722;
    --accent-color: #ff9800;
    --dark-bg: #1a1a1a;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --gradient-start: #d32f2f;
    --gradient-end: #dfab82;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & NAV --- */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-space {
    display: flex;
    align-items: center;
    gap: 15px;
}

#logo {
    max-height: 60px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

.nav-phone {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.desktop-only {
    display: inline-block;
}

/* --- HERO SECTION --- */
.hero {
    background: url(/images/hero2.jpg);
    background-position: center;
    background-size: cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    max-height: 120px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features span {
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 20px 40px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    background: var(--bg-light);
}

.phone-icon {
    font-size: 28px;
    margin-right: 10px;
}

.availability {
    margin-top: 20px;
    font-size: 18px;
    opacity: 0.95;
}

/* --- FOREIGNERS SECTION --- */
.foreigners-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff, #f1f1f1);
    border-top: 1px solid #eee;
}

.foreigners-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.foreigners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.lang-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 5px solid;
    transition: transform 0.3s;
}

.lang-card:hover {
    transform: translateY(-5px);
}

.en-card { border-top-color: #00247d; }
.ru-card { border-top-color: #d52b1e; }

.lang-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.lang-flag {
    font-size: 2.5rem;
}

.lang-header h3 {
    font-size: 1.4rem;
    margin: 0;
    color: #333;
}

.lang-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.lang-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-price {
    font-weight: bold;
    color: var(--primary-color);
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 4px;
}

.lang-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.en-card .lang-btn:hover { background: #00247d; }
.ru-card .lang-btn:hover { background: #d52b1e; }

/* --- SERVICES SECTION --- */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.2);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
    align-self: center;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Liste unutar kartica */
.card-details {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.card-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.card-details li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1rem;
    top: 2px;
}

.card-link {
    margin-top: auto;
    align-self: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding-top: 15px;
    transition: letter-spacing 0.3s;
}

.card-link:hover {
    letter-spacing: 1px;
    color: var(--secondary-color);
}

/* --- TRUST BOX --- */
.trust-box {
    margin-top: 30px;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.trust-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.trust-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.trust-text strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* --- ABOUT SECTION --- */
.about {
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-intro {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    color: #555;
}

.services-list {
    max-width: 800px;
    margin: 0 auto;
}

.services-list h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.services-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.services-list li {
    font-size: 16px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

/* --- GALLERY SECTION --- */
.gallery {
    padding: 80px 0;
    background: white;
}

.gallery h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.gallery-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: var(--secondary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.9), rgba(255, 87, 34, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary-color);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    text-align: center;
    max-width: 80%;
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-item p {
    margin: 10px 0;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

/* --- FLOATING BUTTONS (DESKTOP DEFAULT) --- */
.floating-container {
    position: fixed;
    bottom: 30px;
    /* NA DESKTOPU SU SKROZ LEVO */
    left: 30px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
    align-items: center; /* Centriranje unutar kolone */
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.btn-tg { background-color: #0088cc; }
.btn-wa { background-color: #25D366; } 
.btn-viber { background-color: #7360f2; }
.btn-phone { 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: pulse 2s infinite;
}

/* Tooltip za desktop */
.tooltip-text {
    position: absolute;
    /* Oblačić desno od dugmeta jer su dugmići levo */
    left: 70px; 
    right: auto;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.float-btn:hover .tooltip-text {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 8px 30px rgba(211, 47, 47, 0.6); }
}

/* --- MEDIA QUERIES --- */

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Tablets & Mobile General */
@media (max-width: 768px) {
    header { padding: 12px 0; }
    .logo-space { gap: 10px; }
    #logo { max-height: 45px; }
    .logo-text { font-size: 18px; }
    .hamburger { display: flex; }
    .desktop-only { display: none; }
    .foreigners-grid { grid-template-columns: 1fr; }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
    }

    nav.active { right: 0; }

    nav a {
        font-size: 18px;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
    }
    nav a:last-child { border-bottom: none; }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    body.menu-open { overflow: hidden; }

    .hero-logo { max-width: 150px; max-height: 90px; }
    .hero-content h2 { font-size: 32px; }
    .hero-subtitle { font-size: 18px; }
    .cta-button { font-size: 18px; padding: 15px 30px; }
    .hero-features { flex-direction: column; gap: 15px; }
    .services-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-list ul { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
    
    .lightbox-prev, .lightbox-next { font-size: 40px; padding: 10px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { right: 20px; top: 20px; font-size: 40px; }
    #lightbox-img { max-width: 95%; max-height: 80vh; }
}

/* Small Phones (Horizontal Floating Buttons) */
@media (max-width: 480px) {
    .logo-text { font-size: 16px; }
    #logo { max-height: 40px; }
    nav { width: 80%; }
    .hero-logo { max-width: 120px; max-height: 70px; }
    .hero-content h2 { font-size: 28px; }
    .cta-button { font-size: 16px; padding: 12px 25px; }
    .services h2, .about h2, .contact h2, .gallery h2 { font-size: 28px; }
    
    .trust-box {
        flex-direction: column;
        text-align: center;
    }

    /* --- HORIZONTAL BUTTONS LOGIC --- */
    .floating-container {
        /* RESETUJEMO DESKTOP LEVO POZICIJU */
        left: auto;
        right: 15px; /* Na mobilnom idemo desno */
        bottom: 15px;
        
        /* OVO IH REDJA HORIZONTALNO: App -> App -> App -> Telefon */
        flex-direction: row; 
        
        align-items: flex-end; /* Poravnanje po donjoj ivici */
        gap: 12px;
        z-index: 9999;
    }

    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

    .btn-phone {
        width: 55px;
        height: 55px;
        font-size: 26px;
        margin-left: 5px; /* Mali razmak da se odvoji od aplikacija */
    }

    .tooltip-text { display: none !important; }
    
    .float-btn svg { width: 20px; height: 20px; }
    .btn-phone svg { width: 24px; height: 24px; }
}