/* Prevent horizontal scroll globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Profile image responsive & circular */
.image-container {
    position: relative;
    width: clamp(120px, 35vw, 180px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    z-index: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ============================= */
/* Responsive Orbit Variables    */
/* ============================= */

:root {
    --image-size: clamp(120px, 35vw, 180px);

    --orbit-gap-inner: clamp(20px, 6vw, 40px);
    --orbit-gap-outer: clamp(35px, 8vw, 60px);

    --inner-radius: calc(var(--image-size) / 2 + var(--orbit-gap-inner));
    --outer-radius: calc(var(--image-size) / 2 + var(--orbit-gap-outer));
}

/* Orbit container */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

/* ============================= */
/* Orbit rings proportional      */
/* ============================= */

.orbit-inner-ring {
    width: calc(var(--inner-radius) * 2);
    height: calc(var(--inner-radius) * 2);
}

.orbit-outer-ring {
    width: calc(var(--outer-radius) * 2);
    height: calc(var(--outer-radius) * 2);
}

/* ============================= */
/* Improved Icon Scaling         */
/* ============================= */

.orbiting-icon {
    width: clamp(28px, calc(var(--outer-radius) * 0.18), 50px);
    height: clamp(28px, calc(var(--outer-radius) * 0.18), 50px);
    margin: calc(-0.5 * clamp(28px, calc(var(--outer-radius) * 0.18), 50px));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbiting-icon img {
    width: 50%;
    height: 50%;
}

/* ============================= */
/* Orbit Animations              */
/* ============================= */

@keyframes orbitInner1 {
    from { transform: rotate(0deg) translateX(var(--inner-radius)) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(var(--inner-radius)) rotate(-360deg); }
}

@keyframes orbitOuter1 {
    from { transform: rotate(0deg) translateX(var(--outer-radius)) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(var(--outer-radius)) rotate(-360deg); }
}

/* ============================= */
/* Section Text Scaling          */
/* ============================= */

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.section-subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
    padding: 0 1rem;
    text-align: center;
}

/* ============================= */
/* Tablet & Below Adjustments    */
/* ============================= */

@media (max-width: 768px) {

    /* Hide heavy floating effects */
    .floating-shape,
    .floating-dot,
    .floating-medium,
    .star {
        display: none !important;
    }

    /* Make orbit rings fit screen width */
    .orbit-inner-ring {
        width: 65vw;
        height: 65vw;
    }

    .orbit-outer-ring {
        width: 85vw;
        height: 85vw;
    }

    /* Keep orbit container from causing overflow */
    .orbit-container {
        max-width: 100vw;
        overflow: hidden;
    }
}

/* ============================= */
/* Extra Small Devices           */
/* ============================= */

@media (max-width: 480px) {

    :root {
        --orbit-gap-inner: 25px;
        --orbit-gap-outer: 40px;
    }

    .orbiting-icon {
        width: 32px;
        height: 32px;
        margin: -16px;
    }
}

/* ============================= */
/* Accessibility: Reduce motion  */
/* ============================= */

@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .floating-dot,
    .floating-medium,
    .star {
        animation: none !important;
    }
}