/* =====================================================
   SENSEI JAPANESE SEASONAL VIBE (SHINRYOKU/AUTUMN MIX)
   ===================================================== */

:root {
    --seasonal-green: #f1f8e9;
    --seasonal-green-accent: #aed581; /* Fresh light green */
    --seasonal-red-soft: #fff5f5;
    --seasonal-red-accent: #ff8a80; /* Lighter red for accent petals */
    --seasonal-particle: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(216, 50, 54, 0.05);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* 🌿 SEASONAL ANIMATED BACKGROUND (MAY-JUNE RED GARDEN) */
.hero-seasonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/theme/v1/img/photos/seasonal_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 1;
}

.hero-seasonal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(216, 50, 54, 0.2) 0%, 
        rgba(255, 245, 245, 0.3) 50%, 
        rgba(216, 50, 54, 0.15) 100%);
    z-index: -1;
}

/* 🌫️ MOVING MIST EFFECT */
.mist-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/fog.png');
    opacity: 0.2;
    z-index: -1;
    animation: mist-flow 60s linear infinite;
    pointer-events: none;
}

@keyframes mist-flow {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 🏮 SECTION MATCHING */
.contact-section {
    position: relative;
    background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('/theme/v1/img/photos/seasonal_bg.png') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 0 !important;
}

.about-section {
    position: relative;
    background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('/theme/v1/img/photos/seasonal_bg.png') !important;
    background-size: cover;
    background-position: bottom;
    padding: 6rem 0 !important;
}

@keyframes seasonal-bg-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 🍃 FLOATING ELEMENTS CONTAINER */
.seasonal-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* SEASONAL LEAF/PETAL STYLES */
.seasonal-leaf {
    position: absolute;
    will-change: transform, opacity;
    opacity: 0;
}

.leaf-green {
    background: var(--seasonal-green-accent);
    border-radius: 100% 2% 100% 2%; /* Sharper Japanese leaf shape */
    box-shadow: inset 2px 2px 5px rgba(255,255,255,0.3);
}

.petal-red {
    background: var(--seasonal-red-accent);
    border-radius: 150% 0 150% 150%; 
    opacity: 0.6;
}

.particle-gold {
    background: linear-gradient(135deg, #FFF, #FFF);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.wind-line {
    background: rgba(255,255,255,0.3);
    width: 40px !important;
    height: 1px !important;
    border-radius: 99px;
}

/* 🧊 3D TILT EFFECT */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.tilt-card > * {
    transform: translateZ(20px);
}

/* 🍁 CORNER ASSETS (MAPLE LEAVES) */
.maple-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.8s ease;
}

.maple-top-left { top: -20px; left: -20px; transform: rotate(-15deg); }
.maple-bottom-right { bottom: -20px; right: -20px; transform: rotate(165deg); }

.hero:hover .maple-corner {
    transform: scale(1.1) rotate(0deg);
}

/* ✨ GLASSMORPHISM UTILITY */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    perspective: 1000px;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(216, 50, 54, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(216, 50, 54, 0.12);
}

/* 🚀 ADVANCED SCROLL REVEAL */
.reveal-pop {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-active.reveal-pop {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-active.reveal-slide-right {
    opacity: 1;
    transform: translateX(0);
}

/* 📱 RESPONSIVE ANIMATION CONTROL */
@media (max-width: 768px) {
    .seasonal-leaf {
        /* Reduce size/frequency for mobile performance */
        transform: scale(0.7);
    }
    
    .maple-corner {
        width: 80px;
        height: 80px;
    }
}

/* 🌪️ WIND EFFECT ANIMATION */
@keyframes seasonal-float {
    0% {
        transform: translate(0, -10vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--wind-x, 100px), 110vh) rotate(var(--rot, 360deg)) scale(var(--s, 1));
        opacity: 0;
    }
}
