/* ==========================================================================
   OPG DUIĆ (VL. ANDREJ DUIĆ) — HOLOGRAPHIC SMART BUSINESS CARD & HONEYBEE AURA
   Single Liquid Honey Gold Theme • Inspired by marko.com.hr intro screen
   ========================================================================== */

/* --- Visually Hidden Utility (Accessibility Guide) --- */
.visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.skip-link:is(:focus, :active) {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    padding: 0.6rem 1.1rem;
    border-radius: 9999px;
    background: var(--primary-accent);
    color: #090704;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

/* --- LIQUID HONEY & OBSIDIAN GOLD DESIGN TOKENS --- */
:root {
    --bg-base: #080603;
    --bg-surface: #140f08;
    --bg-surface-elevated: #1f170c;
    --bg-glass: rgba(20, 15, 8, 0.82);
    --bg-glass-card: rgba(24, 18, 10, 0.9);

    --border-subtle: rgba(255, 236, 179, 0.11);
    --border-accent: rgba(245, 158, 11, 0.48);
    --border-glow: rgba(251, 191, 36, 0.82);

    --primary-accent: #f59e0b;
    --primary-light: #fef3c7;
    --primary-dark: #b45309;
    --primary-gradient: linear-gradient(135deg, #fde68a 0%, #fbbf24 38%, #f59e0b 72%, #b45309 100%);

    --secondary-accent: #fcd34d;
    --status-color: #fbbf24;

    --text-pure: #ffffff;
    --text-primary: #fffbeb;
    --text-secondary: #fcd34d;
    --text-muted: #b89758;

    --spotlight-glow: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.18) 0%, rgba(180, 83, 9, 0.06) 52%, transparent 76%);
    --card-shadow: 0 28px 68px -15px rgba(0, 0, 0, 0.94), 0 0 42px rgba(245, 158, 11, 0.22);
    --btn-primary-text: #140d03;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- Ambient Canvas & Lighting --- */
.cosmic-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.88;
}

.ambient-lighting {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.radial-spotlight {
    position: absolute;
    top: -18%;
    left: 50%;
    translate: -50% 0;
    width: 100vw;
    height: 100vw;
    max-width: 1280px;
    max-height: 1280px;
    background: var(--spotlight-glow);
    border-radius: 50%;
    filter: blur(50px);
}

.screen-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.48) 100%);
}

/* --- Top Header Bar --- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.15rem 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, var(--bg-glass) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.brand-hex-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--text-pure);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-accent);
    padding: 0.26rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--status-color);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--status-color);
    box-shadow: 0 0 8px var(--status-color);
    animation: statusBlink 2.2s infinite ease-in-out;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 0.95;
        scale: 1;
    }

    50% {
        opacity: 0.4;
        scale: 0.82;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-tool:focus-visible,
.card-cta-btn:focus-visible,
.utility-pill:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

.btn-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    translate: 0 0;
    scale: 1;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, translate 0.25s ease;
}

.btn-tool:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-pure);
    border-color: var(--border-accent);
    translate: 0 -1px;
}

.sound-active .icon-audio-off {
    display: none;
}

.sound-active .icon-audio-on {
    display: block;
}

body:not(.sound-active) .icon-audio-on {
    display: none;
}

body:not(.sound-active) .icon-audio-off {
    display: block;
}

/* --- Main Stage --- */
.main-stage {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10;
    padding: 6.25rem 1.25rem 2.25rem;
}

/* ==========================================================================
   CARD AURA WRAPPER, HONEYCOMB HALO & 3D FLYING BEES
   ========================================================================== */
.card-aura-wrapper {
    position: relative;
    width: min(570px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.honeycomb-halo {
    position: absolute;
    width: 118px;
    height: 118px;
    color: var(--primary-accent);
    opacity: 0.22;
    pointer-events: none;
    z-index: 12;
    filter: drop-shadow(0 0 12px var(--border-accent));
    transition: opacity 0.45s ease, scale 0.45s ease;
    scale: 1;
}

.halo-top-left {
    top: -34px;
    left: -34px;
}

.halo-bottom-right {
    bottom: -36px;
    right: -34px;
}

.card-aura-wrapper:hover .honeycomb-halo {
    opacity: 0.42;
    scale: 1.06;
}

/* Canvas for glowing golden pollen trails around the card */
.card-halo-canvas {
    position: absolute;
    inset: -95px;
    width: calc(100% + 190px);
    height: calc(100% + 190px);
    pointer-events: none;
    z-index: 16;
}

/* 3D Bee Orbit Layers */
.bee-orbit-layer {
    position: absolute;
    inset: -80px;
    pointer-events: none;
    overflow: visible;
}

.bee-layer-back {
    z-index: 14;
    filter: blur(0.3px);
}

.bee-layer-front {
    z-index: 28;
}

.bee-entity {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.45));
}

.bee-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bee-wing-left {
    transform-origin: 16px 15px;
    animation: beeWingLeft 0.07s ease-in-out infinite alternate;
}

.bee-wing-right {
    transform-origin: 16px 19px;
    animation: beeWingRight 0.07s ease-in-out infinite alternate;
}

@keyframes beeWingLeft {
    0% {
        transform: rotate(-8deg) scaleY(1);
        opacity: 0.88;
    }

    100% {
        transform: rotate(-42deg) scaleY(0.72);
        opacity: 0.55;
    }
}

@keyframes beeWingRight {
    0% {
        transform: rotate(8deg) scaleY(1);
        opacity: 0.88;
    }

    100% {
        transform: rotate(42deg) scaleY(0.72);
        opacity: 0.55;
    }
}

/* ==========================================================================
   THE FLOATING HOLOGRAPHIC HERO BUSINESS CARD
   ========================================================================== */
.hero-card-container {
    width: 100%;
    container-type: inline-size;
    position: relative;
    z-index: 20;
}

.hero-card {
    position: relative;
    width: 100%;
    min-height: 305px;
    border-radius: 22px;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-accent);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    padding: 1.7rem 2rem;

    /* Identity transforms (Modern Web Guidance: individual-transform-properties) */
    translate: 0px 0px;
    rotate: 0deg;
    scale: 1;
    transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    animation: floatLevitate 5.4s ease-in-out infinite;
    transition: scale 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, transform 0.18s ease-out;
}

.hero-card:has(> img) {
    padding-left: 36%;
    justify-items: end;
    text-align: right;
}

@keyframes floatLevitate {

    0%,
    100% {
        translate: 0px 0px;
    }

    50% {
        translate: 0px -11px;
    }
}

.hero-card:hover {
    scale: 1.018;
    border-color: var(--border-glow);
    box-shadow: 0 36px 76px -15px rgba(0, 0, 0, 0.94), 0 0 52px var(--border-accent);
}

@supports not (translate: 0px) {
    @keyframes floatLevitateFallback {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-11px);
        }
    }

    .hero-card {
        animation: floatLevitateFallback 5.4s ease-in-out infinite;
    }

    .hero-card:hover {
        transform: translateY(-6px) scale(1.018);
    }
}

/* Left-Side Photo with Soft Edge Mask Fade */
.card-bg-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: 48% 18%;
    opacity: 0.9;
    filter: contrast(1.06) saturate(1.05) brightness(0.95);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    translate: 0 0;
    scale: 1;
    transition: opacity 0.45s ease, scale 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.hero-card:hover .card-bg-photo {
    opacity: 0.98;
    scale: 1.04;
    filter: contrast(1.12) saturate(1.14) brightness(1.02);
}

@supports (not (mask-image: linear-gradient(to right, black, transparent))) and (not (-webkit-mask-image: linear-gradient(to right, black, transparent))) {
    .card-bg-photo {
        width: 48%;
        opacity: 0.65;
    }
}

/* Atmospheric Gradient Blend */
.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(8, 6, 3, 0.06) 0%, rgba(8, 6, 3, 0.32) 34%, var(--bg-surface) 69%, var(--bg-surface-elevated) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Subtle Hexagonal Honeycomb Shimmer Pattern inside Card Foil */
.card-honeycomb-foil {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at var(--mouse-x, 72%) var(--mouse-y, 40%), rgba(251, 191, 36, 0.14) 0%, transparent 55%),
        repeating-linear-gradient(60deg, rgba(251, 191, 36, 0.035) 0px, rgba(251, 191, 36, 0.035) 1px, transparent 1px, transparent 22px),
        repeating-linear-gradient(-60deg, rgba(251, 191, 36, 0.035) 0px, rgba(251, 191, 36, 0.035) 1px, transparent 1px, transparent 22px);
    pointer-events: none;
    z-index: 3;
}

.holo-foil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 65%) var(--mouse-y, 45%), rgba(255, 255, 255, 0.22) 0%, rgba(245, 158, 11, 0.18) 28%, transparent 65%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 3;
}

.card-glass-specular {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.card-border-beam {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1.5px;
    background: var(--primary-gradient);
    opacity: 0.55;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
}

/* --- Card Content Regions --- */
.card-brand-header,
.card-main-titles,
.card-action-row {
    position: relative;
    z-index: 6;
    width: 100%;
}

.card-brand-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.card-craft-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.26rem 0.68rem;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid var(--border-accent);
    color: var(--primary-light);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card-craft-pill svg {
    color: var(--primary-accent);
}

.card-main-titles {
    margin: 0.85rem 0 1.05rem;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4.6vw, 2.3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-pure);
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.92);
    line-height: 1.05;
    margin-bottom: 0.22rem;
    outline: none;
}

.hero-owner {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-light);
    opacity: 0.95;
    margin-bottom: 0.32rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary-accent);
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* --- Direct Contact Buttons on Card (Phone + Instagram) --- */
.card-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.card-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.58rem 0.95rem;
    min-height: 44px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    translate: 0 0;
    scale: 1;
    transition: translate 0.22s cubic-bezier(0.16, 1, 0.3, 1), scale 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn-phone {
    background: var(--primary-gradient);
    color: var(--btn-primary-text);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.45);
}

.btn-phone:hover {
    translate: 0 -2px;
    scale: 1.03;
    box-shadow: 0 12px 30px -4px rgba(251, 191, 36, 0.65);
}

.btn-insta {
    background: rgba(15, 12, 8, 0.72);
    color: var(--text-pure);
    border: 1px solid var(--border-accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.7);
}

.btn-insta:hover {
    translate: 0 -2px;
    scale: 1.03;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
    box-shadow: 0 12px 28px -5px rgba(225, 48, 108, 0.35);
}

.cta-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex-shrink: 0;
}

.btn-phone .cta-icon-wrap {
    background: rgba(0, 0, 0, 0.14);
}

.btn-insta .cta-icon-wrap {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
    color: #ffffff;
}

.cta-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
}

.cta-kicker {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.cta-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* --- Container Query Adaptation for Narrow Cards --- */
@container (max-width: 485px) {
    .hero-card:has(> img) {
        padding: 1.35rem 1.25rem 1.35rem 30%;
        min-height: 295px;
    }

    .card-bg-photo {
        width: 60%;
        opacity: 0.78;
    }

    .card-gradient-overlay {
        background: linear-gradient(95deg, rgba(8, 6, 3, 0.1) 0%, rgba(8, 6, 3, 0.48) 30%, var(--bg-surface) 64%, var(--bg-surface-elevated) 100%);
    }

    .card-action-row {
        flex-direction: column;
        align-items: flex-end;
    }

    .card-cta-btn {
        width: min(225px, 100%);
        justify-content: flex-start;
    }
}

/* --- Subtle Quick-Utility Strip Below Card --- */
.card-utility-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    z-index: 22;
}

.utility-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.48rem 0.9rem;
    min-height: 36px;
    border-radius: 9999px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    translate: 0 0;
    scale: 1;
    transition: translate 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.utility-pill:hover {
    translate: 0 -2px;
    color: var(--text-pure);
    border-color: var(--border-accent);
    background: var(--bg-surface-elevated);
}

/* --- Minimal Footer --- */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 0.75rem 1.5rem 1.65rem;
    text-align: center;
}

.footer-copy {
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* --- Toast Notification Banner --- */
.toast-banner {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    translate: -50% 36px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-accent);
    color: var(--btn-primary-text);
    padding: 0.62rem 1.3rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, translate 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-banner.is-active {
    opacity: 1;
    translate: -50% 0;
}

/* --- Responsive Header & Viewport Adjustments --- */
@media (max-width: 780px) {
    .app-header {
        padding: 0.95rem 1.15rem;
    }

    .status-indicator {
        display: none;
    }

    .honeycomb-halo {
        width: 86px;
        height: 86px;
    }

    .halo-top-left {
        top: -22px;
        left: -14px;
    }

    .halo-bottom-right {
        bottom: -22px;
        right: -14px;
    }
}

@media (max-width: 420px) {
    .brand-text {
        font-size: 0.88rem;
    }

    .main-stage {
        padding: 5.2rem 0.9rem 1.75rem;
    }
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {

    .hero-card,
    .status-dot,
    .bee-wing-left,
    .bee-wing-right {
        animation: none !important;
    }

    .hero-card {
        transform: none !important;
    }
}