/* ============================================
   semity CREATIVE ANIMATIONS
   Modern & Creative Animation Library
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES FOR ANIMATIONS
   ============================================ */
:root {
    --anim-duration-fast: 0.2s;
    --anim-duration: 0.4s;
    --anim-duration-slow: 0.6s;
    --anim-duration-slower: 0.8s;
    --anim-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --anim-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --anim-ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --anim-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Fade Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    70% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Slide Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rotate Animations */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0);
    }
}

/* Bounce Animations */
@keyframes bounce {
    0%, 20%, 53%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translateY(0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translateY(-20px);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translateY(-10px);
    }
    90% {
        transform: translateY(-4px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    20% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(0.9);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
    }
    80% {
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse & Glow Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.8), 0 0 60px rgba(37, 99, 235, 0.4);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6), 0 0 80px rgba(37, 99, 235, 0.3);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(2deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Wiggle Animation */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-3deg); }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Ripple Animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Text Reveal Animation */
@keyframes textReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* Line Draw Animation */
@keyframes drawLine {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Morph Animation */
@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%;
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: currentColor;
    }
}

/* ============================================
   SCROLL REVEAL CLASSES
   ============================================ */

/* Base class for scroll animations */
.reveal {
    opacity: 0;
    transition: all var(--anim-duration-slow) var(--anim-ease);
}

.reveal.active {
    opacity: 1;
}

/* Fade variants */
.reveal-fade {
    opacity: 0;
}
.reveal-fade.active {
    animation: fadeIn var(--anim-duration-slow) var(--anim-ease) forwards;
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}
.reveal-up.active {
    animation: fadeInUp var(--anim-duration-slow) var(--anim-ease) forwards;
}

.reveal-down {
    opacity: 0;
    transform: translateY(-60px);
}
.reveal-down.active {
    animation: fadeInDown var(--anim-duration-slow) var(--anim-ease) forwards;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}
.reveal-left.active {
    animation: fadeInLeft var(--anim-duration-slow) var(--anim-ease) forwards;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}
.reveal-right.active {
    animation: fadeInRight var(--anim-duration-slow) var(--anim-ease) forwards;
}

/* Scale variants */
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
}
.reveal-scale.active {
    animation: scaleIn var(--anim-duration-slow) var(--anim-ease-spring) forwards;
}

.reveal-bounce {
    opacity: 0;
    transform: scale(0.5);
}
.reveal-bounce.active {
    animation: bounceIn var(--anim-duration-slower) var(--anim-ease) forwards;
}

.reveal-pop {
    opacity: 0;
    transform: scale(0.5);
}
.reveal-pop.active {
    animation: popIn var(--anim-duration-slow) var(--anim-ease-spring) forwards;
}

/* Rotate variants */
.reveal-rotate {
    opacity: 0;
    transform: rotate(-15deg) scale(0.9);
}
.reveal-rotate.active {
    animation: rotateIn var(--anim-duration-slow) var(--anim-ease-spring) forwards;
}

.reveal-flip {
    opacity: 0;
    transform: perspective(400px) rotateY(-90deg);
}
.reveal-flip.active {
    animation: flipIn var(--anim-duration-slow) var(--anim-ease) forwards;
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.8s; }

/* ============================================
   HOVER EFFECTS
   ============================================ */

/* Lift Effect */
.hover-lift {
    transition: transform var(--anim-duration) var(--anim-ease),
                box-shadow var(--anim-duration) var(--anim-ease);
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Scale Effect */
.hover-scale {
    transition: transform var(--anim-duration) var(--anim-ease-spring);
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Glow Effect */
.hover-glow {
    transition: box-shadow var(--anim-duration) var(--anim-ease);
}
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

/* Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}
.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}
.hover-shine:hover::before {
    left: 100%;
}

/* Tilt Effect */
.hover-tilt {
    transition: transform var(--anim-duration) var(--anim-ease);
    transform-style: preserve-3d;
}
.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* Border Glow */
.hover-border-glow {
    position: relative;
    transition: all var(--anim-duration) var(--anim-ease);
}
.hover-border-glow::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(45deg, #5a8ad8, #3D5FA8, #1E3A6E, #5a8ad8);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--anim-duration) var(--anim-ease);
}
.hover-border-glow:hover::after {
    opacity: 1;
}

/* Ripple Effect */
.hover-ripple {
    position: relative;
    overflow: hidden;
}
.hover-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.hover-ripple:hover::after {
    width: 300%;
    height: 300%;
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

/* Primary Button Animation */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all var(--anim-duration) var(--anim-ease);
    z-index: 1;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-animated:hover::before {
    left: 100%;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-animated:active {
    transform: translateY(-1px);
}

/* Pulse Button */
.btn-pulse {
    animation: pulse 2s infinite;
}
.btn-pulse:hover {
    animation: none;
    transform: scale(1.05);
}

/* Gradient Animated Button */
.btn-gradient-animated {
    background: linear-gradient(270deg, #5a8ad8, #3D5FA8, #1E3A6E, #5a8ad8);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
}

/* ============================================
   CARD ANIMATIONS
   ============================================ */

/* Card Hover Effect */
.card-animated {
    transition: all var(--anim-duration-slow) var(--anim-ease);
}

.card-animated:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Card with 3D Effect */
.card-3d {
    transition: transform var(--anim-duration) var(--anim-ease);
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-10px);
}

/* Card with Border Animation */
.card-border-anim {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
}

.card-border-anim::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #5a8ad8, #3D5FA8, #1E3A6E);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--anim-duration) var(--anim-ease);
}

.card-border-anim:hover::before {
    opacity: 1;
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

/* Gradient Text Animation */
.text-gradient-animated {
    background: linear-gradient(270deg, #5a8ad8, #3D5FA8, #1E3A6E, #5a8ad8);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

/* Text Reveal */
.text-reveal {
    animation: textReveal 1s var(--anim-ease) forwards;
}

/* Typing Effect */
.text-typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid;
    animation: typing 3s steps(30) forwards, blink 1s step-end infinite;
}

/* Character Animation */
.text-char-anim span {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.5s var(--anim-ease) forwards;
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */

/* Spin Icon */
.icon-spin {
    animation: spin 2s linear infinite;
}

/* Bounce Icon */
.icon-bounce {
    animation: bounce 1s infinite;
}

/* Float Icon */
.icon-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Icon */
.icon-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Wiggle on Hover */
.icon-wiggle:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */

/* Morphing Shape */
.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

/* Shimmer Loading */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Parallax Effect */
.parallax-layer {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Blur on Scroll */
.blur-on-scroll {
    transition: filter 0.3s ease;
}

/* Gradient Border Animation */
.gradient-border-animated {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
}

.gradient-border-animated::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #5a8ad8, #3D5FA8, #1E3A6E, #5a8ad8, #3D5FA8);
    background-size: 400% 400%;
    animation: gradientShift 4s linear infinite;
    z-index: -1;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

/* Dots Loading */
.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Spinner Loading */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Pulse Loading */
.loading-pulse {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

/* Page Load Animation */
.page-enter {
    animation: fadeIn 0.5s var(--anim-ease);
}

/* Section Transitions */
.section-transition {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--anim-ease), transform 0.6s var(--anim-ease);
}

.section-transition.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* Animation Durations */
.duration-fast { animation-duration: var(--anim-duration-fast) !important; }
.duration-normal { animation-duration: var(--anim-duration) !important; }
.duration-slow { animation-duration: var(--anim-duration-slow) !important; }
.duration-slower { animation-duration: var(--anim-duration-slower) !important; }

/* Animation Fill Modes */
.fill-forwards { animation-fill-mode: forwards !important; }
.fill-backwards { animation-fill-mode: backwards !important; }
.fill-both { animation-fill-mode: both !important; }

/* Infinite Animations */
.infinite { animation-iteration-count: infinite !important; }

/* ============================================
   STAT ITEMS - CREATIVE ANIMATIONS
   ============================================ */

.stat-item {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient, linear-gradient(90deg, #5a8ad8, #3D5FA8));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: var(--primary-color, #5a8ad8);
}

/* ============================================
   TESTIMONIAL CARDS - CREATIVE ANIMATIONS
   ============================================ */

.testimonial-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* ============================================
   SERVICE CARDS - CREATIVE ANIMATIONS
   ============================================ */

.service-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient, linear-gradient(90deg, #5a8ad8, #3D5FA8));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.service-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ============================================
   HERO SECTION ANIMATIONS
   ============================================ */

.hero-content {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero .cta-group {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

/* Floating circles animation */
.floating-circles .circle {
    animation: floatRotate 6s ease-in-out infinite;
}

.floating-circles .circle:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 7s;
}

.floating-circles .circle:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.floating-circles .circle:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 6s;
}

/* ============================================
   SECTION HEADER ANIMATIONS
   ============================================ */

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient, linear-gradient(90deg, #5a8ad8, #3D5FA8));
    border-radius: 2px;
    animation: expandWidth 0.8s ease forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* ============================================
   NAVBAR ANIMATIONS
   ============================================ */

.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: var(--bg-primary) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color, #5a8ad8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

/* ============================================
   LOGO ANIMATION
   ============================================ */

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
}

/* ============================================
   FOOTER ANIMATIONS
   ============================================ */

.footer-section {
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
}

.social-link {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* ============================================
   WHATSAPP BUTTON ANIMATION
   ============================================ */

.whatsapp-float {
    animation: float 3s ease-in-out infinite, pulseGlow 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

/* ============================================
   IMAGE ANIMATIONS
   ============================================ */

.gallery-item {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.gallery-item img {
    transition: all 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   FORM INPUT ANIMATIONS
   ============================================ */

input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
