.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    @apply text-gray-600 dark: text-gray-300 hover: bg-gray-100/50 dark: hover: bg-gray-800/50 transition-all;
}

.dark .logo-glow {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.3));
}


/* Hide scrollbar in Firefox */

body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}


/* Hide scrollbar in WebKit browsers (Chrome, Safari, Opera) */

body::-webkit-scrollbar {
    display: none;
}


/* Smooth transitions for theme change */

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Better contrast for dark mode */

.dark body {
    background-color: #111827;
    color: #f3f4f6;
}

.dark .text-gray-800 {
    color: #f3f4f6;
}

.dark .text-gray-600 {
    color: #d1d5db;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: currentColor
    }
}

.cta-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::after {
    opacity: 0.1;
}

@media (max-width: 640px) {
    /* Mobile Container Enhancements */
    .service-container-mobile {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Optimized Typography */
    .mobile-service-title {
        font-size: 0.75rem;
        line-height: 1rem;
    }
    .mobile-service-description {
        font-size: 0.6rem;
        line-height: 0.9rem;
    }
    /* Connection Line Animation */
    line {
        transition: stroke-opacity 0.3s ease;
    }
    .service-container-mobile:active~svg line {
        stroke-opacity: 0.8;
    }
}

@keyframes mobile-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
    }
}

.service-container-mobile {
    animation: mobile-float 5s ease-in-out infinite;
}