:root {
    --brand: #0033ff;
    --bg: #09090b;
    --text: #e5e7eb;
    --muted: #9ca3af;
}

/* base */
* {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
    transition: 0.25s;
}
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(60% 120% at 50% -20%, #0b0f1a, var(--bg) 60%);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* noise & glow */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .04;
    z-index: -2;
    background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.25"/></svg>');
}
.side-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background: linear-gradient(
        90deg,
        rgba(0,51,255,0.3) 0%,
        rgba(0,51,255,0.1) 12%,
        transparent 40%,
        transparent 60%,
        rgba(0,51,255,0.1) 88%,
        rgba(0,51,255,0.3) 100%
    );
    filter: blur(50px);
}

.container {
    text-align: center;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
}

/* logo */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.logo-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 25px rgba(0,51,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-circle.has-image {
    background: transparent;
    border: none;
    box-shadow: none;
    }
.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.logo-circle.empty {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

/* text */
.title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: .25rem;
}
.tagline {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 2rem;
}

/* links */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.link-item {
    position: relative;
    background: rgba(15,17,25,0.8);
    border: 2px solid rgba(0,51,255,0.4);
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    padding: 1rem 1.4rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(0,51,255,0.2);
}
.link-item:hover {
    background: rgba(0,51,255,0.15);
    border-color: var(--brand);
    box-shadow: 0 0 30px rgba(0,51,255,0.45);
    transform: translateY(-2px);
}

/* kružnica za ikonice/slike */
.link-icon {
    position:absolute;
    left: -0.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 51, 255, 0.075);
    border: 2px solid rgba(0,51,255,0.35);
    box-shadow: 0 0 12px rgba(0,51,255,0.25);
    overflow: hidden;
}
.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.icon {
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* footer */
footer {
    margin-top: 2.5rem;
    font-size: .75rem;
    color: var(--muted);
}

@media (max-width:480px){
    .logo-circle { width:80px;height:80px; }
    .link-item { font-size:.95rem; padding:.9rem 1.2rem; }
    .link-icon { width:48px; height:48px; left:-.05rem; }
}

/* ===================== */
/* LOADING ANIMACIJA     */
/* ===================== */
/* ===================== */
/* LOADING EKRAN         */
/* ===================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-circle {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(0,51,255,0.25);
  border-top-color: var(--brand);
  animation: spin 1.5s linear infinite;
  box-shadow: 0 0 30px rgba(0,51,255,0.3);
}

.loader-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  animation: slowspin 3s linear infinite;
}
.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* fallback ako nema slike */
.loader-logo.placeholder {
  background: var(--brand);
  box-shadow: 0 0 25px rgba(0,51,255,0.4);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes slowspin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* fade efekat za sadržaj */
body.loaded .container {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.container {
  opacity: 0;
  transform: translateY(20px);
}
