/**
 * Custom Styles for US Corp Solutions
 * Additional CSS classes and effects
 */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #2f368c 0%, #f2b354 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Gradient Background */
.gradient-bg {
    background: linear-gradient(-45deg, #2f368c, #536bc3, #f2b354, #eda030);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Hover Animation */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Text Shadow */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Pattern Background */
.hero-pattern {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Star Bounce Animation */
@keyframes star-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
    }
}

.animate-star-bounce {
    animation: star-bounce 1.5s ease-in-out infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced Dropdown Backgrounds */
.dropdown-premium {
    background: linear-gradient(135deg, #2f368c 0%, #536bc3 50%, #2f368c 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
}

.dropdown-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(242, 179, 84, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmerSweep 3s ease-in-out infinite;
    pointer-events: none;
}

.dropdown-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(242, 179, 84, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(242, 179, 84, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.dropdown-glass {
    background: rgba(47, 54, 140, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 179, 84, 0.2);
    position: relative;
}

.dropdown-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 179, 84, 0.8), transparent);
}

.dropdown-mesh {
    background: linear-gradient(135deg, #1a1e41 0%, #2f368c 25%, #536bc3 75%, #2f368c 100%);
    position: relative;
    overflow: hidden;
}

.dropdown-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(242, 179, 84, 0.06) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(242, 179, 84, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(242, 179, 84, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    background-size: 600% 600%, 600% 600%, 100% 100%, 100% 100%, 100% 100%;
    animation: premiumShimmer 20s ease-in-out infinite;
    pointer-events: none;
}

.dropdown-mesh::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(242, 179, 84, 0.08) 30%,
        rgba(242, 179, 84, 0.15) 50%,
        rgba(242, 179, 84, 0.08) 70%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: luxuryWave 16s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effect for premium feel */
.group:hover .dropdown-mesh::after {
    opacity: 1;
}

.dropdown-mesh:hover::before {
    animation-duration: 12s;
}

/* Enhanced Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmerSweep {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

@keyframes patternFloat {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(0) translateY(-10px); }
    75% { transform: translateX(10px) translateY(-5px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes conicRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes premiumShimmer {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 1;
    }
    25% { 
        background-position: 100% 100%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 100%, 100% 100%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 1;
    }
    75% { 
        background-position: 0% 0%, 100% 100%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.9;
    }
}

@keyframes luxuryWave {
    0%, 100% { 
        background-position: -200% 0%;
        opacity: 0;
    }
    50% { 
        background-position: 200% 0%;
        opacity: 1;
    }
}

/* Dropdown Content Enhancement */
.dropdown-content-enhanced {
    position: relative;
    z-index: 10;
}

.dropdown-content-enhanced .dropdown-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-content-enhanced .dropdown-section:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(242, 179, 84, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Dropdown Closing State */
.dropdown-closing .fixed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Premium Tab System Styles */
.service-tab {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-tab:hover {
    transform: scale(1.02);
}

.service-tab.active:hover {
    transform: scale(1);
}

/* Tab Content Container for Hot-Swap */
.tab-content-container {
    position: relative;
    min-height: 600px; /* Prevent layout shift during transitions */
}

.tab-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.tab-content.hidden {
    opacity: 0;
    transform: translateY(20px);
}


/* Premium Modal Animations */
.modal-trigger {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.15);
}

/* Comparison Table Animations */
@keyframes animate-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes animate-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes animate-pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.animate-spin-slow {
    animation: animate-spin-slow 20s linear infinite;
}

.animate-float {
    animation: animate-float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: animate-pulse-slow 4s ease-in-out infinite;
}

/* Table Row Hover Effects */
.table-row-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-row-hover:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Champion Column Glow Effect */
.champion-glow {
    position: relative;
}

.champion-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f59e0b, #d97706, #f59e0b);
    border-radius: inherit;
    z-index: -1;
    animation: champion-pulse 2s ease-in-out infinite;
}

@keyframes champion-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Google Reviews Slider Styles */
#reviewsSlider {
    touch-action: pan-y;
}

.review-slide {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
}

.review-dot {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-dot.active {
    background-color: #2f368c;
    transform: scale(1.5);
}

.review-dot:not(.active):hover {
    transform: scale(1.2);
}

/* Review Card Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-slide > div {
    animation: fadeInUp 0.6s ease-out;
}

