/**
 * Amderon Global Animations - CSS
 * Elegant animations and transitions for a premium website experience
 */

/* Global animation settings */
:root {
    --transition-short: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-long: 0.8s ease;
    --transition-extra-long: 1.2s ease;
    --easing-smooth: cubic-bezier(0.25, 0.1, 0.25, 1.0);
    --easing-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Basic Animation Classes */
.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animated.slow {
    animation-duration: 1.2s;
}

.animated.fast {
    animation-duration: 0.5s;
}

.animated.delay-1 {
    animation-delay: 0.1s;
}

.animated.delay-2 {
    animation-delay: 0.2s;
}

.animated.delay-3 {
    animation-delay: 0.3s;
}

.animated.delay-4 {
    animation-delay: 0.4s;
}

.animated.delay-5 {
    animation-delay: 0.5s;
}

/* Page Transition Effects */
body {
    opacity: 1;
    transition: opacity 0.4s ease;
}

body.page-transitioning {
    opacity: 0;
}

body.page-loaded .preload {
    opacity: 1;
    transform: translateY(0);
}

/* Section animations - applied as elements scroll into view */
section, .section-title, .overview-text, .team-grid, .cta-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-long), transform var(--transition-long);
}

section.animated, .section-title.animated, .overview-text.animated, .team-grid.animated, .cta-content.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Card and grid item animations */
.team-member, .feature-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all var(--transition-medium), box-shadow var(--transition-short), transform var(--transition-medium);
}

.team-member.animated, .feature-card.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Text animations */
h1, h2, h3, .banner-text {
    position: relative;
    overflow: hidden;
}

h1::after, h2::after, h3::after, .banner-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    transform: translateX(0);
    z-index: 5;
    transition: transform 0.8s var(--easing-smooth);
}

.animated h1::after, .animated h2::after, .animated h3::after, .animated .banner-text::after, 
h1.animated::after, h2.animated::after, h3.animated::after, .banner-text.animated::after {
    transform: translateX(100%);
}

/* Button animations */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--easing-smooth), box-shadow 0.3s var(--easing-smooth), background-color 0.3s ease;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s var(--easing-smooth);
}

.cta-btn:hover::before {
    transform: translateX(0);
}

.cta-btn.btn-clicked {
    transform: scale(0.98);
}

/* Hover effects */
.hover-effect {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.4s var(--easing-bounce), box-shadow 0.4s var(--easing-smooth) !important;
}

.hover-exit {
    transition: transform 0.3s var(--easing-smooth), box-shadow 0.3s var(--easing-smooth) !important;
}

.social-icon.hover-effect {
    transform: translateY(-5px) scale(1.1) !important;
    background-color: var(--primary) !important;
}

/* Navigation animations */
nav ul li a {
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    transition: width 0.3s var(--easing-smooth);
}

/* Background patterns and decorative elements */
.page-banner-pattern {
    transition: opacity 1s ease;
}

.team-particle, .floating-element {
    transition: transform 0.5s var(--easing-smooth);
}

/* Mobile menu transitions */
.mobile-menu-btn {
    transition: transform 0.3s ease;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}

nav ul {
    transition: left 0.4s var(--easing-smooth);
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .team-member, .feature-card {
        transform: translateY(20px);
    }
    
    section, .section-title, .overview-text {
        transform: translateY(20px);
    }
    
    /* Reduce animation intensity on mobile */
    .animated {
        animation-duration: 0.6s;
    }
}

/* Prefers reduced motion - accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 