@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(120deg);
    }

    66% {
        transform: translateY(-10px) rotate(240deg);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00a8ff, #e100ff);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #33b8ff, #f033ff);
}

:root {
    --vh: 1vh;
}

.mobile-menu-container,
.mobile-menu-overlay {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

@supports (-webkit-touch-callout: none) {

    .mobile-menu-container,
    .mobile-menu-overlay {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
}

@media screen and (max-width: 1024px) {

    .mobile-menu-container,
    .mobile-menu-overlay {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0);
    cursor: pointer;
    padding: 4px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

select::-ms-expand {
    display: none;
}

select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2300a8ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00a8ff, #e100ff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    box-shadow: 0 4px 20px rgba(0, 168, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 168, 255, 0.5);
    background: linear-gradient(135deg, #33b8ff, #f033ff);
}

.back-to-top i {
    color: white;
    font-size: 18px;
    line-height: 50px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top i {
        font-size: 16px;
        line-height: 45px;
    }
}

.logo-carousel-auto img {
    border-bottom: none !important;
    margin-bottom: 18px;
    box-shadow: 0 2px 16px 0 rgba(0, 168, 255, 0.15), 0 1px 12px 0 rgba(225, 0, 255, 0.15);
    background: linear-gradient(135deg, #1e293b 60%, #334155 100%);
    border-radius: 18px;
    padding: 12px;
    height: 120px !important;
    width: auto !important;
    max-width: 220px;
    min-width: 160px;
    transition: box-shadow 0.3s, background 0.3s;
    object-fit: contain;
    flex-shrink: 0;
}

/* Responsive adjustments for client logos */
@media (max-width: 768px) {
    .logo-carousel-auto img {
        height: 100px !important;
        max-width: 180px;
        min-width: 140px;
        padding: 10px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .logo-carousel-auto img {
        height: 80px !important;
        max-width: 160px;
        min-width: 120px;
        padding: 8px;
        margin-bottom: 8px;
    }
}

.logo-carousel-auto img:hover {
    text-decoration: none !important;
    box-shadow: 0 0 16px 0 #00a8ff, 0 0 8px 0 #e100ff;
    background: linear-gradient(135deg, #00a8ff 60%, #e100ff 100%);
}

/* Auto-scrolling logo carousel */
.logo-carousel-auto {
    overflow: hidden;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.logo-carousel-auto:hover {
    animation-play-state: paused;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Service Card Improvements */
.service-card {
    min-height: 480px;
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
    z-index: -1;
    transition: all 0.7s ease;
}

.service-card:hover::before {
    filter: brightness(1.2) contrast(1.25) saturate(1.4);
    transform: scale(1.05);
}

.service-card .absolute.inset-0 {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
    transition: all 0.7s ease;
}

.service-card:hover .absolute.inset-0 {
    filter: brightness(1.15) contrast(1.2) saturate(1.3);
    transform: scale(1.08);
}

/* Enhanced overlay for better text visibility */
.service-card .bg-gradient-to-t {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.75) 40%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.4) 100%) !important;
    transition: all 0.3s ease;
}

.service-card:hover .bg-gradient-to-t {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 0.55) 70%,
            rgba(0, 0, 0, 0.35) 100%) !important;
}

/* Responsive adjustments for service cards */
@media (max-width: 1024px) {
    .service-card {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .service-card {
        min-height: 380px;
    }
}

@media (max-width: 480px) {
    .service-card {
        min-height: 340px;
    }
}