/* ============================= */
/* GLOBAL */
/* ============================= */

.hb-hero {
    position: relative;
    padding: 160px 20px;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

/* ============================= */
/* BACKGROUND */
/* ============================= */

.hb-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* GLOW BLOBS */
.hb-blob1, .hb-blob2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    animation: blobFloat 14s ease-in-out infinite;
}

.hb-blob1 {
    width: 600px;
    height: 600px;
    background: #0CC7D5;
    top: -120px;
    left: -120px;
    opacity: 0.22;
}

.hb-blob2 {
    width: 500px;
    height: 500px;
    background: #a855f7;
    bottom: -120px;
    right: -120px;
    opacity: 0.18;
    animation-delay: 4s;
}

/* ============================= */
/* LIGHT GRID */
/* ============================= */

.hb-grid {
    position: absolute;
    inset: 0;
    z-index: 1;

    --grid-color: rgba(255,255,255,0.14);

    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);

    background-size: 60px 60px;
    opacity: 0.25;

    animation: hbGridMove 40s linear infinite;
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.hb-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ============================= */
/* TEXT */
/* ============================= */

.hb-tagline {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
    color: #0CC7D5;
}

.hb-left h1 {
    font-size: 56px;
    line-height: 1.15;
    margin-top: 20px;
    letter-spacing: -1px;
}

#hb-rotating {
    color: #0CC7D5;
    transition: 0.4s ease;
}

.hb-desc {
    margin-top: 20px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.6;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.hb-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hb-btn-primary {
    background: #0CC7D5;
    color: #000;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hb-btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 14px 24px;
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ============================= */
/* FLOATING CARDS (FIXED STACKING) */
/* ============================= */

.hb-right {
    position: relative;
    height: 450px;
}

.hb-card {
    position: absolute;
    width: 300px;

    background: rgba(15,15,15,0.65);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);

    padding: 16px;
    border-radius: 20px;

    animation: float 6s ease-in-out infinite;

    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.hb-card img {
    width: 100%;
    border-radius: 14px;
}

.hb-card p {
    margin-top: 12px;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ============================= */
/* CARD POSITIONS + Z-INDEX FIX */
/* ============================= */

.c1 {
    --rotate: -6deg;
    top: 0;
    left: 20px;
    z-index: 3;
}

.c2 {
    --rotate: 6deg;
    top: 140px;
    right: 0;
    animation-delay: 1.5s;
    z-index: 2;
}

.c3 {
    --rotate: 2deg;
    bottom: 0;
    left: 40px;
    animation-delay: 3s;
    z-index: 1;
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */

@keyframes float {
    0%   { transform: translateY(0px) rotate(var(--rotate)); }
    50%  { transform: translateY(-12px) rotate(var(--rotate)); }
    100% { transform: translateY(0px) rotate(var(--rotate)); }
}

@keyframes blobFloat {
    0%,100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes hbGridMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: -40px -40px, -40px -40px;
    }
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media(max-width: 768px) {

    .hb-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hb-left h1 {
        font-size: 40px;
    }

    .hb-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hb-btn-primary,
    .hb-btn-outline {
        width: 100%;
    }

    .hb-right {
        height: auto;
    }

    .hb-card {
        position: relative;
        margin: 0 auto 20px;
        transform: rotate(0deg) !important;
        width: 90%;
        z-index: auto;
    }
}