/* ===================================
   CLOUD TOP G — Home Page Styles
   =================================== */

/* ====================================
   HERO
   ==================================== */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero__content {
    flex: 1;
    min-width: 0;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 61px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -1.1px;
    color: var(--black);
    margin-bottom: 20px;
}

.hero__subtitle {
    color: var(--gray-mid);
    font-size: 16px;
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 32px;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero__image {
    flex: 0 0 auto;
    width: 42%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    aspect-ratio: 1;
}

.hero__graphic-3d {
    position: relative;
    width: 100%;
    height: 100%;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(230, 26, 26, 0.6);
    z-index: 10;
}

.orbit-center img {
    width: 60px;
    height: auto;
}

.orbit-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55%;
    height: 55%;
    margin-top: -27.5%;
    margin-left: -27.5%;
    border: 1.5px dashed rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    animation: spin-anti 25s linear infinite;
}

.orbit-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    margin-top: -45%;
    margin-left: -45%;
    border: 1.5px dashed rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    animation: spin-clock 35s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -32px;
    margin-left: -32px;
    background: var(--white);
    padding: 2px;
    overflow: hidden;
}

.orbit-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Individual Icon Adjustments */
.icon-docker img {
    transform: scale(1.35);
}

.icon-github img {
    transform: scale(1.6);
}

.icon-kubernetes img {
    transform: scale(1.6);
}

.icon-aws img {
    transform: scale(1.3);
}

.icon-terraform img {
    transform: scale(1.45);
}

.icon-jenkins img {
    transform: scale(2.1);
    filter: contrast(1.2) brightness(1.1);
}

.icon-ubuntu img {
    transform: scale(2.0);
    filter: contrast(1.1) brightness(1.1);
}

.icon-bash img {
    transform: scale(2.1);
    filter: contrast(1.2) brightness(1.1);
}

.icon-prometheus img {
    transform: scale(2.2);
    filter: contrast(1.2) brightness(1.1);
}

.orbit-item--inner {
    animation: counter-spin-inner 25s linear infinite;
}

.orbit-item--outer {
    animation: counter-spin-outer 35s linear infinite;
}

@keyframes spin-clock {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-anti {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes counter-spin-outer {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes counter-spin-inner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ====================================
   OUR UNIQUE APPROACH
   ==================================== */
.approach {
    padding: var(--section-padding);
}

.approach__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    margin-bottom: 60px;
}

.approach__header .section-title {
    margin-bottom: 20px;
}

.approach__header .section-desc {
    margin: 0 auto;
}

.approach__cards {
    max-width: 1350px;
    /* Increased from var(--max-width) to make it wider */
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.approach-card {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
}

.approach-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.approach-card__icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
    margin-bottom: 72px;
}

.approach-card__icon img {
    width: 24px;
    height: 24px;
}

.approach-card__title {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.3;
}

.approach-card__desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-mid);
}

/* ====================================
   STATS BAR
   ==================================== */
.stats {
    background: var(--dark);
    border-top: 6px solid var(--red);
    padding: 56px 40px;
}

.stats__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.stat {
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: 24px 48px;
    text-align: center;
    flex: 0 1 260px;
    transition: all var(--transition);
    opacity: 0;
    transform: scale(0.9);
}

.stats--visible .stat {
    opacity: 1;
    transform: scale(1);
}

.stats--visible .stat:nth-child(1) {
    transition-delay: 0s;
}

.stats--visible .stat:nth-child(2) {
    transition-delay: 0.15s;
}

.stats--visible .stat:nth-child(3) {
    transition-delay: 0.3s;
}

.stat:hover {
    border-color: var(--red);
    transform: scale(1.03);
}

.stat__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
}

.stat__icon img {
    width: 100%;
    height: 100%;
}

.stat__value {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-height: 48px;
}

.stat__label {
    font-size: 16px;
    color: var(--gray-light);
}

/* ====================================
   PROGRAM
   ==================================== */
.program {
    padding: var(--section-padding);
}

.program__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.program__badge {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.program__label {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 12px;
}

.program__inner>.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.program__content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.program__image {
    flex: 0 0 42%;
    max-width: 480px;
}

.program__image img {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.program__details {
    flex: 1;
}

.program__course-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.1;
}

.program__course-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-mid);
    margin-bottom: 28px;
}

.program__step-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 20px;
}

.program__steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.program-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.program-step__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
}

.program-step__icon img {
    width: 22px;
    height: 22px;
}

.program-step__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.program-step__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-mid);
}

.program__cta {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

/* ====================================
   MASTERY
   ==================================== */
.mastery {
    padding: var(--section-padding);
}

.mastery__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    margin-bottom: 60px;
}

.mastery__header .section-title {
    margin-bottom: 20px;
    font-style: italic;
}

.mastery__header .section-desc {
    margin: 0 auto;
}

.mastery__cards {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.mastery-card {
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.mastery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.mastery-card--one-on-one {
    background: var(--light);
}

.mastery-card--group {
    background: var(--light);
}

.mastery-card__icon-wrap {
    margin-bottom: 20px;
}

.mastery-card__icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
}

.mastery-card__icon img {
    width: 24px;
    height: 24px;
}

.mastery-card__title {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.mastery-card__desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-mid);
    margin-bottom: 24px;
}

.mastery-card__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.mastery-card__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-mid);
}

.mastery-card__list li strong {
    color: var(--black);
    font-weight: 700;
}

.mastery-card__check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 3px;
}

.mastery-card__btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ====================================
   TESTIMONIALS
   ==================================== */
.testimonials {
    background: #F5F5F5;
    padding: 48px 0 80px;
}

.testimonials__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    margin-bottom: 48px;
}

.testimonials__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid rgba(230, 26, 26, 0.15);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.testimonials__badge-icon {
    width: 16px;
    height: 16px;
}

.testimonials__header .section-title {
    margin-bottom: 16px;
    color: var(--black);
}

.testimonials__header .section-desc {
    margin: 0 auto;
    color: var(--gray-mid);
}

/* Testimonials list container */
.testimonials__list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Each testimonial row: avatar + card side by side */
.testimonial-row {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Avatar wrap */
.testimonial-row__avatar-wrap {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.testimonial-row__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Card */
.testimonial-row__card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    flex: 1;
    box-shadow: 8px 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.testimonial-row__card:hover {
    box-shadow: 10px 6px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Meta row: name + badge inline */
.testimonial-row__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimonial-row__name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.testimonial-row__role {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 4px;
}

.testimonial-row__quote {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 10px;
}

.testimonial-row__body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--gray-mid);
}

/* ====================================
   HOME PAGE RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
    .approach__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 0 40px;
    }

    .hero__title {
        font-size: clamp(36px, 6vw, 54px);
    }

    .hero__title br {
        display: none;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__cta {
        justify-content: flex-start;
    }

    .hero__image {
        width: 100%;
        margin: 40px auto 0;
        max-width: 440px;
    }

    /* Tablet Icon Scaling */
    .orbit-inner {
        width: 55%;
        height: 55%;
        margin-top: -27.5%;
        margin-left: -27.5%;
    }

    .orbit-outer {
        width: 82%;
        height: 82%;
        margin-top: -41%;
        margin-left: -41%;
    }

    .orbit-item {
        width: 50px;
        height: 50px;
        margin-top: -25px;
        margin-left: -25px;
    }

    .program__content {
        flex-direction: column;
    }

    .program__image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero__inner {
        padding: 0 24px;
    }

    .hero__subtitle {
        font-size: 15px;
    }

    .hero__cta {
        justify-content: flex-start;
        gap: 16px;
    }

    .hero__image {
        width: 100%;
        margin: 40px 0 0;
        max-width: 360px;
        align-self: center;
    }

    /* Relative Scaling for Mobile */
    .orbit-center {
        width: 74px;
        height: 74px;
    }

    .orbit-center img {
        width: 44px;
    }

    .orbit-inner {
        width: 60%;
        height: 60%;
        margin-top: -30%;
        margin-left: -30%;
    }

    .orbit-outer {
        width: 95%;
        height: 95%;
        margin-top: -47.5%;
        margin-left: -47.5%;
    }

    .orbit-item {
        width: 46px;
        height: 46px;
        margin-top: -23px;
        margin-left: -23px;
        padding: 1px;
    }

    .approach__cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats__inner {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 300px;
    }

    .mastery__cards {
        grid-template-columns: 1fr;
    }

    .mastery-card {
        padding: 28px;
    }

    .testimonial-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-row--right {
        flex-direction: column;
    }

    .testimonial-row--right .testimonial-row__avatar-wrap {
        order: -1;
    }

    .testimonial-row__avatar-wrap {
        width: auto;
        margin-bottom: -20px;
        margin-left: 24px;
        z-index: 3;
    }

    .testimonial-row__avatar {
        width: 80px;
        height: 80px;
    }

    .testimonials__list {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero__inner {
        padding: 0 20px;
    }

    .hero__image {
        width: 100%;
    }

    .approach__header,
    .approach__cards,
    .program__inner,
    .mastery__header,
    .mastery__cards,
    .testimonials__header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .stats {
        padding: 40px 20px;
    }
}