/* ==========================================
   SKILLS SECTION - SOLAR SYSTEM
   ========================================== */

.skills-section {
    position: relative;
    padding: 6rem 0;
    background: var(--color-bg-primary);
    overflow: hidden;
}

.skills-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.skills-bg-effects .grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.skills-bg-effects .glow-effect {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
}

.skills-bg-effects .glow-1 {
    top: 25%;
    left: 25%;
    background: rgba(0, 255, 196, 0.05);
}

.skills-bg-effects .glow-2 {
    bottom: 25%;
    right: 25%;
    background: rgba(4, 120, 87, 0.05);
}

/* Solar System Container */
.solar-system-container {
    position: relative;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .solar-system-container {
        min-height: 550px;
    }
}

@media (max-width: 768px) {
    .solar-system-container {
        min-height: 450px;
    }
}

/* Space Background */
.space-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 196, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Stars */
.star {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Floating Particles */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 196, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 196, 0.6);
    animation: floatAround var(--float-duration, 8s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    pointer-events: none;
}

/* Orbit Paths */
.orbit-path {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 196, 0.12);
    pointer-events: none;
}

.orbit-path-1 { width: 240px; height: 240px; }
.orbit-path-2 { width: 360px; height: 360px; border-style: dashed; }
.orbit-path-3 { width: 480px; height: 480px; border-color: rgba(0, 255, 196, 0.08); }
.orbit-path-4 { width: 580px; height: 580px; border-style: dotted; border-color: rgba(0, 255, 196, 0.06); }

@media (max-width: 768px) {
    .orbit-path-1 { width: 180px; height: 180px; }
    .orbit-path-2 { width: 270px; height: 270px; }
    .orbit-path-3 { width: 360px; height: 360px; }
    .orbit-path-4 { width: 440px; height: 440px; }
}

/* Orbit Animation Containers */
.orbit {
    position: absolute;
    border-radius: 50%;
    animation: orbitRotate var(--orbit-duration, 20s) linear infinite;
    pointer-events: none;
}

.orbit-1 { width: 240px; height: 240px; --orbit-duration: 25s; }
.orbit-2 { width: 360px; height: 360px; --orbit-duration: 35s; animation-direction: reverse; }
.orbit-3 { width: 480px; height: 480px; --orbit-duration: 45s; }
.orbit-4 { width: 580px; height: 580px; --orbit-duration: 55s; animation-direction: reverse; }

@media (max-width: 768px) {
    .orbit-1 { width: 180px; height: 180px; }
    .orbit-2 { width: 270px; height: 270px; }
    .orbit-3 { width: 360px; height: 360px; }
    .orbit-4 { width: 440px; height: 440px; }
}

/* Central Core - "ME" */
.core-planet {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, 
        var(--color-brand) 0%, 
        var(--color-brand-dark) 40%, 
        var(--color-brand-darker) 70%, 
        var(--color-brand-darkest) 100%);
    box-shadow: 
        0 0 40px rgba(0, 255, 196, 0.4),
        0 0 80px rgba(0, 255, 196, 0.3),
        0 0 120px rgba(0, 255, 196, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: corePulse 4s ease-in-out infinite;
}

.core-planet::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 196, 0.2);
    animation: coreRing 8s linear infinite;
}

.core-planet::after {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 255, 196, 0.15);
    animation: coreRing 12s linear infinite reverse;
}

@media (max-width: 768px) {
    .core-planet {
        width: 70px;
        height: 70px;
    }
}

.core-text {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: #000;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .core-text {
        font-size: 12px;
    }
}

/* Skill Planet */
.skill-planet {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: counterRotate var(--orbit-duration, 20s) linear infinite;
    transform-origin: center center;
}

.skill-planet:hover {
    transform: scale(1.25) !important;
    z-index: 100;
}

@media (max-width: 768px) {
    .skill-planet {
        width: 45px;
        height: 45px;
    }
}

.skill-planet-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.skill-planet-icon svg {
    width: 100%;
    height: 100%;
}

.skill-planet-name {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .skill-planet-icon {
        width: 18px;
        height: 18px;
    }
    .skill-planet-name {
        font-size: 6px;
    }
}

/* Skill Planet Colors */
.planet-flutter {
    background: radial-gradient(circle at 30% 30%, #64d8ff, #0277BD);
    box-shadow: 0 0 15px rgba(2, 119, 189, 0.6), 0 0 30px rgba(2, 119, 189, 0.3);
    color: #fff;
}

.planet-dart {
    background: radial-gradient(circle at 30% 30%, #80d6ff, #0175C2);
    box-shadow: 0 0 15px rgba(1, 117, 194, 0.6), 0 0 30px rgba(1, 117, 194, 0.3);
    color: #fff;
}

.planet-firebase {
    background: radial-gradient(circle at 30% 30%, #ffca28, #FF9800);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.6), 0 0 30px rgba(255, 152, 0, 0.3);
    color: #000;
}

.planet-git {
    background: radial-gradient(circle at 30% 30%, #ff8a65, #F05032);
    box-shadow: 0 0 15px rgba(240, 80, 50, 0.6), 0 0 30px rgba(240, 80, 50, 0.3);
    color: #fff;
}

.planet-python {
    background: radial-gradient(circle at 30% 30%, #ffd54f, #3776AB);
    box-shadow: 0 0 15px rgba(55, 118, 171, 0.6), 0 0 30px rgba(55, 118, 171, 0.3);
    color: #fff;
}

.planet-getx {
    background: radial-gradient(circle at 30% 30%, #e879f9, #9C27B0);
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.6), 0 0 30px rgba(156, 39, 176, 0.3);
    color: #fff;
}

.planet-mongodb {
    background: radial-gradient(circle at 30% 30%, #81c784, #47A248);
    box-shadow: 0 0 15px rgba(71, 162, 72, 0.6), 0 0 30px rgba(71, 162, 72, 0.3);
    color: #fff;
}

.planet-mysql {
    background: radial-gradient(circle at 30% 30%, #90caf9, #4479A1);
    box-shadow: 0 0 15px rgba(68, 121, 161, 0.6), 0 0 30px rgba(68, 121, 161, 0.3);
    color: #fff;
}

.planet-javascript {
    background: radial-gradient(circle at 30% 30%, #fff59d, #F7DF1E);
    box-shadow: 0 0 15px rgba(247, 223, 30, 0.6), 0 0 30px rgba(247, 223, 30, 0.3);
    color: #000;
}

.planet-html {
    background: radial-gradient(circle at 30% 30%, #ff8a65, #E34F26);
    box-shadow: 0 0 15px rgba(227, 79, 38, 0.6), 0 0 30px rgba(227, 79, 38, 0.3);
    color: #fff;
}

.planet-css {
    background: radial-gradient(circle at 30% 30%, #64b5f6, #1572B6);
    box-shadow: 0 0 15px rgba(21, 114, 182, 0.6), 0 0 30px rgba(21, 114, 182, 0.3);
    color: #fff;
}

.planet-api {
    background: radial-gradient(circle at 30% 30%, #4dd0e1, #00BCD4);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.6), 0 0 30px rgba(0, 188, 212, 0.3);
    color: #fff;
}

.planet-figma {
    background: radial-gradient(circle at 30% 30%, #f8bbd9, #F24E1E);
    box-shadow: 0 0 15px rgba(242, 78, 30, 0.6), 0 0 30px rgba(242, 78, 30, 0.3);
    color: #fff;
}

.planet-provider {
    background: radial-gradient(circle at 30% 30%, #80cbc4, #009688);
    box-shadow: 0 0 15px rgba(0, 150, 136, 0.6), 0 0 30px rgba(0, 150, 136, 0.3);
    color: #fff;
}

/* Skill Tooltip */
.skill-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(23, 23, 23, 0.98);
    border: 1px solid rgba(0, 255, 196, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.skill-planet:hover .skill-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.skill-tooltip-title {
    font-weight: 600;
    color: var(--color-brand);
    margin-bottom: 4px;
    font-size: 13px;
}

.skill-tooltip-level {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.skill-tooltip-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-tooltip-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.skill-tooltip-percent {
    font-size: 11px;
    color: var(--color-brand);
    font-weight: 600;
}

/* Skill Cards Grid */
.skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.skill-card {
    background: rgba(23, 23, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
    border-color: rgba(0, 255, 196, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 196, 0.1);
    transform: translateY(-4px);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skill-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 255, 196, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-icon i {
    color: var(--color-brand);
}

.skill-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 255, 196, 0.1);
    border-color: rgba(0, 255, 196, 0.3);
    color: var(--color-brand);
}