/* Section transition overlay */
.section-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.95) 70%);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    backdrop-filter: blur(10px);
}

.section-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Luxurious Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: bgFloat 8s ease-in-out infinite;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: #FFD700;
    position: relative;
    z-index: 2;
}

.loading-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: 2px;
}

.loading-content p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Luxury Loader Container */
.luxury-loader {
    width: 150px;
    height: 150px;
    position: relative;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trophy SVG Outline */
.trophy-outline {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 3;
}

.trophy-svg {
    width: 100%;
    height: 100%;
    animation: trophyGlow 2s ease-in-out infinite alternate;
}

.trophy-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawTrophy 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Loading Rings */
.loading-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #FFD700;
    border-right: 2px solid #FFD700;
    animation: spinRing 2s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-top-color: #FFD700;
    border-right-color: rgba(255, 215, 0, 0.3);
    animation-duration: 2s;
}

.ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #FFA500;
    border-right-color: rgba(255, 165, 0, 0.3);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #FFD700;
    border-right-color: rgba(255, 215, 0, 0.5);
    animation-duration: 1s;
}

/* Loading Particles */
.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FFD700, transparent);
    border-radius: 50%;
    animation: floatParticle 3s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.particle-2 {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
    animation-duration: 3s;
}

.particle-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 1s;
    animation-duration: 2.8s;
}

.particle-4 {
    bottom: 30%;
    right: 20%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.particle-5 {
    top: 50%;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 2.3s;
}

.particle-6 {
    top: 60%;
    right: 10%;
    animation-delay: 2.5s;
    animation-duration: 2.7s;
}

/* Enhanced Progress Bar */
.loading-progress {
    width: 300px;
    height: 3px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 2px;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

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

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    border-radius: 2px;
    animation: progressFill 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Loading Percentage */
.loading-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFD700;
    margin-top: 1rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Enhanced Icon Animations */
.feature-icon i,
.category-icon i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
}

/* Luxury gradient overlays for icons */
.feature-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.category-icon i {
    position: relative;
    z-index: 4;
}

/* Pulse animation for active icons */
@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 12px 35px rgba(255, 215, 0, 0.7);
    }
}

.feature-item.animate .feature-icon,
.category-card.animate .category-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes bgFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0%, 100% { 
        background-position: 0% 50%; 
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% { 
        background-position: 100% 50%; 
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

@keyframes trophyGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
        transform: scale(1.05);
    }
}

@keyframes drawTrophy {
    0% { 
        stroke-dashoffset: 300;
        opacity: 0.3;
    }
    50% { 
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% { 
        stroke-dashoffset: -300;
        opacity: 0.3;
    }
}

@keyframes spinRing {
    0% { 
        transform: rotate(0deg);
        opacity: 1;
    }
    50% { 
        opacity: 0.5;
    }
    100% { 
        transform: rotate(360deg);
        opacity: 1;
    }
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0) scale(0.8);
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-15px) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-30px) scale(1.2);
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-15px) scale(1);
        opacity: 1;
    }
}

@keyframes progressFill {
    0% { 
        width: 0%; 
        transform: translateX(-100%);
    }
    50% { 
        width: 100%; 
        transform: translateX(0%);
    }
    100% { 
        width: 100%; 
        transform: translateX(100%);
    }
}

@keyframes progressShine {
    0% { 
        transform: translateX(-100%);
    }
    50% { 
        transform: translateX(100%);
    }
    100% { 
        transform: translateX(-100%);
    }
}

/* Icon Shine Animation */
@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

/* Screen flash effect for dramatic transitions */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    mix-blend-mode: screen;
}

.screen-flash.active {
    animation: flashEffect 0.5s ease-out;
}

@keyframes flashEffect {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

/* Enhanced 3D perspective for sections */
.section {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Cinematic vignette effect */
.cinematic-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease;
}

.cinematic-vignette.active {
    opacity: 1;
}
