/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #04060f;            /* dublja, gotovo crna plava noć */
    --bg-soft: #0a0e1c;
    --text: #f5f5f7;
    --text-muted: #a3acc4;
    --accent: #4d8bff;        /* electric blue */
    --accent-glow: rgba(77, 139, 255, 0.25);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ===== ANIMIRANA POZADINA ===== */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;            /* zvijezde + grid */
    pointer-events: none;
}

/* pulsirajući glow preko cijele pozadine (jači od grida) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;            /* iza zvijezda */
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 28%, rgba(54, 102, 235, 0.30), transparent 60%),
        radial-gradient(circle at 50% 82%, rgba(28, 60, 170, 0.26), transparent 58%);
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.07); }
}

/* suptilni vignette za čitljivost teksta */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(4, 6, 15, 0.55) 100%);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 55%);
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    background: var(--card-bg);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.8rem, 12vw, 5.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 4vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.hero-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

/* ===== QR KOD ===== */
.hero-qr {
    width: 100%;
    max-width: 300px;        /* mrvicu uže od gumba */
    margin: 0 auto 2.4rem;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 45px rgba(77, 139, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-qr:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 70px rgba(77, 139, 255, 0.35);
}

.hero-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ===== BUTTONS ===== */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    max-width: 340px;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #02132e;
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px var(--accent-glow);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    animation: scrollMove 1.6s infinite;
}

@keyframes scrollMove {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 0; }
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ===== ABOUT ===== */
.about-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    gap: 1.4rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 1.4rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== CONTACT ===== */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
}

.contact-name {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.contact-list a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    transform: translateX(4px);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
    word-break: break-word;
}

/* ===== FOOTER ===== */
.footer {
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-border);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    .btn {
        width: auto;
    }
}

@media (min-width: 720px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}