/* ============================================
   MODERN ANIMATIONS & EFFECTS
   Enhance existing design with smooth animations,
   transitions, and interactive effects
   ============================================ */

/* ============================================
   SMOOTH TRANSITIONS - All Interactive Elements
   ============================================ */

.site-button,
.btn-primary,
.btn,
a,
.icon-bx-wraper,
.card,
.pricing-card,
.feature-card,
.form-control,
input,
textarea,
select,
.header-nav .nav>li>a,
.login-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

.site-button,
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

.site-button i,
.btn-primary i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.site-button:hover i.fa-arrow-right,
.btn-primary:hover i.fa-arrow-right {
    transform: translateX(5px);
}

/* Button pulse effect on hover */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(26, 35, 126, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(26, 35, 126, 0);
    }
}

.site-button:hover,
.btn-primary:hover {
    animation: pulse 2s infinite;
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

.icon-bx-wraper,
.card,
.pricing-card,
.feature-card {
    position: relative;
    overflow: hidden;
}

.icon-bx-wraper::before,
.card::before,
.pricing-card::before,
.feature-card::before {
    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.5s;
}

.icon-bx-wraper:hover::before,
.card:hover::before,
.pricing-card:hover::before,
.feature-card:hover::before {
    left: 100%;
}

.icon-bx-wraper:hover,
.card:hover,
.pricing-card:hover,
.feature-card:hover {
    /* transform: translateY(-8px) scale(1.02); */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ICON BOX ANIMATIONS
   ============================================ */

.icon-box {
    position: relative;
    /* transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); */
}

.icon-bx-wraper:hover .icon-box {
    /* transform: scale(1.15) rotate(10deg); */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Icon bounce animation */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.icon-bx-wraper:hover .icon-box svg,
.icon-bx-wraper:hover .icon-box i {
    animation: iconBounce 0.6s ease;
}

/* ============================================
   FORM INPUT ANIMATIONS
   ============================================ */

.form-control,
input,
textarea {
    transition: all 0.3s ease;
}

.form-control:focus,
input:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Floating label effect */
.form-group {
    position: relative;
}

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

.form-control:focus+label,
input:focus+label {
    transform: translateY(-5px) scale(0.9);
    color: var(--primary-color, #1A237E);
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to sections */
.section-full {
    animation: fadeIn 0.8s ease-out;
}

.section-head {
    animation: fadeInUp 0.8s ease-out;
}

.icon-bx-wraper,
.card,
.pricing-card {
    /* animation: fadeInUp 0.6s ease-out; */
    animation-fill-mode: both;
}

/* Stagger animation delays */
/* .icon-wrapper:nth-child(1) .icon-bx-wraper {
    animation-delay: 0.1s;
}

.icon-wrapper:nth-child(2) .icon-bx-wraper {
    animation-delay: 0.2s;
}

.icon-wrapper:nth-child(3) .icon-bx-wraper {
    animation-delay: 0.3s;
}

.icon-wrapper:nth-child(4) .icon-bx-wraper {
    animation-delay: 0.4s;
} */

/* ============================================
   NAVIGATION ANIMATIONS
   ============================================ */

.header-nav .nav>li>a {
    position: relative;
}

.header-nav .nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary, #1A237E);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.header-nav .nav>li>a:hover::after,
.header-nav .nav>li.active>a::after {
    width: 80%;
}

.header-nav .nav>li>a:hover {
    transform: translateY(-2px);
}

/* ============================================
   BANNER/HERO ANIMATIONS
   ============================================ */

.banner-content {
    animation: fadeInLeft 1s ease-out;
}

.banner-media {
    animation: fadeInRight 1s ease-out;
}

.banner-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.banner-content h6 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.banner-content .site-button {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

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

    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    animation: spin 0.75s linear infinite;
}

/* ============================================
   ALERT ANIMATIONS
   ============================================ */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert {
    animation: slideInRight 0.5s ease-out;
}

/* ============================================
   PRICING CARD ANIMATIONS
   ============================================ */

.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.03);
}

.pricing-card.featured {
    animation: pulse 3s infinite;
}

/* ============================================
   FOOTER ANIMATIONS
   ============================================ */

.footer-social a {
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SCROLL REVEAL EFFECTS
   ============================================ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

.parallax {
    transition: transform 0.3s ease-out;
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   LOADING STATES
   ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   HOVER GLOW EFFECTS
   ============================================ */

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(26, 35, 126, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(26, 35, 126, 0.6), 0 0 30px rgba(26, 35, 126, 0.4);
    }
}

.icon-bx-wraper:hover,
.card:hover {
    animation: glow 2s infinite;
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.text-shine {
    background: linear-gradient(90deg, #1A237E, #26A69A, #1A237E);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

/* ============================================
   IMAGE ANIMATIONS
   ============================================ */

img {
    transition: transform 0.5s ease;
}

img:hover {
    transform: scale(1.05);
}

/* ============================================
   MODAL/OVERLAY ANIMATIONS
   ============================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.show {
    animation: fadeInScale 0.3s ease-out;
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   INTERACTIVE FEEDBACK
   ============================================ */

.site-button:active,
.btn-primary:active {
    transform: scale(0.98);
}

.icon-bx-wraper:active,
.card:active {
    transform: scale(0.98);
}

/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */

.page-wraper {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   FLOATING ANIMATION
   ============================================ */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.banner-media img {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   RIPPLE EFFECT
   ============================================ */

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect,
.site-button,
.btn-primary,
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* ============================================
   FADE IN ANIMATION FOR IMAGES
   ============================================ */

img.fade-in {
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

/* ============================================
   FORM FOCUS STATE
   ============================================ */

.form-group.focused label {
    color: var(--primary, #1A237E);
    transform: translateY(-2px);
}

.form-group.focused .form-control {
    border-color: var(--primary, #1A237E);
}

/* ============================================
   ENHANCED HOVER STATES
   ============================================ */

.icon-bx-wraper:hover .dez-tilte {
    /* color: var(--primary, #1A237E); */
    /* transform: translateX(5px); */
}

.icon-bx-wraper:hover .dz-text {
    /* color: var(--gray-700, #374151); */
}

/* ============================================
   STAGGERED ANIMATION DELAYS
   ============================================ */
/* 
.about-work-inner .icon-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.about-work-inner .icon-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.about-work-inner .icon-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

.about-work-inner .icon-wrapper:nth-child(4) {
    animation-delay: 0.4s;
}

.about-work-inner .icon-wrapper:nth-child(5) {
    animation-delay: 0.5s;
}

.about-work-inner .icon-wrapper:nth-child(6) {
    animation-delay: 0.6s;
}

.about-work-inner .icon-wrapper:nth-child(7) {
    animation-delay: 0.7s;
}

.about-work-inner .icon-wrapper:nth-child(8) {
    animation-delay: 0.8s;
} */