/* Miracle International - Custom Design Enhancements */
:root {
    --brand-blue: #0957cb;
    --brand-blue-dark: #07439d;
    --brand-blue-light: #eef5ff;
    --brand-blue-muted: #93b9f3;
    --brand-red: #d32f2f;
    --brand-red-dark: #b71c1c;
    --brand-red-light: #ffebee;
    --navy: #0b1a30;
    --navy-light: #162a45;
    --navy-dark: #07101e;
    --ink: #0f172a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Glassmorphism & Shadows */
.glass-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.shadow-soft {
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.shadow-lift {
    box-shadow: 0 12px 30px -4px rgba(9, 87, 203, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Gradient Texts */
.text-gradient-blue {
    background: linear-gradient(135deg, #0957cb 0%, #3b82f6 50%, #1e1b4b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Image Hero Overlay */
.hero-gradient-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.3) 100%);
}

@media (max-width: 1024px) {
    .hero-gradient-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 60%, rgba(255, 255, 255, 0.7) 100%);
    }
}

/* Modal animation */
.modal-backdrop {
    animation: fadeIn 0.2s ease-out forwards;
}

.modal-content {
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile & Tablet Responsiveness Enhancements */
@media (max-width: 640px) {
    .modal-content {
        margin: 0.75rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Touch friendly minimum target sizes */
    button, a, input, select, textarea {
        touch-action: manipulation;
    }
}

/* Tablet & Mobile Safe Area Inset */
.fixed.bottom-6.right-6 {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.5rem + env(safe-area-inset-right, 0px));
}

/* Responsive Table Wrappers */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Image Optimization (Prevents Cumulative Layout Shift - CLS) */
img {
    content-visibility: auto;
}

/* Custom Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

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

.animate-float-delayed {
    animation: float 4s ease-in-out 2s infinite;
}

/* Typing text blink cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 0.9s infinite;
    font-weight: 300;
    color: var(--brand-blue);
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Infinite Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Glass card shine effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.75s ease;
    pointer-events: none;
}

.card-shine:hover::after {
    transform: rotate(30deg) translateY(100%);
}

/* Reduced Motion Preference for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

