/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a; 
}

::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569; 
}

/* Base Glassmorphism utility */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Premium Card Hover Effect */
.glass-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-hover:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Hero Badge Animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.4); }
}

.hero-badge {
    animation: glow 3s infinite;
}

/* Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animation Utility Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }

/* Scroll to Top Button */
#scrollToTop {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scrollToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Infinite Logo Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.slider-container::before,
.slider-container::after {
    display: none;
}

.slider-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 60s linear infinite;
    padding: 0 2rem;
}

.slider-item {
    min-width: 200px;
    transition: transform 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-4px);
}

/* Card styles within slider */
.slider-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(12px);
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-item:hover .slider-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.slider-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.slider-item:hover .slider-icon-box {
    transform: scale(1.1);
}

.slider-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Project Slider Styles */
.project-slide-item {
    min-width: 320px;
    height: 220px;
    transition: transform 0.3s ease;
}

.project-slide-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* Slider Navigation Buttons */
.slider-prev, .slider-next {
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:active, .slider-next:active {
    transform: scale(0.95);
}

/* Country code dropdown readability */
select[data-country-code-select] {
    color: #e2e8f0;
    background-color: transparent;
}

select[data-country-code-select] option {
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancements */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-2px);
}

.hero-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.hero-testimonial {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.hero-testimonial:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(167, 139, 250, 0.2);
}

/* Right column specific styling */
@media (min-width: 1024px) {
    #hero-testimonial {
        max-width: 100%;
    }
    
    #hero-cta-primary,
    #hero-cta-secondary {
        width: 100%;
    }
}

.hero-testimonial-quote {
    font-size: 0.875rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.hero-testimonial-author {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-testimonial-author-name {
    font-weight: 600;
    color: white;
}

.hero-risk-reversal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-risk-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.hero-risk-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-risk-text {
    color: #e2e8f0;
    font-weight: 500;
}

.hero-risk-subtext {
    color: #64748b;
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

.hero-benefit-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.hero-benefit-badge:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-2px);
}

.hero-benefit-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.hero-benefit-label {
    font-size: 0.875rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Hero Dashboard Mockup Animations */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
    }
    50% { 
        box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
    }
}

.hero-dashboard-card {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Hero Visual Positioning */
@media (min-width: 1024px) {
    .hero-visual-container {
        position: sticky;
        top: 6rem;
        align-self: flex-start;
    }
    
    /* Ensure visual stays visible during scroll */
    .hero-section-visual {
        will-change: transform;
    }
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-stat-item {
        width: 100%;
        justify-content: center;
    }
    
    .hero-risk-reversal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-risk-item {
        width: 100%;
        justify-content: center;
    }
    
    #hero-benefits,
    .hero-benefits {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-benefit-badge {
        width: 100%;
        justify-content: center;
    }
    
    .hero-benefit-label {
        white-space: normal;
        text-align: center;
    }
    
    /* Ensure testimonial and CTAs stack properly on mobile */
    #hero-testimonial {
        margin-bottom: 1.5rem;
    }
    
    #hero-cta-primary,
    #hero-cta-secondary {
        width: 100%;
    }
}
