.hero{
    padding-top: 40px;
}
@media (max-width: 900px) {

    .hero-section {
        padding: 80px 24px 60px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-section h1 {
        font-size: 34px;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    .hero-section p {
        font-size: 16px;
        line-height: 1.6;
        margin-top: 10px;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
        border-radius: 16px;
        padding: 18px;
    }

    .hero-illustration {
        order: -1;
        width: 80%;
        margin: 0 auto 20px;
    }
}
@media (max-width: 900px) {

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

    .hero-cta a {
        width: 100%;
        padding: 16px 18px;
        border-radius: 12px;   /* FIXED: no more giant ovals */
        font-size: 15px;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-primary {
        background: #0E78BE;
        color: white;
        box-shadow: 0 10px 25px rgba(14, 120, 190, 0.15);
    }

    .btn-secondary {
        border: 1.5px solid #d1d5db;
        background: white;
        color: #111827;
    }
}
@media (max-width: 900px) {

    .hero-section h1 {
        font-size: 32px;
        line-height: 1.2;
        font-weight: 700;
    }

    .hero-section h1 .highlight {
        font-weight: 700;
    }

    .hero-section p {
        font-size: 15px;
        margin-top: 14px;
        line-height: 1.6;
    }
}
@media (max-width: 900px) {

    .hero-layout {
        display: flex;
        flex-direction: column;
    }

    .hero-illustration {
        width: 70%;
        margin: 0 auto 24px;
    }
}


/* ==========================================
   ENHANCED HERO DIAGRAM
========================================== */

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

.diagram-wrapper {
    width: 115%;
    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); }
}

/* ==========================================
   MOBILE RESPONSIVE FIX
========================================== */

@media (max-width: 1100px) {
    .diagram-wrapper {
        max-width: 600px;
    }
}

@media (max-width: 900px) {

    .diagram-wrapper {
        max-width: 420px;
        margin: 40px auto 0;
        animation: none; /* remove float for stability on mobile */
    }

    .rotate-slow,
    .rotate-medium,
    .rotate-fast {
        animation-duration: 200s; /* slower for performance */
    }

}
/* ==========================================
   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 */
}