/*
|--------------------------------------------------------------------------
| VABCORE Hero Visual Polish
|--------------------------------------------------------------------------
|
| Enhances the existing hero without changing its HTML structure.
|
*/

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    top: -180px;
    left: -160px;
    z-index: -1;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background: rgba(34, 199, 255, 0.14);
    content: "";
    filter: blur(90px);
    pointer-events: none;
}

.hero::after {
    position: absolute;
    right: -180px;
    bottom: -210px;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(15, 111, 255, 0.2);
    content: "";
    filter: blur(110px);
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Hero Grid Balance
|--------------------------------------------------------------------------
*/

.hero-grid {
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(430px, 0.95fr);
    align-items: center;
    gap: clamp(48px, 6vw, 95px);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 540px;
    perspective: 1200px;
}

/*
|--------------------------------------------------------------------------
| Hero Badge
|--------------------------------------------------------------------------
*/

.hero-badge {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 32px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-badge i {
    color: var(--color-accent);
}

/*
|--------------------------------------------------------------------------
| Code Window
|--------------------------------------------------------------------------
*/

.code-window {
    position: absolute;
    inset: 40px 10px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(
            145deg,
            rgba(8, 28, 61, 0.96),
            rgba(4, 16, 37, 0.98)
        );
    box-shadow:
        0 38px 90px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        var(--glow-primary-soft);
    transform:
        rotateY(-2.5deg)
        rotateX(1deg);
    transform-origin: center;
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-slow),
        transform var(--transition-smooth);
}

.hero-visual:hover .code-window {
    border-color: rgba(34, 199, 255, 0.28);
    box-shadow:
        0 44px 105px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        var(--glow-accent-soft);
    transform:
        rotateY(0deg)
        rotateX(0deg)
        translateY(-4px);
}

.code-window::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            120deg,
            transparent 20%,
            rgba(255, 255, 255, 0.045) 48%,
            transparent 78%
        );
    content: "";
    pointer-events: none;
    transform: translateX(-90%);
    transition: transform 1100ms ease;
}

.hero-visual:hover .code-window::before {
    transform: translateX(90%);
}

.code-window-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );
}

.code-window-header::after {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.32);
    content: "vabcore.js";
    font-family: var(--font-monospace);
    font-size: 0.69rem;
    letter-spacing: 0.04em;
}

.code-window-header span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.18);
}

.code-window-header span:nth-child(1) {
    background: #ff6470;
}

.code-window-header span:nth-child(2) {
    background: #ffca52;
}

.code-window-header span:nth-child(3) {
    background: #55d98a;
}

.code-content {
    position: relative;
    z-index: 2;
    min-height: 350px;
    padding: 42px 38px;
    color: #dce8f7;
}

.code-content > div {
    min-height: 1.85em;
}

.code-content .keyword {
    color: #c792ea;
}

.code-content .property {
    color: #80cbc4;
}

.code-content .string {
    color: #c3e88d;
}

/*
|--------------------------------------------------------------------------
| Code Window Decorative Grid
|--------------------------------------------------------------------------
*/

.code-content::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );
    background-size: 28px 28px;
    content: "";
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Floating Cards
|--------------------------------------------------------------------------
*/

.floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 15px 19px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.065)
        );
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: var(--font-weight-bold);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-smooth);
}

.floating-card::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(34, 199, 255, 0.18),
            transparent 55%
        );
    content: "";
    opacity: 0;
    transition: opacity var(--transition-base);
}

.floating-card:hover {
    border-color: rgba(34, 199, 255, 0.34);
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.3),
        var(--glow-accent-soft);
}

.floating-card:hover::before {
    opacity: 1;
}

.floating-card i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 11px;
    background: rgba(34, 199, 255, 0.13);
    color: var(--color-accent);
    font-size: 1rem;
}

.floating-card-one {
    top: 18px;
    right: -20px;
}

.floating-card-two {
    right: 38px;
    bottom: 24px;
}

/*
|--------------------------------------------------------------------------
| Hero Actions
|--------------------------------------------------------------------------
*/

.hero-actions {
    gap: 15px;
}

.hero-actions .btn {
    min-width: 190px;
}

/*
|--------------------------------------------------------------------------
| Hero Technology Labels
|--------------------------------------------------------------------------
*/

.hero-tech {
    gap: 10px 20px;
}

.hero-tech span {
    transition:
        color var(--transition-base),
        transform var(--transition-base);
}

.hero-tech span:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

.hero-tech i {
    color: var(--color-accent);
}

/*
|--------------------------------------------------------------------------
| Medium Desktop
|--------------------------------------------------------------------------
*/

@media (max-width: 1280px) {
    .hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(390px, 0.9fr);
        gap: 55px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .code-window {
        inset: 35px 0 auto;
    }

    .floating-card-one {
        right: -5px;
    }

    .floating-card-two {
        right: 20px;
    }
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hero-visual {
        width: min(100%, 660px);
        min-height: 490px;
        margin-inline: auto;
    }

    .code-window {
        inset: 25px 0 auto;
        transform: none;
    }

    .hero-visual:hover .code-window {
        transform: translateY(-3px);
    }

    .floating-card-one {
        top: 3px;
        right: 12px;
    }

    .floating-card-two {
        right: 34px;
        bottom: 6px;
    }

    .hero-actions .btn {
        min-width: 180px;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 650px) {
    .hero-visual {
        min-height: 410px;
    }

    .code-window {
        inset: 20px 0 auto;
        border-radius: 23px;
    }

    .code-window-header {
        min-height: 50px;
        padding-inline: 19px;
    }

    .code-window-header::after {
        font-size: 0.62rem;
    }

    .code-content {
        min-height: 290px;
        padding: 29px 22px;
    }

    .floating-card {
        display: none;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/*
|--------------------------------------------------------------------------
| Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {
    .hero-visual {
        min-height: 370px;
    }

    .code-window-header::after {
        content: "app.js";
    }

    .code-content {
        min-height: 265px;
        padding: 25px 18px;
    }
}

/*
|--------------------------------------------------------------------------
| Touch Devices
|--------------------------------------------------------------------------
*/

@media (hover: none) {
    .code-window {
        transform: none;
    }

    .hero-visual:hover .code-window,
    .hero-tech span:hover {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .code-window,
    .code-window::before,
    .floating-card,
    .floating-card::before,
    .hero-tech span {
        transition: none;
    }

    .hero-visual:hover .code-window,
    .floating-card:hover,
    .hero-tech span:hover {
        transform: none;
    }
}