/* =========================================================
   SKILLS SECTION
========================================================= */

.skills {
    position: relative;
    width: 100%;
    min-height: 100vh;

    padding: 120px 4% 100px;

    box-sizing: border-box;

    overflow: hidden;

    color: #ffffff;
}


/* =========================================================
   MAIN SKILLS LAYOUT
========================================================= */

.skills-layout {
    position: relative;

    width: min(1500px, 96%);
    min-height: 820px;

    margin: 30px auto 0;

    padding: 45px;

    display: flex;
    align-items: center;

    gap: 65px;

    box-sizing: border-box;

    border-radius: 35px;

    background: rgba(7, 18, 42, 0.38);

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

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.25),
        inset 0 0 35px rgba(255, 255, 255, 0.02);

    overflow: hidden;
}


/* =========================================================
   GRADIENT BORDER
========================================================= */

.skills-layout::before {
    content: "";

    position: absolute;

    inset: 0;

    padding: 1px;

    border-radius: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 191, 255, 0.55),
            transparent 30%,
            transparent 70%,
            rgba(123, 77, 255, 0.45)
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   LEFT PANEL
========================================================= */

.left-panel {
    position: relative;

    z-index: 50;

    width: 280px;
    min-width: 280px;

    padding: 40px 28px;

    box-sizing: border-box;

    border-radius: 25px;

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

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

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.20);
}


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

.tech-title {
    margin: 0 0 22px;

    text-align: center;

    font-size: 3rem;

    line-height: 1.05;

    font-weight: 800;

    color: #ffffff;

    letter-spacing: -1px;

    text-shadow:
        0 0 10px rgba(0, 191, 255, 0.85),
        0 0 25px rgba(0, 191, 255, 0.40);
}


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

.tech-desc {
    width: 100%;

    max-width: 225px;

    margin: 0 auto 32px;

    text-align: center;

    color: rgba(255, 255, 255, 0.76);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   FILTERS
========================================================= */

.filters {
    display: flex;

    flex-direction: column;

    gap: 11px;

    width: 100%;
}


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

.filter-btn {
    width: 100%;

    min-height: 42px;

    padding: 11px 15px;

    box-sizing: border-box;

    border-radius: 50px;

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

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

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.filter-btn:hover {
    transform: translateY(-2px);

    background:
        rgba(0, 191, 255, 0.12);

    border-color:
        rgba(0, 191, 255, 0.45);
}


.filter-btn.active {
    color: #001018;

    background: #00cfff;

    border-color: #00cfff;

    box-shadow:
        0 0 18px rgba(0, 207, 255, 0.75),
        0 0 38px rgba(0, 207, 255, 0.20);
}


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

.orbit-container {
    position: relative;

    flex: 1;

    width: 850px;
    height: 850px;

    min-width: 0;

    margin-left: auto;

    overflow: visible;
}


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

   Supports both:
   orbit1
   orbit2
   orbit3
   orbit4

   and:
   orbit-1
   orbit-2
   orbit-3
   orbit-4
========================================================= */

.orbit {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    border:
        1px dashed rgba(0, 191, 255, 0.18);

    pointer-events: none;

    z-index: 1;
}


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

.orbit1,
.orbit-1 {
    width: 210px;
    height: 210px;
}


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

.orbit2,
.orbit-2 {
    width: 350px;
    height: 350px;
}


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

.orbit3,
.orbit-3 {
    width: 500px;
    height: 500px;
}


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

.orbit4,
.orbit-4 {
    width: 650px;
    height: 650px;
}


/* =========================================================
   CENTER GLOW
========================================================= */

.orbit-container::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 170px;
    height: 170px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 191, 255, 0.14),
            transparent 70%
        );

    filter: blur(18px);

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   SKILL NODE

   IMPORTANT:
   JavaScript controls:

   --angle
   --radius

   DO NOT create individual positioning rules for:
   .html
   .css
   .react
   .java
   .mongodb
   etc.
========================================================= */

.node {
    --angle: 0deg;
    --radius: 100px;

    position: absolute;

    top: 50%;
    left: 50%;

    width: 84px;
    height: 84px;

    padding: 9px;

    box-sizing: border-box;

    display: flex;

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

    border-radius: 50%;

    text-align: center;

    /* =====================================================
       TEXT
    ===================================================== */

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: 0.15px;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.7);

    word-break: normal;

    overflow-wrap: anywhere;


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

    background:
        linear-gradient(
            145deg,
            rgba(0, 191, 255, 0.14),
            rgba(255, 255, 255, 0.045)
        );

    border:
        1.5px solid rgba(0, 207, 255, 0.85);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);


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

    box-shadow:
        0 0 10px rgba(0, 191, 255, 0.55),
        0 0 22px rgba(0, 191, 255, 0.20);


    /* =====================================================
       POSITION

       JavaScript controls angle and radius.
    ===================================================== */

    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--radius) * -1))
        rotate(calc(var(--angle) * -1));


    /* =====================================================
       TRANSITION
    ===================================================== */

    transition:
        transform 0.6s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        text-shadow 0.3s ease;

    z-index: 10;
}


/* =========================================================
   SKILL NODE HOVER
========================================================= */

.node:hover {
    z-index: 100;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(0, 207, 255, 0.32),
            rgba(255, 255, 255, 0.10)
        );

    border-color:
        #00e1ff;

    box-shadow:
        0 0 15px rgba(0, 207, 255, 0.95),
        0 0 35px rgba(0, 207, 255, 0.55),
        0 0 60px rgba(0, 207, 255, 0.20);

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9);

    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--radius) * -1))
        rotate(calc(var(--angle) * -1))
        scale(1.12);
}


/* =========================================================
   LONG SKILL NAMES
========================================================= */

.node.ai {
    font-size: 12px;
}


.node.animation {
    font-size: 12px;
}


/* =========================================================
   CATEGORY THEMES
========================================================= */


/* FRONTEND */

.frontend-theme .frontend {
    border-color: #3b82f6;

    box-shadow:
        0 0 15px rgba(59, 130, 246, 0.75);
}


/* BACKEND */

.backend-theme .backend {
    border-color: #22c55e;

    box-shadow:
        0 0 15px rgba(34, 197, 94, 0.75);
}


/* DATABASE */

.database-theme .database {
    border-color: #a855f7;

    box-shadow:
        0 0 15px rgba(168, 85, 247, 0.75);
}


/* AI */

.ai-theme .ai {
    border-color: #ec4899;

    box-shadow:
        0 0 15px rgba(236, 72, 153, 0.80);
}


/* LANGUAGES */

.languages-theme .languages {
    border-color: #06b6d4;

    box-shadow:
        0 0 15px rgba(6, 182, 212, 0.80);
}


/* TOOLS */

.tools-theme .tools {
    border-color: #f97316;

    box-shadow:
        0 0 15px rgba(249, 115, 22, 0.80);
}


/* ANIMATION */

.animation-theme .animation {
    border-color: #8b5cf6;

    box-shadow:
        0 0 15px rgba(139, 92, 246, 0.80);
}


/* =========================================================
   HIDDEN NODES
========================================================= */

.node.hide {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translate(-50%, -50%)
        scale(0.3);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


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

.mobile-skills {
    display: none;
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1350px) {

    .skills-layout {
        width: 96%;

        gap: 40px;

        padding: 40px;
    }


    .orbit-container {
        width: 760px;
        height: 760px;
    }


    .orbit1,
    .orbit-1 {
        width: 190px;
        height: 190px;
    }


    .orbit2,
    .orbit-2 {
        width: 320px;
        height: 320px;
    }


    .orbit3,
    .orbit-3 {
        width: 450px;
        height: 450px;
    }


    .orbit4,
    .orbit-4 {
        width: 590px;
        height: 590px;
    }


    .node {
        width: 80px;
        height: 80px;

        font-size: 12px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1150px) {

    .skills {
        padding:
            100px 25px 80px;
    }


    .skills-layout {
        flex-direction: column;

        width: 100%;

        min-height: auto;

        padding:
            35px 25px;

        gap: 30px;
    }


    .left-panel {
        width:
            min(100%, 500px);

        min-width: 0;

        margin: 0 auto;
    }


    .filters {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }


    .orbit-container {
        width: 850px;
        height: 850px;

        flex: none;

        margin:
            -60px auto
            -60px;
    }
}


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

@media (max-width: 768px) {

    .skills {
        padding:
            80px 15px 60px;
    }


    .skills-layout {
        width: 100%;

        padding:
            25px 15px;

        border-radius: 28px;

        gap: 25px;
    }


    .left-panel {
        width: 100%;

        padding:
            30px 20px;

        border-radius: 22px;
    }


    .tech-title {
        font-size:
            2.4rem;
    }


    .tech-desc {
        font-size:
            13px;
    }


    /* Hide desktop orbit */

    .orbit-container {
        display: none;
    }


    /* =====================================================
       MOBILE SKILL CARDS
    ===================================================== */

    .mobile-skills {
        width: 100%;

        display: grid;

        grid-template-columns:
            1fr;

        gap: 15px;
    }


    .skill-category {
        padding: 22px;

        border-radius: 20px;

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

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

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        transition:
            transform 0.3s ease,
            border-color 0.3s ease,
            background 0.3s ease;
    }


    .skill-category:hover {
        transform:
            translateY(-4px);

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

        border-color:
            rgba(0, 191, 255, 0.35);
    }


    .skill-category h3 {
        margin:
            0 0 15px;

        color:
            #00cfff;

        font-size:
            18px;

        font-weight:
            700;
    }


    .skill-category ul {
        margin: 0;

        padding: 0;

        list-style: none;
    }


    .skill-category li {
        padding:
            9px 0;

        color:
            rgba(255, 255, 255, 0.82);

        font-size:
            14px;

        font-weight:
            500;

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


    .skill-category li:last-child {
        border-bottom: none;
    }
}


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

@media (max-width: 480px) {

    .skills {
        padding:
            70px 10px 50px;
    }


    .skills-layout {
        padding:
            20px 12px;

        border-radius:
            24px;
    }


    .left-panel {
        padding:
            25px 15px;
    }


    .tech-title {
        font-size:
            2rem;
    }


    .tech-desc {
        font-size:
            12px;
    }


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


    .filter-btn {
        min-height:
            40px;

        padding:
            9px 8px;

        font-size:
            12px;
    }


    .skill-category {
        padding:
            18px;
    }


    .skill-category h3 {
        font-size:
            17px;
    }
}


/* =========================================================
   EXTRA READABILITY
========================================================= */

/*
   These prevent old CSS rules from changing the
   individual skill positions.

   JavaScript is the ONLY thing that should control
   --angle and --radius.
*/

.node.html,
.node.css,
.node.javascript,
.node.typescript,
.node.react,
.node.tailwind,
.node.vite,
.node.nodejs,
.node.express,
.node.rest,
.node.mongodb,
.node.mongodb-atlas,
.node.mysql,
.node.postgresql,
.node.prisma,
.node.gemini,
.node.ai-llm,
.node.whisper,
.node.tts,
.node.java,
.node.python,
.node.git,
.node.github,
.node.postman,
.node.docker,
.node.docker-compose,
.node.vscode,
.node.framer,
.node.gsap,
.node.lenis,
.node.three,
.node.react-three-fiber,
.node.react-three-drei {
    position: absolute;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .node,
    .filter-btn,
    .skill-category {
        transition: none;
    }
}