/* --- GLOBALNE VARIJABLE & RESET --- */
:root {
    --navy: #0e2a47;
    --gold: #e6be6e;
    --gold-dark: #b08d55;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: #333; line-height: 1.6; background: var(--white); overflow-x: hidden; }

/* --- HERO SEKCIJA --- */
.hero-section {
    position: relative; min-height: 100vh;
    background: radial-gradient(circle at center, #133355 0%, var(--navy) 100%);
    display: flex; align-items: center; justify-content: center; padding-top: 80px; overflow: hidden;
}
.hero-bg-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px; opacity: 0.4;
}
.hero-container { display: flex; width: 90%; max-width: 1200px; z-index: 10; align-items: center; justify-content: space-between; }
.hero-text { flex: 1; color: var(--white); padding-right: 50px; }
.hero-text h1 { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text span { color: var(--gold); display: block; }
.hero-text p {
    color: #ddd; font-size: 1.1rem; max-width: 500px; margin-bottom: 40px;
    border-left: 3px solid var(--gold); padding-left: 20px;
}

/* FIX: GLATKO DUGME (BEZ FLICKERA) */
.btn-hero {
    padding: 15px 40px;
    background-color: var(--gold); /* Solidna boja umjesto gradijenta za bolju tranziciju */
    color: var(--navy);
    text-decoration: none; font-weight: 700; text-transform: uppercase;
    border-radius: 2px; letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Jako smooth tranzicija */
    display: inline-block;
    box-shadow: 0 10px 20px rgba(230, 190, 110, 0.2);
    border: 2px solid var(--gold); /* Dodan border da se ne smanjuje */
}

.btn-hero:hover {
    background-color: transparent; /* Postaje prozirno */
    color: var(--white); /* Tekst postaje bijel */
    border-color: var(--white); /* Okvir postaje bijel */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 190, 110, 0.4);
}

.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.moon-wrapper { position: relative; width: 300px; height: 300px; animation: float 6s ease-in-out infinite; }
.crescent {
    width: 250px; height: 250px; border-radius: 50%;
    box-shadow: 35px 0 0 0 var(--gold); transform: rotate(-10deg);
    filter: drop-shadow(0 0 30px rgba(230, 190, 110, 0.3));
}
.star {
    position: absolute; top: 95px; left: 50px; color: var(--gold); font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(230, 190, 110, 0.8)); animation: twinkle 3s ease-in-out infinite;
}

/* --- SEKCIJE --- */
.section { padding: 100px 20px; }
.bg-light { background: var(--light-gray); border-top: 1px solid rgba(230, 190, 110, 0.3); border-bottom: 1px solid rgba(230, 190, 110, 0.3); }
.section-title { text-align: center; font-family: var(--font-heading); font-size: 2.5rem; color: var(--navy); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 60px; font-size: 0.9rem; }

/* ConText */
.context-grid { display: flex; gap: 80px; align-items: center; justify-content: center; }
.context-text { flex: 1; max-width: 500px; }
.context-text p { line-height: 1.8; margin-bottom: 30px; }
.context-card {
    flex: 1; background: var(--white); padding: 40px; border-radius: 10px;
    border-left: 5px solid var(--navy); box-shadow: 0 20px 50px rgba(14,42,71,0.1); transition: 0.3s;
    max-width: 500px;
}
.context-card:hover { transform: translateY(-10px); }
.typing-demo {
    font-family: 'Courier New', monospace; color: #333;
    border-right: 3px solid var(--gold);
    white-space: nowrap; overflow: hidden;
    width: 33ch;
    animation: typing 4s steps(33) infinite alternate, blink .75s step-end infinite;
    max-width: 100%; 
}

/* TIMELINE (PROCES) */
.timeline {
    display: flex; justify-content: space-between; position: relative; 
    max-width: 1100px; margin: 50px auto 0; gap: 20px;
}
.step-card {
    flex: 1; background: #fff; padding: 30px 15px; text-align: center;
    border-radius: 10px; position: relative; z-index: 1;
    transition: all 0.5s ease; min-width: 200px;
}
.step-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(14, 42, 71, 0.15); }

/* FIX: STEP ICON (MIRNIJA ANIMACIJA) */
.step-icon {
    width: 80px; height: 80px; background: var(--navy); color: var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold; margin: 0 auto 20px;
    border: 2px solid var(--gold);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth tranzicija */
}
/* Hover efekat: Samo boja i mali zoom, bez rotacije */
.step-card:hover .step-icon {
    background: var(--gold);
    color: var(--navy);
    transform: scale(1.1); /* Samo blago povecanje */
    box-shadow: 0 0 15px rgba(230, 190, 110, 0.6);
}

/* --- ANIMACIJE --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.9); } }
@keyframes typing { from { width: 0 } }
@keyframes blink { 50% { border-color: transparent; } }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .timeline { flex-wrap: wrap; justify-content: center; }
    .step-card { flex: 0 0 45%; } 
}

@media (max-width: 900px) {
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-text { padding-right: 0; margin-bottom: 50px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p { margin: 0 auto 30px; border: none; padding: 0; }
    .moon-wrapper { width: 180px; height: 180px; margin-bottom: 20px; }
    .crescent { width: 140px; height: 140px; box-shadow: 15px 0 0 0 var(--gold); }
    .star { font-size: 1.8rem; top: 50px; left: 20px; }

    .context-grid { flex-direction: column; gap: 40px; }
    .context-text { text-align: center; padding: 0; max-width: 100%; }
    .context-text p { margin: 0 auto 30px; }
    .context-text .section-title { text-align: center !important; }
    
    .context-card { display: none !important; }

    .timeline { flex-direction: column; gap: 40px; }
    .step-card { flex: 1 1 100%; margin: 0; }
}

/* --- TOAST NOTIFIKACIJA (GLOBALNO) --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0e2a47; /* Navy */
    color: #fff;
    padding: 15px 25px;
    border-left: 5px solid #e6be6e; /* Gold */
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* OVO JE KLJUČNO - SAKRIVANJE */
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden; 
    
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 9999;
}

/* Klasa koja se dodaje kad JS oživi notifikaciju */
.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}