/* ============================================
   Concorde SA - Animation Styles
   Premium animations and effects
   ============================================ */

/* ============================================
   CSS Variables for Animations
   ============================================ */
:root {
    --animation-duration: 0.6s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --hover-lift: -8px;
    --gradient-primary: linear-gradient(135deg, #f58a07 0%, #ff6b35 100%);
    --gradient-secondary: linear-gradient(135deg, #063255 0%, #0a4d7a 100%);
}

/* ============================================
   Text Gradient Effect
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Hero Section Styles
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-animation {
    position: relative;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
}

.floating-badge.badge-1 {
    top: 15%;
    right: 10%;
}

.floating-badge.badge-2 {
    bottom: 20%;
    left: 5%;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 60px;
}

/* Avatar Circles */
.avatars {
    display: flex;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-circle:first-child {
    margin-left: 0;
}

.avatar-circle:nth-child(1) { background: linear-gradient(135deg, #f58a07, #ff6b35); }
.avatar-circle:nth-child(2) { background: linear-gradient(135deg, #11998e, #38ef7d); }
.avatar-circle:nth-child(3) { background: linear-gradient(135deg, #667eea, #764ba2); }
.avatar-circle:nth-child(4) { background: linear-gradient(135deg, #ee0979, #ff6a00); }

/* ============================================
   Fade In Animations
   ============================================ */
.animate-fade-in {
    animation: fadeIn var(--animation-duration) var(--animation-timing) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--animation-duration) var(--animation-timing) forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft var(--animation-duration) var(--animation-timing) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight var(--animation-duration) var(--animation-timing) forwards;
}

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

@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);
    }
}

/* ============================================
   Float Animations
   ============================================ */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

/* ============================================
   Pulse Animation
   ============================================ */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ============================================
   Hover Effects
   ============================================ */
.hover-lift {
    transition: transform 0.3s var(--animation-timing), box-shadow 0.3s var(--animation-timing);
}

.hover-lift:hover {
    transform: translateY(var(--hover-lift));
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s var(--animation-timing);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(245, 138, 7, 0.4);
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s var(--animation-timing);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    position: relative;
}

/* ============================================
   Stat Cards
   ============================================ */
.stat-card {
    transition: all 0.3s var(--animation-timing);
    border-radius: 16px;
}

.stat-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-5px);
}

.stat-card .counter {
    font-size: 2.5rem;
    color: #063255;
}

/* ============================================
   Icon Circles
   ============================================ */
.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s var(--animation-timing);
}

.service-item:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   Service Items
   ============================================ */
.service-item {
    transition: all 0.3s var(--animation-timing);
    border: 1px solid transparent;
}

.service-item:hover {
    border-color: rgba(245, 138, 7, 0.2);
    transform: translateX(10px);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* ============================================
   Decoration Circles
   ============================================ */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.decoration-circle.circle-1 {
    width: 200px;
    height: 200px;
    background: #f58a07;
    top: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

.decoration-circle.circle-2 {
    width: 150px;
    height: 150px;
    background: #063255;
    bottom: -30px;
    right: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

/* ============================================
   Scroll Animations (Intersection Observer)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--animation-timing);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s var(--animation-timing);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s var(--animation-timing);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Loading Skeleton
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Button Animations
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--animation-timing);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   Lottie Player Responsive
   ============================================ */
lottie-player {
    max-width: 100%;
}

@media (max-width: 768px) {
    lottie-player {
        height: 250px !important;
    }
    
    .floating-badge {
        display: none;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    .wave-divider svg {
        height: 40px;
    }
}

/* ============================================
   Staggered Animation Delays
   ============================================ */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   Page Transitions
   ============================================ */
.page-transition {
    animation: pageSlideIn 0.5s var(--animation-timing);
}

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

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hover-lift:hover {
        transform: none;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
}

/* ============================================
   Gradient Borders
   ============================================ */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 18px;
    z-index: -1;
}

/* ============================================
   Glowing Effect
   ============================================ */
.glow {
    box-shadow: 0 0 20px rgba(245, 138, 7, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(245, 138, 7, 0.5);
}

/* ============================================
   Text Animations
   ============================================ */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #f58a07;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #f58a07; }
}
