/* --- GLOBALNI STILOVI & ORIGINALNA PALETA BOJA --- */
:root {
    --accent-red: #ff0015;
    --bg-dark: #121212;
    --bg-card: #181818;
    --text-light: #ffffff;
    --text-muted: #bbbbbb;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
    line-height: 1.5;
}

html, body {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; 
    background-color: var(--bg-dark);
    color: var(--text-light);
    max-width: 100%;
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NAVIGACIJA --- */
nav {
    display: flex;
    padding: 20px 6%;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-red);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav img {
    width: 180px;
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 10000; /* Osigurava da se uvijek može kliknuti */
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 16px;
    position: relative;
}

.nav-links ul li a {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--accent-red);
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--accent-red);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

nav .fa-bars, nav .fa-times {
    display: none;
    cursor: pointer;
    color: var(--accent-red);
}

/* --- INTENZIVNA LASER ANIMACIJA (Čeka 10s, reže 5s - ukupno 15s ciklus) --- */
.laser-line-container {
    position: absolute; 
    bottom: -2px; 
    left: 0;
    width: 100%;
    height: 2px; 
    z-index: 1005; 
    pointer-events: none; 
}

.laser-beam {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; 
    background: #ff0015; 
    box-shadow: 0 0 15px rgba(255, 0, 21, 0.8), 0 0 20px rgba(255, 100, 100, 0.6);
    animation: cuttingProcess 15s infinite linear;
}

.laser-head {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #ffffff; 
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff, 0 0 20px #ff0015, 0 0 30px #ff0015, 0 0 45px #ff8800; 
    animation: headMoving 15s infinite linear, headFlicker 0.3s infinite alternate;
}

.spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #ffea00; 
    border-radius: 50%;
    box-shadow: 0 0 6px #ffaa00, 0 0 12px #ff0000;
    pointer-events: none;
    opacity: 0;
}

.spark:nth-child(1) { animation: shootSpark1 0.45s infinite linear; }
.spark:nth-child(2) { animation: shootSpark2 0.52s infinite linear 0.1s; }
.spark:nth-child(3) { animation: shootSpark3 0.37s infinite linear 0.2s; }
.spark:nth-child(4) { animation: shootSpark4 0.6s infinite linear 0.15s; }
.spark:nth-child(5) { animation: shootSpark5 0.41s infinite linear 0.05s; }
.spark:nth-child(6) { animation: shootSpark6 0.48s infinite linear 0.12s; }

@keyframes cuttingProcess {
    0%, 66.66% { width: 0%; visibility: hidden; }
    66.67% { width: 0%; visibility: visible; }
    99% { width: 100%; visibility: visible; }
    99.1%, 100% { width: 100%; visibility: hidden; }  
}

@keyframes headMoving {
    0%, 66.66% { left: 0%; visibility: hidden; }
    66.67% { left: 0%; visibility: visible; }
    99% { left: 100%; visibility: visible; }
    99.1%, 100% { left: 100%; visibility: hidden; }
}

@keyframes beamFlicker {
    0% { box-shadow: 0 0 8px rgba(255, 0, 21, 0.7); }
    100% { box-shadow: 0 0 15px rgba(255, 0, 21, 1), 0 0 20px rgba(255, 100, 100, 0.6); }
}

@keyframes headFlicker {
    0% { transform: translate(-50%, -50%) scale(0.95); }
    100% { transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes shootSpark1 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(-35px, -25px) scale(0); opacity: 0; } }
@keyframes shootSpark2 { 0% { transform: translate(0, 0) scale(1.2); opacity: 1; } 100% { transform: translate(-45px, 15px) scale(0); opacity: 0; } }
@keyframes shootSpark3 { 0% { transform: translate(0, 0) scale(1.5); opacity: 1; } 100% { transform: translate(-20px, -40px) scale(0); opacity: 0; } }
@keyframes shootSpark4 { 0% { transform: translate(0, 0) scale(1.1); opacity: 1; } 100% { transform: translate(-60px, -5px) scale(0); opacity: 0; } }
@keyframes shootSpark5 { 0% { transform: translate(0, 0) scale(0.8); opacity: 1; } 100% { transform: translate(-30px, 35px) scale(0); opacity: 0; } }
@keyframes shootSpark6 { 0% { transform: translate(0, 0) scale(1.3); opacity: 1; } 100% { transform: translate(-15px, 20px) scale(0); opacity: 0; } }

/* --- HERO ZAGLAVLJE --- */
.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.466), rgba(0, 0, 0, 0)), url('images/background_3.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 55px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-red);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 35px;
}

.middle-btn {
    display: inline-block;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    border-radius: 6px;
    padding: 12px 34px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: 0.4s ease;
}

.middle-btn:hover {
    border-color: var(--accent-red);
    background: var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 0, 21, 0.4);
}

/* --- ZAJEDNIČKI OBRAZAC --- */
.section-padding { padding: 90px 6%; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title i { font-size: 36px; color: var(--accent-red); margin-bottom: 15px; display: inline-block; }
.section-title h2 { font-size: 38px; color: var(--accent-red); text-transform: uppercase; text-decoration: underline; text-underline-offset: 12px; font-weight: 600; }

/* --- USLUGE PANEL --- */
#usluge { background-color: var(--bg-card); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: auto; }
.service-box { background: var(--bg-dark); padding: 40px 30px; border-radius: 8px; border-bottom: 3px solid transparent; transition: all 0.3s ease; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.service-box:hover { border-bottom: 3px solid var(--accent-red); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 0, 21, 0.15); }
.service-box h3 { color: var(--text-light); font-size: 22px; margin-bottom: 20px; text-transform: uppercase; font-weight: 600; }
.service-box h4 { color: var(--accent-red); font-size: 15px; margin-bottom: 15px; font-weight: 500; }
.service-box p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.service-box .napomena { display: block; margin-top: 15px; font-style: italic; font-size: 13.5px; color: var(--accent-red); }

/* --- GALERIJA --- */
#galerija { background-color: var(--bg-dark); }
.gallery-container { max-width: 1300px; margin: auto; text-align: center; position: relative; }
.gallery-subtitle { color: #ffffff; font-size: 20px; margin-bottom: 25px; text-transform: uppercase; font-weight: 600; display: inline-block; border-bottom: 2px solid var(--accent-red); padding-bottom: 5px; }
.gallery-wrapper { position: relative; max-height: 950px; overflow: hidden; transition: max-height 0.8s ease-in-out; text-align: left; }
.gallery-wrapper.expanded { max-height: 20000px; }
.gallery-fade { position: absolute; bottom: 0; left: 0; width: 100%; height: 250px; background: linear-gradient(to bottom, rgba(18,18,18,0) 0%, rgba(18,18,18,1) 100%); pointer-events: none; transition: opacity 0.5s ease; }
.gallery-wrapper.expanded .gallery-fade { opacity: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 3; background-color: var(--bg-card); cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; border: 2px solid var(--accent-red); padding: 8px 20px; font-size: 13px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

.floating-close-btn { position: fixed; bottom: 30px; right: 30px; background-color: var(--bg-dark); color: var(--text-light); border: 2px solid var(--accent-red); padding: 12px 24px; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 20px rgba(255, 0, 21, 0.3); z-index: 999; display: none; align-items: center; gap: 8px; transition: all 0.3s ease; }
.floating-close-btn:hover { background-color: var(--accent-red); color: white; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 0, 21, 0.5); }

/* --- LIGHTBOX --- */
.custom-lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 10, 10, 0.95); justify-content: center; align-items: center; user-select: none; }
.lightbox-img-wrapper { max-width: 85%; max-height: 85%; display: flex; justify-content: center; align-items: center; }
.custom-lightbox img, .custom-lightbox video { max-width: 100%; max-height: 85vh; object-fit: contain; border: 2px solid rgba(255, 255, 255, 0.05); border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); animation: lightboxZoom 0.25s ease-out; }
.custom-lightbox video:focus { outline: none; }
@keyframes lightboxZoom { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-btn { position: absolute; color: #ffffff; font-size: 35px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); width: 60px; height: 60px; line-height: 54px; text-align: center; cursor: pointer; transition: all 0.2s ease; border-radius: 50%; z-index: 2010; }
.lightbox-btn:hover { background: var(--accent-red); color: white; border-color: var(--accent-red); box-shadow: 0 0 15px rgba(255, 0, 21, 0.4); }
.lightbox-close { top: 20px; right: 20px; font-size: 28px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* --- O NAMA --- */
#onama { background-image: linear-gradient(rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.95)), url('images/background_4.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.about-wrapper { max-width: 900px; margin: auto; text-align: center; }
.about-wrapper p { font-size: 16.5px; color: var(--text-muted); margin-bottom: 25px; text-align: center; }
.about-wrapper h3 { font-size: 26px; color: var(--accent-red); margin: 40px 0 15px 0; font-weight: 600; text-transform: uppercase; }
.hamag-container { text-align: center; margin-top: 50px; }
.hamag-container img { max-width: 320px; height: auto; filter: grayscale(1) brightness(1.8); opacity: 0.8; transition: all 0.3s; }
.hamag-container img:hover { filter: none; opacity: 1; }

/* --- KONTAKT --- */
#kontakt { background-color: var(--bg-card); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1200px; margin: auto; }
.contact-box { background: var(--bg-dark); padding: 40px; border-radius: 8px; border-top: 3px solid var(--accent-red); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.contact-box h3 { color: var(--accent-red); font-size: 22px; margin-bottom: 25px; font-weight: 600; text-transform: uppercase; }
.contact-box h4 { color: var(--text-light); font-size: 17px; margin-bottom: 12px; font-weight: 500; }
.contact-box p { color: var(--text-muted); font-size: 16px; margin-bottom: 12px; }
.contact-box strong { color: var(--text-light); }

.email-form-section { grid-column: 1 / -1; background: var(--bg-dark); padding: 40px; border-radius: 8px; border-top: 3px solid var(--accent-red); margin-top: 20px; }
.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { margin-bottom: 5px; color: var(--text-muted); }
.form-group input, .form-group textarea { background: #222; border: 1px solid #333; padding: 12px; color: white; border-radius: 4px; width: 100%; box-sizing: border-box; }
.form-group textarea { resize: vertical; min-height: 100px; max-width: 100%; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-red); outline: none; }
.submit-btn { background: var(--accent-red); color: white; border: none; padding: 15px; border-radius: 4px; cursor: pointer; font-weight: bold; width: 100%; margin-top: 10px; font-size: 17px; }
.submit-btn:hover { background: #cc0011; }

/* --- FOOTER --- */
.footer { width: 100%; background-color: #0c0c0c; padding: 70px 0 25px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col { flex: 0 1 auto; max-width: 300px; text-align: left; }
.footer-col h4 { font-size: 17px; color: var(--accent-red); text-transform: uppercase; margin-bottom: 20px; font-weight: 600; display: inline-block; border-bottom: 2px solid var(--accent-red); padding-bottom: 5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a, .footer-col p { font-size: 15px; color: var(--text-muted); transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--accent-red); padding-left: 6px; }
.social-links a { display: inline-block; height: 40px; width: 40px; background-color: rgba(255,255,255,0.08); margin-right: 10px; text-align: center; line-height: 40px; border-radius: 50%; color: var(--text-light); transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--accent-red); transform: translateY(-3px); }
.copyright { text-align: center; padding-top: 40px; font-size: 13.5px; color: #666666; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }

/* --- RESPONSIVE DIZAJN 1000px --- */
@media (max-width: 1000px) {
    nav .fa-bars { display: block; font-size: 26px; }
    .nav-links { position: fixed; background-image: linear-gradient(rgb(7, 7, 7), rgba(7, 7, 7, 0.98)); height: 100vh; width: 250px; top: 0; right: -250px; text-align: left; z-index: 1010; transition: 0.5s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.5); border-left: 2px solid var(--accent-red); }
    .nav-links ul { margin-top: 60px; padding: 40px 20px; }
    .nav-links ul li { display: block; margin-bottom: 25px; padding: 0; }
    .nav-links ul li a { display: block; width: 100%; padding-right: 20px; text-align: left; padding-top: 15px; padding-bottom: 15px; font-size: 18px; }
    nav .fa-times { display: inline-block; position: absolute; top: 15px; right: 10px; font-size: 28px; padding: 20px; cursor: pointer; }
    .hero-content h1 { font-size: 38px; }
    .hero-content p { font-size: 16px; }
}

/* --- RESPONSIVE DIZAJN MOBITELI (768px) --- */
@media (max-width: 768px) {
    .footer-col { flex: 0 1 250px; max-width: 300px; text-align: left; }
    .form-row { flex-direction: column; }
    .gallery-wrapper:not(.expanded) { max-height: 500px; }
    .gallery-fade { height: 150px; }
    .lightbox-btn { width: 50px; height: 50px; font-size: 24px; line-height: 46px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 15px; right: 15px; }
    .custom-lightbox img, .custom-lightbox video { max-width: 92%; max-height: 75vh; }
    .floating-close-btn { bottom: 20px; right: 20px; padding: 10px 16px; font-size: 12px; }
}

/* ======================================================== */
/* DYNAMIC DEV PANEL SCRIPT & STYLES (PREMIUM) */
/* ======================================================== */

/* ODRŽAVANJE */
.dev-maintenance-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: radial-gradient(circle at center, #1e1e1e 0%, #080808 100%); z-index: 20000; display: flex; justify-content: center; align-items: center; color: white; padding: 20px; box-sizing: border-box; }
.maint-content-wrapper { text-align: center; animation: fadeInScale 0.8s ease-out forwards; }
@keyframes fadeInScale { 0% { opacity: 0; transform: scale(0.95) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.maint-logo { width: 320px; max-width: 85%; cursor: pointer; margin-bottom: 25px; filter: drop-shadow(0 10px 25px rgba(0,0,0,0.8)); transition: transform 0.3s; }
.maint-logo:active { transform: scale(0.95); }
.maint-laser-line { width: 350px; max-width: 90%; height: 2px; background: linear-gradient(90deg, transparent, #ff0015, #ff0015, transparent); margin: 0 auto 40px auto; box-shadow: 0 0 15px rgba(255, 0, 21, 0.8), 0 0 30px rgba(255, 0, 21, 0.4); border-radius: 50%; position: relative; }
.maint-laser-line::after { content: ''; position: absolute; top: -1px; left: 50%; width: 15px; height: 4px; background: #ffffff; border-radius: 50%; box-shadow: 0 0 10px #ffffff, 0 0 25px #ff0015; transform: translateX(-50%); animation: pulseLaserCore 2s infinite alternate ease-in-out; }
@keyframes pulseLaserCore { 0% { opacity: 0.5; width: 10px; } 100% { opacity: 1; width: 40px; } }
.maint-content-wrapper h1 { color: #ffffff; font-size: 2.2rem; margin-bottom: 15px; letter-spacing: 5px; font-weight: 300; text-transform: uppercase; }
.maint-content-wrapper h1 span { font-weight: 700; color: #ff0015; }
.maint-content-wrapper p { font-size: 1.15rem; color: #bbbbbb; max-width: 550px; line-height: 1.7; margin: 0 auto; }

/* ZVJEZDICE NA LOGU */
.festive-star { position: absolute; color: #ffcc00; text-shadow: 0 0 10px #ffcc00; pointer-events: none; animation: premiumTwinkle 2s infinite alternate ease-in-out; z-index: 1002; }
.fs-1 { top: -8px; left: -15px; font-size: 18px; animation-delay: 0s; }
.fs-2 { top: 40%; right: -20px; font-size: 20px; color: #fff; text-shadow: 0 0 15px #fff; animation-delay: 0.7s; transform: translateY(-50%); }
.fs-3 { bottom: 10px; left: 45px; font-size: 14px; animation-delay: 1.4s; }
@keyframes premiumTwinkle { 0% { opacity: 0.2; transform: scale(0.8) rotate(0deg); } 100% { opacity: 1; transform: scale(1.2) rotate(15deg); } }

/* LAMPICE */
.xmas-lights-wire { position: absolute; bottom: -22px; left: 0; width: 100%; height: 20px; display: flex; justify-content: space-around; overflow: visible !important; pointer-events: none; z-index: 999; }
.xmas-light { width: 8px; height: 14px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; position: relative; margin-top: 4px; animation: lightBlink 1.5s infinite alternate ease-in-out; }
.xmas-light::before { content: ''; position: absolute; top: -4px; left: 2px; width: 4px; height: 5px; background: #222; border-radius: 1px; }
.xmas-light:nth-child(4n+1) { background: #ff002b; box-shadow: 0 4px 10px #ff002b; animation-delay: 0s; }
.xmas-light:nth-child(4n+2) { background: #00ff2b; box-shadow: 0 4px 10px #00ff2b; animation-delay: 0.4s; }
.xmas-light:nth-child(4n+3) { background: #0088ff; box-shadow: 0 4px 10px #0088ff; animation-delay: 0.8s; }
.xmas-light:nth-child(4n+4) { background: #ffcc00; box-shadow: 0 4px 10px #ffcc00; animation-delay: 1.2s; }
@keyframes lightBlink { 0% { opacity: 0.3; transform: translateY(0) rotate(-6deg); } 100% { opacity: 1; transform: translateY(2px) rotate(6deg); } }

/* PAHULJE I STARI RAVNI SNIJEG NA DNU (Vraćena tanka baza, ukupna visina 20px) */
.dev-snowflake { position: fixed; top: -10px; color: #fff; font-family: Arial, sans-serif; text-shadow: 0 0 5px rgba(255,255,255,0.8); pointer-events: none; z-index: 999; overflow-x: hidden; }
.flake-landed { animation-play-state: paused !important; transition: opacity 3s ease, transform 3s ease !important; }

.snow-accumulation {
    position: fixed; bottom: -2px; left: 0; width: 100vw; height: 20px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='20'%3E%3Ctext x='5' y='12' fill='white' font-size='10' font-family='Arial'%3E%E2%9D%84%3C/text%3E%3Ctext x='25' y='14' fill='white' font-size='8' font-family='Arial'%3E%E2%9D%85%3C/text%3E%3Ctext x='45' y='11' fill='white' font-size='9' font-family='Arial'%3E%E2%9D%86%3C/text%3E%3C/svg%3E"),
        linear-gradient(to top, #ffffff 0%, #ffffff 8px, transparent 8px);
    background-size: 60px 20px, 100% 100%;
    background-repeat: repeat-x, no-repeat;
    filter: brightness(0.85);
    opacity: 0; pointer-events: none; z-index: 998;
    animation: accumulateSnow 3s ease-out forwards;
}
@keyframes accumulateSnow { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- NOVI BOŽIĆNI POP-UP (INTERAKTIVNA KOVERTA NA KLIK) --- */
.env-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 15000; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.5s ease; }
.env-modal-overlay.show { opacity: 1; }

.env-wrapper { position: relative; width: 620px; max-width: 92vw; height: 380px; margin-top: 80px; perspective: 1000px; cursor: pointer; transition: transform 0.3s ease; }
.env-wrapper:not(.is-open):hover { transform: scale(1.02); }
.env-wrapper.is-open { cursor: default; }

.env-back { position: absolute; bottom: 0; left: 0; width: 100%; height: 260px; background: #8a000e; border-radius: 8px; z-index: 1; box-shadow: inset 0 50px 50px rgba(0,0,0,0.3); }

.env-flap { position: absolute; top: 120px; left: 0; width: 100%; height: 170px; background: #b30012; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform 0.6s ease-in-out, z-index 0s 0.2s; z-index: 4; border-radius: 8px 8px 0 0; }
.env-wrapper.is-open .env-flap { transform: rotateX(180deg); z-index: 1; }

.env-front { position: absolute; bottom: 0; left: 0; width: 100%; height: 260px; background: linear-gradient(135deg, #e60017 50%, #cc0014 50%); clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%); z-index: 3; border-radius: 0 0 8px 8px; box-shadow: 0 -5px 15px rgba(0,0,0,0.2); }

.env-letter { position: absolute; bottom: 15px; left: 5%; width: 90%; background: #1a1a1a; border-top: 4px solid #ff0015; border-radius: 8px; padding: 35px 25px; text-align: center; z-index: 2; transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s, z-index 0s 0.4s; box-shadow: 0 5px 25px rgba(0,0,0,0.6); }
.env-wrapper.is-open .env-letter { transform: translateY(-160px); z-index: 5; }

/* Natpis "OTVORI ČESTITKU" preko zatvorene koverte */
.env-click-hint { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: 700; letter-spacing: 2px; font-size: 15px; background: rgba(0,0,0,0.5); padding: 12px 24px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.3); animation: hintPulse 2s infinite; transition: opacity 0.3s ease; z-index: 6; pointer-events: none; white-space: nowrap; }
.env-wrapper.is-open .env-click-hint { opacity: 0; }
@keyframes hintPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); } 70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.dev-close-btn { background: transparent; border: 2px solid white; color: white; padding: 12px 30px; font-weight: bold; font-size: 14px; border-radius: 6px; cursor: pointer; transition: 0.3s; text-transform: uppercase; margin-top: 15px; }
.dev-close-btn:hover { background: #ff0015; border-color: #ff0015; box-shadow: 0 0 15px rgba(255,0,21,0.4); }

/* PREMIUM GODIŠNJI POP-UP (FCL Tematika) */
.premium-fcl-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 15000; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.5s ease; }
.premium-fcl-modal-overlay.show { opacity: 1; }
.premium-fcl-card { position: relative; width: 550px; max-width: 90%; background: #121212; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 70px rgba(0,0,0,0.7), 0 0 30px rgba(255,0,21,0.15); transform: scale(0.9) translateY(30px); opacity: 0; transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(255,255,255,0.05); }
.premium-fcl-modal-overlay.show .premium-fcl-card { transform: scale(1) translateY(0); opacity: 1; }
.premium-fcl-header { height: 70px; background: #181818; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--accent-red); overflow: hidden; }
.premium-laser-scan { position: absolute; top: 0; left: -100%; width: 50%; height: 2px; background: linear-gradient(90deg, transparent, #ff0015, transparent); box-shadow: 0 0 15px #ff0015, 0 0 30px #ff0015; animation: scanLaser 3s ease-in-out infinite; }
@keyframes scanLaser { 0% { left: -100%; } 50% { left: 200%; } 100% { left: 200%; } }
.premium-fcl-content { padding: 40px; text-align: center; color: white; background: url('images/background_4.jpg') center/cover no-repeat; position: relative; z-index: 1; }
.premium-fcl-content::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18,18,18,0.92); z-index: -1; }