/* King Systems - Custom Styles */

/* Logo Slider Animation */
.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    gap: 4rem;
    animation: scroll 40s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    min-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    color: #1e3a8a;
}

.partner-logo-img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover .partner-logo-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

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

/* Client Logo Slider */
.client-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.client-track {
    display: flex;
    gap: 6rem;
    animation: scrollClients 40s linear infinite;
}

.client-track:hover {
    animation-play-state: paused;
}

.client-item {
    flex-shrink: 0;
    min-width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-item:hover {
    filter: grayscale(0%);
    color: #1e3a8a;
}

/* Client Logo Grid with Images */
.client-logo-grid {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.client-logo-track {
    display: flex;
    gap: 4rem;
    animation: scrollClients 40s linear infinite;
    align-items: center;
}

.client-logo-track:hover {
    animation-play-state: paused;
}

.client-logo-item {
    flex-shrink: 0;
    min-width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.client-logo-img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%) opacity(100%);
    transition: all 0.3s ease;
}

.client-logo-item:hover .client-logo-img {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
}

/* Clickable Cards */
a.block {
    text-decoration: none;
    color: inherit;
}

.cursor-pointer {
    cursor: pointer;
}

/* Feature Icon Animation */
.feature-icon {
    transition: all 0.3s ease;
}

.card-hover:hover .feature-icon {
    transform: scale(1.1);
}

/* Navigation Sticky Effect */
.nav-sticky {
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-primary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .logo-track {
        gap: 2rem;
    }
    
    .client-track {
        gap: 3rem;
    }
    
    .logo-item,
    .client-item {
        min-width: 120px;
        height: 60px;
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0c4a6e;
}

/* Hero Section Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(12, 74, 110, 0.5) 100%);
}

/* Service Plans Card Scaling */
@media (min-width: 768px) {
    .scale-105 {
        transform: scale(1.05);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1e3a8a, #0c4a6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Success/Error Messages */
.message-success {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.message-error {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Print Styles */
@media print {
    nav,
    footer,
    .btn-primary {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}