/* Premium UX Enhancements - Professional Design System */

/* Advanced Typography Scale */
:root {
    /* Enhanced Color Palette */
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-800: #92400e;
    --gold-900: #78350f;
    
    /* Sophisticated Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Professional Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Premium Gradients */
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    --gradient-sunset: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced Navigation */
.navbar-premium {
    background: rgba(10, 28, 58, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-premium.scrolled {
    background: rgba(10, 28, 58, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: var(--shadow-xl);
    transform: translateY(-1px);
}

.nav-link-premium {
    position: relative;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0.1;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link-premium:hover::before {
    left: 0;
}

.nav-link-premium:hover {
    color: var(--gold-400);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Premium Button System */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-premium:hover::before {
    transform: translateX(100%);
}

.btn-primary-premium {
    background: var(--gradient-gold);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.btn-primary-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    color: var(--primary-blue);
}

.btn-secondary-premium {
    background: transparent;
    border: 2px solid var(--gold-400);
    color: var(--gold-400);
    backdrop-filter: blur(10px);
}

.btn-secondary-premium:hover {
    background: var(--gold-400);
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Advanced Card System */
.card-premium {
    position: relative;
    background: white;
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.card-premium:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: var(--shadow-2xl);
}

.card-premium:hover::before {
    transform: scaleX(1);
}

.card-premium:hover::after {
    opacity: 1;
}

.card-premium .card-body {
    padding: var(--space-2xl);
    position: relative;
    z-index: 2;
}

.card-premium .card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
    line-height: 1.3;
}

.card-premium .card-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* Premium Section Layouts */
.section-premium {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.section-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(0,0,0,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.section-premium.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

/* Enhanced Typography */
.title-premium {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.title-premium::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.title-premium.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.subtitle-premium {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.subtitle-premium.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Advanced Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Intersection Observer Classes */
.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Premium Loading States */
.loading-premium {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Micro-interactions */
.interactive-element {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-element:hover {
    transform: translateY(-2px);
}

.interactive-element:active {
    transform: translateY(0) scale(0.98);
}

/* Focus States for Accessibility */
.btn-premium:focus,
.nav-link-premium:focus,
.interactive-element:focus {
    outline: 3px solid rgba(251, 191, 36, 0.5);
    outline-offset: 2px;
}

/* Progress Indicators */
.progress-premium {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--progress, 0%);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .section-premium {
        padding: var(--space-2xl) 0;
    }
    
    .card-premium .card-body {
        padding: var(--space-xl);
    }
    
    .btn-premium {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .title-premium {
        font-size: 2rem;
    }
    
    .subtitle-premium {
        font-size: 1.1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card-premium {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .card-premium .card-title {
        color: var(--gold-400);
    }
    
    .section-premium.bg-gradient {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #3a3a3a 100%);
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .btn-premium,
    .nav-link-premium {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .card-premium {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
