/* Osnovne postavke */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    max-width: 100%;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: #ffffff; font-weight: 700; }

/* BOJE: Tech Cyan kao glavna akcentna boja */
.text-accent { color: #00d2ff !important; }
.bg-accent { background-color: #00d2ff !important; }

/* Navigacija */
.navbar {
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #30363d;
    max-width: 100%;
    /*! position: absolute; */
}
.navbar-brand { font-weight: 900; letter-spacing: 1px; color: #fff !important; }
.nav-link { color: #c9d1d9 !important; font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-link:hover { color: #00d2ff !important; }

.navbar-toggler {
    margin-right: 0 !important; /* Sprječava bježanje hamburgera */
}

/* Pulsirajuća točka (Crvena) */
.pulse-dot {
    height: 12px; width: 12px;
    background-color: #fb0000;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(255, 51, 102, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

/* Hero & Vinjeta */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.video-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(13,17,23,0.3) 0%, rgba(13,17,23,0.95) 100%);
    z-index: -1;
}

/* Gumbi */
.btn-custom {
    background-color: #00d2ff; color: #0d1117;
    font-weight: 900; padding: 14px 35px;
    border-radius: 4px; border: none;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background-color: #00b8e6; color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}
.btn-outline-custom {
    border: 2px solid #00d2ff; color: #00d2ff;
    font-weight: 700; padding: 8px 24px;
    border-radius: 4px; text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-outline-custom:hover {
    background-color: #00d2ff; color: #0d1117;
}

/* Feature Kartice sa Glow animacijom */
.feature-box {
    background: #161b22; border: 1px solid #30363d;
    border-radius: 8px; padding: 40px 30px; height: 100%;
    transition: all 0.4s ease;
}
.feature-box:hover {
    transform: translateY(-5px);
    background: #1c2128;
    border-color: #00d2ff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15); 
}

/* Kontejner za SVG animacije */
.svg-container {
    /*! height: 120px; */
    background: #161b22; border: 1px dashed #30363d;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.svg-container:hover { border-color: #00d2ff; }

/* Foto Kartice */
.photo-card {
    background: #161b22; border: 1px solid #30363d;
    border-radius: 8px; overflow: hidden; height: 100%;
    transition: all 0.4s ease;
}
.photo-card img {
    width: 100%; /*! height: 220px; */ object-fit: cover;
    filter: grayscale(80%) contrast(120%);
    transition: all 0.4s ease;
}
.photo-card:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}
.photo-card:hover img {
    filter: grayscale(0%) contrast(100%);
}
.photo-card-body { padding: 30px; }

/* Pricing Kartice */
.pricing-card {
    background: #161b22; border: 1px solid #30363d;
    border-radius: 8px; padding: 40px 30px; height: 100%;
    transition: all 0.4s ease;
}
.pricing-card:hover { border-color: #00d2ff; }
.pricing-card.premium {
    background: #1c2128; border-color: #00d2ff;
    transform: scale(1.05); z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

/* Demo Banger */
.demo-banger {
    border: 1px solid #30363d;
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Footer & Social */
.hover-accent { transition: color 0.3s ease; }
.hover-accent:hover { color: #00d2ff !important; }

/* Modals */
.form-control { background-color: #0d1117; border: 1px solid #30363d; color: white; }
.form-control:focus { background-color: #0d1117; color: white; border-color: #00d2ff; box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25); }

/* Scroll To Top Button */
#scrollTopBtn {
    display: none; /* Sakriveno po defaultu, JS ga pali */
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 99;
    border: none; outline: none;
    background-color: #161b22; color: #c9d1d9;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    border: 1px solid #30363d;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#scrollTopBtn:hover {
    background-color: #00d2ff;
    color: #0d1117;
    border-color: #00d2ff;
    transform: translateY(-3px);
}

.text-gray {
    color: #8697a9f0;
    font-size: 14px;
}

/* Specifični stilovi za Tech stranicu */
.spec-card {
    background: #161b22;
    border-left: 3px solid #00d2ff;
    padding: 30px;
    border-radius: 0 8px 8px 0;
    height: 100%;
}
.warning-card {
    background: rgba(255, 51, 102, 0.1);
    border-left: 3px solid #ff3366;
}
/* Terminal Window UI */
.terminal-window {
    background-color: #05080b;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.terminal-header {
    background-color: #161b22;
    padding: 10px 15px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
}
.terminal-dots { display: flex; gap: 8px; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-body { padding: 25px; line-height: 1.8; color: #c9d1d9; font-size: 0.95rem; }
.term-key { color: #00d2ff; font-weight: bold; }
.term-val { color: #a5d6ff; }
.term-comment { color: #8b949e; font-style: italic; }

.portfolio-header {
    padding: 120px 0 60px 0;
    background: linear-gradient(135deg, #0d1117 0%, #090d13 100%);
    border-bottom: 1px solid #30363d;
}

/* 4x4 Grid Styling (Mosaic) */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px; /* Vrlo mali razmak za moderni mozaik izgled */
}
@media (max-width: 768px) {
    .grid-wrapper { grid-template-columns: repeat(2, 1fr); }
}
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /*! aspect-ratio: 16 / 9; */
    background: #161b22;
}
.grid-item img {
    width: 100%;
    /*! height: 100%; */
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(80%);
}
.grid-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}
/* Mali overlay tekst na hover */
.grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 13, 19, 0.643); /* Tamna podloga na hover */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-overlay i {
    font-size: 2rem;
    color: #00d2ff;
    margin-bottom: 10px;
}

.grid-overlay h6 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-overlay small {
    color: #8697a9;
    font-size: 0.75rem;
}

/* Creative Vault Cards */
.vault-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}
.vault-card:hover {
    border-color: #00d2ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}
.vault-img {
    /*! height: 200px; */
    background-color: #0d1117;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #30363d;
}

.form-control::placeholder {
    color: rgba(201, 209, 217, 0.7);
    opacity: 1;
}

/* Pretvaranje gumba u mailto link */
.btn-send-request {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.nav-link.active, .btn-outline-custom.active-page {
    color: #00d2ff !important;
    border-color: #00d2ff !important;
    pointer-events: none; /* Deaktivira klik na stranici na kojoj si već */
    opacity: 0.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #00d2ff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}