/* Import base styles from home.css */
@import url('home.css');

/* Skills Page Specific Styles */
.hero {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(59, 130, 246, 0.05) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: electric-pulse 3s ease-in-out infinite;
}

.hero-icon i {
    width: 2rem;
    height: 2rem;
}

@keyframes electric-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 rgba(59, 130, 246, 0.4);
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background-color: rgba(100, 116, 139, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--card);
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    animation: skill-icon-spin 3s ease-in-out infinite;
}

@keyframes skill-icon-spin {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(120deg);
    }
    50% {
        transform: scale(1.2) rotate(240deg);
    }
    75% {
        transform: scale(1.2) rotate(360deg);
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.stat-subtext {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Professional Skills Section */
.professional-skills {
    padding: 4rem 0;
}

.professional-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .professional-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .professional-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.professional-card {
    background-color: var(--card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.professional-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    animation: professional-bounce 2s ease-in-out infinite;
}

@keyframes professional-bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

.professional-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.skill-progress {
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--muted);
    border-radius: 0.25rem;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 0.25rem;
    width: 0%;
    transition: width 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    transform: translateX(-100%);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-value {
    position: absolute;
    right: 0;
    top: -1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* Technical Skills Section */
.technical-skills {
    padding: 5rem 0;
    background-color: rgba(100, 116, 139, 0.05);
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category {
    background-color: var(--card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.skill-category:hover::before {
    transform: translateX(100%);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    animation: category-pulse 2s ease-in-out infinite;
}

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

.category-icon.programming {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.category-icon.ai {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.category-icon.iot {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.category-icon.tools {
    background: linear-gradient(135deg, #10b981, #059669);
}

.category-icon.security {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.category-icon.design {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.category-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.skill-count {
    padding: 0.375rem 0.75rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-item {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.skill-item:hover::before {
    transform: scaleY(1);
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    color: var(--foreground);
    font-size: 1.125rem;
}

.skill-level {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
}

.skill-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(59, 130, 246, 0.1) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: cta-gradient-move 8s ease-in-out infinite;
}

@keyframes cta-gradient-move {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
    25% {
        background: radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
    50% {
        background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
    75% {
        background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Skill Level Indicators */
.skill-level-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.legend-color {
    width: 1rem;
    height: 0.5rem;
    border-radius: 0.25rem;
}

.legend-color.beginner {
    background: linear-gradient(90deg, #10b981, #059669);
}

.legend-color.intermediate {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.legend-color.advanced {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.legend-color.expert {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .skill-count {
        align-self: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .professional-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-scale-up {
    animation: scaleUp 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Effects */
.skill-item:hover .skill-name {
    color: var(--primary);
}

.skill-item:hover .progress-fill {
    animation: progress-glow 1s ease-out;
}

@keyframes progress-glow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .skill-category {
        background-color: hsl(224, 71%, 4%);
        border-color: hsl(215, 27.9%, 16.9%);
    }
    
    .skill-item {
        background-color: rgba(0, 0, 0, 0.2);
        border-color: hsl(215, 27.9%, 16.9%);
    }
    
    .skill-category:hover,
    .skill-item:hover {
        border-color: rgba(59, 130, 246, 0.4);
    }
}

/* Skill mastery color coding */
.progress-fill[data-progress="90"], .progress-fill[data-progress="95"] {
    background: linear-gradient(90deg, #10b981, #059669); /* Expert - Green */
}

.progress-fill[data-progress="85"], .progress-fill[data-progress="88"] {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8); /* Advanced - Blue */
}

.progress-fill[data-progress="80"], .progress-fill[data-progress="82"] {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed); /* Intermediate+ - Purple */
}

.progress-fill[data-progress="75"], .progress-fill[data-progress="78"] {
    background: linear-gradient(90deg, #f59e0b, #d97706); /* Intermediate - Orange */
}