/* ========================================
   FUTURA — Custom Styles
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #060e1a;
}

::-webkit-scrollbar-thumb {
    background: #122a4f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Selection color */
::selection {
    background: rgba(21, 101, 192, 0.4);
    color: #fff;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(6, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.12) 0%, rgba(30, 94, 191, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Animation: Fade Up on Scroll
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1565c0, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Step Cards
   ======================================== */
.step-card {
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(21, 101, 192, 0.3);
}

/* ========================================
   Trust Cards
   ======================================== */
.trust-card {
    position: relative;
    transition: all 0.4s ease;
}

.trust-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Counter Animation
   ======================================== */
.counter {
    display: inline-block;
}

/* ========================================
   Form Styles
   ======================================== */
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238892b0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

/* ========================================
   Responsive Tweaks
   ======================================== */
@media (max-width: 768px) {
    .hero-glow {
        width: 300px;
        height: 300px;
        top: 10%;
        left: 0;
    }
}

/* ========================================
   Smooth Nav Links
   ======================================== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1565c0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   Pulse Dot
   ======================================== */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* ========================================
   Loading States
   ======================================== */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Partners Carousel
   ======================================== */
.partners-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners-slider {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll-partners 25s linear infinite;
    width: max-content;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-width: 140px;
    filter: none;
    opacity: 0.85;
    transition: all 0.4s ease;
}

.partner-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.08);
}

.partner-logo img {
    max-height: 50px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-track:hover .partners-slider {
    animation-play-state: paused;
}

/* ========================================
   Gradient text (for supported browsers)
   ======================================== */
.gradient-text {
    background: linear-gradient(95deg, #0a3d91 15%, #1565c0 45%, #1e5ebf 75%, #0a3d91 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
