/* =====================================================
   SENSEI PREMIUM LAUNCH POLISH
   ===================================================== */

:root {
    --sensei-red: #D83236;
    --sensei-red-dark: #b1282c;
    --sensei-gold: #D4AF37;
    --glass-white: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(216, 50, 54, 0.1);
}

/* 🌸 GLOBAL SENSEI LOADER */
#sensei-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: loader-pulse 2s ease-in-out infinite;
}

.loader-seasonal {
    width: 40px;
    height: 40px;
    position: relative;
}

.seasonal-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--sensei-red);
    border-radius: 50%;
    animation: seasonal-orbit 1.5s linear infinite, seasonal-glow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 10px rgba(216, 50, 54, 0.5);
}

@keyframes seasonal-glow {
    from { filter: brightness(1); box-shadow: 0 0 5px currentColor; }
    to { filter: brightness(1.5); box-shadow: 0 0 15px currentColor; }
}

.seasonal-dot:nth-child(2) { animation-delay: -0.3s; background: #81c784; }
.seasonal-dot:nth-child(3) { animation-delay: -0.6s; background: #ef5350; }
.seasonal-dot:nth-child(4) { animation-delay: -0.9s; background: #FFD700; }
.seasonal-dot:nth-child(5) { animation-delay: -1.2s; background: #81c784; }

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(216, 50, 54, 0)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(216, 50, 54, 0.2)); }
}

@keyframes seasonal-orbit {
    0% { transform: rotate(0deg) translateX(25px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

/* 🌿 MODERN SECTION ANCHORS */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ✨ PREMIUM BUTTONS */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sensei-red) 0%, var(--sensei-red-dark) 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 25px rgba(216, 50, 54, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(216, 50, 54, 0.4);
    color: white;
}

.btn-premium::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s;
    animation: btn-shine 3s infinite linear;
}

@keyframes btn-shine {
    0% { left: -60%; }
    20%, 100% { left: 120%; }
}

/* 🖼️ VISA SUCCESS MASONRY ENHANCEMENT */
.visa-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
}

.visa-card::after {
    content: "View Certificate";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(216, 50, 54, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visa-card:hover::after {
    opacity: 1;
}

/* 📱 MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem !important;
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 1.5rem !important;
    }
    
    .hero-illustration {
        min-height: 300px !important;
    }
}

/* 🔝 BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--sensei-red);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(216, 50, 54, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--sensei-red-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(216, 50, 54, 0.4);
}
