/* Optimized Landing Page Styles - Performance Enhanced */

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Optimized Animations */
@keyframes fadeInUpOptimized {
    0% {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes floatOptimized {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes pulseOptimized {
    0%, 100% {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1);
    }
}

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

/* Modern Translucent Button Styles - Call to Action */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: rgba(26, 54, 93, 0.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid #3182ce;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
    min-width: 160px;
    text-align: center;
    margin: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(44, 82, 130, 0.9);
    border-color: #4299e1;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.3);
}

.btn-glass-primary {
    background: rgba(34, 84, 61, 0.8);
    border-color: #38a169;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.2);
}

.btn-glass-primary:hover {
    background: rgba(47, 133, 90, 0.9);
    border-color: #48bb78;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.3);
}

.btn-glass i {
    margin-right: 8px;
    font-size: 16px;
}

.btn-glass:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

.btn-glass:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
}

/* Performance-enhanced floating elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: floatOptimized 15s infinite ease-in-out;
    will-change: transform;
    pointer-events: none;
    contain: layout style paint;
}

/* Optimized button effects */
.btn-glass-optimized {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-text);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform;
    contain: layout style;
}

.btn-glass-optimized:hover {
    transform: translate3d(0, -2px, 0);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Secondary button variant - Enhanced styling */
.btn-glass-secondary {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(45, 212, 191, 0.1));
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #2dd4bf;
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.1);
}

.btn-glass-secondary i {
    color: #2dd4bf;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-glass-secondary:hover i {
    color: #14b8a6;
    transform: scale(1.1);
}

.btn-glass-secondary:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(45, 212, 191, 0.2));
    border-color: rgba(45, 212, 191, 0.6);
    color: #2dd4bf;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 25px rgba(45, 212, 191, 0.25);
}

.btn-glass-secondary:active {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 2px 10px rgba(45, 212, 191, 0.2);
}

/* Primary button variant - Enhanced styling */
.btn-glass-primary {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(70, 142, 249, 0.1));
    border: 1px solid rgba(0, 123, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.btn-glass-primary:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(70, 142, 249, 0.2));
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25);
}

.btn-glass-primary:active {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

/* Optimized card animations */
.card-optimized {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    contain: layout style paint;
}

.card-optimized:hover {
    transform: translate3d(0, -4px, 0);
}

/* Optimized counter animation */
.counter-optimized {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-text);
    display: block;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-optimized.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .btn-glass-optimized,
    .card-optimized,
    .counter-optimized {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Performance monitoring styles */
.performance-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10000;
    display: none; /* Only show in development */
}

.performance-warning {
    background: #ff6b6b;
    color: white;
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Member ID section styling - Improved layout */
.member-id-section-improved {
    margin-top: 1rem;
}

.member-id-section-improved .btn-glass-optimized {
    margin: 0.25rem 0 0 0;
    min-width: 200px;
}

/* Enhanced button spacing and layout */
.btn-glass-optimized {
    margin: 0.5rem 0.25rem;
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-glass-optimized i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-glass-optimized:hover i {
    transform: scale(1.1);
}

/* Add subtle glow effect */
.btn-glass-optimized::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glass-optimized:hover::after {
    opacity: 1;
}

/* Responsive button layout */
@media (max-width: 576px) {
    .btn-glass-optimized {
        width: 100%;
        margin: 0.5rem 0;
        max-width: 280px;
    }
    
    .btn-glass {
        width: 100%;
        margin: 0.5rem 0;
        max-width: 280px;
    }
}

/* Lazy loading placeholder */
.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

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