/* ===================================
   SMOOTH TRANSITIONS - GLOBAL
   Apply to entire website
   =================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* All Interactive Elements */
a, button, input, textarea, select, 
.btn, .card, .service-card, .testimonial-card,
.feature-card, .benefit-card, .stat-card,
.nav-link, .navbar, .hero-section,
.service-detailed-card, .price-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Lift Effect for Cards */
.service-card:hover,
.testimonial-card:hover,
.feature-card:hover,
.benefit-card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* Link Hover */
a:hover {
    color: var(--primary-color);
}

/* Image Zoom on Hover */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover img,
.testimonial-card:hover img,
.service-detailed-card:hover img {
    transform: scale(1.05);
}

/* Icon Animations */
i, .icon {
    transition: all 0.3s ease;
}

.feature-card:hover i,
.benefit-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
}

/* Service card icons stay white on hover */
.service-card:hover .service-icon i {
    color: white !important;
}

/* Input Focus Effects */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: scale(1.01);
}

/* Navbar Scroll Effect */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section Animations */
.hero-content h1,
.hero-content p,
.hero-content .btn {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Border Transitions */
.service-card,
.testimonial-card,
.feature-card,
.benefit-card {
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover,
.testimonial-card:hover,
.feature-card:hover,
.benefit-card:hover {
    border-color: var(--primary-color);
}

/* Text Hover Effects */
h1, h2, h3, h4, h5, h6 {
    transition: color 0.3s ease;
}

/* Smooth Background Transitions */
section {
    transition: background-color 0.3s ease;
}

/* Price Badge Animations */
.price-badge,
.service-price-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .price-badge,
.service-detailed-card:hover .service-price-badge {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

/* List Item Hover */
li {
    transition: all 0.3s ease;
}

li:hover {
    transform: translateX(5px);
}

/* Form Elements */
.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-color);
}

/* Smooth Opacity Changes */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stat Numbers Animation */
.stat-number {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Testimonial Stars */
.stars i {
    transition: all 0.2s ease;
}

.stars:hover i {
    transform: scale(1.2);
    color: #fbbf24;
}

/* Footer Links - No underline animation */
.footer a {
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer a:hover {
    text-decoration: none !important;
}

/* Smooth Scroll Padding */
section {
    scroll-margin-top: 100px;
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

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

/* Pulse Animation for Important Elements */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Smooth Page Transitions */
body {
    animation: pageLoad 0.5s ease;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
