/* =======================================================================
   BANGGAI KREATIF — ULTRA PREMIUM UI KIT
   Drop-in replacement for assets/css/style.css
   Works on top of Bootstrap 5.3 + Bootstrap Icons + Swiper 11
   Author: UI/UX pass
   ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* -----------------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------------- */
:root {
    /* Brand */
    --bk-ink: #0B1020;
    --bk-ink-2: #141A2E;
    --bk-violet: #6D5DF6;
    --bk-violet-2: #9C6BFF;
    --bk-blue: #2783DE;
    --bk-sky: #38BDF8;
    --bk-gold: #F5B740;
    --bk-gold-2: #FF8A4C;
    --bk-green: #2FBF81;

    /* Surfaces */
    --bk-canvas: #F6F7FB;
    --bk-surface: #FFFFFF;
    --bk-soft: #F1F2F8;
    --bk-border: #E7E8F0;

    /* Text */
    --bk-text: #171A2B;
    --bk-muted: #6A6E85;

    /* Gradients */
    --gradient-1: linear-gradient(120deg, #6D5DF6 0%, #9C6BFF 55%, #38BDF8 100%);
    --gradient-2: linear-gradient(120deg, #F5B740 0%, #FF8A4C 60%, #FF5F8F 100%);
    --gradient-3: linear-gradient(135deg, #0B1020 0%, #1E2450 55%, #3A2E7A 100%);
    --gradient-hero: radial-gradient(1200px 600px at 12% -10%, rgba(109, 93, 246, .55), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, .35), transparent 55%),
        radial-gradient(800px 600px at 80% 120%, rgba(245, 183, 64, .28), transparent 55%),
        linear-gradient(160deg, #0B1020 0%, #131A34 60%, #1A1140 100%);

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(16, 20, 45, .05), 0 2px 8px rgba(16, 20, 45, .05);
    --shadow-md: 0 8px 24px rgba(16, 20, 45, .08), 0 2px 6px rgba(16, 20, 45, .05);
    --shadow-lg: 0 24px 60px rgba(16, 20, 45, .16), 0 8px 20px rgba(16, 20, 45, .08);
    --shadow-glow: 0 18px 50px rgba(109, 93, 246, .35);

    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* -----------------------------------------------------------------------
   2. BASE
   ----------------------------------------------------------------------- */
* {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--bk-text);
    background:
        radial-gradient(700px 400px at 100% -5%, rgba(109, 93, 246, .06), transparent 60%),
        radial-gradient(600px 400px at -5% 20%, rgba(56, 189, 248, .06), transparent 55%),
        var(--bk-canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -.02em;
}

::selection {
    background: rgba(109, 93, 246, .22);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bk-violet), var(--bk-sky));
    border-radius: 20px;
    border: 3px solid var(--bk-canvas);
}

/* Gradient section titles — used inline in your markup too */
.section-title,
h2[style*="-webkit-text-fill-color"] {
    font-weight: 800 !important;
    letter-spacing: -.03em;
    position: relative;
}

section>.container>h2,
section>h2 {
    font-weight: 800;
}

/* Reusable soft heading underline accent */
.section-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bk-violet);
    margin-bottom: .5rem;
}

/* -----------------------------------------------------------------------
   3. NAVBAR — glass + animated links
   ----------------------------------------------------------------------- */
.navbar.sticky-top {
    background: rgba(255, 255, 255, .72) !important;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(231, 232, 240, .9);
    box-shadow: 0 6px 24px rgba(16, 20, 45, .05) !important;
    padding-top: .6rem;
    padding-bottom: .6rem;
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.navbar .nav-link {
    position: relative;
    font-weight: 600;
    font-size: .95rem;
    color: var(--bk-text) !important;
    margin: 0 .1rem;
    transition: color .25s var(--ease);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.navbar .nav-link:hover {
    color: var(--bk-violet) !important;
}

.navbar .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar .btn-primary {
    background: var(--gradient-1);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}

.navbar .btn-primary::after {
    display: none;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* -----------------------------------------------------------------------
   4. HERO
   ----------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: heroPan 18s ease-in-out infinite;
    overflow: hidden;
    padding-top: 90px;
    isolation: isolate;
}

@keyframes heroPan {

    0%,
    100% {
        background-position: 0% 50%, 100% 0%, 80% 120%, 0% 0%;
    }

    50% {
        background-position: 30% 40%, 70% 20%, 60% 90%, 100% 100%;
    }
}

/* floating orbs */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
    animation: floatOrb 14s ease-in-out infinite;
}

.hero-section::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(245, 183, 64, .35), transparent 70%);
}

.hero-section::after {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -60px;
    background: radial-gradient(circle, rgba(56, 189, 248, .30), transparent 70%);
    animation-delay: -5s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -30px) scale(1.08);
    }
}

.hero-section h1.display-5 {
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}

.hero-section h1 .text-warning {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}

.hero-section .lead {
    max-width: 34rem;
}

/* Hero buttons */
.hero-section .btn-warning {
    background: var(--gradient-2);
    border: none;
    color: #241300;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(255, 138, 76, .4);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}

.hero-section .btn-warning:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.hero-section .btn-outline-light {
    border-radius: 999px;
    font-weight: 700;
    border-width: 2px;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .06);
    transition: transform .25s var(--ease), background .25s;
}

.hero-section .btn-outline-light:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .16);
}

/* Glass media card */
.media-glass-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.media-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .36);
}

.song-card {
    position: relative;
}

/* Pulse mic */
.podcast-icon-pulse {
    width: 78px;
    height: 78px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gradient-2);
    box-shadow: 0 10px 30px rgba(255, 138, 76, .5);
    position: relative;
}

.podcast-icon-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(245, 183, 64, .55);
    animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 183, 64, .5);
    }

    100% {
        box-shadow: 0 0 0 26px rgba(245, 183, 64, 0);
    }
}

/* Audio players — sleek */
.audio-player-wrapper audio,
audio.podcast-audio {
    border-radius: 999px;
    width: 100%;
    height: 42px;
    outline: none;
}

audio::-webkit-media-controls-panel {
    background: #eef0f7;
}

/* Hero logo float */
.hero-section img.drop-shadow,
.hero-section .col-lg-3 img {
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Wave */
.svg-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1;
}

.svg-wave path {
    fill: var(--bk-canvas);
}

/* -----------------------------------------------------------------------
   5. SECTION HEADINGS (gradient text kept from your inline styles)
   ----------------------------------------------------------------------- */
main section h2,
section h2 {
    margin-bottom: 2.5rem;
}

section h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin: .8rem auto 0;
    background: var(--gradient-1);
    opacity: .9;
}

#video-gallery h2::after {
    background: rgba(255, 255, 255, .7);
}

/* -----------------------------------------------------------------------
   6. CARDS (blog / podcast / ebook / video) — premium
   ----------------------------------------------------------------------- */
.card {
    border: 1px solid var(--bk-border) !important;
    border-radius: var(--radius) !important;
    background: var(--bk-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 93, 246, .35) !important;
}

.card-img-fixed,
.ebook-img-fixed {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease);
}

.ebook-img-fixed {
    height: 260px;
    object-fit: contain;
}

.card a:hover .card-img-fixed,
.card:hover .card-img-fixed {
    transform: scale(1.06);
}

.card-body {
    padding: 1.15rem 1.25rem;
}

.hover-primary {
    transition: color .25s var(--ease);
}

.card:hover .hover-primary {
    color: var(--bk-violet) !important;
}

/* Outline & success buttons inside cards */
.btn-outline-primary {
    border-radius: 999px;
    font-weight: 600;
    border-color: var(--bk-violet);
    color: var(--bk-violet);
    transition: all .25s var(--ease);
}

.btn-outline-primary:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-success {
    background: var(--bk-green);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .25s var(--ease), filter .25s;
}

.btn-success:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    background: var(--bk-green);
}

.btn-success.rounded-circle {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
}

/* Podcast tiles on light bg */
#podcast {
    background: var(--bk-surface) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-lg) !important;
}

#podcast .card.bg-light {
    background: var(--bk-soft) !important;
}

/* -----------------------------------------------------------------------
   7. VIDEO GALLERY
   ----------------------------------------------------------------------- */
#video-gallery {
    background: var(--gradient-3) !important;
    border-radius: var(--radius-lg) !important;
    position: relative;
    overflow: hidden;
}

#video-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 20% 0%, rgba(109, 93, 246, .4), transparent 60%),
        radial-gradient(500px 300px at 90% 100%, rgba(56, 189, 248, .3), transparent 60%);
    pointer-events: none;
}

.video-card {
    border-radius: var(--radius) !important;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.video-card img {
    transition: transform .6s var(--ease);
}

.video-card:hover img {
    transform: scale(1.08);
}

.video-card .bi-play-circle-fill {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
    transition: transform .3s var(--ease), opacity .3s;
}

.video-card:hover .bi-play-circle-fill {
    transform: scale(1.12);
    opacity: 1 !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -----------------------------------------------------------------------
   8. SWIPER controls
   ----------------------------------------------------------------------- */
.swiper {
    padding: 8px 4px 48px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--bk-violet);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(6px);
    transition: transform .25s var(--ease), background .25s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.08);
    background: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.05rem;
    font-weight: 800;
}

#video-gallery .swiper-button-next,
#video-gallery .swiper-button-prev {
    color: var(--bk-violet);
}

.swiper-pagination-bullet {
    background: var(--bk-violet);
    opacity: .35;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 22px;
    border-radius: 6px;
    background: var(--gradient-1);
}

/* -----------------------------------------------------------------------
   9. RADIO
   ----------------------------------------------------------------------- */
#radio .card {
    border-radius: var(--radius) !important;
    gap: .5rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

#radio .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

#radio .card h6 a {
    color: var(--bk-text);
    text-decoration: none;
    transition: color .2s;
}

#radio .card:hover h6 a {
    color: var(--bk-violet);
}

.radio-play-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    display: inline-grid;
    place-items: center;
    box-shadow: var(--shadow-glow);
    font-size: 1.1rem;
    transition: transform .25s var(--ease), filter .25s;
}

.radio-play-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* -----------------------------------------------------------------------
   10. MODERN MEDIA (video embeds) — dark section
   ----------------------------------------------------------------------- */
.modern-media-section {
    background: var(--gradient-3);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.modern-media-section .media-glass-card {
    color: #fff;
}

.video-wrapper {
    border-radius: var(--radius) !important;
    overflow: hidden;
}

.video-wrapper iframe {
    border: 0;
}

.modern-media-section .text-success {
    color: var(--bk-gold) !important;
}

/* -----------------------------------------------------------------------
   11. KONTRIBUTOR PODCAST GRID (.bk-*)
   ----------------------------------------------------------------------- */
#kontributor-podcast {
    background: var(--bk-canvas) !important;
    border-radius: var(--radius-lg);
}

.bk-container {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.bk-card {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--radius);
    padding: 1.4rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.bk-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.bk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 93, 246, .35);
}

.bk-card:hover::before {
    transform: scaleX(1);
}

.bk-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bk-text);
}

.bk-btn {
    display: inline-block;
    padding: .55rem 1.4rem;
    border-radius: 999px;
    background: var(--gradient-1);
    color: #fff !important;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
    transition: transform .25s var(--ease), filter .25s;
}

.bk-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

/* -----------------------------------------------------------------------
   12. MY APPS + PARTNERSHIP
   ----------------------------------------------------------------------- */
#my-apps,
#partnership {
    background: var(--bk-surface) !important;
    border-radius: var(--radius-lg) !important;
}

.transition-card {
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    border: 1px solid var(--bk-border) !important;
}

.group-partner:hover .transition-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 93, 246, .3) !important;
}

.partner-logo-wrapper {
    aspect-ratio: 1 / 1;
    background: var(--bk-soft);
    border-radius: var(--radius-sm);
    margin: .35rem;
    overflow: hidden;
}

.partner-logo {
    max-height: 78px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(15%);
    transition: transform .4s var(--ease), filter .4s;
}

.group-partner:hover .partner-logo {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.group-partner .card-title {
    transition: color .25s;
}

.group-partner:hover .card-title {
    color: var(--bk-violet) !important;
}

#btnInstallPWA {
    background: var(--gradient-1);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    transition: transform .25s var(--ease), filter .25s;
}

#btnInstallPWA:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
}

/* -----------------------------------------------------------------------
   13. FOOTER
   ----------------------------------------------------------------------- */
footer.bg-dark {
    background: var(--gradient-3) !important;
    position: relative;
    overflow: hidden;
}

footer.bg-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 10% 0%, rgba(109, 93, 246, .35), transparent 60%),
        radial-gradient(500px 300px at 100% 100%, rgba(245, 183, 64, .18), transparent 60%);
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h5,
footer h6,
footer .text-warning {
    color: var(--bk-gold) !important;
}

footer .footer-links a,
footer a.text-light {
    transition: color .2s var(--ease), transform .2s var(--ease);
    display: inline-block;
}

footer .footer-links a:hover {
    color: var(--bk-gold) !important;
    transform: translateX(4px);
}

footer .btn.rounded-circle {
    transition: transform .25s var(--ease);
}

footer .btn.rounded-circle:hover {
    transform: translateY(-3px);
}

footer .card.bg-secondary {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    backdrop-filter: blur(8px);
}

footer .list-group-item {
    border-color: rgba(255, 255, 255, .08) !important;
}

/* -----------------------------------------------------------------------
   14. RUNNING TEXT (marquee)
   ----------------------------------------------------------------------- */
.running-text-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(11, 16, 32, .9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
    padding: .55rem 0;
}

.running-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: marquee 26s linear infinite;
}

.running-text span {
    color: #fff;
    font-size: .92rem;
    font-weight: 500;
}

.running-text span::before {
    content: '✦ ';
    color: var(--bk-gold);
}

.running-text-container:hover .running-text {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

body {
    padding-bottom: 44px;
}

/* -----------------------------------------------------------------------
   15. MODALS
   ----------------------------------------------------------------------- */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--bk-border);
}

/* -----------------------------------------------------------------------
   16. SCROLL REVEAL (optional, progressive enhancement)
   ----------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* -----------------------------------------------------------------------
   17. RESPONSIVE
   ----------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar.sticky-top {
        background: rgba(255, 255, 255, .96) !important;
    }

    .navbar-nav {
        padding: .5rem 0;
        gap: .2rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .lead {
        margin-inline: auto;
    }
}

@media (max-width: 575.98px) {
    h1.display-5 {
        font-size: 2rem;
    }

    .card-img-fixed {
        height: 170px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .running-text span {
        font-size: .82rem;
    }
}

/* -----------------------------------------------------------------------
   18. ACCESSIBILITY — reduced motion
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .running-text {
        animation: none !important;
        padding-left: 1rem;
    }
}


/* =======================================================================
   19. PREMIUM MOTION SYSTEM — 3D + SCROLL STORYTELLING
   Enter/exit reveal from left, right, top, bottom + 3D depth + parallax.
   Driven by assets/js/premium-animations.js (auto-tags elements).
   ======================================================================= */

/* Give key regions 3D depth context */
.hero-section,
#blog,
#podcast,
#video-gallery,
#ebook,
#radio,
#kontributor-podcast,
#my-apps,
#partnership,
.modern-media-section,
footer {
    perspective: 1400px;
    perspective-origin: 50% 30%;
}

/* --- Base reveal state (hidden) --- */
[data-anim] {
    opacity: 0;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition:
        opacity .8s var(--ease),
        transform 1s var(--ease),
        filter .8s var(--ease);
    transition-delay: var(--anim-delay, 0s);
    filter: blur(6px);
}

/* --- Direction start positions (with 3D rotation) --- */
[data-anim="left"] {
    transform: translate3d(-90px, 0, -120px) rotateY(22deg) rotateZ(-2deg);
}

[data-anim="right"] {
    transform: translate3d(90px, 0, -120px) rotateY(-22deg) rotateZ(2deg);
}

[data-anim="up"] {
    transform: translate3d(0, 80px, -120px) rotateX(-20deg);
}

[data-anim="down"] {
    transform: translate3d(0, -80px, -120px) rotateX(20deg);
}

[data-anim="zoom"] {
    transform: perspective(1200px) scale(.78) translateZ(-140px);
}

[data-anim="flip"] {
    transform: perspective(1200px) rotateY(-85deg);
    transform-origin: left center;
}

/* --- Revealed state (visible) --- */
[data-anim].in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0) scale(1);
    filter: blur(0);
}

/* Fallback for no-JS: show everything */
.no-js [data-anim] {
    opacity: 1;
    transform: none;
    filter: none;
}

/* --- 3D interactive tilt (cursor-follow) --- */
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform .25s var(--ease), box-shadow .3s var(--ease);
}

.tilt-3d.is-tilting {
    transition: transform .08s linear, box-shadow .3s var(--ease);
}

.tilt-3d .card-body,
.tilt-3d .video-info,
.tilt-3d h3,
.tilt-3d h4 {
    transform: translateZ(35px);
    transform-style: preserve-3d;
}

.tilt-3d img {
    transform: translateZ(18px);
}

.tilt-3d.is-tilting {
    box-shadow: 0 30px 70px rgba(16, 20, 45, .28);
}

/* Sheen highlight that follows the cursor on 3D cards */
.tilt-3d {
    position: relative;
}

.tilt-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 60%);
    opacity: 0;
    transition: opacity .3s var(--ease);
    z-index: 2;
}

.tilt-3d.is-tilting::after {
    opacity: 1;
}

/* --- Hero storytelling parallax (scroll-driven via --sy) --- */
.hero-section::before {
    transform: translate3d(0, calc(var(--sy, 0) * .06px), 0);
}

.hero-section::after {
    transform: translate3d(0, calc(var(--sy, 0) * -.05px), 0);
}

.hero-section .col-lg-3 img {
    will-change: transform;
}

/* Section headings: cinematic entrance */
section h2[data-anim] {
    letter-spacing: .04em;
}

section h2[data-anim].in-view {
    letter-spacing: -.03em;
    transition: opacity .8s var(--ease), transform 1s var(--ease), letter-spacing 1s var(--ease), filter .8s var(--ease);
}

/* Reduced motion: disable all of the above */
@media (prefers-reduced-motion: reduce) {
    [data-anim] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .tilt-3d {
        transform: none !important;
    }

    .tilt-3d::after {
        display: none;
    }

    .hero-section::before,
    .hero-section::after {
        transform: none !important;
    }
}