/* Enhanced Layout Styles - Common animations and utilities */

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom AOS Animations */
[data-aos="scale-x"] {
    transform: scaleX(0);
    transition-property: transform;
}

[data-aos="scale-x"].aos-animate {
    transform: scaleX(1);
}

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

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(45deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow Effects */
.shadow-soft {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.shadow-medium {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.shadow-strong {
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

/* Hover Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.hover-glow:hover::before {
    left: 100%;
}

/* Loading Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Utility Classes */
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease; }
.animate-slideInRight { animation: slideInRight 0.6s ease; }
.animate-zoomIn { animation: zoomIn 0.6s ease; }

/* Text Animations */
.text-shimmer {
    background: linear-gradient(90deg, #000 25%, #666 50%, #000 75%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s infinite;
}

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

/* Responsive Utilities */
@media (max-width: 1200px) {
    .xl-hide { display: none !important; }
}

@media (max-width: 992px) {
    .lg-hide { display: none !important; }
    .lg-text-center { text-align: center !important; }
    .lg-mb-3 { margin-bottom: 1rem !important; }
    .lg-mb-4 { margin-bottom: 1.5rem !important; }
    .lg-mb-5 { margin-bottom: 3rem !important; }
}

@media (max-width: 768px) {
    .md-hide { display: none !important; }
    .md-text-center { text-align: center !important; }
    .md-mb-3 { margin-bottom: 1rem !important; }
    .md-mb-4 { margin-bottom: 1.5rem !important; }
    .md-mb-5 { margin-bottom: 3rem !important; }
    
    /* Reduce font sizes on mobile */
    .hero-title { font-size: 2.5rem !important; }
    .hero-subtitle { font-size: 1.2rem !important; }
    .section-title { font-size: 2rem !important; }
}

@media (max-width: 576px) {
    .sm-hide { display: none !important; }
    .sm-text-center { text-align: center !important; }
    .sm-mb-3 { margin-bottom: 1rem !important; }
    .sm-mb-4 { margin-bottom: 1.5rem !important; }
    .sm-mb-5 { margin-bottom: 3rem !important; }
    
    /* Further reduce on small screens */
    .hero-title { font-size: 2rem !important; }
    .hero-subtitle { font-size: 1.1rem !important; }
    .section-title { font-size: 1.8rem !important; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark-bg {
        background-color: #1a1a1a !important;
    }
    
    .auto-dark-text {
        color: #f8f9fa !important;
    }
    
    .auto-dark-border {
        border-color: #333 !important;
    }
}

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

/* High Contrast Support */
@media (prefers-contrast: high) {
    .glass-effect,
    .glass-effect-strong {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 2px solid #000 !important;
    }
    
    .text-muted {
        color: #000 !important;
    }
}

/* Focus Management */
.focus-visible:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    
    .print-break-before { page-break-before: always; }
    .print-break-after { page-break-after: always; }
    .print-break-inside { page-break-inside: avoid; }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* Performance Optimizations */
.will-change-transform { will-change: transform; }
.will-change-opacity { will-change: opacity; }
.will-change-auto { will-change: auto; }

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

/* Content Security */
.user-select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
