/**
 * Enhanced Hover Effects & Transparent Design
 * Modern glass-morphism effects for the entire website
 */

/* ========================================
   GLASS-MORPHISM EFFECTS
======================================== */

/* Glass Header */
.site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Glass Cards */
.service-card,
.feature-card,
.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glass Modal */
.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ========================================
   ENHANCED HOVER EFFECTS
======================================== */

/* Cards Hover */
.service-card:hover,
.feature-card:hover,
.stat-card:hover,
.blog-card:hover,
.review-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.service-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
    z-index: 0;
}

.service-card:hover::before,
.feature-card:hover::before {
    opacity: 1;
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0066CC, #0052A3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Link Hover with Underline Animation */
.animated-link {
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066CC, #8B5CF6);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.animated-link:hover {
    color: #0066CC;
}

/* Image Hover Effects */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-container img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-container:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Icon Hover Effects */
.icon-bounce {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-bounce:hover {
    transform: translateY(-6px);
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-6px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.icon-rotate {
    transition: transform 0.4s;
}

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

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

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

/* ========================================
   SERVICE SLIDER EFFECTS
======================================== */

.service-slide {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-slide:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-slide:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

/* ========================================
   STATS COUNTER ANIMATION
======================================== */

.stat-number {
    transition: all 0.3s;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    background: linear-gradient(135deg, #0066CC, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAVIGATION MENU EFFECTS
======================================== */

.mega-menu-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    position: relative;
    transition: all 0.3s;
}

.menu-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066CC, #8B5CF6);
    transition: width 0.3s;
}

.menu-item:hover::before {
    width: 80%;
}

.menu-item:hover {
    color: #0066CC;
    transform: translateY(-2px);
}

/* ========================================
   FORM ELEMENTS
======================================== */

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #0066CC;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.form-group {
    position: relative;
}

.form-label {
    transition: all 0.3s;
}

.form-control:focus + .form-label {
    color: #0066CC;
    transform: translateY(-2px);
}

/* ========================================
   FLOATING ACTION BUTTONS
======================================== */

.floating-btn {
    position: fixed;
    background: linear-gradient(135deg, #0066CC, #0052A3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 102, 204, 0.6);
}

.floating-btn:active {
    transform: scale(0.95);
}

/* WhatsApp Button */
.whatsapp-float {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-float:hover {
    animation: shake 0.6s;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Call Button */
.call-float {
    background: linear-gradient(135deg, #0066CC, #0052A3);
}

.call-float:hover {
    animation: ring 1s;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* ========================================
   TESTIMONIAL/REVIEW CARDS
======================================== */

.review-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 150px;
    color: rgba(59, 130, 246, 0.05);
    font-family: Georgia, serif;
    transition: all 0.3s;
}

.review-card:hover::after {
    color: rgba(59, 130, 246, 0.1);
    transform: scale(1.2);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Star Rating Animation */
.star-rating {
    display: inline-flex;
    gap: 4px;
}

.star {
    transition: all 0.2s;
    cursor: pointer;
}

.star:hover {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* ========================================
   PRICING/ESTIMATION CARDS
======================================== */

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #8B5CF6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    border-color: #0066CC;
}

.pricing-card.featured {
    border-color: #0066CC;
    box-shadow: 0 12px 48px rgba(0, 102, 204, 0.2);
}

.pricing-card.featured::before {
    transform: scaleX(1);
}

/* ========================================
   GALLERY EFFECTS
======================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1);
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.9);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    font-size: 48px;
    color: #FFFFFF;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay-icon {
    transform: scale(1);
}

/* ========================================
   FOOTER EFFECTS
======================================== */

.site-footer {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    position: relative;
    transition: all 0.3s;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #0066CC;
    padding-left: 20px;
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: linear-gradient(135deg, #0066CC, #8B5CF6);
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.4);
}

/* ========================================
   LOADING ANIMATIONS
======================================== */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 102, 204, 0.2);
    border-top-color: #0066CC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.shimmer {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   SCROLL ANIMATIONS
======================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   MOBILE OPTIMIZATIONS
======================================== */

@media (max-width: 768px) {
    .service-card:hover,
    .feature-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

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