/* Custom styles for TZNXG website */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Serif+Pro:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap');

/* Global font settings */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Heading fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

/* Body text improvements */
body {
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
    letter-spacing: 0.01em;
    font-size: 16px;
}

/* Paragraph improvements */
p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

/* Custom animations and transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Force social media links to be horizontal on all devices */
.social-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Mobile-specific enforcement */
@media (max-width: 640px) {
    .social-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .social-links a {
        display: inline-flex !important;
        width: auto !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }
    
    .social-links a i {
        font-size: 1.125rem !important;
    }
}

/* Navigation mobile menu */
.mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Hover effects for cards */
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 4px 15px 0 rgba(116, 79, 168, 0.3);
    font-weight: 500;
    letter-spacing: 0.025em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(116, 79, 168, 0.4);
}

/* Card hover animations */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 8px 25px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.98);
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1D4ED8;
}

/* Form input focus effects */
.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3B82F6;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hero section background animation - Enhanced */
.hero-bg {
    background: linear-gradient(-45deg, 
        #1e1b4b, #312e81, #3730a3, #1e40af,
        #1d4ed8, #2563eb, #3b82f6, #6366f1,
        #8b5cf6, #a855f7, #c084fc, #e879f9);
    background-size: 1200% 1200%;
    animation: gradientShift 25s ease infinite;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    15% { background-position: 50% 0%; }
    30% { background-position: 100% 50%; }
    45% { background-position: 50% 100%; }
    60% { background-position: 0% 100%; }
    75% { background-position: 50% 50%; }
    90% { background-position: 100% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0%, 100% { opacity: 1; transform: translateX(-100%); }
    50% { opacity: 0.8; transform: translateX(100%); }
}

/* Team member card effects */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.team-card:hover {
    border-color: #3B82F6;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Stats counter animation */
.stats-number {
    font-variant-numeric: tabular-nums;
}

/* Link hover effects */
.link-hover {
    position: relative;
    overflow: hidden;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    transition: width 0.3s ease;
}

.link-hover:hover::after {
    width: 100%;
}

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

/* Box shadow utilities */
.shadow-soft {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 3px 15px rgba(0, 0, 0, 0.03);
}

.shadow-medium {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), 0 5px 20px rgba(0, 0, 0, 0.05);
}

.shadow-elegant {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Border gradient effect */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #3B82F6, #8B5CF6) border-box;
}

/* Responsive video container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-r {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000;
    }
    
    .text-gray-700 {
        color: #000000;
    }
    
    .bg-gray-50 {
        background-color: #ffffff;
    }
}

/* 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;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    /* Hero sections mobile optimization */
    .hero-title {
        font-size: 2rem !important;
        line-height: 2.25rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
    
    /* Section titles mobile optimization */
    .section-title {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
    
    .section-description {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
    
    /* Content titles mobile optimization */
    .content-title {
        font-size: 1.125rem !important;
        line-height: 1.5rem !important;
    }
    
    /* Card padding optimization */
    .p-8 {
        padding: 1.5rem !important;
    }
    
    .p-12 {
        padding: 2rem !important;
    }
    
    /* Grid columns mobile override */
    .grid-cols-1.md\:grid-cols-2,
    .grid-cols-1.md\:grid-cols-3,
    .grid-cols-1.lg\:grid-cols-2,
    .grid-cols-1.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    
    /* Navigation mobile improvements */
    .mobile-menu {
        margin-top: 0.5rem;
        border-radius: 0 0 12px 12px;
    }
    
    /* Button spacing mobile */
    .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Text alignment mobile */
    .text-center {
        text-align: center !important;
    }
    
    /* Container padding mobile */
    .px-4.sm\:px-6.lg\:px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Hero height mobile */
    .h-\[50vh\] {
        height: 40vh !important;
        min-height: 300px !important;
    }
    
    /* Homepage hero specific mobile optimizations */
    section.min-h-screen {
        min-height: 100vh !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Key features mobile layout */
    .flex.flex-wrap.justify-center.lg\:justify-start {
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    /* Key feature badges mobile */
    .bg-white.bg-opacity-10 {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* CTA buttons mobile */
    .btn-hero-primary, .btn-hero-secondary {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
        width: auto !important;
        max-width: 280px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Badge mobile text */
    .bg-white.bg-opacity-20 {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Footer mobile optimizations */
    footer .py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    footer .grid.grid-cols-1.md\:grid-cols-3 {
        gap: 1.5rem !important;
    }
    
    footer .flex.flex-wrap {
        gap: 0.75rem 1rem !important;
    }
    
    footer h4 {
        margin-bottom: 1rem !important;
        font-size: 1rem !important;
    }
    
    footer ul li a {
        font-size: 0.875rem !important;
        padding: 0.25rem 0 !important;
    }
    
    /* Footer logo styling */
    footer img[alt="TZNXG Logo"] {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.25rem;
        border-radius: 0.5rem;
    }
    
    /* Table responsive */
    .table-wrapper {
        overflow-x: auto !important;
    }
    
    /* Card hover effects disabled on mobile */
    .card-hover:hover,
    .hover-scale:hover {
        transform: none !important;
    }
    
    /* Social media grid optimization */
    .grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Statistics cards mobile */
    .stats-card {
        padding: 1rem !important;
        text-align: center !important;
    }
    
    /* Navigation dropdown mobile */
    .group:hover .absolute {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        width: 100% !important;
    }
    
    /* Contact channels grid mobile */
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Ecosystem features mobile */
    .ecosystem-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Team cards mobile */
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Footer grid mobile */
    .grid-cols-1.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    
    /* Image sizes mobile */
    .w-20.h-20 {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .w-16.h-16 {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Hero sections tablet optimization */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 2.75rem !important;
    }
    
    /* Grid adjustments for tablet */
    .grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .grid-cols-1.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Padding adjustments tablet */
    .px-4.sm\:px-6.lg\:px-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Focus visible for better accessibility */
.focus-visible:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10B981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #EF4444;
}

.notification.warning {
    background: #F59E0B;
}

/* Custom checkbox and radio styles */
.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #D1D5DB;
    border-radius: 0.25rem;
    background: white;
    position: relative;
    cursor: pointer;
}

.custom-checkbox:checked {
    background: #3B82F6;
    border-color: #3B82F6;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.375rem;
    height: 0.75rem;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Table responsive wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Utility classes for spacing */
.space-y-16 > * + * {
    margin-top: 4rem;
}

.space-y-20 > * + * {
    margin-top: 5rem;
}

/* Custom border styles */
.border-dashed-custom {
    border-style: dashed;
    border-width: 2px;
    border-color: #E5E7EB;
}

/* Backdrop blur utility */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Text truncate for multiple lines */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced modern styles */
.glass-morphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Soft gradient backgrounds */
.bg-soft-gradient {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 100%);
}

.bg-elegant-gradient {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 25%,
        rgba(240, 147, 251, 0.05) 50%,
        rgba(245, 87, 108, 0.05) 100%);
}

/* Modern button styles */
.btn-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.025em;
    padding: 14px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 16px;
    color: #667eea;
    font-weight: 500;
    letter-spacing: 0.025em;
    padding: 12px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-modern:hover {
    background-image: linear-gradient(135deg, #667eea, #764ba2), 
                      linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

/* Enhanced typography */
.heading-modern {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-soft {
    color: #6B7280;
    line-height: 1.8;
    font-weight: 400;
}

.text-elegant {
    color: #4B5563;
    line-height: 1.7;
    font-weight: 450;
    letter-spacing: 0.01em;
}

/* Icon enhancements */
.icon-soft {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-soft:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation improvements */
.nav-modern {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

.nav-link-modern {
    font-weight: 500;
    letter-spacing: 0.015em;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-link-modern:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-link-modern.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: #667eea;
}

/* Form improvements */
.form-modern {
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Animation delays for staggered effects */
.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Enhanced hero section styles */
.hero-enhanced {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.95) 25%,
        rgba(240, 147, 251, 0.95) 50%,
        rgba(245, 87, 108, 0.95) 75%,
        rgba(102, 126, 234, 0.95) 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

.float-animation-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Modern gradient text effects */
.gradient-text-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for trust indicators */
@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
    }
    50% { 
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Scroll indicator animation */
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* Enhanced button hover effects for hero */
.hero-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 16px 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 14px 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.1);
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Carousel Arrow Navigation */
.carousel-prev,
.carousel-next {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

/* Ensure arrows don't overlap with content */
.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

@media (max-width: 1024px) {
    .carousel-prev {
        left: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .carousel-next {
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .carousel-prev i,
    .carousel-next i {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-prev {
        left: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-next {
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-prev i,
    .carousel-next i {
        font-size: 0.875rem;
    }
    
    /* Reduce hero content padding on mobile to avoid overlap */
    .hero-content-wrapper {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
}

@media (max-width: 640px) {
    .hero-content-wrapper {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Hide carousel arrows on mobile */
    .carousel-prev,
    .carousel-next {
        display: none;
    }
}

/* Enhanced glass morphism for hero stats */
.hero-stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 24px;
}

.hero-stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats-card:hover::before {
    opacity: 1;
}

/* Individual stat item animations */
.stat-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 8px;
    position: relative;
}

.hero-stats-card:hover .stat-item {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

/* Enhanced Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon-glow {
    opacity: 1;
}

/* Enhanced section spacing and typography */
.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Improved text hierarchy */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    max-width: 48rem;
    margin: 0 auto;
}

/* Token Details Card */
.token-details-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.token-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 24px 24px 0 0;
}

.token-details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
}

.token-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.token-logo {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.token-details-card:hover .token-logo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.token-symbol {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.token-specs {
    space-y: 1rem;
}

.token-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.token-spec-item:last-child {
    border-bottom: none;
}

.token-spec-item:hover {
    background: rgba(59, 130, 246, 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 8px;
    border-bottom: 1px solid transparent;
}

.spec-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    text-align: right;
}

.spec-value.highlight {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1rem;
}

/* Enhanced Ecosystem Module */
.ecosystem-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.ecosystem-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #1e293b 0%, #3730a3 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.ecosystem-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #64748b;
    max-width: 56rem;
    margin: 0 auto;
    font-weight: 400;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ecosystem-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
        gap: 2rem;
    }
    
    .ecosystem-card.primary {
        grid-row: span 2;
    }
}

@media (min-width: 1024px) {
    .ecosystem-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .ecosystem-card.secondary:first-of-type {
        grid-column: 2;
        grid-row: 1;
    }
    
    .ecosystem-card.secondary:last-of-type {
        grid-column: 3;
        grid-row: 1;
    }
    
    .ecosystem-card.tertiary {
        grid-column: 2 / 4;
        grid-row: 2;
    }
}

.ecosystem-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 24px;
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

.ecosystem-card:hover::before {
    opacity: 1;
}

.ecosystem-card.primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 51, 234, 0.08));
    border-color: rgba(59, 130, 246, 0.2);
}

.ecosystem-card.secondary {
    background: rgba(255, 255, 255, 0.7);
}

.ecosystem-card.tertiary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(34, 197, 94, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon-wrapper {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.card-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-icon.security {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.card-icon.performance {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-icon.experience {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.card-icon.compliance {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ecosystem-card:hover .card-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.icon-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ecosystem-card:hover .icon-ripple {
    opacity: 1;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.card-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Fade in animation for hero content */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: heroFadeIn 1s ease-out;
}

/* Background overlay animation */
@keyframes overlayPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.3; }
}

.hero-overlay {
    animation: overlayPulse 8s ease-in-out infinite;
}

/* Hero Button Styles */
.btn-hero-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 16px 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 14px 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.15);
}

.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-secondary:hover::before {
    left: 100%;
}

/* Dropdown Menu Fix for Legal & Compliance */
.dropdown-group {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 4px;
}

.dropdown-group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

.dropdown-menu a.active {
    background-color: #eff6ff;
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
}

.dropdown-chevron {
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.dropdown-group:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Premium Typography for Hero Sections */
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

/* Premium Typography for Page Content */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.section-description {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.005em;
    line-height: 1.65;
}

.content-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.content-text {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.003em;
    line-height: 1.6;
}
