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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Hero Section Animations */
.badge {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* Stats Animation */
.stat-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 1s;
}

.stat-item:nth-child(2) {
    animation-delay: 1.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 1.4s;
}

.stat-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Info Section Animations */
.info-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.info-item:nth-child(1) {
    animation-delay: 0.2s;
}

.info-item:nth-child(2) {
    animation-delay: 0.4s;
}

.info-item:nth-child(3) {
    animation-delay: 0.6s;
}

.info-item:hover h2 {
    color: #a855f7;
    transition: color 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Typewriter effect for info paragraphs */
.info-item p {
    white-space: normal;
}

/* Section Header Animation */
.section-header {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.section-header:hover h2 {
    color: #a855f7;
    transition: color 0.3s ease;
}

/* Problems Section Animations */
.problem-item {
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

.problem-item:nth-child(2) {
    animation-delay: 0.1s;
}

.problem-item:nth-child(3) {
    animation-delay: 0.2s;
}

.problem-item:nth-child(4) {
    animation-delay: 0.3s;
}

.problem-item:nth-child(5) {
    animation-delay: 0.4s;
}

.problem-item:nth-child(6) {
    animation-delay: 0.5s;
}

.problem-item:hover {
    transform: translateX(10px);
    border-color: rgba(168, 82, 81, 0.8);
}

.problem-item:hover span {
    color: #ffffff;
}

/* Solutions Section Animations */
.problems-center {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.4s forwards;
}

.problems-center:hover {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.4s ease;
}

.solution-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

.solution-item:nth-child(1) {
    animation-delay: 0.6s;
}

.solution-item:nth-child(2) {
    animation-delay: 0.8s;
}

.solution-item:nth-child(3) {
    animation-delay: 1s;
}

.solution-item:nth-child(4) {
    animation-delay: 1.2s;
}

.solution-item:hover {
    background: rgba(80, 55, 105, 0.4);
    box-shadow:
        inset 0 1px 0 0 rgba(180, 140, 220, 0.7),
        inset 0 -1px 0 0 rgba(100, 70, 135, 0.5),
        0 10px 30px rgba(107, 75, 138, 0.4);
}

.solution-item:hover span {
    color: #ffffff;
}

/* Shape Background Animation */
.shape-bg {
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.2s forwards;
}

/* About Section Animations */
.about-problem-item {
    opacity: 0;
    animation: slideInRight 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

.about-problem-item:nth-child(2) {
    animation-delay: 0.1s;
}

.about-problem-item:nth-child(3) {
    animation-delay: 0.2s;
}

.about-problem-item:nth-child(4) {
    animation-delay: 0.3s;
}

.about-problem-item:nth-child(5) {
    animation-delay: 0.4s;
}

.about-problem-item:nth-child(6) {
    animation-delay: 0.5s;
}

.about-problem-item:hover {
    transform: translateX(-10px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(50, 50, 50, 0.9);
}

.about-problem-item:hover span {
    color: #ffffff;
}
