/* =========================================
   M&M Marketing Agency - Design Enhancements
   Modern & Bold Visual Effects
   ========================================= */

/* =========================================
   CSS Variables - Enhanced Color Palette
   ========================================= */
:root {
    --gradient-primary: linear-gradient(135deg, #2c82e8 0%, #42A5F5 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #42A5F5 0%, #2c82e8 100%);
    --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
    --gradient-light: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    --gradient-accent: linear-gradient(135deg, #2c82e8 0%, #5EE4C6 100%);

    --shadow-sm: 0px 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0px 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0px 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0px 30px 60px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0px 25px 55px rgba(0, 0, 0, 0.18);

    --glow-blue: 0 0 30px rgba(44, 130, 232, 0.4);
    --glow-blue-strong: 0 0 50px rgba(44, 130, 232, 0.6);
    --glow-white: 0 0 20px rgba(255, 255, 255, 0.3);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   Scroll Animations - Keyframes
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    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);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(44, 130, 232, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(44, 130, 232, 0.7);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* =========================================
   Animation Classes
   ========================================= */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.8s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delay modifiers */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* =========================================
   HERO SECTION ENHANCEMENTS
   ========================================= */

/* Hero gradient overlay */
.hero-area::before,
.hero-2-area::before,
.hero-3-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero title enhanced */
.hero-area .hero-title,
.hero-2-area .hero-title,
.page-title {
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.15);
}

/* Hero CTA button glow */
.hero-area .circle-btn,
.hero-2-area .circle-btn {
    transition: var(--transition-slow);
    box-shadow: var(--shadow-lg);
}

.hero-area .circle-btn:hover,
.hero-2-area .circle-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-blue-strong), var(--shadow-xl);
}

/* Enhanced scroll indicator */
.hero__scroll-btn {
    animation: float 2s ease-in-out infinite;
}

.hero__scroll-btn:hover {
    transform: translateY(5px);
}

/* =========================================
   SERVICE CARDS ENHANCEMENTS
   ========================================= */

/* Service box enhanced */
.service__box {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service__box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 0;
}

.service__box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service__box:hover::before {
    opacity: 0.05;
}

/* Service card items */
.service-item,
.services-item {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    border-radius: 8px;
}

.service-item:hover,
.services-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Service icon enhancement */
.service__box .service__icon,
.service-item .icon,
.services-item .icon {
    transition: transform var(--transition-bounce);
}

.service__box:hover .service__icon,
.service-item:hover .icon,
.services-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* Service content reveal enhancement */
.service__content {
    backdrop-filter: blur(10px);
}

/* =========================================
   TEAM SECTION ENHANCEMENTS (about.html)
   ========================================= */

/* Team item card */
.team-item-2,
.team-item {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    overflow: hidden;
    border-radius: 12px;
}

.team-item-2:hover,
.team-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Team image zoom */
.team-thmb-2,
.team-thmb {
    overflow: hidden;
    position: relative;
}

.team-thmb-2 img,
.team-thmb img {
    transition: transform var(--transition-slow);
}

.team-item-2:hover .team-thmb-2 img,
.team-item:hover .team-thmb img {
    transform: scale(1.1);
}

/* Team overlay */
.team-thmb-2::after,
.team-thmb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(44, 130, 232, 0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.team-item-2:hover .team-thmb-2::after,
.team-item:hover .team-thmb::after {
    opacity: 1;
}

/* Team info slide up */
.team-info-2,
.team-info {
    transition: transform var(--transition-slow), background var(--transition-slow);
}

.team-item-2:hover .team-info-2,
.team-item:hover .team-info {
    background: linear-gradient(135deg, rgba(44, 130, 232, 0.1) 0%, rgba(66, 165, 245, 0.1) 100%);
}

/* =========================================
   CTA SECTIONS ENHANCEMENTS
   ========================================= */

/* Circle button pulse */
.circle-btn {
    position: relative;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.circle-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.circle-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-blue);
}

.circle-btn:hover::before {
    opacity: 0.3;
    transform: scale(1.1);
}

/* Green CTA button enhancement */
.circle-btn.is-green {
    animation: pulseGlow 2s ease-in-out infinite;
}

.circle-btn.is-green:hover {
    animation: none;
    box-shadow: var(--glow-blue-strong);
}

/* CTA area background enhancement */
.cta-area,
.contact-area {
    position: relative;
}

.cta-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(44, 130, 232, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* =========================================
   BUTTON ENHANCEMENTS
   ========================================= */

/* Fill button enhancement */
.fill-btn,
.radius-btn,
.border-btn,
.border-btn2 {
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.fill-btn:hover,
.radius-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Button icon animation */
.fill-btn .btn-icon,
.radius-btn .btn-icon,
.border-btn .btn-icon {
    transition: transform var(--transition-bounce);
}

.fill-btn:hover .btn-icon,
.radius-btn:hover .btn-icon,
.border-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Input button enhancement */
.input-btn {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.input-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Circle icon button */
.circle-icon-btn {
    transition: transform var(--transition-bounce), box-shadow var(--transition-normal), background var(--transition-normal);
}

.circle-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-blue);
}

/* =========================================
   FOOTER ENHANCEMENTS
   ========================================= */

/* Footer background gradient */
.footer-area {
    position: relative;
}

.footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

/* Footer links animation */
.footer__links ul li a {
    position: relative;
    display: inline-block;
    transition: color var(--transition-normal), transform var(--transition-normal);
}

.footer__links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.footer__links ul li a:hover {
    transform: translateX(5px);
}

.footer__links ul li a:hover::after {
    width: 100%;
}

/* Social icons enhancement */
.social-links ul li a {
    transition: transform var(--transition-bounce), background var(--transition-normal), box-shadow var(--transition-normal);
}

.social-links ul li a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow-blue);
}

/* Newsletter input focus */
.single-input-field input,
.contact-input input,
.contact-input textarea {
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.single-input-field input:focus,
.contact-input input:focus,
.contact-input textarea:focus {
    border-color: #2c82e8 !important;
    box-shadow: 0 0 0 3px rgba(44, 130, 232, 0.15);
    outline: none;
}

/* Footer logo hover */
.footer__logo a img {
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.footer__logo a:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* =========================================
   NAVIGATION ENHANCEMENTS
   ========================================= */

/* Main menu links */
.main-menu ul li a {
    position: relative;
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal), left var(--transition-normal);
}

.main-menu ul li a:hover::after,
.main-menu ul li.active a::after {
    width: 100%;
    left: 0;
}

/* Header logo */
.header__logo a img {
    transition: transform var(--transition-normal);
}

.header__logo a:hover img {
    transform: scale(1.05);
}

/* Mobile menu button */
.menu__bar a {
    transition: transform var(--transition-bounce);
}

.menu__bar a:hover {
    transform: scale(1.1);
}

/* =========================================
   CARD & SECTION ENHANCEMENTS
   ========================================= */

/* Generic card enhancement */
.card,
.box,
.item {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

/* About section image */
.about-thumb img,
.about-area img {
    transition: transform var(--transition-slow);
}

.about-thumb:hover img,
.about-area:hover img {
    transform: scale(1.02);
}

/* Testimonial cards */
.testi-item,
.testimonial-item {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.testi-item:hover,
.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Counter area */
.counter-item,
.counter-box {
    transition: transform var(--transition-slow);
}

.counter-item:hover,
.counter-box:hover {
    transform: scale(1.05);
}

/* Brand/client logos */
.brand-wrapper img {
    transition: transform var(--transition-normal), filter var(--transition-normal);
    filter: grayscale(30%);
}

.brand-wrapper img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* =========================================
   PAGE TITLE AREA ENHANCEMENTS
   ========================================= */

.page-title-area {
    position: relative;
}

.page-title-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Page title thumb */
.page-title-thumb img {
    transition: transform var(--transition-slow);
    border-radius: 12px;
}

.page-title-thumb:hover img {
    transform: scale(1.02);
}

/* =========================================
   FORM ENHANCEMENTS
   ========================================= */

/* Contact form inputs */
.contact-form input,
.contact-form textarea {
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2c82e8;
    box-shadow: 0 0 0 4px rgba(44, 130, 232, 0.1);
    transform: translateY(-2px);
}

/* Checkbox enhancement */
.check {
    transition: transform var(--transition-bounce), border-color var(--transition-normal);
}

input[type="checkbox"]:checked + .check {
    transform: scale(1.1);
}

/* =========================================
   SCROLL REVEAL CLASSES
   ========================================= */

/* Elements waiting to be revealed */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.hover-lift {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hover-glow {
    transition: box-shadow var(--transition-slow);
}

.hover-glow:hover {
    box-shadow: var(--glow-blue);
}

.hover-scale {
    transition: transform var(--transition-slow);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-primary) border-box;
}

/* =========================================
   DARK MODE SUPPORT
   ========================================= */

body.dark-mode .footer-area::before {
    opacity: 0.3;
}

body.dark-mode .social-links ul li a:hover {
    box-shadow: 0 0 20px rgba(66, 165, 245, 0.5);
}

body.dark-mode .service__box:hover {
    box-shadow: 0px 25px 55px rgba(0, 0, 0, 0.4);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

/* =========================================
   LARGE TABLETS & SMALL DESKTOPS (992px - 1199px)
   ========================================= */
@media (max-width: 1199px) {
    :root {
        --shadow-lg: 0px 15px 40px rgba(0, 0, 0, 0.12);
        --shadow-hover: 0px 20px 45px rgba(0, 0, 0, 0.15);
    }

    .service__box:hover {
        transform: translateY(-8px);
    }

    .team-item-2:hover,
    .team-item:hover {
        transform: translateY(-6px);
    }

    /* Reduce animation intensity */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }
}

/* =========================================
   TABLETS (768px - 991px)
   ========================================= */
@media (max-width: 991px) {
    :root {
        --shadow-md: 0px 8px 25px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0px 12px 35px rgba(0, 0, 0, 0.12);
        --shadow-hover: 0px 15px 40px rgba(0, 0, 0, 0.14);
    }

    /* Hero Section Tablet */
    .hero-area::before,
    .hero-2-area::before,
    .hero-3-area::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.25) 100%);
    }

    .hero-area .hero-title,
    .hero-2-area .hero-title,
    .page-title {
        text-shadow: 1px 3px 15px rgba(0, 0, 0, 0.2);
    }

    .hero-area .circle-btn,
    .hero-2-area .circle-btn {
        box-shadow: var(--shadow-md);
    }

    .hero-area .circle-btn:hover,
    .hero-2-area .circle-btn:hover {
        transform: scale(1.03);
        box-shadow: var(--glow-blue), var(--shadow-lg);
    }

    /* Service Cards Tablet */
    .service__box:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-hover);
    }

    .service__box:hover .service__icon,
    .service-item:hover .icon,
    .services-item:hover .icon {
        transform: scale(1.08) rotate(3deg);
    }

    /* Team Section Tablet */
    .team-item-2,
    .team-item {
        border-radius: 10px;
    }

    .team-item-2:hover,
    .team-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .team-item-2:hover .team-thmb-2 img,
    .team-item:hover .team-thmb img {
        transform: scale(1.06);
    }

    /* CTA Buttons Tablet */
    .circle-btn:hover {
        transform: scale(1.03);
    }

    .circle-btn.is-green {
        animation: pulseGlow 2.5s ease-in-out infinite;
    }

    /* Navigation Tablet */
    .main-menu ul li a::after {
        height: 1.5px;
    }

    /* Footer Tablet */
    .social-links ul li a:hover {
        transform: translateY(-3px) scale(1.08);
    }

    .footer__links ul li a:hover {
        transform: translateX(3px);
    }

    /* Counter Items Tablet */
    .counter-item:hover,
    .counter-box:hover {
        transform: scale(1.03);
    }

    /* Testimonials Tablet */
    .testi-item:hover,
    .testimonial-item:hover {
        transform: translateY(-4px);
    }

    /* Reveal Animations Tablet - Reduced intensity */
    .reveal {
        transform: translateY(20px);
    }

    .reveal-left {
        transform: translateX(-20px);
    }

    .reveal-right {
        transform: translateX(20px);
    }

    .reveal-scale {
        transform: scale(0.95);
    }

    /* Brand logos Tablet */
    .brand-wrapper img:hover {
        transform: scale(1.05);
    }
}

/* =========================================
   SMALL TABLETS (576px - 767px)
   ========================================= */
@media (max-width: 767px) {
    :root {
        --shadow-sm: 0px 3px 10px rgba(0, 0, 0, 0.06);
        --shadow-md: 0px 6px 20px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0px 10px 25px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0px 12px 30px rgba(0, 0, 0, 0.12);
        --transition-slow: 0.4s ease;
    }

    /* Hero Section Mobile */
    .hero-area::before,
    .hero-2-area::before,
    .hero-3-area::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.3) 100%);
    }

    .hero-area .hero-title,
    .hero-2-area .hero-title,
    .page-title {
        text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.25);
    }

    .hero-area .circle-btn,
    .hero-2-area .circle-btn {
        box-shadow: var(--shadow-sm);
    }

    .hero-area .circle-btn:hover,
    .hero-2-area .circle-btn:hover {
        transform: scale(1.02);
        box-shadow: var(--shadow-md);
    }

    /* Disable pulse animation on mobile for better performance */
    .circle-btn.is-green {
        animation: none;
    }

    .hero__scroll-btn {
        animation: float 2.5s ease-in-out infinite;
    }

    /* Service Cards Mobile */
    .service__box {
        border-radius: 8px;
    }

    .service__box:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .service__box:hover .service__icon,
    .service-item:hover .icon,
    .services-item:hover .icon {
        transform: scale(1.05);
    }

    .service-item:hover,
    .services-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    /* Team Section Mobile */
    .team-item-2,
    .team-item {
        border-radius: 8px;
    }

    .team-item-2:hover,
    .team-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }

    .team-item-2:hover .team-thmb-2 img,
    .team-item:hover .team-thmb img {
        transform: scale(1.04);
    }

    /* Simplified team overlay on mobile */
    .team-thmb-2::after,
    .team-thmb::after {
        background: linear-gradient(180deg, transparent 60%, rgba(44, 130, 232, 0.7) 100%);
    }

    /* CTA Buttons Mobile */
    .circle-btn:hover {
        transform: scale(1.02);
        box-shadow: var(--shadow-md);
    }

    .circle-btn::before {
        display: none; /* Remove pseudo-element for performance */
    }

    /* Buttons Mobile */
    .fill-btn:hover,
    .radius-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    .fill-btn:hover .btn-icon,
    .radius-btn:hover .btn-icon,
    .border-btn:hover .btn-icon {
        transform: translateX(3px);
    }

    /* Navigation Mobile */
    .main-menu ul li a::after {
        display: none; /* Remove underline animation for mobile menu */
    }

    .menu__bar a:hover {
        transform: scale(1.05);
    }

    /* Footer Mobile */
    .footer__links ul li a:hover {
        transform: none; /* Disable transform on mobile */
    }

    .footer__links ul li a:hover::after {
        width: 50%;
    }

    .social-links ul li a:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: var(--shadow-sm);
    }

    /* Form inputs Mobile - Larger touch targets */
    .single-input-field input,
    .contact-input input,
    .contact-input textarea,
    .contact-form input,
    .contact-form textarea {
        min-height: 48px; /* Touch-friendly height */
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        transform: none; /* Remove lift on mobile */
        box-shadow: 0 0 0 3px rgba(44, 130, 232, 0.12);
    }

    /* Counter Items Mobile */
    .counter-item:hover,
    .counter-box:hover {
        transform: scale(1.02);
    }

    /* Testimonials Mobile */
    .testi-item:hover,
    .testimonial-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    /* Brand logos Mobile */
    .brand-wrapper img {
        filter: grayscale(20%);
    }

    .brand-wrapper img:hover {
        transform: scale(1.03);
        filter: grayscale(0%);
    }

    /* Reveal Animations Mobile - Subtle movement */
    .reveal {
        transform: translateY(15px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(15px); /* Use Y instead of X on mobile */
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-scale {
        transform: scale(0.97);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    /* Page Title Mobile */
    .page-title-area::after {
        height: 60px;
    }

    .page-title-thumb img {
        border-radius: 8px;
    }

    /* About section Mobile */
    .about-thumb:hover img,
    .about-area:hover img {
        transform: scale(1.01);
    }

    /* Input button Mobile */
    .input-btn {
        min-height: 48px;
        min-width: 48px;
    }

    .input-btn:hover {
        transform: none;
    }
}

/* =========================================
   EXTRA SMALL MOBILE (max-width: 575px)
   ========================================= */
@media (max-width: 575px) {
    :root {
        --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.05);
        --shadow-md: 0px 4px 15px rgba(0, 0, 0, 0.07);
        --shadow-lg: 0px 8px 20px rgba(0, 0, 0, 0.09);
    }

    /* Hero Section Extra Small */
    .hero-area .circle-btn:hover,
    .hero-2-area .circle-btn:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    /* Service Cards Extra Small */
    .service__box {
        border-radius: 6px;
    }

    .service__box:hover {
        transform: translateY(-2px);
    }

    .service__box::before {
        display: none;
    }

    /* Team Section Extra Small */
    .team-item-2,
    .team-item {
        border-radius: 6px;
    }

    .team-item-2:hover,
    .team-item:hover {
        transform: translateY(-2px);
    }

    .team-thmb-2::after,
    .team-thmb::after {
        display: none; /* Remove overlay on very small screens */
    }

    /* CTA Extra Small */
    .circle-btn:hover {
        transform: none;
    }

    .circle-btn:active {
        transform: scale(0.98);
    }

    /* Buttons Extra Small */
    .fill-btn,
    .radius-btn,
    .border-btn,
    .border-btn2 {
        min-height: 48px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .fill-btn:hover,
    .radius-btn:hover {
        transform: none;
    }

    /* Footer Extra Small */
    .social-links ul li a:hover {
        transform: none;
    }

    .social-links ul li a:active {
        transform: scale(0.95);
    }

    /* Reveal Animations Extra Small - Minimal */
    .reveal {
        transform: translateY(10px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(10px);
    }

    .reveal-scale {
        transform: scale(0.98);
    }

    /* Counter Extra Small */
    .counter-item:hover,
    .counter-box:hover {
        transform: none;
    }

    /* Brand logos Extra Small */
    .brand-wrapper img {
        filter: grayscale(0%); /* Full color on small screens */
    }

    .brand-wrapper img:hover {
        transform: none;
    }

    /* Page Title Extra Small */
    .page-title-thumb img {
        border-radius: 6px;
    }

    .page-title-thumb:hover img {
        transform: none;
    }
}

/* =========================================
   TOUCH DEVICE ENHANCEMENTS
   ========================================= */

/* Detect touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work well on touch */
    .service__box:hover,
    .team-item-2:hover,
    .team-item:hover,
    .testi-item:hover,
    .testimonial-item:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    /* Use active state instead of hover for touch feedback */
    .service__box:active,
    .team-item-2:active,
    .team-item:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }

    .circle-btn:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .circle-btn:active {
        transform: scale(0.95);
        box-shadow: var(--shadow-md);
    }

    .fill-btn:active,
    .radius-btn:active,
    .border-btn:active {
        transform: scale(0.98);
    }

    /* Ensure proper tap target sizes (minimum 48px) */
    .circle-btn,
    .fill-btn,
    .radius-btn,
    .border-btn,
    .input-btn,
    .social-links ul li a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Disable image zoom on touch - prevents accidental interactions */
    .team-item-2:hover .team-thmb-2 img,
    .team-item:hover .team-thmb img,
    .about-thumb:hover img {
        transform: none;
    }

    /* Disable complex pseudo-element animations */
    .service__box::before,
    .circle-btn::before,
    .team-thmb-2::after,
    .team-thmb::after {
        display: none;
    }

    /* Social links touch feedback */
    .social-links ul li a:active {
        transform: scale(0.9);
        background: rgba(44, 130, 232, 0.2);
    }

    /* Footer links touch feedback */
    .footer__links ul li a:active {
        color: #2c82e8;
    }

    /* Disable footer link transform on touch */
    .footer__links ul li a:hover {
        transform: none;
    }

    .footer__links ul li a:hover::after {
        width: 0;
    }
}

/* =========================================
   ADDITIONAL DESIGN IMPROVEMENTS
   ========================================= */

/* Smooth scroll for all browsers */
html {
    scroll-behavior: smooth;
}

/* Enhanced selection color */
::selection {
    background: rgba(44, 130, 232, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(44, 130, 232, 0.3);
    color: inherit;
}

/* Better focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #2c82e8;
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2c82e8;
    outline-offset: 2px;
}

/* Remove default outline and use custom */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced image loading placeholder */
img:not([src]),
img[src=""] {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
    background-size: 200% 100%;
}

/* Ensure lazy loaded images are always visible once loaded */
img[loading="lazy"] {
    opacity: 1;
}

/* Improved text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Better scrollbar styling (webkit browsers) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2c82e8 0%, #42A5F5 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a6bc9 0%, #2c82e8 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #2c82e8 #f1f1f1;
}

/* Enhanced link transitions */
a {
    transition: color var(--transition-normal), opacity var(--transition-normal);
}

/* Section divider enhancement */
.section-divider,
hr {
    border: none;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card glassmorphism effect (optional class) */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient border effect (optional class) */
.gradient-border-animated {
    position: relative;
    background: white;
    border-radius: 12px;
}

.gradient-border-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 14px;
    z-index: -1;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

/* Text gradient animation (optional class) */
.gradient-text-animated {
    background: linear-gradient(90deg, #2c82e8, #42A5F5, #5EE4C6, #42A5F5, #2c82e8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Pulse dot indicator (for status/notifications) */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #2c82e8;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Image overlay zoom effect (for gallery items) */
.img-zoom-container {
    overflow: hidden;
    border-radius: 8px;
}

.img-zoom-container img {
    transition: transform var(--transition-slow);
}

.img-zoom-container:hover img {
    transform: scale(1.1);
}

/* Card with colored top border */
.card-accent {
    border-top: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

/* Floating label effect for inputs */
.floating-label {
    position: relative;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    transition: all var(--transition-normal);
    pointer-events: none;
    color: #999;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: white;
    padding: 0 5px;
    color: #2c82e8;
}

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tooltip enhancement */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Badge/Tag styling */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 1px solid #2c82e8;
    color: #2c82e8;
}

/* =========================================
   PREFERS REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
