
/* ==========================
   Global Animations
========================== */

/* Fade Up */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bounce Hover */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==========================
   Applied Animations
========================== */

/* Hero Section */
.hero-content {
  animation: fadeUp 0.8s ease-out forwards;
}

/* Section Titles (scroll-triggered) */
.section-title h2 {
  opacity: 1;
  transform: translateY(30px);
  transition: all 1s ease-out;
}
.section-title h2.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Service Cards (hover) */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Why Choose Us - Feature Icons (scroll-triggered) */
.feature-icon {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}
.feature-icon.animate {
  opacity: 1;
  transform: scale(1);
}

/* Testimonials (scroll-triggered) */
.testimonial-card {
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s ease;
}
.testimonial-card.animate {
  opacity: 1;
  transform: scale(1);
}

/* CTA Button (hover bounce) */
.cta-section .btn-secondary:hover {
  animation: bounce 0.6s ease;
}

/* Services Section - Service Cards (scroll-triggered) */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.service-card.animate {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================
   Extra Animations
========================== */

/* Header Nav Links (hover underline slide) */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Clients Logos (scroll-triggered) */
.client-logo {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}
.client-logo.animate {
  opacity: 1;
  transform: scale(1);
}

/* Footer Social Links (hover rotate-in) */
.social-links a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-links a:hover {
  transform: rotate(-5deg) scale(1.1);
  color: #0073e6; /* tweak to your brand color */
}

/*Why It Matters Section Boxes */
.why-box {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.why-box.animate {
  opacity: 1;
  transform: translateY(0);
}

/*How We Deliver Section Items */
.deliver-step {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}
.deliver-step.animate {
  opacity: 1;
  transform: scale(1);
}
/* Animations and Transitions for Sharede Vision */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In From Left Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient Text Animation */
@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animated Classes */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 1s ease forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease forwards;
    opacity: 1;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--teal), var(--blue), var(--purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 5s ease infinite;
}

/* Staggered 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;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(110, 97, 234, 0.5);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Animated Underline for Links */
.animated-underline {
    position: relative;
    text-decoration: none;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(to right, var(--teal), var(--purple));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Typing Animation for Hero Text */
.typing-effect {
    border-right: 3px solid var(--teal);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3.5s steps(40, end) forwards, 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: var(--teal) }
}

/* Animated Gradient Border */
.gradient-border {
    position: relative;
    border-radius: 10px;
    padding: 5px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, var(--teal), var(--blue), var(--purple));
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Animated Icon */
.animated-icon {
    transition: transform 0.3s ease;
}

.animated-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--teal), var(--blue), var(--purple));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Hero Section Enhancements */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

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

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.hero-shape-1 {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--teal);
    animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
    bottom: -150px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: var(--blue);
    animation: float 12s ease-in-out infinite;
}

.hero-shape-3 {
    top: 40%;
    right: 30%;
    width: 200px;
    height: 200px;
    background: var(--purple);
    animation: float 10s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Enhanced Typing Effect */
.typing-effect {
    display: inline-block;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    border-right: 3px solid var(--teal);
    overflow: hidden;
}

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

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--teal) }

}