/* ========================================
   Modern Visual Enhancements for MField MEA
   ======================================== */

/* CSS Custom Properties - Design System */
:root {
    /* Primary Colors */
    --primary-blue: #2B8EFE;
    --primary-purple: #7141B1;
    --primary-gradient: linear-gradient(135deg, #43BAFF 0%, #7141B1 100%);
    
    /* Secondary Colors */
    --accent-light-blue: #43BAFF;
    --accent-dark-blue: #1F6FCC;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #333333;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(43, 142, 254, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ================== Smooth Transitions ================== */
* {
    transition: background-color var(--transition-base), 
                color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

/* Remove transition from specific elements */
.swiper-container *,
.progress-wrap *,
.preloader * {
    transition: none;
}

/* ================== Enhanced Buttons ================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.btn::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 var(--transition-slow), height var(--transition-slow);
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn:active {
    transform: translateY(0);
}

/* ================== Card Hover Effects ================== */
.service-item-03,
.choose-us-item,
.single-case-study-02,
.single-testimonial-02 {
    transition: all var(--transition-base);
}

.service-item-03:hover,
.choose-us-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.single-case-study-02:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ================== Enhanced Gradients ================== */
.shape-1 path:last-child,
.about-img-wrap::before {
    background: var(--primary-gradient);
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

/* ================== Image Hover Effects ================== */
.service-img img,
.about-img img,
.case-study-img img,
.testimonial-thumb img {
    transition: transform var(--transition-slow), filter var(--transition-base);
}

.service-item-03:hover .service-img img,
.about-img-wrap:hover .about-img img,
.single-case-study-02:hover .case-study-img img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ================== Text Animations ================== */
.hero-content h1,
.hero-content h3,
.section-title h2 {
    background: linear-gradient(
        90deg,
        var(--dark-gray),
        var(--primary-blue),
        var(--dark-gray)
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* ================== Glassmorphism Effects ================== */
.header-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-section {
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

/* ================== Loading Animations ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item-03,
.choose-us-item,
.single-counter {
    animation: fadeInUp 0.6s ease-out;
}

.service-item-03:nth-child(1) { animation-delay: 0.1s; }
.service-item-03:nth-child(2) { animation-delay: 0.2s; }
.service-item-03:nth-child(3) { animation-delay: 0.3s; }
.service-item-03:nth-child(4) { animation-delay: 0.4s; }

/* ================== Enhanced Links ================== */
.main-menu a,
.footer-widget a {
    position: relative;
    transition: color var(--transition-base);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}

.main-menu a:hover::after {
    width: 100%;
}

/* ================== Counter Animations ================== */
.single-counter {
    transition: all var(--transition-base);
}

.single-counter:hover {
    transform: scale(1.05);
}

.single-counter .counter {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ================== Social Icons Enhancement ================== */
.footer-social .social li a,
.offcanvas-social .social li a {
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.footer-social .social li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: -1;
}

.footer-social .social li a:hover::before {
    transform: translateY(0);
}

.footer-social .social li a:hover {
    color: var(--white);
    transform: translateY(-3px) rotate(5deg);
}

/* ================== Progress Bar Enhancement ================== */
.progress-wrap {
    transition: all var(--transition-base);
}

.progress-wrap:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ================== Form Input Enhancement ================== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 142, 254, 0.1);
    transform: translateY(-2px);
}

/* ================== Skill Bar Animation ================== */
.skill-bar .bar {
    position: relative;
    overflow: hidden;
}

.skill-bar .bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmerBar 2s infinite;
}

@keyframes shimmerBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ================== Brand Logo Enhancement ================== */
.single-brand {
    transition: all var(--transition-base);
    filter: grayscale(100%);
    opacity: 0.6;
}

.single-brand:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ================== CTA Section Enhancement ================== */
.cta-wrap {
    position: relative;
    overflow: hidden;
}

.cta-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotateCta 20s linear infinite;
}

@keyframes rotateCta {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================== Responsive Enhancements ================== */
@media (max-width: 768px) {
    .service-item-03:hover,
    .choose-us-item:hover {
        transform: translateY(-5px);
    }
    
    /* Reduce animation intensity on mobile */
    * {
        animation-duration: 0.3s !important;
    }
}

/* ================== Accessibility Enhancements ================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
    }
}

/* ================== Print Styles ================== */
@media print {
    .header-section,
    .footer-section,
    .progress-wrap,
    .cta-wrap {
        display: none;
    }
}

/* Policy Navigation Tags */
.policy-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.policy-tags h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}
.policy-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.policy-tag-item a {
    display: inline-block;
    padding: 8px 16px;
    background: #f4f7fa;
    color: #555;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}
.policy-tag-item a:hover {
    background: #e1e8f0;
    color: #2B8EFE;
    transform: translateY(-2px);
}
.policy-tag-item a.active {
    background: #2B8EFE;
    color: #fff;
    box-shadow: 0 4px 10px rgba(43, 142, 254, 0.3);
}

/* ================== About Page Enhancements ================== */
.mfield-services-section-07 {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.mfield-services-section-07 .section-title {
    margin-bottom: 30px;
}

.mfield-services-section-07 .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mfield-services-section-07 .service-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.6;
    transition: transform var(--transition-base), color var(--transition-base);
}

.mfield-services-section-07 .service-list li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    background: rgba(43, 142, 254, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    transition: all var(--transition-base);
}

.mfield-services-section-07 .service-list li:hover {
    transform: translateX(5px);
    color: var(--dark-gray);
}

.mfield-services-section-07 .service-list li:hover::before {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* Card styling for columns within the services section */
.mfield-services-section-07 .row > .col-md-6 {
    padding: 30px;
    border-radius: 15px;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.mfield-services-section-07 .row > .col-md-6:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: rgba(43, 142, 254, 0.1);
    transform: translateY(-5px);
}

/* Alternating background for sections to create visual separation */
.mfield-services-section-07:nth-of-type(even) {
    background-color: #f8fbff;
}
