.hero {
    position: relative;
    min-height: auto;
    padding: 125px 0 20px;
    overflow-x: clip;
    background-color: var(--white);
    background-image: url("../images/backgrounds/hero_bg_light.png");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 1050px auto;
}

html.dark-mode .hero {
    background-color: var(--bg-dark);
    background-image: url("../images/backgrounds/hero_bg_dark_3B.png");
}

.hero-sparkles {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    z-index: 1;
    top: 130px;
    right: -40px;
    width: 400px;
    height: 400px;
    pointer-events: none;
}

html.dark-mode .hero-ring {
    top: 90px;
    right: 10px;
    width: 330px;
    height: 330px;
}

.hero-ring-img,
.hero-ring-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.05);
}

.hero-ring-img {
    z-index: 1;
}

.hero-ring-glow {
    z-index: 2;
    opacity: .95;
}

.ring-dark {
    display: none;
}

html.dark-mode .ring-light {
    display: none;
}

html.dark-mode .ring-dark {
    display: block;
}

.hero-ring-glow.ring-light {
    filter: drop-shadow(0 0 6px rgba(48, 87, 240, .85)) drop-shadow(0 0 12px rgba(252, 0, 6, .45));
}

.hero-ring-glow.ring-dark {
    filter: drop-shadow(0 0 8px rgba(8, 36, 139, .95)) drop-shadow(0 0 18px rgba(219, 12, 12, .45));
}

.ring-led-path {
    stroke-dasharray: 42 420;
    animation: ringFlow 4s linear infinite;
}

@keyframes ringFlow {
    to {
        stroke-dashoffset: -462;
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 47% 53%;
    align-items: center;
    min-height: 430px;
}

.hero-content {
    max-width: 560px;
}

.hero-content h1 {
    color: var(--blue-dark);
    font-size: clamp(52px, 5.25vw, 67px);
    line-height: .95;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--red);
}

.hero-content h2 {
    max-width: 820px;
    margin-top: 20px;
    color: var(--blue-dark);
    font-size: clamp(22px, 1.3vw, 25px);
    line-height: 1.25;
    text-transform: uppercase;
}

.hero-content p {
    max-width: 520px;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.7;
}

html.dark-mode .hero-content h1,
html.dark-mode .hero-content h2 {
    color: var(--white);
}

html.dark-mode .hero-content p {
    color: rgba(255, 255, 255, .72);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 25px;
}

.hero-drone-wrap {
    position: relative;
    min-height: 430px;
    will-change: transform;
     pointer-events: none;
}

.hero-drone {
    position: absolute;
    top: 52%;
    left: 60px;
    width: 370px;
    opacity: 0;
    filter: drop-shadow(0 25px 40px rgba(0, 40, 120, .22)) drop-shadow(0 0 24px rgba(0, 105, 255, .18));
    transform: translate3d(520px, -360px, 0) rotate(14deg);
    transform-origin: center;
     pointer-events: none;

}

.hero-drone.is-visible {
    animation: droneIntro 1.8s cubic-bezier(.18, .7, .2, 1) forwards, droneFloat 4.8s ease-in-out infinite 1.8s;
}

@keyframes droneIntro {
    to {
        opacity: 1;
        transform: translate3d(0, -50%, 0) rotate(-.6deg);
    }
}

@keyframes droneFloat {
    0%,
    100% {
        opacity: 1;
        transform: translate3d(0, -50%, 0) rotate(-.6deg);
    }

    50% {
        opacity: 1;
        transform: translate3d(0, -53%, 0) rotate(.6deg);
    }
}

.hero-cards {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.hero-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 132px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .58));
    box-shadow: 0 24px 60px rgba(7, 27, 69, .14), inset 0 1px 0 rgba(255, 255, 255, .75);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

a.hero-card {
    color: inherit;
    text-decoration: none;
}

.countdown-card {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.mini-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

    width: 100%;
    margin-top: 10px;
}

.mini-countdown div {
    text-align: center;
}

.mini-countdown strong {
    display: block;

    color: var(--blue-dark);

    font-size: 30px;
    line-height: 1;
}

.mini-countdown span {
    display: block;

    margin-top: 6px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

html.dark-mode .mini-countdown strong {
    color: var(--white);
}

.hero-card::before,
.hero-card::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.hero-card::before {
    background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .95), transparent 38%), linear-gradient(120deg, rgba(255, 255, 255, .55), transparent 42%);
    opacity: .72;
}

.hero-card::after {
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(6, 72, 201, .1), transparent 38%, rgba(227, 6, 44, .08));
    opacity: .55;
}

.hero-card > * {
    position: relative;
    z-index: 2;
}

.hero-card:hover {
    border-color: rgba(255, 255, 255, .95);
    box-shadow: 0 30px 75px rgba(7, 27, 69, .2);
    transform: translateY(-5px);
}

html.dark-mode .hero-card {
    border-color: rgba(109, 163, 255, .18);
    background: rgba(7, 18, 43, .32);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

html.dark-mode .hero-card::before {
    opacity: .16;
    background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.45), transparent 32%);
}

html.dark-mode .hero-card::after {
    opacity: .22;
    background:
        linear-gradient(135deg, rgba(109,163,255,.12), transparent 45%);
}

html.dark-mode .card-icon::before {
    display: none;
}

html.dark-mode .card-icon {
    width: 62px;
    height: 62px;
    margin-right: 24px;
}

.card-icon {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-right: 26px;
}

.card-icon::before {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .18));
    content: "";
}

.card-icon img {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

html.dark-mode .card-icon img {
    filter: brightness(0) invert(1)
    drop-shadow(0 0 10px rgba(109, 163, 255, .35));
}

html.dark-mode .card-icon img[src*="taliansko.png"] {
    filter: none;
}
.card-label {
    display: block;
    min-height: 15px;
    margin-bottom: 11px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.hero-card h3 {
    max-width: 210px;
    color: var(--blue-dark);
    font-size: 20px;
    line-height: 1.2;
}

.hero-card p {
    margin-top: 5px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.35;
}

.hero-card small {
    display: block;
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
}

.hero-card .hero-card-cta {
    color: var(--blue);
    font-weight: 900;
    text-transform: uppercase;
}

html.dark-mode .hero-card h3,
html.dark-mode .ranking-row strong,
html.dark-mode .ranking-row span {
    color: var(--white);
}

html.dark-mode .hero-card p,
html.dark-mode .hero-card small {
    color: rgba(255, 255, 255, .68);
}

html.dark-mode .card-label {
    color: var(--blue-light);
}

html.dark-mode .hero-card .hero-card-cta {
    color: var(--blue-light);
}

.event-card > div:last-child {
    min-width: 0;
}

@media (max-width: 1180px) {
    .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        background-size: 900px auto;
    }

    .hero-drone {
        left: 20px;
        width: min(35vw, 370px);
    }

    .hero-card {
        padding: 24px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin-right: 18px;
    }

    .card-icon img {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding-top: 110px;
        background-image: url("../images/backgrounds/hero_light_mobil.png");
        background-position: center top;
        background-size: cover;
    }

    html.dark-mode .hero {
        background-image: url("../images/backgrounds/hero_dark_mobil.png");
    }

    .hero-ring {
        top: 145px;
        right: -80px;
        width: 310px;
        height: 310px;
    }

    html.dark-mode .hero-ring {
        top: 130px;
        right: -55px;
        width: 280px;
        height: 280px;
    }

    .hero-inner {
        grid-template-columns: 55% 45%;
        min-height: 390px;
    }

    .hero-content h1 {
        font-size: clamp(45px, 7vw, 58px);
    }

    .hero-content h2 {
        font-size: clamp(20px, 3vw, 25px);
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        min-width: 0;
        padding-inline: 16px;
    }

    .hero-drone-wrap {
        min-height: 360px;
    }

    .hero-drone {
        left: 8%;
        width: min(40vw, 350px);
    }

    .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .hero-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 105px 0 50px;
        background-size: 100% auto;
    }

    .hero-ring {
        display: none;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(40px, 12vw, 52px);
        letter-spacing: -1.5px;
    }

    .hero-content h2 {
        margin-top: 14px;
        font-size: clamp(18px, 5vw, 22px);
    }

    .hero-content p {
        max-width: 420px;
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-drone-wrap {
        width: 100%;
        min-height: 250px;
    }

    .hero-drone {
        top: 55%;
        left: 50%;
        width: min(74vw, 310px);
        transform: translate3d(260px, -220px, 0) rotate(14deg);
    }

    @keyframes droneIntro {
        to {
            opacity: 1;
            transform: translate3d(-50%, -50%, 0) rotate(-.6deg);
        }
    }

    @keyframes droneFloat {
        0%,
        100% {
            opacity: 1;
            transform: translate3d(-50%, -50%, 0) rotate(-.6deg);
        }

        50% {
            opacity: 1;
            transform: translate3d(-50%, -53%, 0) rotate(.6deg);
        }
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .hero-card:last-child {
        grid-column: auto;
    }

    .hero-card {
        min-height: 112px;
        padding: 22px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .hero-content h1 {
        font-size: 39px;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 36px;
    }
}
