/* Hover Micro-interactions CSS */

/* Button Hover States with Morphing */
.cta-button, .btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.cta-button::before, .btn-primary::before, .btn-secondary::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;
}

.cta-button:hover::before, .btn-primary:hover::before, .btn-secondary:hover::before {
    left: 100%;
}

.cta-button:hover, .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Magnetic Effect for CTA Buttons */
.cta-button {
    cursor: pointer;
}

.cta-button:hover {
    animation: magneticPull 0.3s ease-out;
}

@keyframes magneticPull {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
    100% { transform: translateY(-2px) scale(1.02); }
}

/* Card Lift Animations with Shadows */
.service-card, .feature-card, .testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    position: relative;
}

.service-card:hover, .feature-card:hover, .testimonial-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(52, 152, 219, 0.15);
}

/* Service Cards Enhanced Hover */
.service-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.service-card:hover {
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.service-card:hover h3 {
    color: #3498db;
    transition: color 0.3s ease;
}

/* IWAI Badge Glow Effect */
.iwai-badge, .certification-badge {
    position: relative;
    transition: all 0.3s ease;
}

.iwai-badge::after, .certification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: gradientShift 3s ease infinite;
    transition: opacity 0.3s ease;
}

.iwai-badge:hover::after, .certification-badge:hover::after {
    opacity: 0.7;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation Link Hover Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #3498db;
    transform: translateY(-1px);
}

/* Logo Hover Animation */
.logo img {
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1);
}

/* Social Links Bounce Effect */
.social-links a {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #3498db;
}

/* Hero Section CTA Enhanced Hover */
.hero-cta {
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Input Field Focus Enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.form-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
}

/* Testimonial Card Enhanced Hover */
.testimonial-card:hover {
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
}

.testimonial-card:hover .testimonial-author {
    color: #3498db;
}

/* Stats Counter Hover Animation */
.stat-number {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: #2ecc71;
    text-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

/* Footer Link Hover Effects */
.footer-link {
    position: relative;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
    padding-left: 5px;
}

/* Mobile Touch Enhancements */
@media (max-width: 768px) {
    .service-card:active, .feature-card:active {
        transform: scale(0.98);
    }

    .cta-button:active, .btn-primary:active {
        transform: scale(0.95);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}