/* Update root variables at the top of the file */
:root {
    --primary: #F08080;
    --secondary: #FFA07A;
    --accent: #FFB6C1;
    --light-pink: #FFF0F5;
    --dark: #2D3436;
    --light: #FFF5F5;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --soft-gradient: linear-gradient(135deg, var(--light-pink), white);
}

/* Skills Page Styles */
.skills-page {
    padding-top: 80px;
    background: var(--light);
    min-height: 100vh;
}

.skills-hero {
    position: relative;
    padding: 6rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
    overflow: hidden;
}

.skills-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 240, 245, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 240, 245, 0.15) 0%, transparent 50%);
    animation: pulseGradient 8s ease-in-out infinite;
}

.skills-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
}

.skill-category {
    background: white;
    border: 1px solid rgba(240, 128, 128, 0.1);
    backdrop-filter: blur(10px);
    animation: floatCard 6s ease-in-out infinite;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(232, 161, 179, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.skill-category.active {
    opacity: 1;
    transform: translateY(0);
}

.skill-category:nth-child(even) {
    animation-delay: 1s;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary);
    background: var(--light-pink);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(240, 128, 128, 0.1);
    animation: pulseIcon 2s ease-in-out infinite;
}

.category-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    position: relative;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, 
        rgba(240, 128, 128, 0.5), 
        rgba(255, 160, 122, 0.5)
    );
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.skill-category:hover .category-header h2::before {
    transform: scaleX(1);
    transform-origin: left;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: rgba(255, 240, 245, 0.5);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240, 128, 128, 0.1);
    z-index: 1;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(240, 128, 128, 0.2),
        transparent
    );
    transition: transform 0.6s;
    transform: rotate(45deg) translateX(-100%);
}

.skill-item:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.skill-item i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-item span {
    font-size: 0.9rem;
    color: var(--dark);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: linear-gradient(135deg, rgba(240, 128, 128, 0.8), rgba(255, 160, 122, 0.8));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 20px rgba(240, 128, 128, 0.15),
        0 0 0 1px rgba(240, 128, 128, 0.2);
}

.skill-item:hover i,
.skill-item:hover span {
    color: var(--dark);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.skill-item:hover i {
    transform: rotate(360deg) scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.skill-item:hover span {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Add animations */
@keyframes pulseGradient {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glowBorder {
    0%, 100% { border-color: rgba(240, 128, 128, 0.1); }
    50% { border-color: rgba(240, 128, 128, 0.3); }
}

/* Add these new styles */
.skill-category::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 240, 245, 0.4) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.skill-category:hover::after {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .skill-item {
        padding: 0.8rem;
    }

    .skill-item i {
        font-size: 1rem;
    }

    .skill-item span {
        font-size: 0.8rem;
    }
}

@keyframes progressAnimation {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 768px) {
    .skills-grid {
        padding: 2rem 1rem;
    }
    
    .skill-cards {
        grid-template-columns: 1fr;
    }
}

/* Enhanced hero section */
.skills-hero {
    background: var(--gradient);
    position: relative;
    padding: 6rem 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease forwards;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: slideUp 0.8s ease 0.2s forwards;
}

/* Enhanced skill categories */
.skill-category {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(240, 128, 128, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 128, 128, 0.1);
    position: relative;
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(240, 128, 128, 0.15),
        0 0 0 1px rgba(240, 128, 128, 0.1),
        0 0 20px rgba(240, 128, 128, 0.1);
    background: rgba(255, 240, 245, 0.9);
}

/* Enhanced category headers */
.category-header i {
    font-size: 2rem;
    color: var(--primary);
    background: var(--light-pink);
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(240, 128, 128, 0.1);
    animation: pulseIcon 2s ease-in-out infinite;
}

.category-header h2 {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Enhanced skill items */
.skill-item {
    background: var(--light-pink);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(240, 128, 128, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover {
    background: var(--gradient);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 20px rgba(240, 128, 128, 0.2),
        0 0 0 2px var(--primary);
}

.skill-item i {
    font-size: 1.4rem;
    color: var(--primary);
}

.skill-item:hover i,
.skill-item:hover span {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Add new animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Add glow effect */
.skill-category::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, 
        rgba(240, 128, 128, 0.1), 
        rgba(255, 160, 122, 0.1)
    );
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover::before {
    opacity: 1;
}

/* Add shimmer effect */
.skill-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.skill-item:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Grid layout improvements */
.skills-grid {
    display: grid;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .skills-grid {
        gap: 2rem;
        padding: 0 1rem;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .category-header i {
        font-size: 1.6rem;
        padding: 1rem;
    }

    .category-header h2 {
        font-size: 1.4rem;
    }
} 