
/* =========================================================
   GMM MEDIATECH AFRICA
   HOMEPAGE SOLAR SYSTEM
   File: assets/css/home_hero.css
   ========================================================= */


/* ---------------------------------------------------------
   1. HERO LAYOUT
   --------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 78% 48%, rgba(15, 91, 68, 0.16), transparent 43%),
        linear-gradient(120deg, #061c17 0%, #082b22 55%, #061d19 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4, 25, 20, 0.25), transparent 65%);
}

.hero-inner {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 35px;
    padding: 65px 0;
}

.hero-copy {
    position: relative;
    z-index: 5;
    max-width: 570px;
}

.hero-copy .eyebrow {
    color: #d9b96b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-copy h1 {
    color: #f7f7f1;
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin: 0 0 24px;
}

.hero-copy h1 span {
    color: #d9b96b;
}

.hero-description {
    max-width: 510px;
    color: rgba(239, 245, 240, 0.78);
    font-size: 16px;
    line-height: 1.85;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}


/* ---------------------------------------------------------
   2. SOLAR SYSTEM STAGE
   --------------------------------------------------------- */

.gmm-universe {
    position: relative;
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    isolation: isolate;
    perspective: 1100px;
    transform-style: preserve-3d;
}

.gmm-universe * {
    box-sizing: border-box;
}

.universe-ambient {
    position: absolute;
    width: 76%;
    height: 76%;
    left: 12%;
    top: 12%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(22, 112, 79, 0.20) 0%,
        rgba(13, 75, 57, 0.10) 42%,
        transparent 72%
    );
    filter: blur(25px);
    z-index: 0;
    pointer-events: none;
}


/* ---------------------------------------------------------
   3. BACKGROUND STARS
   --------------------------------------------------------- */

.universe-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f0d99b;
    box-shadow: 0 0 7px rgba(240, 217, 155, 0.75);
    opacity: 0.65;
    animation: star-twinkle 3.8s ease-in-out infinite alternate;
}

.star-1  { top: 12%; left: 22%; animation-delay: 0s; }
.star-2  { top: 20%; left: 78%; animation-delay: 1.2s; }
.star-3  { top: 32%; left: 10%; animation-delay: 2.1s; }
.star-4  { top: 15%; left: 55%; animation-delay: 0.7s; }
.star-5  { top: 75%; left: 15%; animation-delay: 1.8s; }
.star-6  { top: 85%; left: 69%; animation-delay: 0.5s; }
.star-7  { top: 67%; left: 91%; animation-delay: 2.4s; }
.star-8  { top: 43%; left: 95%; animation-delay: 1.4s; }
.star-9  { top: 91%; left: 43%; animation-delay: 2.8s; }
.star-10 { top: 8%; left: 41%; animation-delay: 1.1s; }
.star-11 { top: 56%; left: 5%; animation-delay: 2s; }
.star-12 { top: 93%; left: 83%; animation-delay: 0.4s; }
.star-13 { top: 37%; left: 85%; animation-delay: 1.7s; }
.star-14 { top: 73%; left: 48%; animation-delay: 2.5s; }
.star-15 { top: 25%; left: 35%; animation-delay: 0.9s; }

@keyframes star-twinkle {
    from {
        opacity: 0.25;
        transform: scale(0.75);
    }

    to {
        opacity: 0.9;
        transform: scale(1.35);
    }
}


/* ---------------------------------------------------------
   4. PLANET ORBIT PATHS
   --------------------------------------------------------- */

.planet-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(204, 169, 91, 0.25);
    border-radius: 50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.planet-orbit .orbit-path {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
}

.orbit-technology {
    width: 49%;
    height: 72%;
    z-index: 4;
    border-color: rgba(211, 178, 105, 0.34);
    animation: technology-orbit 24s linear infinite;
}

.orbit-technology .orbit-path {
    border-top-color: rgba(235, 204, 133, 0.48);
    border-bottom-color: rgba(235, 204, 133, 0.12);
}

.orbit-innovation {
    width: 78%;
    height: 53%;
    z-index: 2;
    border-color: rgba(104, 169, 135, 0.30);
    animation: innovation-orbit 34s linear infinite;
}

.orbit-innovation .orbit-path {
    border-top-color: rgba(112, 181, 142, 0.40);
    border-bottom-color: rgba(112, 181, 142, 0.10);
}

.orbit-solutions {
    width: 91%;
    height: 83%;
    z-index: 3;
    border-color: rgba(201, 163, 87, 0.20);
    animation: solutions-orbit 45s linear infinite;
}

.orbit-solutions .orbit-path {
    border-top-color: rgba(219, 183, 107, 0.32);
    border-bottom-color: rgba(219, 183, 107, 0.08);
}

@keyframes technology-orbit {
    from {
        transform: translate(-50%, -50%) rotateX(66deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(66deg) rotateZ(360deg);
    }
}

@keyframes innovation-orbit {
    from {
        transform: translate(-50%, -50%) rotateX(59deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(59deg) rotateZ(-360deg);
    }
}

@keyframes solutions-orbit {
    from {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg);
    }
}


/* ---------------------------------------------------------
   5. PLANET POSITIONING AND SURFACES
   --------------------------------------------------------- */

.orbiting-body {
    position: absolute;
    left: 50%;
    top: 0;
    display: block;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(-60deg);
    transform-style: preserve-3d;
}

.planet-surface {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transform-style: preserve-3d;
}

.planet-highlight {
    position: absolute;
    width: 58%;
    height: 35%;
    top: 12%;
    left: 13%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(7px);
    transform: rotate(-35deg);
}

.planet-detail {
    position: absolute;
    width: 65%;
    height: 28%;
    right: -12%;
    bottom: 20%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    transform: rotate(-35deg);
}


/* Technology planet */

.technology-planet {
    width: clamp(30px, 5.5vw, 46px);
    height: clamp(30px, 5.5vw, 46px);
    filter: drop-shadow(0 0 12px rgba(36, 167, 111, 0.50));
}

.technology-planet .planet-surface {
    background:
        radial-gradient(circle at 30% 25%, #9bc5a0 0%, transparent 25%),
        radial-gradient(circle at 35% 35%, #287b57 0%, #0d4935 54%, #062c22 100%);
    box-shadow:
        inset -8px -8px 14px rgba(0, 0, 0, 0.50),
        inset 3px 3px 8px rgba(179, 226, 177, 0.30),
        0 0 16px rgba(30, 151, 98, 0.32);
}


/* Innovation planet */

.innovation-planet {
    width: clamp(23px, 4.2vw, 36px);
    height: clamp(23px, 4.2vw, 36px);
    filter: drop-shadow(0 0 12px rgba(223, 184, 100, 0.42));
}

.innovation-planet .planet-surface {
    background:
        radial-gradient(circle at 28% 24%, #fff0bd 0%, transparent 23%),
        radial-gradient(circle at 35% 35%, #d8b86e 0%, #98723b 58%, #503c21 100%);
    box-shadow:
        inset -7px -7px 12px rgba(0, 0, 0, 0.42),
        inset 3px 3px 7px rgba(255, 239, 188, 0.38),
        0 0 15px rgba(213, 176, 103, 0.30);
}


/* Solutions planet */

.solutions-planet {
    width: clamp(34px, 5vw, 42px);
    height: clamp(34px, 5vw, 42px);
    filter: drop-shadow(0 0 12px rgba(69, 139, 149, 0.40));
}

.solutions-planet .planet-surface {
    background:
        radial-gradient(circle at 30% 25%, #9ab8a8 0%, transparent 23%),
        radial-gradient(circle at 35% 35%, #376e64 0%, #16443c 58%, #092923 100%);
    box-shadow:
        inset -8px -8px 14px rgba(0, 0, 0, 0.50),
        inset 3px 3px 8px rgba(185, 223, 194, 0.25),
        0 0 15px rgba(57, 140, 129, 0.26);
}


/* ---------------------------------------------------------
   6. SATELLITE
   --------------------------------------------------------- */

.satellite-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88%;
    height: 64%;
    z-index: 5;
    border: 1px solid rgba(206, 183, 128, 0.12);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: satellite-orbit-motion 39s linear infinite;
    pointer-events: none;
}

@keyframes satellite-orbit-motion {
    from {
        transform: translate(-50%, -50%) rotateX(62deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(62deg) rotateZ(-360deg);
    }
}

.satellite-object {
    position: absolute;
    left: 50%;
    top: 0;
    width: 48px;
    height: 24px;
    transform: translate(-50%, -50%) rotateX(-62deg);
    transform-style: preserve-3d;
}

.satellite-body {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(145deg, #f4dda0, #94713b);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 9px rgba(232, 194, 113, 0.65);
}

.satellite-panel {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 19px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(226, 198, 126, 0.85) 0,
            rgba(226, 198, 126, 0.85) 2px,
            rgba(44, 79, 67, 0.95) 2px,
            rgba(44, 79, 67, 0.95) 4px
        );
    border: 1px solid rgba(222, 192, 122, 0.75);
    transform: translateY(-50%);
}

.satellite-panel-left {
    right: 100%;
}

.satellite-panel-right {
    left: 100%;
}

.satellite-antenna {
    position: absolute;
    left: 50%;
    top: -5px;
    width: 2px;
    height: 8px;
    background: #e3c27b;
    transform: translateX(-50%);
}


/* ---------------------------------------------------------
   7. ORBITING LIGHT PARTICLES
   --------------------------------------------------------- */

.particle-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.particle-orbit-one {
    width: 69%;
    height: 86%;
    z-index: 6;
    animation: particle-orbit-one 19s linear infinite;
}

.particle-orbit-two {
    width: 96%;
    height: 58%;
    z-index: 6;
    animation: particle-orbit-two 27s linear infinite;
}

.particle-orbit-three {
    width: 57%;
    height: 95%;
    z-index: 6;
    animation: particle-orbit-three 33s linear infinite;
}

@keyframes particle-orbit-one {
    from {
        transform: translate(-50%, -50%) rotateX(65deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(65deg) rotateZ(360deg);
    }
}

@keyframes particle-orbit-two {
    from {
        transform: translate(-50%, -50%) rotateX(58deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-360deg);
    }
}

@keyframes particle-orbit-three {
    from {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg);
    }
}

.space-particle {
    position: absolute;
    left: 50%;
    top: 0;
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f2d58e;
    box-shadow:
        0 0 5px #f2d58e,
        0 0 12px rgba(232, 192, 104, 0.85),
        0 0 20px rgba(232, 192, 104, 0.35);
    transform: translate(-50%, -50%);
}

.particle-orbit-two .space-particle {
    width: 4px;
    height: 4px;
    background: #a4d2ad;
    box-shadow:
        0 0 7px #a4d2ad,
        0 0 15px rgba(111, 195, 140, 0.65);
}

.particle-orbit-three .space-particle {
    width: 3px;
    height: 3px;
}


/* ---------------------------------------------------------
   8. CENTRAL GMM SUN
   --------------------------------------------------------- */

.gmm-sun {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(165px, 28vw, 220px);
    aspect-ratio: 1 / 1;
    z-index: 10;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.sun-atmosphere {
    position: absolute;
    inset: -23%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(208, 171, 91, 0.18) 0%,
        rgba(24, 124, 83, 0.15) 38%,
        rgba(16, 93, 65, 0.05) 59%,
        transparent 73%
    );
    filter: blur(15px);
    pointer-events: none;
}

.sun-body {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 25%, #267b57 0%, #0d4936 45%, #052a21 100%);
    border: 2px solid rgba(228, 194, 119, 0.90);
    box-shadow:
        0 0 0 5px rgba(208, 174, 103, 0.10),
        0 0 0 11px rgba(208, 174, 103, 0.045),
        inset 0 0 22px rgba(0, 0, 0, 0.45),
        inset 0 0 12px rgba(219, 188, 115, 0.15),
        0 0 28px rgba(207, 171, 91, 0.25),
        0 0 65px rgba(27, 132, 87, 0.23);
    transform-style: preserve-3d;
    animation: sun-heartbeat-normal 2.4s ease-in-out infinite;
}

.sun-rim {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(236, 211, 151, 0.44);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.sun-reflection {
    position: absolute;
    width: 58%;
    height: 19%;
    top: 11%;
    left: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.11);
    filter: blur(13px);
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 4;
}


/* ---------------------------------------------------------
   9. THREE-FACE ROTATING BRAND COIN
   --------------------------------------------------------- */

.gmm-coin {
    position: relative;
    width: 76%;
    height: 76%;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: gmm-coin-rotation 18s ease-in-out infinite;
}

.gmm-coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid rgba(235, 204, 135, 0.70);
    background:
        radial-gradient(circle at 34% 27%, rgba(57, 130, 91, 0.95), transparent 42%),
        linear-gradient(145deg, #15543e, #073528 75%, #04271f);
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.32),
        inset 0 0 8px rgba(230, 199, 132, 0.18);
}

.coin-face-one {
    transform: rotateY(0deg) translateZ(18px);
}

.coin-face-two {
    transform: rotateY(120deg) translateZ(18px);
}

.coin-face-three {
    transform: rotateY(240deg) translateZ(18px);
}

.coin-brand {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #f2d58e;
    text-align: center;
    line-height: 1.1;
    overflow-wrap: normal;
}

.coin-brand strong {
    display: block;
    max-width: 100%;
    color: #f3d998;
    font-size: clamp(19px, 3.5vw, 29px);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.coin-face-two .coin-brand strong {
    font-size: clamp(12px, 2vw, 17px);
    letter-spacing: 1.2px;
}

.coin-brand span {
    color: #ffffff;
    font-size: clamp(10px, 1.6vw, 13px);
    font-weight: 700;
    letter-spacing: 4px;
}

.coin-slogan {
    gap: 7px;
}

.coin-face-three .coin-brand strong {
    font-size: clamp(10px, 1.7vw, 14px);
    letter-spacing: 1.5px;
}

.coin-face-three .coin-brand strong:nth-child(2) {
    color: #ffffff;
}

@keyframes gmm-coin-rotation {
    0%, 27% {
        transform: rotateY(0deg);
    }

    33%, 60% {
        transform: rotateY(-120deg);
    }

    66%, 93% {
        transform: rotateY(-240deg);
    }

    100% {
        transform: rotateY(-360deg);
    }
}


/* ---------------------------------------------------------
   10. RANDOM HEARTBEAT MODES
   JavaScript can change data-heartbeat-mode.
   --------------------------------------------------------- */

.gmm-sun[data-heartbeat-mode="normal"] .sun-body {
    animation: sun-heartbeat-normal 2.4s ease-in-out infinite;
}

.gmm-sun[data-heartbeat-mode="fast"] .sun-body {
    animation: sun-heartbeat-fast 1.25s ease-in-out infinite;
}

.gmm-sun[data-heartbeat-mode="slow"] .sun-body {
    animation: sun-heartbeat-slow 3.4s ease-in-out infinite;
}

@keyframes sun-heartbeat-normal {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 5px rgba(208, 174, 103, 0.10),
            0 0 0 11px rgba(208, 174, 103, 0.045),
            inset 0 0 22px rgba(0, 0, 0, 0.45),
            0 0 28px rgba(207, 171, 91, 0.25),
            0 0 65px rgba(27, 132, 87, 0.23);
    }

    12% {
        transform: scale(1.035);
    }

    24% {
        transform: scale(1);
    }

    34% {
        transform: scale(1.018);
    }

    48% {
        transform: scale(1);
    }
}

@keyframes sun-heartbeat-fast {
    0%, 100% {
        transform: scale(1);
    }

    13% {
        transform: scale(1.035);
    }

    25% {
        transform: scale(1);
    }

    38% {
        transform: scale(1.02);
    }

    50% {
        transform: scale(1);
    }
}

@keyframes sun-heartbeat-slow {
    0%, 100% {
        transform: scale(1);
    }

    16% {
        transform: scale(1.035);
    }

    32% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.018);
    }

    60% {
        transform: scale(1);
    }
}


/* ---------------------------------------------------------
   11. RESPONSIVE TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {
    .hero-inner {
        width: min(920px, calc(100% - 48px));
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 15px;
    }

    .gmm-universe {
        max-width: 540px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 5vw, 50px);
    }
}


/* ---------------------------------------------------------
   12. RESPONSIVE MOBILE
   --------------------------------------------------------- */

@media (max-width: 760px) {
    .hero {
        min-height: auto;
    }

    .hero-inner {
        width: min(560px, calc(100% - 36px));
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 55px 0 45px;
    }

    .hero-copy {
        max-width: 100%;
        text-align: center;
    }

    .hero-copy .eyebrow {
        margin-bottom: 16px;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 8vw, 48px);
        letter-spacing: -1px;
        margin-bottom: 18px;
    }

    .hero-description {
        margin: 0 auto 25px;
        font-size: 15px;
    }

    .hero-actions {
        justify-content: center;
    }

    .gmm-universe {
        width: min(100%, 510px);
        max-width: 510px;
    }

    .gmm-sun {
        width: clamp(155px, 36vw, 195px);
    }
}


/* ---------------------------------------------------------
   13. SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 420px) {
    .hero-inner {
        width: calc(100% - 28px);
        padding-top: 42px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.75;
    }

    .gmm-universe {
        width: 100%;
    }

    .gmm-sun {
        width: 155px;
    }

    .gmm-coin {
        width: 76%;
        height: 76%;
    }

    .coin-face-one,
    .coin-face-two,
    .coin-face-three {
        transform-style: preserve-3d;
    }

    .coin-face-one {
        transform: rotateY(0deg) translateZ(13px);
    }

    .coin-face-two {
        transform: rotateY(120deg) translateZ(13px);
    }

    .coin-face-three {
        transform: rotateY(240deg) translateZ(13px);
    }

    .hero-actions {
        gap: 10px;
    }
}


/* ---------------------------------------------------------
   14. REDUCED MOTION ACCESSIBILITY
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .star,
    .planet-orbit,
    .satellite-orbit,
    .particle-orbit,
    .gmm-coin,
    .sun-body {
        animation: none !important;
    }

    .gmm-coin {
        transform: rotateY(0deg);
    }

    .sun-body {
        transform: none;
    }
}
