/* --- 00. OPŠTI STANDARDI --- */
:root {
    --color-navy: #1C2B36; 
    --color-black-blue: #0A1318; /* Boja za header i footer */
    --color-gold: #C3A06C; 
    --color-light-gold: #DEC39B;
    --color-off-white: #FAF9F6;
    --color-sand: #F0EDE6;
    --color-dark-card: #243742;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    
    --section-padding: 80px;
    --container-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--color-off-white);
    color: #333;
    font-family: var(--font-body);
    line-height: 1.6; 
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 40px; }

/* --- 01. HEADER (Sa dijagonalnom animacijom) --- */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: all 0.4s ease; 
}

/* Animacija pozadine (dijagonalni prelaz) */
.header-bg {
    position: absolute; top: 0; left: 0; height: 100%; width: 100%;
    background-color: var(--color-black-blue);
    z-index: -1;
    transform-origin: left;
    /* Animacija se pokreće na učitavanje stranice */
    animation: revealHeader 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    /* Dijagonalni završetak sa desne strane */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

@keyframes revealHeader {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* Kada se skroluje, pozadina postaje puna (bez dijagonale) */
#main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 15px 0;
}
#main-header.scrolled .header-bg {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Ispravlja dijagonalu */
    animation: none; /* Zaustavlja animaciju */
}

.header-container {
    max-width: var(--container-width); margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-mark { font-family: var(--font-heading); font-size: 26px; border: 1px solid currentColor; padding: 0 8px; line-height: 1.2; font-weight: 700;}
.logo-text { font-size: 12px; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;}

.main-nav ul { display: flex; list-style: none; gap: 30px; align-items: center;}
.main-nav a { color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 400; transition: color 0.3s; }
.main-nav a:hover { color: var(--color-gold); }

.btn-contact {
    background-color: transparent; 
    border: 1px solid var(--color-gold); 
    padding: 10px 24px; border-radius: 2px;
    color: #fff; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; 
    transition: all 0.3s; 
}
.btn-contact:hover { 
    background-color: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold);
}

/* Hamburger */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001;}
.hamburger span { width: 25px; height: 2px; background-color: #fff; transition: 0.3s;}

/* Mobilni meni */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background-color: var(--color-black-blue); z-index: 999;
    display: flex; justify-content: center; align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.active { right: 0; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 20px 0; }
.mobile-menu a { color: #fff; font-size: 24px; font-family: var(--font-heading); }
.mobile-contact { color: #fff !important; border: 1px solid rgba(255,255,255,0.4); padding: 12px 40px; border-radius: 2px; display: inline-block; margin-top: 20px; font-weight: 400; font-family: var(--font-body) !important; font-size: 15px !important; text-transform: uppercase;}

/* --- 02. HERO (Centrirano) --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center;
    animation: zoomOut 20s infinite alternate ease-in-out;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10, 19, 24, 0.95) 0%, rgba(10, 19, 24, 0.75) 50%, rgba(10, 19, 24, 0.95) 100%);
    z-index: 1;
}
@keyframes zoomOut { from { transform: scale(1.05); } to { transform: scale(1); } }

.hero-container { position: relative; z-index: 2; width: 100%; padding-top: 60px; /* Da se centrira ispod headera */ }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

.hero-content h1 { font-family: var(--font-heading); font-size: 76px; line-height: 1.1; color: #fff; margin-bottom: 25px; font-weight: 500; letter-spacing: -0.5px;}
.text-gold { color: var(--color-light-gold); font-style: italic; }
.hero-content p { font-size: 18px; color: #E2E8F0; margin-bottom: 40px; font-weight: 300; line-height: 1.8; margin-left: auto; margin-right: auto;}

.hero-buttons { display: flex; gap: 15px; }
.btn-primary, .btn-secondary {
    padding: 10px 24px; font-size: 13px; font-weight: 400; border-radius: 2px;
    transition: all 0.3s ease; display: inline-flex; align-items: center;
    letter-spacing: 1px; text-transform: uppercase;
}
.btn-primary { background-color: var(--color-gold); color: #fff; border: 1px solid var(--color-gold); }
.btn-primary:hover { background-color: transparent; color: var(--color-gold); }
.btn-secondary { background-color: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background-color: #fff; color: var(--color-navy); border-color: #fff; }

.arrow { margin-left: 8px; transition: transform 0.3s; }
.btn-primary:hover .arrow, .btn-secondary:hover .arrow { transform: translateX(5px); }

/* --- 03. NUMBERS --- */
.numbers-section { background-color: var(--color-sand); padding: 40px 0; }
.numbers-grid { display: flex; justify-content: space-between; text-align: center; }
.number-item { flex: 1; border-right: 1px solid rgba(0,0,0,0.1); }
.number-item:last-child { border-right: none; }
.num-wrap { display: flex; justify-content: center; align-items: baseline; }
.number-item .count { font-family: var(--font-heading); font-size: 48px; color: var(--color-navy); font-weight: 500;}
.number-item .plus { font-family: var(--font-heading); font-size: 48px; color: var(--color-gold); }
.number-item p { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-top: 5px; font-weight: 500; }

/* --- 04. AREAS OF EXPERTISE --- */
.expertise-section { padding: var(--section-padding) 0; background-color: var(--color-navy); }

.section-title { 
    font-family: var(--font-heading); font-size: 48px; text-align: center; 
    margin-bottom: 40px; font-weight: 500; color: var(--color-navy); 
    position: relative; line-height: 1.2;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 2px; background-color: var(--color-gold);
    margin: 15px auto 0 auto;
}
.text-white { color: #fff !important; }
.text-white::after { background-color: var(--color-light-gold) !important; }

.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.expertise-column { background-color: var(--color-dark-card); padding: 40px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; }
.expertise-column h3 { font-family: var(--font-heading); font-size: 32px; margin-bottom: 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px;}

.expertise-list { list-style: none; margin-bottom: auto; }
.expertise-list li { font-size: 16px; padding: 12px 0; display: flex; align-items: center; font-weight: 300; color: #E2E8F0; border-bottom: 1px solid rgba(255,255,255,0.05);}
.expertise-list li span { font-size: 13px; font-weight: 700; color: var(--color-gold); margin-right: 20px; }

.expertise-list li { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.visible .expertise-list li { opacity: 1; transform: translateX(0); }
.visible .expertise-list li:nth-child(1) { transition-delay: 0.1s; }
.visible .expertise-list li:nth-child(2) { transition-delay: 0.2s; }
.visible .expertise-list li:nth-child(3) { transition-delay: 0.3s; }
.visible .expertise-list li:nth-child(4) { transition-delay: 0.4s; }
.visible .expertise-list li:nth-child(5) { transition-delay: 0.5s; }
.visible .expertise-list li:nth-child(6) { transition-delay: 0.6s; }

.link-arrow { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; color: var(--color-gold); display: inline-flex; align-items: center; margin-top: 20px; transition: color 0.3s;}
.link-arrow:hover { color: #fff; }

/* --- 05. REFERENCES --- */
.references-section { padding: var(--section-padding) 0; background-color: var(--color-off-white); }
.references-header { max-width: 900px; margin: 0 auto 40px auto; text-align: center;}
.references-header h2 { font-family: var(--font-heading); font-size: 48px; margin-bottom: 20px; font-weight: 500; color: var(--color-navy); position: relative;}
.references-header h2::after { content: ''; display: block; width: 60px; height: 2px; background-color: var(--color-gold); margin: 15px auto 0 auto;}
.references-header p { font-size: 18px; color: #555; font-weight: 300; line-height: 1.6;}

.logos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }

/* EKSTRA EFEKAT ZA REFERENCE */
.logo-box { 
    height: 80px; display: flex; align-items: center; justify-content: center; 
    border: 1px solid #E5E5E5; background-color: var(--color-white); 
    color: #999; font-size: 13px; font-weight: 400; text-transform: uppercase; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    cursor: pointer;
}
.logo-box:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 15px 30px rgba(195, 160, 108, 0.2); /* Zlatna senka */
    border-color: var(--color-gold); 
    background-color: var(--color-navy);
    color: var(--color-gold);
    font-weight: 500;
}

/* --- 06. TESTIMONIALS --- */
.testimonials-section { padding: var(--section-padding) 0; background-color: var(--color-navy); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { 
    background: var(--color-dark-card); padding: 30px; border-radius: 4px; 
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-3px); border-color: var(--color-gold); }
.quote-mark { font-family: var(--font-heading); font-size: 60px; color: var(--color-gold); line-height: 0.8; margin-bottom: 10px;}
.quote-text { font-size: 15px; font-style: italic; color: #E2E8F0; margin-bottom: 20px; flex-grow: 1; line-height: 1.6;}
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 1px solid var(--color-gold);}
.author strong { display: block; font-size: 15px; color: #fff; font-weight: 500;}
.author span { display: block; font-size: 12px; color: #A0AEC0; margin-top: 2px;}

/* --- 07. HOW WE WORK (Sa novim efektom) --- */
.how-we-work { padding: var(--section-padding) 0; background-color: var(--color-sand); } 
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* EKSTRA EFEKAT ZA HOW WE WORK */
.step-card { 
    background: transparent; padding: 30px; 
    border-top: 2px solid var(--color-navy); 
    position: relative; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden; /* Za liniju na dnu */
}
/* Skrivena linija koja se pojavljuje na hover */
.step-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background-color: var(--color-gold);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.step-card:hover { 
    background: #fff; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    transform: translateY(-5px);
}
.step-card:hover::after { transform: scaleX(1); } /* Linija se iscrtava */
.step-card:hover .step-number { color: var(--color-navy); }

.step-number { font-family: var(--font-heading); font-size: 48px; color: var(--color-gold); margin-bottom: 10px; font-weight: 500; line-height:1; transition: color 0.3s;}
.step-card h3 { font-family: var(--font-heading); font-size: 26px; margin-bottom: 15px; color: var(--color-navy); }
.step-card p { font-size: 16px; color: #555; font-weight: 300;}

/* --- 08. CONTACT --- */
.contact-section { padding: var(--section-padding) 0; background-color: var(--color-navy); color: #fff;}
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;}
.contact-info h2 { font-family: var(--font-heading); font-size: 48px; margin-bottom: 20px; color: #fff; font-weight: 500; position: relative;}
.contact-info h2::after { content: ''; display: block; width: 60px; height: 2px; background-color: var(--color-gold); margin: 15px 0 0 0;}

/* Smanjeni fontovi za superioran izgled */
.contact-info p { font-size: 16px; color: #E2E8F0; margin-bottom: 30px; max-width: 450px; font-weight: 300;}
.contact-details { list-style: none; }
.contact-details li { margin-bottom: 15px; font-size: 15px; font-weight: 300; color: #fff;} /* Ista velicina kao meni */
.contact-details span { font-weight: 500; color: var(--color-gold); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px;}

/* Forma */
.contact-form-wrapper { background: rgba(255, 255, 255, 0.03); padding: 40px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 8px; color: var(--color-gold); text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid rgba(255,255,255,0.2); font-family: var(--font-body); font-size: 16px; background-color: transparent; color: #fff; transition: all 0.3s;}
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--color-gold);}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.contact-form-wrapper .btn-primary { width: 100%; justify-content: center; background-color: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); margin-top: 10px;}
.contact-form-wrapper .btn-primary:hover { background-color: var(--color-white); border-color: var(--color-white); color: var(--color-navy); }

/* --- 09. MAIN FOOTER --- */
.main-footer { background-color: var(--color-black-blue); padding: 80px 0 40px 0; color: #fff; border-top: 1px solid rgba(195, 160, 108, 0.3);}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { margin-top: 15px; font-size: 15px; color: #A0AEC0; max-width: 250px; font-weight: 300;}
.footer-links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--color-gold); font-weight: 500;}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: 14px; color: #A0AEC0; font-weight: 300;}
.footer-links a:hover { color: #fff; }

/* --- 10. SUB FOOTER --- */
.sub-footer { background-color: #050A0D; padding: 20px 0; color: #A0AEC0; font-size: 13px; font-weight: 300;}
.sub-footer-container { display: flex; justify-content: space-between; align-items: center; }
.legal-links a { margin-left: 20px; transition: color 0.3s; }
.legal-links a:hover { color: var(--color-gold); }

/* --- ANIMACIJE --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    :root { --section-padding: 60px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 56px; }
    .hero-content p { font-size: 16px; }
    .hero-content p br { display: none; }
    .numbers-grid { flex-wrap: wrap; gap: 30px; }
    .number-item { flex: 1 1 30%; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 15px; }
    .number-item:last-child { border-bottom: none; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; }
    .hamburger { display: flex; }
    .header-bg { clip-path: none; } /* Na mobilnom nema dijagonale */
    .hero-content h1 { font-size: 42px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px;}
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .logos-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .sub-footer-container { flex-direction: column; gap: 10px; text-align: center; }
    .number-item { flex: 1 1 45%; }
    .expertise-column { padding: 30px 20px; }
    .section-title, .references-header h2, .contact-info h2 { font-size: 36px; }
}