/**
 * Quick Step - Premium Animation Styles
 * Impressive transitions, reveals, and interactive effects
 */

/* ============================================
   GLOBAL ANIMATION SETTINGS
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   BENTO CARDS - Base Transitions
   ============================================ */
.bento-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

/* Card Glow Effect */
.bento-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-orange), transparent, var(--accent-orange));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(15px);
}

.bento-card:hover::before {
    opacity: 0.4;
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */
.bento-icon {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-icon {
    transform: rotate(360deg) scale(1.1);
}

.bento-icon svg {
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.bento-card:hover .bento-icon svg {
    stroke: var(--accent-orange);
}

/* ============================================
   DOTS ANIMATION
   ============================================ */
.bento-dots span {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-dots span {
    background: var(--accent-orange);
}

.bento-card:hover .bento-dots span:nth-child(1) {
    transform: scale(1.5);
    transition-delay: 0s;
}

.bento-card:hover .bento-dots span:nth-child(2) {
    transform: scale(1.5);
    transition-delay: 0.1s;
}

.bento-card:hover .bento-dots span:nth-child(3) {
    transform: scale(1.5);
    transition-delay: 0.2s;
}

/* ============================================
   BUTTON SHINE EFFECT
   ============================================ */
.btn, .cta-btn-new, .submit-btn-new {
    position: relative;
    overflow: hidden;
}

.btn::after, .cta-btn-new::after, .submit-btn-new::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.btn:hover::after, .cta-btn-new:hover::after, .submit-btn-new:hover::after {
    left: 150%;
}

/* ============================================
   LINK UNDERLINE ANIMATION
   ============================================ */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* ============================================
   FLOATING ANIMATION
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.liquid-shape {
    animation: float 4s ease-in-out infinite, morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* ============================================
   ORBIT ANIMATION
   ============================================ */
.orbit-ring {
    animation: orbit-spin 20s linear infinite;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-dot {
    animation: orbit-pulse 2s ease-in-out infinite;
}

@keyframes orbit-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 151, 121, 0.5);
        transform: rotate(calc(var(--i) * 60deg)) translateX(75px) translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(255, 151, 121, 0.3);
        transform: rotate(calc(var(--i) * 60deg)) translateX(75px) translateY(-50%) scale(1.3);
    }
}

/* ============================================
   MAP PULSE
   ============================================ */
.map-pulse {
    animation: map-pulse 2s ease-out infinite;
}

@keyframes map-pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* ============================================
   LOGO ANIMATION
   ============================================ */
.logo-mark {
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo:hover .logo-mark {
    animation: logo-spin 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes logo-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ============================================
   STATS NUMBER ANIMATION
   ============================================ */
.stat-number, .stat-big, .eco-stat-num, .why-stat-num {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .stat-number,
.bento-card:hover .stat-big,
.bento-card:hover .eco-stat-num {
    transform: scale(1.15);
}

/* ============================================
   SERVICE LIST STAGGER
   ============================================ */
.service-items-list li {
    opacity: 0;
    transform: translateX(20px);
    animation: slide-in 0.5s forwards;
}

.service-items-list li:nth-child(1) { animation-delay: 0.1s; }
.service-items-list li:nth-child(2) { animation-delay: 0.2s; }
.service-items-list li:nth-child(3) { animation-delay: 0.3s; }
.service-items-list li:nth-child(4) { animation-delay: 0.4s; }
.service-items-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slide-in {
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   VISION CIRCLE GLOW
   ============================================ */
.vision-circle {
    animation: vision-glow 3s ease-in-out infinite;
}

@keyframes vision-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(112, 189, 182, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 50px rgba(112, 189, 182, 0.5);
        transform: scale(1.05);
    }
}

/* ============================================
   CTA SECTION ANIMATION
   ============================================ */
.cta-bg-circle {
    animation: cta-pulse 5s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

/* ============================================
   SECTION TRANSITIONS
   ============================================ */
section {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ============================================
   SCROLL TARGET HIGHLIGHT
   ============================================ */
.scroll-target {
    animation: target-highlight 1s ease-out;
}

@keyframes target-highlight {
    0% { box-shadow: 0 0 0 0 rgba(255, 151, 121, 0.6); }
    100% { box-shadow: 0 0 0 30px rgba(255, 151, 121, 0); }
}

/* ============================================
   BIG ARROW BUTTON
   ============================================ */
.big-arrow-btn {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.big-arrow-btn:hover {
    transform: scale(1.15) rotate(-45deg);
    background: var(--accent-orange);
}

.big-arrow-btn svg {
    transition: transform 0.4s ease;
}

.big-arrow-btn:hover svg {
    transform: translate(3px, -3px);
}

/* ============================================
   TIMELINE ANIMATION
   ============================================ */
.timeline-step {
    opacity: 0;
    transform: translateY(30px);
    animation: timeline-reveal 0.6s forwards;
}

.timeline-step:nth-child(1) { animation-delay: 0.2s; }
.timeline-step:nth-child(2) { animation-delay: 0.4s; }
.timeline-step:nth-child(3) { animation-delay: 0.6s; }

@keyframes timeline-reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   COMPANY CARDS
   ============================================ */
.company-detail-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    .bento-card:hover {
        transform: none !important;
    }

    .bento-card:hover::before {
        opacity: 0;
    }
}
