/* About Section Enhanced Animations and Effects */

/* Title Animation */
@keyframes animate-title {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-title {
    animation: animate-title 1.2s ease-out;
}

/* Glowing Effect */
@keyframes animate-glow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.02);
    }
}

.animate-glow {
    animation: animate-glow 3s ease-in-out infinite;
}

/* Floating Elements */
@keyframes animate-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes animate-float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-180deg);
    }
}

@keyframes animate-float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(90deg);
    }
}

@keyframes animate-float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-90deg);
    }
}

.animate-float {
    animation: animate-float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: animate-float-delayed 4s ease-in-out infinite 1s;
}

.animate-float-slow {
    animation: animate-float-slow 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: animate-float-reverse 5s ease-in-out infinite 2s;
}

/* Divider Animation */
@keyframes animate-expand {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 8rem;
        opacity: 1;
    }
}

.animate-expand {
    animation: animate-expand 1.5s ease-out 0.5s both;
}

/* Fade In Up Animation */
@keyframes animate-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: animate-fade-in-up 1s ease-out 0.8s both;
}

/* Enhanced Hover Effects for Stats */
.about-stat-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.about-stat-card:hover::before {
    left: 100%;
}

.about-stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-title {
        animation-duration: 0.8s;
    }
    
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow,
    .animate-float-reverse {
        animation-duration: 3s;
    }
    
    /* Hide floating icons on mobile for better performance */
    .animate-float-slow,
    .animate-float-reverse {
        display: none;
    }
}

/* Enhanced About Content Styles */
.about-content-wrapper {
    position: relative;
}

.about-intro-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.about-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s ease;
}

.about-intro-card:hover::before {
    left: 100%;
}

.about-quote-icon {
    font-family: serif;
    font-weight: bold;
    transform: rotate(-10deg);
}

.about-paragraph {
    position: relative;
    transition: all 0.3s ease;
}

.about-paragraph:hover {
    transform: translateX(5px);
    color: #374151;
}

.about-cta-btn {
    position: relative;
    overflow: hidden;
}

.about-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.about-cta-btn:hover::before {
    left: 100%;
}

/* Enhanced Skills Styles */
.about-skills-wrapper {
    position: relative;
}

.skills-title {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: skillsTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes skillsTitleGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.5));
    }
}

.skills-divider {
    animation: skillsDividerPulse 2s ease-in-out infinite;
}

@keyframes skillsDividerPulse {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(1.2);
        opacity: 0.8;
    }
}

.skills-category-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skills-category-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: right 0.8s ease;
}

.skills-category-card:hover::after {
    right: 100%;
}

.skills-icon {
    animation: skillsIconFloat 3s ease-in-out infinite;
}

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

.enhanced-skill-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-tech-icon {
    transition: all 0.3s ease;
}

.enhanced-skill-item:hover .skill-tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-bar {
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: skillBarShine 2s ease-in-out infinite;
}

@keyframes skillBarShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile Responsive Layout for Introduction Card */
@media (max-width: 768px) {
    .about-paragraph-container .flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-paragraph-icon {
        margin-bottom: 1rem;
        margin-top: 0 !important;
    }
    
    .about-paragraph {
        text-align: center;
    }
    
    .about-quote-icon {
        text-align: center;
        display: block;
        width: 100%;
    }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .animate-title,
    .animate-glow,
    .animate-float,
    .animate-float-delayed,
    .animate-divider,
    .animate-fade-in,
    .about-skills-card,
    .enhanced-skill-item,
    .about-intro-card,
    .about-stat-card {
        animation: none !important;
        transition: none !important;
    }
    
    .skill-bar {
        transition: width 0.1s ease !important;
    }
}