/* ==================== Additional Animations ==================== */

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

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

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

@keyframes fadeInDown {
    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.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}

@keyframes wobble {
    0%, 100% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(-3px) rotate(-2deg);
    }
    30% {
        transform: translateX(3px) rotate(2deg);
    }
    45% {
        transform: translateX(-3px) rotate(-2deg);
    }
    60% {
        transform: translateX(2px) rotate(1deg);
    }
    75% {
        transform: translateX(-1px) rotate(-1deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.2);
    }
    28% {
        transform: scale(1);
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* ==================== Element Animations ==================== */

/* Hero Section */
.hero-text {
    animation: slideInLeft 0.8s ease-out !important;
}

.hero-decoration {
    animation: slideInRight 0.8s ease-out !important;
}

.floating-badge {
    animation: float 3s ease-in-out infinite !important;
}

/* Service Cards */
.service-card {
    animation: fadeInUp 0.6s ease-out backwards !important;
}

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

/* Stat Cards */
.stat-card {
    animation: slideInUp 0.6s ease-out backwards !important;
}

.achievements-stats .stat-card:nth-child(1) { animation-delay: 0s !important; }
.achievements-stats .stat-card:nth-child(2) { animation-delay: 0.1s !important; }
.achievements-stats .stat-card:nth-child(3) { animation-delay: 0.2s !important; }
.achievements-stats .stat-card:nth-child(4) { animation-delay: 0.3s !important; }

/* Case Cards */
.case-card {
    animation: fadeInUp 0.6s ease-out backwards !important;
}

.case-grid .case-card:nth-child(1) { animation-delay: 0s !important; }
.case-grid .case-card:nth-child(2) { animation-delay: 0.1s !important; }
.case-grid .case-card:nth-child(3) { animation-delay: 0.2s !important; }

/* Team Cards */
.team-card {
    animation: zoomIn 0.6s ease-out backwards !important;
}

.team-grid .team-card:nth-child(1) { animation-delay: 0s !important; }
.team-grid .team-card:nth-child(2) { animation-delay: 0.1s !important; }
.team-grid .team-card:nth-child(3) { animation-delay: 0.2s !important; }
.team-grid .team-card:nth-child(4) { animation-delay: 0.3s !important; }
.team-grid .team-card:nth-child(5) { animation-delay: 0.4s !important; }
.team-grid .team-card:nth-child(6) { animation-delay: 0.5s !important; }

/* Culture Items */
.culture-item {
    animation: fadeInUp 0.6s ease-out backwards !important;
}

.culture-grid .culture-item:nth-child(1) { animation-delay: 0s !important; }
.culture-grid .culture-item:nth-child(2) { animation-delay: 0.1s !important; }
.culture-grid .culture-item:nth-child(3) { animation-delay: 0.2s !important; }
.culture-grid .culture-item:nth-child(4) { animation-delay: 0.3s !important; }

/* Blog Cards */
.blog-card {
    animation: fadeInUp 0.6s ease-out backwards !important;
}

.blog-grid .blog-card:nth-child(1) { animation-delay: 0s !important; }
.blog-grid .blog-card:nth-child(2) { animation-delay: 0.1s !important; }
.blog-grid .blog-card:nth-child(3) { animation-delay: 0.2s !important; }
.blog-grid .blog-card:nth-child(4) { animation-delay: 0.3s !important; }
.blog-grid .blog-card:nth-child(5) { animation-delay: 0.4s !important; }
.blog-grid .blog-card:nth-child(6) { animation-delay: 0.5s !important; }

/* FAQ Items */
.faq-item {
    animation: slideInUp 0.6s ease-out backwards !important;
}

.faq-container .faq-item:nth-child(1) { animation-delay: 0s !important; }
.faq-container .faq-item:nth-child(2) { animation-delay: 0.1s !important; }
.faq-container .faq-item:nth-child(3) { animation-delay: 0.2s !important; }
.faq-container .faq-item:nth-child(4) { animation-delay: 0.3s !important; }
.faq-container .faq-item:nth-child(5) { animation-delay: 0.4s !important; }
.faq-container .faq-item:nth-child(6) { animation-delay: 0.5s !important; }

/* Partner Logos */
.partner-logo {
    animation: fadeInUp 0.6s ease-out backwards !important;
}

.partners-grid .partner-logo:nth-child(1) { animation-delay: 0s !important; }
.partners-grid .partner-logo:nth-child(2) { animation-delay: 0.1s !important; }
.partners-grid .partner-logo:nth-child(3) { animation-delay: 0.2s !important; }
.partners-grid .partner-logo:nth-child(4) { animation-delay: 0.3s !important; }
.partners-grid .partner-logo:nth-child(5) { animation-delay: 0.4s !important; }
.partners-grid .partner-logo:nth-child(6) { animation-delay: 0.5s !important; }

/* Philosophy Section */
.philosophy-text {
    animation: fadeInUp 0.8s ease-out !important;
}

/* Mission Cards */
.mission-card {
    animation: slideInUp 0.8s ease-out backwards !important;
}

.mission-section .mission-card:nth-child(1) { animation-delay: 0s !important; }
.mission-section .mission-card:nth-child(2) { animation-delay: 0.2s !important; }

/* Contact Section */
.info-box {
    animation: slideInLeft 0.6s ease-out !important;
}

.recruitment-box {
    animation: slideInRight 0.6s ease-out !important;
}

.contact-form-wrapper {
    animation: fadeInUp 0.8s ease-out !important;
}

/* ==================== Scroll Animate ==================== */

.info-card, .job-card, .benefit-item, .mission-card, .service-card, .stat-card, .case-card, .team-card, .blog-card, .culture-item, .partner-logo {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards !important;
}

/* ==================== Hover Effects (No Animation Removal) ==================== */

/* Keep elements visible on hover - only apply transitions, not animations */
.service-card:hover,
.stat-card:hover,
.case-card:hover,
.team-card:hover,
.blog-card:hover,
.faq-item:hover,
.partner-logo:hover,
.btn:hover {
    /* Hover effects are handled by transition in style.css */
    /* Do NOT remove animations here */
}

/* ==================== Navigation ==================== */

.nav-link {
    transition: all 0.3s ease;
}

/* ==================== Form Elements ==================== */

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    /* Focus effects are handled by transition in style.css */
}

/* ==================== Disable heavy animations on mobile ==================== */

@media (max-width: 768px) {
    .service-card,
    .stat-card,
    .case-card,
    .team-card,
    .blog-card,
    .faq-item,
    .partner-logo,
    .culture-item,
    .mission-card {
        animation: fadeInUp 0.4s ease-out forwards !important;
    }
}
