﻿/* --- RESET & BASE STYLES --- */
:root {
    --bg-color: #0f0f0f;
    --section-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #d4af37; /* Metallic Gold for luxury feel */
    --accent-hover: #f9d86c;
    --nav-bg: rgba(15, 15, 15, 0.95);
    --font-main: 'Ysabeau', sans-serif;
    --font-head: 'Orbitron', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    margin: 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-color);
    letter-spacing: 2px;
}

/* --- NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--nav-bg);
    z-index: 1000;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--accent-color) !important;
}

.nav-btn:hover {
    background: var(--accent-color);
    color: #000 !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh; /* Almost full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a2a2a 0%, #0f0f0f 100%);
    padding: 0 20px;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.main-text {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    border-radius: 30px;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* --- SECTIONS GENERAL --- */
.section-pad {
    padding: 80px 0;
}

.dark-bg {
    background-color: var(--section-bg);
}

.text-container p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
    color: #ccc;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #222;
    padding: 40px;
    border: 1px solid #333;
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.service-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

/* --- PORTFOLIO GRID --- */
.section-desc {
    text-align: center;
    margin-bottom: 40px;
    color: #888;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive Grid */
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Square boxes */
    border-radius: 5px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: var(--accent-color);
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: bold;
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
}

.pinterest-wrapper {
    width: 100%;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden; /* Sprječava da widget rastegne ekran */
}

/* Stil za Pinterest Desktop verziju */
.pinterest-desktop {
    display: block;
    width: 100%;
    text-align: center;
}

/* Stil za Pinterest Mobilnu verziju (gumb) */
.pinterest-mobile {
    display: none; /* Skriveno na desktopu */
    text-align: center;
    padding: 20px;
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    width: 100%;
}

.pinterest-mobile p {
    color: #ccc;
    margin-bottom: 20px;
}

.pin-btn {
    display: inline-block;
    background-color: #E60023; /* Pinterest crvena */
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- BLOG --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
}

.blog-post .date {
    font-size: 14px;
    color: #666;
}

.blog-post h4 {
    font-size: 20px;
    color: #fff;
    margin: 10px 0;
}

.read-more {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 14px;
}

/* --- CONTACT --- */
.center-text {
    text-align: center;
}

.contact-intro {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.contact-box {
    background: #222;
    display: inline-block;
    padding: 40px 60px;
    border-radius: 10px;
    border: 1px solid #333;
}

.contact-box a {
    color: var(--accent-color);
}

.contact-button-large {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 50px;
    background-color: #fff;
    color: #000;
    font-weight: bold;
    border-radius: 30px;
    transition: 0.3s;
}

.contact-button-large:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* --- FOOTER --- */
footer {
    background-color: #000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
}

footer a {
    color: #888;
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        gap: 0;
        flex-direction: column;
        background-color: #0f0f0f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid #333;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .main-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }

     /* Povećaj margine da sadržaj ne dira rub ekrana */
    .container {
        width: 85%; /* Uže od 90% da ima više zraka */
        margin: 0 auto;
    }

    /* Tekst sekcija - poravnanje */
    .text-container p {
        font-size: 1.1rem; /* Malo manji font za mobitel */
        text-align: left; /* Justify na mobitelu često izgleda loše, left je čišći */
        line-height: 1.7;
    }

    /* Sakrij veliki widget, prikaži gumb */
    .pinterest-desktop {
        display: none;
    }

    .pinterest-mobile {
        display: block;
    }

    /* Smanji naslove na mobitelu */
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Popravak za Hero sekciju na mobitelu */
    .hero {
        height: auto; /* Neka visina bude automatska */
        min-height: 80vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .main-text {
        font-size: 2.2rem; /* Smanjen naslov */
    }
    
    /* Razmaci između slika u portfoliju */
    .portfolio-grid {
        gap: 15px; /* Manji razmak na mobitelu */
    }
}

/* --- MODAL / LIGHTBOX STYLES --- */
.portfolio-item {
    cursor: pointer; /* Pokazuje ruku kad se mišem pređe preko slike */
}

.modal {
    display: none; /* Skriveno po defaultu */
    position: fixed; 
    z-index: 2000; /* Iznad svega */
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.95); /* Crna pozadina s malom prozirnošću */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s;
}

/* Stil za veliku sliku */
.modal-content {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 1200px; /* Tvoja željena širina */
    max-height: 90vh; /* Da ne bude više od visine ekrana */
    object-fit: contain; /* Da se slika ne rastegne ružno */
    border: 2px solid var(--accent-color); /* Zlatni okvir oko slike */
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* Animacija otvaranja (Zoom efekt) */
.modal-content {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

/* Gumb za zatvaranje (X) */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Prilagodba za mobitele */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}
/* --- ARTICLE / SUB-PAGE STYLES --- */
.article-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.article-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,15,0.3) 0%, var(--bg-color) 100%);
}

.article-title-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.article-title-container h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.article-meta {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}

.article-body {
    padding: 50px 0 100px 0;
}

.article-text {
    font-size: 1.3rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
}

.back-link:hover {
    color: #fff;
    border-color: #fff;
}