/* ============================================
   PREMIUM GLOBAL STYLES
   Global variables, utilities, and base styles
   ============================================ */

:root {
    /* Premium Color Palette */
    --premium-primary: #ff4d00;
    --premium-primary-hover: #ff783d;
    --premium-primary-light: rgba(255, 77, 0, 0.1);
    --premium-primary-medium: rgba(255, 77, 0, 0.2);

    /* Glassmorphism Colors */
    --glass-white-95: rgba(255, 255, 255, 0.95);
    --glass-white-90: rgba(255, 255, 255, 0.90);
    --glass-white-85: rgba(255, 255, 255, 0.85);
    --glass-white-80: rgba(255, 255, 255, 0.80);
    --glass-white-70: rgba(255, 255, 255, 0.70);
    --glass-white-60: rgba(255, 255, 255, 0.60);

    /* Text Colors */
    --text-primary: #000;
    --text-primary-hover: #1a1a1a;
    --text-secondary: #2c2c2c;
    --text-tertiary: #666;
    --text-light: #999;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-premium: 0 20px 60px rgba(255, 77, 0, 0.15);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-base: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-slow: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Blur */
    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 30px;

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal: 40;
    --z-popover: 50;
    --z-tooltip: 60;
}

/* ============================================
   SMOOTH SCROLL & BASE IMPROVEMENTS
   ============================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    /* Prevent content from hiding under fixed elements */
}

/* Improve scroll behavior for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Disable smooth scroll for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* ============================================
   PREMIUM GRADIENT UTILITIES
   ============================================ */

.gradient-primary {
    background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-hover) 100%);
}

.gradient-glass {
    background: linear-gradient(135deg, var(--glass-white-95) 0%, var(--glass-white-85) 100%);
}

.gradient-overlay {
    position: relative;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 77, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gradient-overlay:hover::after {
    opacity: 1;
}

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */

.glass-effect {
    background: var(--glass-white-95);
    backdrop-filter: blur(var(--blur-md)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-md)) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-effect-strong {
    background: var(--glass-white-90);
    backdrop-filter: blur(var(--blur-lg)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(200%);
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out both;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out both;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out both;
}

/* Stagger Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.3);
}

/* ============================================
   PREMIUM BUTTON BASE
   ============================================ */

.btn-premium {
    position: relative;
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    /* Faster transition */
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-hover) 100%);
    color: white;
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 0, 0.3);
}

.btn-premium-secondary {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.08) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-premium-secondary:hover {
    background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-hover) 100%);
    color: white;
    border-color: transparent;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mt-xs {
    margin-top: var(--space-xs);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mt-2xl {
    margin-top: var(--space-2xl);
}

.mb-xs {
    margin-bottom: var(--space-xs);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mb-2xl {
    margin-bottom: var(--space-2xl);
}

.p-xs {
    padding: var(--space-xs);
}

.p-sm {
    padding: var(--space-sm);
}

.p-md {
    padding: var(--space-md);
}

.p-lg {
    padding: var(--space-lg);
}

.p-xl {
    padding: var(--space-xl);
}

.p-2xl {
    padding: var(--space-2xl);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 991px) {
    :root {
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
        --space-3xl: 5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
}

@media (max-width: 479px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
        --space-3xl: 3rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.focus-ring:focus {
    outline: 2px solid var(--premium-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .glass-effect,
    .glass-effect-strong {
        background: white !important;
        backdrop-filter: none !important;
        border: 1px solid #ddd !important;
    }

    .btn-premium {
        border: 1px solid #000 !important;
    }
}