/* ========== SERVICES PAGE ========== */

body.services-page {
    background: radial-gradient(circle at top, #170b20 0, #050109 45%, #020007 100%);
    color: #f9fafb;
}

/* -------- Page hero -------- */

.page-hero--services {
    position: relative;
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .page-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.page-hero-flames {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.9;
}

.page-hero-flame {
    position: absolute;
    width: 50%;
    height: 120%;
    filter: blur(28px);
    opacity: 0.6;
    mix-blend-mode: screen;
    transform: translate3d(0, 0, 0);
    animation: heroFlamePulse 9s ease-in-out infinite alternate;
}

.page-hero-flame--left {
    left: -10%;
    bottom: -20%;
    background: radial-gradient(circle at 20% 80%, rgba(251, 146, 60, 0.7), transparent 60%),
                radial-gradient(circle at 0% 20%, rgba(248, 113, 113, 0.7), transparent 60%);
}

.page-hero-flame--right {
    right: -10%;
    top: -20%;
    background: radial-gradient(circle at 70% 0%, rgba(251, 191, 36, 0.8), transparent 65%),
                radial-gradient(circle at 100% 50%, rgba(248, 113, 113, 0.7), transparent 65%);
    animation-delay: -4s;
}

.page-hero-embers {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 90%, rgba(252, 211, 77, 0.4) 0, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.35) 0, transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.5;
    animation: emberDrift 18s linear infinite alternate;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fed7aa;
    margin-bottom: 0.75rem;
}

.page-hero-title {
    font-size: clamp(2.3rem, 3vw + 1.2rem, 3.4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1rem;
    color: #e5e7eb;
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.page-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.page-hero-bullets li {
    font-size: 0.95rem;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-hero-bullets li::before {
    content: "✦";
    font-size: 0.8rem;
    color: #f97316;
}

.page-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-hero-note {
    font-size: 0.9rem;
    color: #9ca3af;
    max-width: 32rem;
}

/* ---- orb ---- */

.page-hero-orb-wrap {
    position: relative;
    z-index: 1;
}

.page-hero-orb {
    position: relative;
    width: min(22rem, 80vw);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #f97316, transparent 55%),
                radial-gradient(circle at 70% 80%, #e11d48, transparent 60%),
                radial-gradient(circle at 50% 50%, #020617, #020617 65%, transparent 100%);
    box-shadow:
        0 0 40px rgba(248, 113, 113, 0.5),
        0 0 120px rgba(249, 115, 22, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-orb-core {
    width: 40%;
    height: 40%;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 30%, #fef3c7, #f97316 55%, #7f1d1d 100%);
    filter: blur(2px);
    animation: orbPulse 3.5s ease-in-out infinite;
}

.page-hero-orb-ring {
    position: absolute;
    inset: 10%;
    border-radius: inherit;
    border: 1px solid rgba(254, 215, 170, 0.5);
    mix-blend-mode: screen;
}

.page-hero-orb-ring--outer {
    inset: 4%;
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
}

.page-hero-orb-ring--inner {
    inset: 18%;
    border-style: dashed;
    border-color: rgba(251, 191, 36, 0.7);
}

.page-hero-orb-spark {
    position: absolute;
    width: 10%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: radial-gradient(circle, #fef3c7, #f97316 70%, transparent 100%);
    mix-blend-mode: screen;
    animation: sparkOrbit 12s linear infinite;
}

.page-hero-orb-spark--1 { top: 5%; left: 50%; animation-delay: 0s; }
.page-hero-orb-spark--2 { right: 3%; top: 30%; animation-delay: -4s; }
.page-hero-orb-spark--3 {
    bottom: 16%;
    left: 8%;
    animation-delay: -8s;
}


.page-hero-orb-label {
    position: absolute;
    bottom: -2.3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fed7aa;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.85);
}

/* -------- Filter bar -------- */

.services-page-section {
    position: relative;
    padding: 4rem 0;
}

.services-page-section--grid {
    padding-top: 3rem;
}

.services-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 2.25rem;
}

.services-filter-btn {
    position: relative;
    border: 0;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.2), transparent 70%),
                rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.services-filter-btn::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(120deg, rgba(248, 113, 113, 0.8), rgba(251, 191, 36, 0.8)) border-box;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.2s ease;
}

.services-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 113, 113, 0.6);
}

.services-filter-btn.is-active {
    background: radial-gradient(circle at 10% 0, rgba(254, 243, 199, 0.35), transparent 60%),
                rgba(30, 64, 175, 0.07);
    border-color: rgba(251, 191, 36, 0.7);
}

.services-filter-btn.is-active::before {
    opacity: 1;
}

/* -------- Services grid -------- */

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

@media (max-width: 1100px) {
    .services-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .services-page-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.svc-card {
    position: relative;
}

.svc-card-border {
    --border-light: rgba(248, 113, 113, 0.9);
    --border-mid: rgba(251, 146, 60, 0.85);
    --border-dark: rgba(30, 64, 175, 0.7);

    position: relative;
    border-radius: 1.4rem;
    padding: 1px;
    background: conic-gradient(
        from 190deg,
        var(--border-light),
        var(--border-mid),
        var(--border-dark),
        var(--border-light)
    );
    box-shadow:
        0 0 24px rgba(248, 113, 113, 0.3),
        0 0 60px rgba(30, 64, 175, 0.35);
    overflow: hidden;
}

.svc-card-border--orange {
    --border-light: rgba(251, 146, 60, 0.9);
    --border-mid: rgba(251, 191, 36, 0.85);
    --border-dark: rgba(194, 65, 12, 0.8);
}

.svc-card-border--amber {
    --border-light: rgba(251, 191, 36, 0.9);
    --border-mid: rgba(251, 113, 133, 0.85);
    --border-dark: rgba(147, 51, 234, 0.8);
}

.svc-card-border--red {
    --border-light: rgba(248, 113, 113, 0.95);
    --border-mid: rgba(127, 29, 29, 0.9);
    --border-dark: rgba(30, 64, 175, 0.7);
}

.svc-card-border--pink {
    --border-light: rgba(244, 114, 182, 0.95);
    --border-mid: rgba(129, 140, 248, 0.85);
    --border-dark: rgba(56, 189, 248, 0.7);
}

.svc-card-border--violet {
    --border-light: rgba(167, 139, 250, 0.95);
    --border-mid: rgba(236, 72, 153, 0.85);
    --border-dark: rgba(14, 165, 233, 0.7);
}

.svc-card-inner {
    position: relative;
    height: 100%;
    border-radius: inherit;
    padding: 1.3rem 1.25rem 1.35rem;
    background:
        radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.08), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.85), #020617 80%);
    overflow: hidden;
}

.svc-card-inner::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 100%, rgba(251, 146, 60, 0.2), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(248, 113, 113, 0.25), transparent 60%);
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.4s ease;
}

.svc-card:hover .svc-card-inner::before {
    opacity: 1;
}

.svc-card-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.svc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.svc-pill--hot {
    border-color: rgba(251, 113, 133, 0.9);
    color: #fecaca;
}

.svc-pill--soft {
    border-color: rgba(251, 191, 36, 0.9);
    color: #fef3c7;
}

.svc-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.svc-lead {
    font-size: 0.92rem;
    color: #e5e7eb;
    margin-bottom: 0.9rem;
}

.svc-list {
    margin: 0 0 1rem;
    padding-left: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.svc-list li {
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
    line-height: 1.45;
}

.svc-list li::before {
    content: "⟡";
    font-size: 0.7rem;
    color: #f97316;
    margin-top: 0.1rem;
}

.svc-meta {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.svc-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.svc-meta-text {
    font-size: 0.9rem;
    color: #e5e7eb;
}

.svc-meta-tags {
    font-size: 0.85rem;
    color: #fbbf24;
}

.svc-footer {
    display: flex;
    justify-content: flex-start;
}

.svc-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: #f97316;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.svc-link::after {
    content: "↗";
    font-size: 0.8rem;
    transform: translateY(1px);
}

/* Hidden state for filter */

.svc-card.is-hidden {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    pointer-events: none;
}

/* -------- Bundles -------- */

.services-page-section--bundles {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), transparent 55%);
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

@media (max-width: 1100px) {
    .bundle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .bundle-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bundle-card {
    position: relative;
}

.bundle-glow {
    position: absolute;
    inset: 15% 10%;
    border-radius: 1.4rem;
    filter: blur(26px);
    opacity: 0.45;
    mix-blend-mode: screen;
    pointer-events: none;
}

.bundle-glow--orange {
    background: radial-gradient(circle, rgba(251, 146, 60, 0.8), transparent 70%);
}

.bundle-glow--red {
    background: radial-gradient(circle, rgba(248, 113, 113, 0.8), transparent 70%);
}

.bundle-glow--violet {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.9), transparent 70%);
}

.bundle-inner {
    position: relative;
    border-radius: 1.4rem;
    padding: 1.4rem 1.3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(24, 24, 35, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.bundle-title {
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

.bundle-lead {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.8rem;
}

.bundle-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
}

.bundle-list li {
    display: flex;
    gap: 0.35rem;
    line-height: 1.45;
}

.bundle-list li::before {
    content: "•";
    color: #fbbf24;
    font-size: 0.9rem;
}

.bundle-note {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* -------- Stack section -------- */

.services-page-section--stack {
    padding-bottom: 5rem;
}

.stack-shell {
    border-radius: 1.5rem;
    padding: 1.8rem 1.6rem 1.9rem;
    background:
        radial-gradient(circle at top, rgba(30, 64, 175, 0.6), transparent 60%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow:
        0 0 40px rgba(30, 64, 175, 0.45),
        0 30px 80px rgba(15, 23, 42, 0.9);
}

.stack-header {
    max-width: 40rem;
    margin-bottom: 1.6rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

@media (max-width: 1100px) {
    .stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .stack-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.stack-title {
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
}

.stack-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.stack-list li + li {
    margin-top: 0.2rem;
}

.stack-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    padding-top: 1.1rem;
    margin-top: 0.5rem;
}

.stack-cta p {
    font-size: 0.9rem;
    color: #e5e7eb;
    max-width: 36rem;
}

@media (max-width: 800px) {
    .stack-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -------- Animations -------- */

@keyframes heroFlamePulse {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate3d(0, -10px, 0) scale(1.06);
        opacity: 0.85;
    }
}

@keyframes emberDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-20px, -40px, 0);
    }
}

@keyframes orbPulse {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 20px rgba(248, 250, 252, 0.7);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 40px rgba(252, 211, 77, 1);
    }
    100% {
        transform: scale(0.98);
        box-shadow: 0 0 20px rgba(248, 250, 252, 0.7);
    }
}

@keyframes sparkOrbit {
    0% {
        transform: rotate(0deg) translateX(0);
    }
    100% {
        transform: rotate(360deg) translateX(0);
    }
}

/* Ensure reveal-on-scroll looks smooth if main.css adds is-visible */

.reveal-on-scroll {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.reveal-on-scroll.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Active nav link */

.nav-link.is-active {
    color: #f97316;
}









/* ==========================
   PHOENIX FIRE TITLES – SERVICES
   ========================== */

/* Svi h1/h2 sa .brush-headline (hero + sekcije) */
.brush-headline {
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.03em;
    background-image:
        radial-gradient(circle at 0% 0%, #fef3c7 0, #fed7aa 22%, transparent 60%),
        radial-gradient(circle at 100% 0%, #f97316 0, #ea580c 30%, transparent 65%),
        radial-gradient(circle at 50% 100%, #fbbf24 0, #fb923c 25%, transparent 70%);
    background-size: 260% 260%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 0 18px rgba(248, 113, 113, 0.55),
        0 0 40px rgba(251, 146, 60, 0.65),
        0 0 70px rgba(190, 24, 93, 0.55);

    animation: zmnxPhoenixTextGlow 8s ease-in-out infinite alternate;
}

/* Malo “teži” feeling za hero naslov */
.page-hero-title.brush-headline {
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Fire-y ali suptilniji za naslove kartica usluga */
.svc-title {
    position: relative;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;

    background-image: linear-gradient(120deg, #fed7aa, #fb923c, #f97316, #fb7185);
    background-size: 220% 220%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 0 10px rgba(248, 113, 113, 0.35),
        0 0 26px rgba(251, 146, 60, 0.45);

    transition:
        background-position 0.35s ease,
        text-shadow 0.35s ease,
        transform 0.25s ease;
}

/* Pojačaj efekat kad hoveruješ karticu usluge */
.svc-card:hover .svc-title {
    background-position: 100% 50%;
    text-shadow:
        0 0 14px rgba(248, 113, 113, 0.6),
        0 0 34px rgba(251, 146, 60, 0.7),
        0 0 60px rgba(190, 24, 93, 0.65);
    transform: translateY(-1px);
}

/* Glavni “plamen” animacija za tekst */
@keyframes zmnxPhoenixTextGlow {
    0% {
        background-position: 0% 50%;
        text-shadow:
            0 0 10px rgba(248, 113, 113, 0.4),
            0 0 24px rgba(251, 146, 60, 0.4);
        transform: translate3d(0, 0, 0);
    }
    35% {
        background-position: 40% 45%;
        text-shadow:
            0 0 18px rgba(248, 113, 113, 0.8),
            0 0 40px rgba(251, 146, 60, 0.85),
            0 0 68px rgba(190, 24, 93, 0.75);
    }
    65% {
        background-position: 75% 55%;
        text-shadow:
            0 0 14px rgba(248, 113, 113, 0.7),
            0 0 32px rgba(234, 88, 12, 0.75);
    }
    100% {
        background-position: 100% 50%;
        text-shadow:
            0 0 9px rgba(248, 113, 113, 0.35),
            0 0 20px rgba(251, 146, 60, 0.35);
    }
}







/* ===============================
   FIX: filter should reflow grid
   (no invisible cards reserving space)
================================= */
.svc-card {
  transition: opacity 0.22s ease, transform 0.22s ease;
  will-change: opacity, transform;
}

.svc-card.is-hiding {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  pointer-events: none;
}

.svc-card.is-hidden {
  display: none !important;
}


