/* Animations and Transitions */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Left Animation */
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Right Animation */
@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.8);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Apply animations to elements */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-in-out;
}

.slide-down {
    animation: slideDown 0.6s ease-in-out;
}

.slide-left {
    animation: slideLeft 0.6s ease-in-out;
}

.slide-right {
    animation: slideRight 0.6s ease-in-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-in-out;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Floating cards animation */
.floating-card {
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 0.5s;
}

.card-3 {
    animation-delay: 1s;
}

/* Smooth transitions */
* {
    transition: background-color var(--transition-base),
                color var(--transition-base),
                border-color var(--transition-base);
}

/* Hover effects */
.service-card,
.case-study-card,
.blog-card,
.pricing-card,
.testimonial-card {
    transition: all var(--transition-base);
}



/* Link hover effects - DISABLED */
a {
    position: relative;
}

/* Disable underline for certain links */
.nav-link::after,
.logo::after {
    display: none;
}

/* Smooth page transitions */
main {
    animation: fadeIn 0.3s ease-in-out;
}

/* Stagger animations for lists */
.service-card:nth-child(1) {
    animation: slideUp 0.6s ease-in-out 0.1s both;
}

.service-card:nth-child(2) {
    animation: slideUp 0.6s ease-in-out 0.2s both;
}

.service-card:nth-child(3) {
    animation: slideUp 0.6s ease-in-out 0.3s both;
}

.service-card:nth-child(4) {
    animation: slideUp 0.6s ease-in-out 0.4s both;
}

.service-card:nth-child(5) {
    animation: slideUp 0.6s ease-in-out 0.5s both;
}

.service-card:nth-child(6) {
    animation: slideUp 0.6s ease-in-out 0.6s both;
}

/* AOS (Animate On Scroll) support */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Parallax effect for hero section */
.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}



/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal {
    animation: textReveal 0.8s ease-in-out;
}

/* Smooth transitions for form elements */
input:focus,
textarea:focus,
select:focus {
    transition: all var(--transition-base);
}

/* Smooth transitions for navigation */
.navbar {
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Smooth transitions for modals */
.modal {
    animation: scaleIn 0.3s ease-in-out;
}

/* Smooth transitions for dropdowns */
.dropdown {
    animation: slideDown 0.3s ease-in-out;
}


/* Circles Appearing Animation */
@keyframes circleAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@keyframes circlePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Animated Circle Elements */
.animated-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(26, 26, 26, 0.15), rgba(26, 26, 26, 0.05));
    pointer-events: none;
    filter: blur(1px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: circleAppear 3s ease-out forwards, circlePulse 4s ease-in-out 3s infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation: circleAppear 3.5s ease-out 0.5s forwards, circlePulse 4s ease-in-out 3.5s infinite;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 5%;
    animation: circleAppear 3.2s ease-out 1s forwards, circlePulse 4s ease-in-out 4.2s infinite;
}

.circle-4 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 15%;
    animation: circleAppear 3.8s ease-out 1.5s forwards, circlePulse 4s ease-in-out 5.3s infinite;
}

.circle-5 {
    width: 180px;
    height: 180px;
    top: 20%;
    left: -50px;
    animation: circleAppear 3.3s ease-out 0.8s forwards, circlePulse 4s ease-in-out 4.1s infinite;
}
