.hero{
    padding-top: 40px;
}



/* ==========================================
   NEW HERO MANDALA ANIMATION
========================================== */

.diagram-wrapper {
    width: 105%;
    max-width: 800px;   /* increased from 650px */
    margin: auto;
    animation: floatMandala 12s ease-in-out infinite;
    will-change: transform;
}

/* ==========================================
   SMOOTH ROTATION FIX
========================================== */

.hero-mandala {
    width: 100%;
    height: auto;
    display: block;
}

/* Float (smooth, no jump) */
@keyframes floatMandala {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Shared rotation setup */
.rotate-slow,
.rotate-medium,
.rotate-fast {
    transform-origin: 400px 400px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

/* Stable constant rotations */
.rotate-slow {
    animation: spinSlow 160s linear infinite;
}

.rotate-medium {
    animation: spinMedium 130s linear infinite reverse;
}

.rotate-fast {
    animation: spinFast 100s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spinMedium {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spinFast {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}



/* ==========================================
   HERO SPACING FIX
========================================== */

/* If using CSS Grid */
.hero-inner {
    column-gap: 40px;   /* reduce space (was likely 80–120px) */
}

/* If using Flex instead of Grid */
.hero-inner {
    gap: 40px;
}
.hero-visual {
    margin-left: -30px;   /* gently pulls diagram toward text */
}

/* ==========================================
   HERO MOBILE FIX (CLEAN)
========================================== */

@media (max-width: 900px) {

    .hero {
        padding: 70px 24px 40px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .hero-content {
        order: 1;
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
        margin-top: 14px;
    }

    .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    }

    .hero-cta a {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }

    /* Mandala fix */
    .hero-visual {
        order: 2;
        display: flex;
        justify-content: center;
    }

     .diagram-wrapper {
        width: 100% !important;
        max-width: 460px !important;
        margin: 20px auto 0 !important;
        animation: none;
    }  

    .hero-mandala {
        width: 100%;
        height: auto;
    }
}