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

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

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

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

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

/* Apply animations to sections */
.page-hero {
    animation: slideInFromTop 0.8s ease-out;
}

.section-title {
    animation: fadeInUp 0.6s ease-out;
}

.service-card, .white-box {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(odd) {
    animation: fadeInLeft 0.8s ease-out;
    animation-delay: 0.2s;
}

.service-card:nth-child(even) {
    animation: fadeInRight 0.8s ease-out;
    animation-delay: 0.4s;
}

.coordinator-card, .coordinator-preview-card {
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.coordinator-card:nth-child(1) { animation-delay: 0.1s; }
.coordinator-card:nth-child(2) { animation-delay: 0.2s; }
.coordinator-card:nth-child(3) { animation-delay: 0.3s; }
.coordinator-card:nth-child(4) { animation-delay: 0.4s; }
.coordinator-card:nth-child(5) { animation-delay: 0.5s; }

.story-card, .voice-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }

.ceo-content {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.history-item {
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.history-item:nth-child(1) { animation-delay: 0.1s; }
.history-item:nth-child(2) { animation-delay: 0.2s; }
.history-item:nth-child(3) { animation-delay: 0.3s; }
.history-item:nth-child(4) { animation-delay: 0.4s; }
.history-item:nth-child(5) { animation-delay: 0.5s; }
.history-item:nth-child(6) { animation-delay: 0.6s; }
.history-item:nth-child(7) { animation-delay: 0.7s; }

.info-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.15s; }
.info-item:nth-child(3) { animation-delay: 0.2s; }
.info-item:nth-child(4) { animation-delay: 0.25s; }
.info-item:nth-child(5) { animation-delay: 0.3s; }
.info-item:nth-child(6) { animation-delay: 0.35s; }
.info-item:nth-child(7) { animation-delay: 0.4s; }
.info-item:nth-child(8) { animation-delay: 0.45s; }

.position-card {
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.position-card:nth-child(1) { animation-delay: 0.1s; }
.position-card:nth-child(2) { animation-delay: 0.2s; }
.position-card:nth-child(3) { animation-delay: 0.3s; }
.position-card:nth-child(4) { animation-delay: 0.4s; }

.environment-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.environment-item:nth-child(1) { animation-delay: 0.1s; }
.environment-item:nth-child(2) { animation-delay: 0.2s; }
.environment-item:nth-child(3) { animation-delay: 0.3s; }

.philosophy-content {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.value-item {
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.value-item:nth-child(1) { animation-delay: 0.1s; }
.value-item:nth-child(2) { animation-delay: 0.2s; }
.value-item:nth-child(3) { animation-delay: 0.3s; }

/* Enhanced hover effects */
.white-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.coordinator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

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

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Special scroll animations for different elements */
.service-card.animate-element,
.white-box.animate-element {
    transform: translateY(40px) scale(0.95);
}

.service-card.animate-in,
.white-box.animate-in {
    transform: translateY(0) scale(1);
}

.coordinator-card.animate-element,
.coordinator-preview-card.animate-element {
    transform: translateY(30px) scale(0.9);
}

.coordinator-card.animate-in,
.coordinator-preview-card.animate-in {
    transform: translateY(0) scale(1);
}

.story-card.animate-element,
.voice-card.animate-element,
.position-card.animate-element {
    transform: translateY(20px) rotateX(10deg);
}

.story-card.animate-in,
.voice-card.animate-in,
.position-card.animate-in {
    transform: translateY(0) rotateX(0deg);
}

.section-title.animate-element {
    transform: translateX(-50px);
}

.section-title.animate-in {
    transform: translateX(0);
}

.info-item.animate-element {
    transform: translateX(-30px);
}

.info-item.animate-in {
    transform: translateX(0);
}

.history-item.animate-element {
    transform: translateX(-40px);
}

.history-item.animate-in {
    transform: translateX(0);
}