/* Skills Section Box Model */
.skills {
    padding: 60px 0;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 30px 40px, #87ceeb, transparent),
        radial-gradient(2px 2px at 80px 20px, #ffffff, transparent),
        radial-gradient(1px 1px at 120px 60px, #87ceeb, transparent),
        radial-gradient(2px 2px at 170px 90px, #ffffff, transparent),
        radial-gradient(1px 1px at 220px 30px, #87ceeb, transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: sparkle 3s ease-in-out infinite;
    opacity: 0.4;
    z-index: 1;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

.skills .container {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.skills .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Skills Layout */
.skills-top-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.skills-bottom-row {
    display: flex;
    justify-content: center;
}

/* Grid Containers */
.frontend-grid {
    flex: 1;
    background: #000000;
    border: 2px solid #87ceeb;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.backend-grid {
    flex: 1;
    background: #000000;
    border: 2px solid #87ceeb;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.others-grid {
    background: #000000;
    border: 2px solid #87ceeb;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.frontend-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.backend-grid h3,
.others-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

/* Skill Items Container */
.skill-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Individual Skill Boxes */
.skill-item-box {
    background: #000000;
    border: 1px solid #fce7f3;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: aiSkillFloat 3s ease-in-out infinite;
}

.skill-item-box:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.5);
    animation: aiSkillHover 2s ease-in-out infinite;
}

@keyframes aiSkillFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) rotate(-0.5deg);
    }
}

@keyframes aiSkillHover {
    0%, 100% {
        transform: translateY(-8px) scale(1.05) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) scale(1.08) rotate(1deg);
    }
}

.skill-item-box:nth-child(1) { animation-delay: 0s; }
.skill-item-box:nth-child(2) { animation-delay: 0.2s; }
.skill-item-box:nth-child(3) { animation-delay: 0.4s; }
.skill-item-box:nth-child(4) { animation-delay: 0.6s; }
.skill-item-box:nth-child(5) { animation-delay: 0.8s; }

.skill-item-box i {
    font-size: 1.2em;
}

.skill-item-box .fa-html5 {
    color: #e34f26;
}

.skill-item-box .fa-css3-alt {
    color: #1572b6;
}

.skill-item-box .fa-js-square {
    color: #f7df1e;
}

.skill-item-box .fa-react {
    color: #61dafb;
}

.skill-item-box .fa-bootstrap {
    color: #7952b3;
}

.skill-item-box .fa-wind {
    color: #06b6d4;
}

.skill-item-box .fa-python {
    color: #ffd43b;
}

.skill-item-box .fa-node-js {
    color: #339933;
}

.skill-item-box .fa-server {
    color: #000000;
}

.skill-item-box .fa-database {
    color: #47a248;
}

.skill-item-box .fa-fire {
    color: #ffca28;
}

.skill-item-box .fa-git-alt {
    color: #f05032;
}

.skill-item-box .fa-github {
    color: #ffffff;
}

.skill-item-box .fa-globe {
    color: #00c7b7;
}

.skill-item-box .fa-code {
    color: #007acc;
}

.skill-item-box .fa-rocket {
    color: #ffffff;
}



/* Responsive Design */
@media (max-width: 768px) {
    .skills-top-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .frontend-grid,
    .backend-grid,
    .others-grid {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .skill-items {
        grid-template-columns: 1fr;
    }
}