/* Skills Section Styles */
.skills-section {
    padding: 80px 0;
    background-color: #f5f9ff;
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.skills-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out reverse;
}

.skills-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1E3A8A;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #6366F1);
    animation: widthGrow 1s ease-out forwards 0.5s;
}

.skills-description {
    font-size: 18px;
    color: #4B5563;
    max-width: 800px;
    margin: 0 auto 50px auto;
    animation: fadeInUp 0.8s ease-out forwards 0.2s;
    opacity: 0;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    perspective: 1000px;
}

.skills-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 32px;
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards 0.4s;
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.skills-card:nth-child(2) {
    animation-delay: 0.6s;
}

.skills-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.skills-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #6366F1);
    transition: width 0.3s ease;
}

.skills-card:hover h3::after {
    width: 100%;
}

.skill-item {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
}

.skills-card:nth-child(1) .skill-item:nth-child(1) { animation: slideInRight 0.5s ease forwards 0.7s; }
.skills-card:nth-child(1) .skill-item:nth-child(2) { animation: slideInRight 0.5s ease forwards 0.8s; }
.skills-card:nth-child(1) .skill-item:nth-child(3) { animation: slideInRight 0.5s ease forwards 0.9s; }
.skills-card:nth-child(1) .skill-item:nth-child(4) { animation: slideInRight 0.5s ease forwards 1.0s; }
.skills-card:nth-child(1) .skill-item:nth-child(5) { animation: slideInRight 0.5s ease forwards 1.1s; }
.skills-card:nth-child(1) .skill-item:nth-child(6) { animation: slideInRight 0.5s ease forwards 1.2s; }
.skills-card:nth-child(1) .skill-item:nth-child(7) { animation: slideInRight 0.5s ease forwards 1.3s; }
.skills-card:nth-child(1) .skill-item:nth-child(8) { animation: slideInRight 0.5s ease forwards 1.4s; }
.skills-card:nth-child(1) .skill-item:nth-child(9) { animation: slideInRight 0.5s ease forwards 1.5s; }

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.skill-info::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
}

/* Only show the dot for skills with high percentages */
.skill-item[data-percentage="95%"] .skill-info::after,
.skill-item[data-percentage="90%"] .skill-info::after {
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: pulseDot 2s infinite;
    opacity: 1;
}

.skill-item[data-percentage="85%"] .skill-info::after,
.skill-item[data-percentage="80%"] .skill-info::after {
    background-color: #FACC15;
    box-shadow: 0 0 8px #FACC15;
    animation: pulseDot 2s infinite 0.5s;
    opacity: 1;
}

.skill-bar {
    height: 10px;
    background-color: #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 25%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.1) 50%
    );
    background-size: 40px 100%;
    z-index: 1;
    pointer-events: none;
}

.skill-progress {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.15) 50%, 
        rgba(255,255,255,0) 100%);
    opacity: 0;
    z-index: 2;
}

.skill-progress.react-native {
    background-color: #3B82F6;
}

.skill-progress.swift {
    background-color: #F97316;
}

.skill-progress.flutter {
    background-color: #06B6D4;
}

.skill-progress.javascript {
    background-color: #EAB308;
}

.skill-progress.typescript {
    background-color: #3178C6;
}

.skill-progress.firebase {
    background-color: #F59E0B;
}

.skill-progress.nodejs {
    background-color: #10B981;
}

.skill-progress.uiux {
    background-color: #8B5CF6;
}

/* Simplified meter animation classes */
.skill-progress.meter-animated::after {
    animation: meterSweep 1.5s ease-out forwards;
}

.skill-progress.meter-animated {
    background-image: none;
}

/* Simplified meter markers - fewer and more subtle */
.meter-marker {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 3;
}

/* Only show markers at 25%, 50%, 75% */
.meter-marker.quarter { left: 25%; }
.meter-marker.half { left: 50%; }
.meter-marker.three-quarters { left: 75%; }

/* Simplified animation keyframes */
@keyframes meterSweep {
    0% {
        opacity: 0.3;
        transform: translateX(-100%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Clean up animations */
@keyframes pulseDot {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

.key-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.key-skill-tag {
    background-color: #F3F4F6;
    color: #1F2937;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.key-skill-tag:hover {
    background: linear-gradient(90deg, #3B82F6, #6366F1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.key-skill-tag:nth-child(1) { animation: popIn 0.5s ease forwards 0.8s; }
.key-skill-tag:nth-child(2) { animation: popIn 0.5s ease forwards 0.9s; }
.key-skill-tag:nth-child(3) { animation: popIn 0.5s ease forwards 1.0s; }
.key-skill-tag:nth-child(4) { animation: popIn 0.5s ease forwards 1.1s; }
.key-skill-tag:nth-child(5) { animation: popIn 0.5s ease forwards 1.2s; }
.key-skill-tag:nth-child(6) { animation: popIn 0.5s ease forwards 1.3s; }
.key-skill-tag:nth-child(7) { animation: popIn 0.5s ease forwards 1.4s; }
.key-skill-tag:nth-child(8) { animation: popIn 0.5s ease forwards 1.5s; }

.tools-title {
    margin-top: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.6s;
}

.tools-description {
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.7s;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
}

.tool-item:nth-child(1) { animation: fadeInUp 0.5s ease forwards 1.8s; }
.tool-item:nth-child(2) { animation: fadeInUp 0.5s ease forwards 1.9s; }
.tool-item:nth-child(3) { animation: fadeInUp 0.5s ease forwards 2.0s; }
.tool-item:nth-child(4) { animation: fadeInUp 0.5s ease forwards 2.1s; }
.tool-item:nth-child(5) { animation: fadeInUp 0.5s ease forwards 2.2s; }
.tool-item:nth-child(6) { animation: fadeInUp 0.5s ease forwards 2.3s; }

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.tool-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.tool-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease-in-out;
    opacity: 0;
}

.tool-icon:hover::after {
    top: -10%;
    left: -10%;
    opacity: 1;
}

.tool-icon i {
    z-index: 2;
    transition: transform 0.3s ease;
}

.tool-icon:hover i {
    transform: scale(1.1);
}

.tool-icon.xcode {
    background-color: #EB4747;
}

.tool-icon.vscode {
    background-color: #4285F4;
}

.tool-icon.figma {
    background-color: #A259FF;
}

.tool-icon.github {
    background-color: #24B47E;
}

.tool-icon.firebase-tool {
    background-color: #FFCA28;
}

.tool-icon.adobe-xd {
    background-color: #FF61F6;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes widthGrow {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(15px, 15px);
    }
}

/* Media queries for Skills Section */
@media (max-width: 768px) {
    .skills-wrapper {
        flex-direction: column;
    }
    
    .skills-card {
        max-width: 100%;
    }
    
    .skills-title {
        font-size: 32px;
    }
    
    .tools-container {
        justify-content: center;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] .skills-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .skills-section::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
}

[data-theme="dark"] .skills-section::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
}

[data-theme="dark"] .skills-title {
    color: #f1f5f9;
}

[data-theme="dark"] .skills-description {
    color: #cbd5e1;
}

[data-theme="dark"] .skills-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skills-card:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .skills-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .skill-info {
    color: #e2e8f0;
}

[data-theme="dark"] .skill-bar {
    background-color: #334155;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

[data-theme="dark"] .skill-progress.react-native {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .skill-progress.swift {
    background: linear-gradient(90deg, #f97316, #fb923c);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

[data-theme="dark"] .skill-progress.flutter {
    background: linear-gradient(90deg, #06b6d4, #38bdf8);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

[data-theme="dark"] .skill-progress.javascript {
    background: linear-gradient(90deg, #eab308, #facc15);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

[data-theme="dark"] .skill-progress.typescript {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .skill-progress.firebase {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .skill-progress.nodejs {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .skill-progress.uiux {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .key-skill-tag {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .key-skill-tag:hover {
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .tools-title {
    color: #f1f5f9;
}

[data-theme="dark"] .tools-description {
    color: #cbd5e1;
}

[data-theme="dark"] .tool-item {
    color: #e2e8f0;
}

[data-theme="dark"] .tool-icon {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    border: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tool-icon:hover {
    background: linear-gradient(145deg, #475569 0%, #334155 100%);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .tool-icon i {
    color: #e2e8f0;
}

[data-theme="dark"] .tool-icon:hover i {
    color: #60a5fa;
}

/* Specific tool icon colors in dark mode */
[data-theme="dark"] .tool-icon.xcode {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

[data-theme="dark"] .tool-icon.xcode:hover {
    background: linear-gradient(145deg, #374151 0%, #1f2937 100%);
}

[data-theme="dark"] .tool-icon.vscode {
    background: linear-gradient(145deg, #1e40af 0%, #1e3a8a 100%);
}

[data-theme="dark"] .tool-icon.vscode:hover {
    background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
}

[data-theme="dark"] .tool-icon.aws {
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
}

[data-theme="dark"] .tool-icon.aws:hover {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
}

[data-theme="dark"] .tool-icon.github {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

[data-theme="dark"] .tool-icon.github:hover {
    background: linear-gradient(145deg, #374151 0%, #1f2937 100%);
}

[data-theme="dark"] .tool-icon.firebase-tool {
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
}

[data-theme="dark"] .tool-icon.firebase-tool:hover {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
}

[data-theme="dark"] .tool-icon.docker {
    background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 100%);
}

[data-theme="dark"] .tool-icon.docker:hover {
    background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 100%);
}

/* Enhanced glow effects for dark mode */
[data-theme="dark"] .skill-progress::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

[data-theme="dark"] .skill-bar:hover::after {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0));
}

/* Enhanced dot indicators in dark mode */
[data-theme="dark"] .skill-item[data-percentage="95%"] .skill-info::after,
[data-theme="dark"] .skill-item[data-percentage="90%"] .skill-info::after {
    background-color: #10b981;
    box-shadow: 0 0 12px #10b981, 0 0 24px rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .skill-item[data-percentage="85%"] .skill-info::after,
[data-theme="dark"] .skill-item[data-percentage="80%"] .skill-info::after {
    background-color: #facc15;
    box-shadow: 0 0 12px #facc15, 0 0 24px rgba(250, 204, 21, 0.3);
}

/* Section headings in dark mode */
[data-theme="dark"] .section-heading h2 {
    color: #60a5fa;
}

/* Workflow section dark mode (if present) */
[data-theme="dark"] .workflow-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .workflow-title {
    color: #f1f5f9;
}

[data-theme="dark"] .workflow-description {
    color: #cbd5e1;
}

[data-theme="dark"] .workflow-card {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    border: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .workflow-card:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .workflow-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .workflow-card p {
    color: #cbd5e1;
}

[data-theme="dark"] .workflow-number {
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Smooth transitions for theme switching */
.skills-section,
.skills-card,
.skill-bar,
.skill-progress,
.key-skill-tag,
.tool-icon,
.workflow-section,
.workflow-card {
    transition: background 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
} 