/**
 * index-consolidated.css - All Index Page Styles Consolidated
 * Combines: index.css, index-components.css, index-animation-styles.css, index-quick-fix.css
 * Premium loading overlay with white theme and blue & gold brand colors
 */

 
/* ==================== PREMIUM LOADING OVERLAY SYSTEM ==================== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(250, 250, 250, 0.95) 50%, 
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    visibility: visible;
    will-change: transform, opacity;
}

#loading-overlay.loading-complete {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
}

#loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1);
}

/* ===== FLOATING PARTICLES BACKGROUND ===== */
#loading-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(30, 136, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 87, 34, 0.05) 0%, transparent 30%);
    background-size: 400px 400px, 350px 350px, 200px 200px;
    animation: floatingParticles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingParticles {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 20% 20%; 
    }
    50% { 
        background-position: 20% 40%, 80% 60%, 40% 60%; 
    }
}

/* ===== PREMIUM SPINNER DESIGN ===== */
.spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.1);
}

.spinner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border: 3px solid transparent;
    border-top: 3px solid #1E88E5;
    border-right: 3px solid #D4AF37;
    border-radius: 50%;
    animation: premium-spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 15px rgba(30, 136, 229, 0.3);
    transform: translateZ(0);
}

@keyframes premium-spin {
    0% { 
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 15px rgba(30, 136, 229, 0.3);
    }
    50% { 
        transform: rotate(180deg) scale(1.1);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    }
    100% { 
        transform: rotate(360deg) scale(1);
        box-shadow: 0 0 15px rgba(30, 136, 229, 0.3);
    }
}

/* ===== LOADING TEXT ENHANCEMENT ===== */
.loading-text {
    color: #1E88E5;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #1E88E5, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    opacity: 0;
    animation: fadeInText 0.8s ease forwards 0.3s;
    transition: opacity 0.3s ease;
}

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

/* ===== PREMIUM PROGRESS BAR ===== */
.progress {
    width: 280px;
    height: 6px;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInProgress 0.8s ease forwards 0.6s;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        #1E88E5 0%, 
        #42A5F5 25%, 
        #D4AF37 75%, 
        #26A69A 100%);
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
    transform: translateZ(0);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeInProgress {
    0% { 
        opacity: 0; 
        transform: scaleX(0);
    }
    100% { 
        opacity: 1; 
        transform: scaleX(1);
    }
}

/* ===== LOADING STAGES INDICATOR ===== */
.loading-stages {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeInStages 0.8s ease forwards 0.9s;
}

.loading-stage {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.2);
    position: relative;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.loading-stage.active {
    background: linear-gradient(45deg, #1E88E5, #D4AF37);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(30, 136, 229, 0.4);
}

.loading-stage.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(30, 136, 229, 0.3);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

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

/* ===== LOADING TIPS ===== */
.loading-tip {
    margin-top: 25px;
    color: #757575;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    max-width: 300px;
    opacity: 0;
    animation: fadeInTip 0.8s ease forwards 1.2s;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(30, 136, 229, 0.1);
}

.loading-tip:hover {
    background: rgba(30, 136, 229, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

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

/* ==================== BASE STYLES ==================== */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #616161;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.index-page {
    background-color: #FFFFFF;
    color: #1E88E5;
    line-height: 1.6;
}

/* ==================== MAIN CONTENT AREA ==================== */
#main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
    background: #FFFFFF;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    isolation: isolate;
    contain: layout style;
}

#main-content.ready {
    opacity: 1;
}

#main-content .section {
    
    position: relative;
    background: #FFFFFF;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

#main-content .section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#main-content .section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
#main-content .section:nth-child(1) { transition-delay: 0.1s; }
#main-content .section:nth-child(2) { transition-delay: 0.2s; }
#main-content .section:nth-child(3) { transition-delay: 0.3s; }
#main-content .section:nth-child(4) { transition-delay: 0.4s; }
#main-content .section:nth-child(5) { transition-delay: 0.5s; }

/* ==================== TEMPLATE CONTAINERS ==================== */
.template-container {
    min-height: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-container.template-loaded {
    opacity: 1;
}

.template-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite;
    border-radius: 8px;
    margin: 10px 0;
}

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

/* ==================== ERROR MESSAGE STYLES ==================== */
#error-message {
    background-color: #D32F2F;
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
}

#error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#error-message button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

#error-message button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ==================== ACCESSIBILITY ENHANCEMENTS ==================== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #1E88E5;
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 10001;
    transition: top 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.skip-to-content:focus {
    top: 10px;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.5);
    outline: none;
}

.skip-to-content:hover {
    background: #1565C0;
    text-decoration: none;
    color: #FFFFFF;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== TYPOGRAPHY ENHANCEMENTS ==================== */
.section h2,
.section h3,
h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1E88E5;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    position: relative;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.section h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section p,
p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #757575;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.25rem;
    color: #616161;
    text-align: center;
    margin-bottom: 3rem;
}

/* ==================== BUTTON STYLES ==================== */
.btn-primary {
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    border: none;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565C0 0%, #1E88E5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #1E88E5;
    color: #1E88E5;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #1E88E5;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    text-decoration: none;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== CARD STYLES ==================== */
.card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1E88E5;
    margin-bottom: 15px;
}

.card-text {
    color: #757575;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==================== ANIMATION CLASSES ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.content-reveal {
    animation: contentReveal 0.8s ease forwards;
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-reveal {
    animation: sectionReveal 0.8s ease forwards;
}

@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-fade-in {
    animation: templateFadeIn 0.5s ease forwards;
}

@keyframes templateFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-20px);
    }
    70% {
        transform: translateY(-10px);
    }
    90% {
        transform: translateY(-4px);
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==================== SCROLL PROGRESS INDICATOR ==================== */
.scroll-progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(30, 136, 229, 0.1);
    z-index: 9998;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1E88E5 0%, #D4AF37 100%);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
}

/* ==================== NAVBAR BEHAVIOR ==================== */
.navbar {
    transition: transform 0.3s ease;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.scrolling-down .navbar {
    transform: translateY(-100%);
}

.scrolling-up .navbar {
    transform: translateY(0);
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.text-primary { color: #1E88E5; }
.text-secondary { color: #757575; }
.text-ocean { color: #1E88E5; }
.text-golden { color: #D4AF37; }

.bg-white { background-color: #FFFFFF; }
.bg-light { background-color: #fafafa; }
.bg-ocean { background-color: #1E88E5; }
.bg-golden { background-color: #D4AF37; }

/* ==================== GRID SYSTEMS ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 25px;
    }
    
    .loading-text {
        font-size: 18px;
        margin-bottom: 20px;
        padding: 0 20px;
    }
    
    .progress {
        width: 220px;
        height: 5px;
        margin-top: 15px;
    }
    
    .loading-stages {
        margin-top: 20px;
        gap: 12px;
    }
    
    .loading-stage {
        width: 10px;
        height: 10px;
    }
    
    .loading-tip {
        font-size: 13px;
        margin-top: 20px;
        max-width: 250px;
        padding: 8px 16px;
    }
    
    #main-content .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .section h3 {
        font-size: 1.5rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .loading-text {
        font-size: 16px;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    
    .progress {
        width: 180px;
        height: 4px;
        margin-top: 12px;
    }
    
    .loading-stages {
        margin-top: 15px;
        gap: 10px;
    }
    
    .loading-stage {
        width: 8px;
        height: 8px;
    }
    
    .loading-tip {
        font-size: 12px;
        margin-top: 15px;
        max-width: 200px;
        padding: 6px 12px;
    }
    
    #main-content .section {
        padding: 30px 0;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .section h3 {
        font-size: 1.3rem;
    }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */
.animate-on-scroll,
.card,
.btn-primary,
.btn-secondary,
.section {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.low-performance .animate-on-scroll {
    transition-duration: 0.3s;
}

.low-performance .card:hover {
    transform: translateY(-2px);
}

.low-performance .floating,
.low-performance .pulse,
.low-performance .bounce {
    animation: none;
}

/* ==================== 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;
    }
    
    .floating,
    .pulse,
    .bounce {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .spinner::after {
        animation: none;
        border: 3px solid #1E88E5;
    }
    
    #main-content .section {
        opacity: 1;
        transform: none;
    }
}

/* ==================== HIGH CONTRAST MODE ==================== */
@media (prefers-contrast: high) {
    #loading-overlay {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: none;
        border: 2px solid #000000;
    }
    
    .spinner::after {
        border-top-color: #000000;
        border-right-color: #000000;
        box-shadow: none;
    }
    
    .loading-text {
        background: none;
        -webkit-text-fill-color: initial;
        color: #000000;
        font-weight: 700;
    }
    
    .progress {
        border: 2px solid #000000;
        background: #FFFFFF;
    }
    
    .progress-bar {
        background: #000000;
        box-shadow: none;
    }
    
    .loading-stage.active {
        background: #000000;
        box-shadow: none;
    }
    
    .loading-tip {
        color: #000000;
        font-weight: 700;
        border: 2px solid #000000;
        background: #FFFFFF;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    #loading-overlay,
    #error-message,
    .skip-to-content {
        display: none !important;
    }
    
    #main-content {
        opacity: 1 !important;
    }
    
    .section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ccc;
        padding: 20px 0;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
        background: transparent;
        color: #000;
    }
}

/* ==================== SMOOTH SCROLLING ==================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

/* ==================== FOCUS MANAGEMENT ==================== */
#main-content:focus {
    outline: 2px solid #1E88E5;
    outline-offset: 4px;
}

#main-content .section:focus-within {
    outline: 1px solid rgba(30, 136, 229, 0.3);
    outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
    outline: 3px solid #D4AF37;
    outline-offset: 2px;
}

.header-template + .slider-template .section,
.template-container:first-child .section {
    padding-top: 0;
}

.slider-template .section,
.template-container.slider .section {
    padding-bottom: 0;
}