body {
    background: linear-gradient(to right, #000000, #15001a, #00332a);
    background-attachment: fixed;
    min-height: 100vh;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
}

::selection {
    background: #555555;
    color: #ffffff;
}

.skills-container {
    padding: 120px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #00ffd5;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 213, 0.6), 0 0 20px rgba(0, 255, 213, 0.4);
    animation: slideUp 1s ease-out both;
}

.floating-text {
    display: inline-block;
    animation: floatTitle 3s ease-in-out infinite 1s;
}

@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.page-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 100%;
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: justify;
    animation: slideUp 1s ease-out both;
    animation-delay: 0.5s;
}

.highlight {
    color: #d500f9;
    font-weight: 600;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Skills Visuals */
.skills-visuals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    margin-top: 80px;
    padding-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.skill-bubble {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.outer-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(#00ffd5 0deg 4deg, transparent 4deg 12deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    animation: rotateRing 20s linear infinite;
    transition: filter 0.3s ease;
}

.inner-circle {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Odd bubbles - Blue-greenish hover */
.skill-bubble:nth-child(odd):hover .inner-circle {
    background: #00ffd5;
    color: #000;
    box-shadow: 0 0 25px #00ffd5, 0 0 50px rgba(0, 255, 213, 0.4);
    border-color: transparent;
}

/* Even bubbles - Purplish hover */
.skill-bubble:nth-child(even):hover .inner-circle {
    background: #d500f9;
    color: #fff;
    box-shadow: 0 0 25px #d500f9, 0 0 50px rgba(213, 0, 249, 0.4);
    border-color: transparent;
}

/* Outer ring hover effects */
.skill-bubble:nth-child(odd):hover .outer-ring {
    background: repeating-conic-gradient(#00ffd5 0deg 4deg, transparent 4deg 12deg);
    filter: drop-shadow(0 0 5px #00ffd5);
}

.skill-bubble:nth-child(even):hover .outer-ring {
    background: repeating-conic-gradient(#d500f9 0deg 4deg, transparent 4deg 12deg);
    filter: drop-shadow(0 0 5px #d500f9);
}

.skill-bubble:hover .inner-circle i, 
.skill-bubble:hover .inner-circle .text-icon,
.skill-bubble:hover .skill-name {
    color: #000;
}

.inner-circle i, .inner-circle .text-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #00ffd5;
}

.inner-circle .text-icon {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
    line-height: 1;
}

.skill-name {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Random Float Animations */
@keyframes floatRandom1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -40px); }
    50% { transform: translate(-20px, 30px); }
    75% { transform: translate(-40px, -20px); }
}

@keyframes floatRandom2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 40px); }
    66% { transform: translate(40px, -30px); }
}

@keyframes floatRandom3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 40px); }
}

.skill-bubble:nth-child(3n+1) { animation: slideUp 1s ease-out both, floatRandom1 6s ease-in-out infinite 1s; }
.skill-bubble:nth-child(3n+2) { animation: slideUp 1s ease-out both, floatRandom2 7s ease-in-out infinite 1s; }
.skill-bubble:nth-child(3n+3) { animation: slideUp 1s ease-out both, floatRandom3 8s ease-in-out infinite 1s; }

/* Staggered entrance delays */
.skill-bubble:nth-child(1) { animation-delay: 0.1s, 1.1s; }
.skill-bubble:nth-child(2) { animation-delay: 0.2s, 1.2s; }
.skill-bubble:nth-child(3) { animation-delay: 0.3s, 1.3s; }
.skill-bubble:nth-child(4) { animation-delay: 0.4s, 1.4s; }
.skill-bubble:nth-child(5) { animation-delay: 0.5s, 1.5s; }
.skill-bubble:nth-child(6) { animation-delay: 0.6s, 1.6s; }
.skill-bubble:nth-child(7) { animation-delay: 0.7s, 1.7s; }
.skill-bubble:nth-child(8) { animation-delay: 0.8s, 1.8s; }
.skill-bubble:nth-child(9) { animation-delay: 0.9s, 1.9s; }
.skill-bubble:nth-child(10) { animation-delay: 1.0s, 2.0s; }
.skill-bubble:nth-child(11) { animation-delay: 1.1s, 2.1s; }

/* Tooltip Styles */
.skill-bubble {
    cursor: pointer;
}



@media screen and (max-width: 1024px) {
    .skills-visuals {
        gap: 60px;
    }
    .skill-bubble {
        width: 130px;
        height: 130px;
    }
    .inner-circle i, .inner-circle .text-icon {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .skills-visuals {
        gap: 40px;
        margin-top: 50px;
    }
    .skill-bubble {
        width: 130px;
        height: 130px;
    }
    .inner-circle {
        width: 85%;
        height: 85%;
    }
    .inner-circle i, .inner-circle .text-icon {
        font-size: 2.2rem;
    }
    .skill-name {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-visuals {
        gap: 30px;
        margin-top: 40px;
    }
    .skill-bubble {
        width: 115px;
        height: 115px;
    }
    .inner-circle {
        width: 90%;
        height: 90%;
    }
    .inner-circle i, .inner-circle .text-icon {
        font-size: 2rem;
    }
    .skill-name {
        font-size: 0.85rem;
    }
}

/* Categorized Skills Section */
.skills-categorized {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    padding-bottom: 50px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #d680ff;
    border-radius: 15px;
    padding: 25px;
    width: 300px;
    transition: all 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
    color: #f0f0f0;
    text-align: left;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px);
}

.skill-card.show {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    background: rgba(140, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(140, 0, 255, 0.4);
    transform: translateY(-5px);
}

.skill-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #00ffd5;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    font-weight: 700;
    min-height: 65px;
    display: flex;
    align-items: center;
}

.skill-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    flex-grow: 1;
}

.skill-card li {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.skill-card:hover {
    background: rgba(140, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(140, 0, 255, 0.4);
    transform: translateY(-5px);
}

@media screen and (max-width: 900px) {
    .skill-card {
        width: 45%;
        max-width: none;
    }
}

@media screen and (max-width: 600px) {
    .skills-categorized {
        gap: 30px;
    }
    .skill-card {
        width: 100%;
        max-width: 400px;
    }
    .skill-card h3 {
        font-size: 1.2rem;
        min-height: auto;
        padding-bottom: 15px;
    }
}