/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero Animations */
@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroButtonsReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: heroTitleReveal 0.8s ease-out 0.3s both;
}

.hero-subtitle {
    animation: heroSubtitleReveal 0.8s ease-out 0.5s both;
}

.hero-buttons {
    animation: heroButtonsReveal 0.8s ease-out 0.7s both;
}

/* Logo Animation */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-logo {
    animation: logoFadeIn 0.6s ease-out 0.1s both;
}

/* Navigation Animation */
@keyframes navSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: navSlideDown 0.6s ease-out;
}

/* Service Card Hover Animations */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    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.6s ease;
}

.service-card:hover::after {
    left: 100%;
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

/* Process Timeline Animation */
@keyframes processLineGrow {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    height: 2px;
    background: var(--primary-blue);
    animation: processLineGrow 2s ease-out;
    z-index: 1;
}

.process-number {
    position: relative;
    z-index: 3;
}

/* Number Counter Animation */
@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.counting {
    animation: countUp 0.6s ease-out;
}

/* Testimonial Fade Animation */
.testimonial-slide {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.testimonial-slide:not(.active) {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Form Focus Animations */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
}

.form-group label {
    transition: all 0.3s ease;
    transform-origin: left;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label {
    color: var(--primary-blue);
    transform: scale(0.9) translateY(-5px);
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-blue);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Hover Effects for Icons */
.service-icon i,
.why-choose-icon i,
.contact-item i {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i,
.why-choose-card:hover .why-choose-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Social Links Hover */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::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;
}

.social-link:hover::before {
    left: 100%;
}

/* Footer Links Animation */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Value Items Hover */
.value-item {
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Card Appear Animation */
@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card.animate,
.why-choose-card.animate,
.process-step.animate {
    animation: cardAppear 0.6s ease-out both;
}

/* Text Reveal Animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title.animate {
    animation: textReveal 0.6s ease-out both;
}

.section-subtitle.animate {
    animation: textReveal 0.6s ease-out 0.2s both;
}

/* Mobile Specific Animations */
@media (max-width: 768px) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        transform: translateY(20px);
    }
    
    .fade-in.visible,
    .slide-in-left.visible,
    .slide-in-right.visible {
        transform: translateY(0);
    }
    
    .scale-in.visible {
        transform: scale(1);
    }
    
    .hero-title {
        animation-delay: 0.2s;
    }
    
    .hero-subtitle {
        animation-delay: 0.4s;
    }
    
    .hero-buttons {
        animation-delay: 0.6s;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
    }
}

/* Form Success/Error Animation */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message {
    animation: slideDown 0.3s ease-out;
}

/* Testimonial Dots Animation */
.dot {
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.3s ease;
    border-radius: 50%;
}

.dot:hover::before {
    left: 0;
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    animation: navbarSlideIn 0.3s ease-out;
}

@keyframes navbarSlideIn {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Page Load Animation */
@keyframes pageLoad {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

/* Service Row Animations */
.service-row {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-row.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-row:nth-child(even) {
    transform: translateX(-50px) translateY(50px);
}

.service-row:nth-child(even).animate {
    transform: translateX(0) translateY(0);
}

.service-row:nth-child(odd) {
    transform: translateX(50px) translateY(50px);
}

.service-row:nth-child(odd).animate {
    transform: translateX(0) translateY(0);
}

/* Service Text Elements Animation */
.service-text .service-title,
.service-text .service-description,
.service-text .service-features,
.service-text .service-cta {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.service-text.animate .service-title,
.service-text.animate .service-description,
.service-text.animate .service-features,
.service-text.animate .service-cta {
    opacity: 1;
    transform: translateY(0);
}

.service-text.animate .service-icon-large {
    transition-delay: 0.1s;
}

.service-text.animate .service-title {
    transition-delay: 0.2s;
}

.service-text.animate .service-description {
    transition-delay: 0.3s;
}

.service-text.animate .service-features {
    transition-delay: 0.4s;
}

.service-text.animate .service-cta {
    transition-delay: 0.5s;
}

/* Service Visual Animation */
.service-visual {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.service-row.animate .service-visual {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Floating Elements Enhanced Animation */
.floating-elements .element {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.6s ease;
}

.service-row.animate .floating-elements .element {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-row.animate .floating-elements .element-1 {
    transition-delay: 0.5s;
}

.service-row.animate .floating-elements .element-2 {
    transition-delay: 0.7s;
}

.service-row.animate .floating-elements .element-3 {
    transition-delay: 0.9s;
}

/* Interactive Hover Effects for Service Graphics */
.service-graphic:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.service-graphic:hover .floating-elements .element {
    animation-duration: 2s;
    transform: scale(1.1);
}

/* Service Row Hover Effects */
.service-row:hover .service-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-row:hover .service-graphic::before {
    animation-duration: 3s;
}

/* Parallax Effect for Service Graphics */
@media (min-width: 769px) {
    .service-graphic {
        transform: translateZ(0);
        transition: transform 0.1s ease-out;
    }
}

/* Pulse Animation for Service CTAs */
.service-cta {
    position: relative;
}

.service-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.service-cta:hover::after {
    animation: none;
}

/* Service Features List Animation */
.service-features li {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.service-row.animate .service-features li {
    opacity: 1;
    transform: translateX(0);
}

.service-row.animate .service-features li:nth-child(1) { transition-delay: 0.6s; }
.service-row.animate .service-features li:nth-child(2) { transition-delay: 0.7s; }
.service-row.animate .service-features li:nth-child(3) { transition-delay: 0.8s; }
.service-row.animate .service-features li:nth-child(4) { transition-delay: 0.9s; }
.service-row.animate .service-features li:nth-child(5) { transition-delay: 1s; }

/* Service Row Background Animation */
.service-row::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.service-row:hover::after {
    left: 100%;
}

/* Magnetic Effect for Service Graphics */
.service-graphic {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-graphic:hover {
    filter: brightness(1.1);
}

/* Enhanced mobile animations */
@media (max-width: 768px) {
    .service-row {
        transform: translateY(30px);
    }
    
    .service-row.animate {
        transform: translateY(0);
    }
    
    .service-row:nth-child(even),
    .service-row:nth-child(odd) {
        transform: translateY(30px);
    }
    
    .service-row:nth-child(even).animate,
    .service-row:nth-child(odd).animate {
        transform: translateY(0);
    }
    
    .floating-elements .element {
        animation-duration: 3s;
    }
} 