/* =============================
   GLOBAL
============================= */
body {
    margin: 0;
    min-height: 100%;
    background: #000;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;

    /* SPACE BACKGROUND */
    background:
        radial-gradient(
            1px 1px at 10% 20%,
            rgba(255,255,255,0.9),
            transparent
        ),
        radial-gradient(
            1px 1px at 30% 70%,
            rgba(255,255,255,0.7),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 55% 35%,
            rgba(255,255,255,0.8),
            transparent
        ),
        radial-gradient(
            1px 1px at 75% 80%,
            rgba(255,255,255,0.8),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 90% 15%,
            rgba(255,255,255,0.9),
            transparent
        ),
        #000;

    background-size:
        250px 250px,
        320px 320px,
        200px 200px,
        280px 280px,
        350px 350px,
        auto;
}



/* =============================
   HOME BUTTON
============================= */
.home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: #111;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease;
}

.home-btn:hover {
    background: #333;
}
/* =============================
   SPACE INTRO POPUP
============================= */
/* =============================
   PROFESSIONAL SPACE INTRO
============================= */

.drag-guide {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 5, 12, 0.68);

    /* subtle glass backdrop */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    z-index: 10000;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.drag-guide.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* =============================
   GLASS CARD
============================= */

.drag-guide-box {
    position: relative;

    width: min(430px, 100%);
    padding: 38px 36px 30px;

    box-sizing: border-box;

    text-align: left;

    background:
        linear-gradient(
            145deg,
            rgba(22, 28, 42, 0.92),
            rgba(8, 12, 22, 0.94)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 18px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.025);

    overflow: hidden;

    animation: guideAppear 0.4s cubic-bezier(.22, 1, .36, 1);
}


/* subtle top highlight */

.drag-guide-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;
    right: 12%;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.28),
        transparent
    );
}


/* =============================
   ICON
============================= */

.guide-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 10px;

    color: #dcefff;

    font-size: 17px;

    background: rgba(0, 198, 255, 0.08);

    border: 1px solid rgba(0, 198, 255, 0.18);

    box-shadow:
        inset 0 0 15px rgba(0, 198, 255, 0.04);
}


/* =============================
   EYEBROW
============================= */

.guide-eyebrow {
    margin-bottom: 9px;

    color: #6f8299;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;
}


/* =============================
   TITLE
============================= */

.drag-guide-box h2 {
    margin: 0 0 12px;

    color: #f4f8fc;

    font-size: 25px;
    line-height: 1.25;

    font-weight: 600;

    letter-spacing: -0.4px;
}


/* =============================
   DESCRIPTION
============================= */

.drag-guide-box p {
    margin: 0;

    max-width: 360px;

    color: #8997a8;

    font-size: 14px;
    line-height: 1.7;
}


/* =============================
   DRAG HINT
============================= */

.drag-hint {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 25px 0;

    padding: 13px 14px;

    color: #b8c7d6;

    font-size: 13px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 10px;
}


/* small interaction icon */

.drag-icon {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #70d8f5;

    font-size: 15px;

    background: rgba(0, 198, 255, 0.08);

    border-radius: 7px;
}


/* =============================
   BUTTON
============================= */

#closeDragGuide {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 18px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;

    background: #e8f1f7;

    color: #071018;

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#closeDragGuide span {
    font-size: 16px;

    transition: transform 0.2s ease;
}

#closeDragGuide:hover {
    background: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);
}

#closeDragGuide:hover span {
    transform: translateX(3px);
}

#closeDragGuide:active {
    transform: translateY(0);
}


/* =============================
   FOOTER
============================= */

.guide-footer {
    margin-top: 18px;

    color: #596777;

    font-size: 11px;

    text-align: center;
}


/* =============================
   ANIMATION
============================= */

@keyframes guideAppear {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =============================
   MOBILE
============================= */

@media (max-width: 500px) {

    .drag-guide-box {
        padding: 30px 24px 24px;

        border-radius: 16px;
    }

    .drag-guide-box h2 {
        font-size: 22px;
    }

    .drag-guide-box p {
        font-size: 13px;
    }

    .guide-icon {
        margin-bottom: 18px;
    }

}

/* =============================
   WRAPPER
============================= */
.skills-wrapper {
    position: relative;
    min-height: 100vh;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* =============================
   STARS BACKGROUND
============================= */
.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.stars-back {
    background: radial-gradient(1px 1px at 20% 30%, #fff, transparent);
    background-size: 300px 300px;
    opacity: 0.3;
    animation: drift 160s linear infinite;
}

.stars-mid {
    background: radial-gradient(1.5px 1.5px at 50% 50%, #fff, transparent);
    background-size: 220px 220px;
    opacity: 0.5;
    animation: drift 120s linear infinite;
}

.stars-front {
    background: radial-gradient(2px 2px at 70% 40%, #fff, transparent);
    background-size: 180px 180px;
    opacity: 0.7;
    animation: drift 80s linear infinite;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-800px); }
}

/* =============================
   LAYOUT
============================= */
.skills-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    z-index: 2;
}

.skills-orbit {
    position: relative;
    width: 600px;
    height: 600px;
}

/* =============================
   SKILL BALLS
============================= */

.skill-ball {
    position: absolute;
    border-radius: 50%;
    background: #0b0b0b;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    /* Important for mobile dragging */
    touch-action: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;

    z-index: 5;
}

/* =============================
   PLANET SIZES
============================= */

.skill-ball.big {
    width: 72px;
    height: 72px;
}

.skill-ball.small {
    width: 52px;
    height: 52px;
}

/* =============================
   SUN
============================= */

.skill-ball.sun {
    width: 130px;
    height: 130px;

    background:
        radial-gradient(
            circle at 35% 35%,
            #fff6a0,
            #ffd84d 35%,
            #ff9800 70%,
            #ff6500
        );

    box-shadow:
        0 0 30px rgba(255, 180, 0, 0.8),
        0 0 60px rgba(255, 140, 0, 0.5);

    cursor: default;
    z-index: 10;
}

/* =============================
   PLANET GLOW
============================= */

.skill-ball.big,
.skill-ball.small {
    box-shadow:
        0 0 10px rgba(0, 198, 255, 0.25),
        inset 0 0 12px rgba(255, 255, 255, 0.05);
}

/* =============================
   HOVER
============================= */

.skill-ball.big:hover,
.skill-ball.small:hover {
    transform: scale(1.15);

    box-shadow:
        0 0 15px #00c6ff,
        0 0 35px rgba(0, 198, 255, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.1);

    filter: brightness(1.2);

    z-index: 100;
}

/* =============================
   DRAGGING PLANET
============================= */

.skill-ball.dragging {
    cursor: grabbing;

    transform: scale(1.2);

    box-shadow:
        0 0 20px #00eaff,
        0 0 45px rgba(0, 234, 255, 0.8),
        0 0 80px rgba(0, 198, 255, 0.4);

    filter: brightness(1.3);

    z-index: 1000;
}

/* =============================
   PLANET IMAGE
============================= */

.skill-ball img {
    width: 60%;
    height: 60%;

    object-fit: contain;

    pointer-events: none;
    user-select: none;

    -webkit-user-drag: none;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.skill-ball:hover img {
    filter: drop-shadow(0 0 5px #ffffff);
}

/* =============================
   DRAGGING IMAGE
============================= */

.skill-ball.dragging img {
    filter:
        drop-shadow(0 0 8px #00eaff)
        drop-shadow(0 0 15px #00c6ff);
}

/* =============================
   SUN IMAGE
============================= */

.skill-ball.sun img {
    width: 70%;
    height: 70%;
}

/* =============================
   ORBIT
============================= */

.skills-orbit {
    position: relative;

    width: 600px;
    height: 600px;

    user-select: none;
    -webkit-user-select: none;
}



/* =============================
   MOBILE
============================= */

@media (max-width: 900px) {

    .skills-orbit {
        width: 420px;
        height: 420px;
    }

    .skills-orbit::before {
        width: 250px;
        height: 250px;
    }

    .skills-orbit::after {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 500px) {

    .skills-orbit {
        width: 320px;
        height: 320px;
    }

    .skills-orbit::before {
        width: 190px;
        height: 190px;
    }

    .skills-orbit::after {
        width: 270px;
        height: 270px;
    }

    .skill-ball.sun {
        width: 90px;
        height: 90px;
    }

    .skill-ball.big {
        width: 56px;
        height: 56px;
    }

    .skill-ball.small {
        width: 42px;
        height: 42px;
    }
}

/* =============================
   RIGHT SKILL LIST
============================= */
.skills-list {
    min-width: 260px;
    text-align: left;
}

.skill-item {
    margin-bottom: 18px;
}

.skill-item h4 {
    margin: 0 0 6px;
    font-weight: 500;
}

/* bar background */
.skill-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* bar fill */
.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd695, #ffa91f);
}

/* =============================
   TOOLTIP
============================= */
.skill-tooltip {
    position: fixed;
    padding: 10px 14px;
    background: rgba(15,15,25,0.95);
    border-radius: 10px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 900px) {

    .skills-container {
        flex-direction: column;
        gap: 40px;
    }

    .skills-orbit {
        width: 420px;
        height: 420px;
    }
}

@media (max-width: 500px) {

    .skills-orbit {
        width: 320px;
        height: 320px;
    }

    .skill-ball.sun {
        width: 90px;
        height: 90px;
    }

    .skill-ball.big {
        width: 56px;
        height: 56px;
    }

    .skill-ball.small {
        width: 42px;
        height: 42px;
    }
}
