/* ====================================================================
   MAAC CHANDMARI - CHRISTMAS SEASONAL THEME
   December 2025
   
   All styles in this file are seasonal decorations that can be
   easily removed after the holiday season.
   ==================================================================== */

/* Christmas Color Palette */
:root {
    --christmas-red: #C62828;
    --christmas-green: #2E7D32;
    --christmas-gold: #D4AF37;
    --christmas-white: rgba(255, 255, 255, 0.9);
    --christmas-glow: rgba(212, 175, 55, 0.4);
}

/* ====================================================================
   1. SNOWFALL ANIMATION (Pure CSS)
   ==================================================================== */

/* Snowfall Container */
.christmas-snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

/* Individual Snowflakes */
.snowflake {
    position: absolute;
    top: -10px;
    color: var(--christmas-white);
    font-size: 1em;
    opacity: 0.8;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Snowfall Animation Keyframes */
@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Multiple snowflake variations for natural effect */
.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; font-size: 0.8em; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; font-size: 1.2em; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 9s; animation-delay: 4s; font-size: 0.9em; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 1s; font-size: 1em; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; font-size: 1.1em; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: 5s; font-size: 0.85em; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 11s; animation-delay: 2s; font-size: 1em; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 4s; font-size: 0.95em; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 9s; animation-delay: 1s; font-size: 1.15em; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 14s; animation-delay: 3s; font-size: 0.9em; }
.snowflake:nth-child(11) { left: 25%; animation-duration: 10s; animation-delay: 5s; font-size: 1.05em; }
.snowflake:nth-child(12) { left: 35%; animation-duration: 13s; animation-delay: 0s; font-size: 0.88em; }
.snowflake:nth-child(13) { left: 45%; animation-duration: 11s; animation-delay: 2s; font-size: 1.12em; }
.snowflake:nth-child(14) { left: 55%; animation-duration: 12s; animation-delay: 4s; font-size: 0.92em; }
.snowflake:nth-child(15) { left: 65%; animation-duration: 10s; animation-delay: 1s; font-size: 1.08em; }
.snowflake:nth-child(16) { left: 75%; animation-duration: 13s; animation-delay: 3s; font-size: 0.87em; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 9s; animation-delay: 5s; font-size: 1.03em; }
.snowflake:nth-child(18) { left: 95%; animation-duration: 11s; animation-delay: 2s; font-size: 0.94em; }
.snowflake:nth-child(19) { left: 5%; animation-duration: 14s; animation-delay: 4s; font-size: 1.06em; }
.snowflake:nth-child(20) { left: 12%; animation-duration: 12s; animation-delay: 1s; font-size: 0.91em; }

/* ====================================================================
   2. CHRISTMAS LIGHTS GLOW EFFECT (Hero Section)
   ==================================================================== */

/* Christmas Lights Container */
.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 8;
    opacity: 0.6;
}

/* Individual Lights - Positioned at corners and edges */
.christmas-light {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: christmasGlow 2s ease-in-out infinite alternate;
}

/* Light Colors */
.christmas-light.red {
    background: radial-gradient(circle, var(--christmas-red), transparent);
    box-shadow: 0 0 20px var(--christmas-red), 0 0 40px var(--christmas-red);
}

.christmas-light.green {
    background: radial-gradient(circle, var(--christmas-green), transparent);
    box-shadow: 0 0 20px var(--christmas-green), 0 0 40px var(--christmas-green);
}

.christmas-light.gold {
    background: radial-gradient(circle, var(--christmas-gold), transparent);
    box-shadow: 0 0 20px var(--christmas-gold), 0 0 40px var(--christmas-gold);
}

/* Glow Animation */
@keyframes christmasGlow {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Light Positions - Top Edge */
.christmas-light:nth-child(1) { top: 2%; left: 5%; animation-delay: 0s; }
.christmas-light:nth-child(2) { top: 2%; left: 15%; animation-delay: 0.3s; }
.christmas-light:nth-child(3) { top: 2%; left: 25%; animation-delay: 0.6s; }
.christmas-light:nth-child(4) { top: 2%; left: 35%; animation-delay: 0.9s; }
.christmas-light:nth-child(5) { top: 2%; left: 45%; animation-delay: 1.2s; }
.christmas-light:nth-child(6) { top: 2%; left: 55%; animation-delay: 1.5s; }
.christmas-light:nth-child(7) { top: 2%; left: 65%; animation-delay: 0.2s; }
.christmas-light:nth-child(8) { top: 2%; left: 75%; animation-delay: 0.5s; }
.christmas-light:nth-child(9) { top: 2%; left: 85%; animation-delay: 0.8s; }
.christmas-light:nth-child(10) { top: 2%; left: 95%; animation-delay: 1.1s; }

/* Light Positions - Side Edges */
.christmas-light:nth-child(11) { top: 20%; left: 2%; animation-delay: 0.4s; }
.christmas-light:nth-child(12) { top: 40%; left: 2%; animation-delay: 0.7s; }
.christmas-light:nth-child(13) { top: 60%; left: 2%; animation-delay: 1s; }
.christmas-light:nth-child(14) { top: 80%; left: 2%; animation-delay: 1.3s; }

.christmas-light:nth-child(15) { top: 20%; right: 2%; animation-delay: 0.6s; }
.christmas-light:nth-child(16) { top: 40%; right: 2%; animation-delay: 0.9s; }
.christmas-light:nth-child(17) { top: 60%; right: 2%; animation-delay: 1.2s; }
.christmas-light:nth-child(18) { top: 80%; right: 2%; animation-delay: 1.5s; }

/* ====================================================================
   3. DECORATIVE CHRISTMAS ACCENTS
   ==================================================================== */

/* Corner Decorations */
.christmas-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 9;
    opacity: 0.8;
}

/* Top Left - Holly Decoration */
.christmas-decoration.top-left {
    top: 1%;
    left: 1%;
    font-size: 3rem;
    animation: gentleSwing 3s ease-in-out infinite;
}

/* Top Right - Bells */
.christmas-decoration.top-right {
    top: 1%;
    right: 1%;
    font-size: 3rem;
    animation: gentleSwing 3.5s ease-in-out infinite;
}

/* Bottom Decorations - Ribbon/Bow */
.christmas-decoration.bottom-left {
    bottom: 5%;
    left: 2%;
    font-size: 2.5rem;
    animation: gentlePulse 4s ease-in-out infinite;
}

.christmas-decoration.bottom-right {
    bottom: 5%;
    right: 2%;
    font-size: 2.5rem;
    animation: gentlePulse 4.5s ease-in-out infinite;
}

/* Decoration Animations */
@keyframes gentleSwing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ====================================================================
   4. FESTIVE COLOR PALETTE ENHANCEMENTS
   ==================================================================== */

/* Christmas Background Gradient Overlay */
.christmas-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(212, 175, 55, 0.05) 50%,
        rgba(212, 175, 55, 0.08) 100%
    );
    pointer-events: none;
    z-index: 6;
}

/* Button Sparkle Hover Effect */
.btn-primary,
.hero-buttons a,
.nav-cta,
.mobile-nav-cta {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.hero-buttons a::before,
.nav-cta::before,
.mobile-nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--christmas-gold), transparent);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
}

.btn-primary:hover::before,
.hero-buttons a:hover::before,
.nav-cta:hover::before,
.mobile-nav-cta:hover::before {
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

/* Festive Accent for Primary Buttons */
.btn-primary,
.hero-buttons a.btn-primary {
    box-shadow: 0 4px 15px var(--christmas-glow);
    border: 1px solid var(--christmas-gold);
}

.btn-primary:hover,
.hero-buttons a.btn-primary:hover {
    box-shadow: 0 6px 25px var(--christmas-gold);
}

/* ====================================================================
   5. SECTION DIVIDERS - CANDY CANE STYLE
   ==================================================================== */

/* Decorative Section Separators */
.christmas-section-divider {
    position: relative;
    margin: 2rem auto;
    height: 4px;
    width: 80%;
    max-width: 600px;
    background: repeating-linear-gradient(
        90deg,
        var(--christmas-red) 0px,
        var(--christmas-red) 10px,
        var(--christmas-white) 10px,
        var(--christmas-white) 20px
    );
    border-radius: 2px;
    opacity: 0.6;
}

/* Add golden stars to section headers */
.section-header h2::before,
.about-header h1::before {
    content: '✨ ';
    color: var(--christmas-gold);
    margin-right: 0.5rem;
}

.section-header h2::after,
.about-header h1::after {
    content: ' ✨';
    color: var(--christmas-gold);
    margin-left: 0.5rem;
}

/* ====================================================================
   6. HERO HIGHLIGHT BANNER CHRISTMAS ENHANCEMENT
   ==================================================================== */

/* Add festive gradient to hero banner */
.hero-highlight-banner .bg-gradient-to-r {
    background: linear-gradient(
        90deg,
        var(--christmas-red) 0%,
        var(--christmas-gold) 25%,
        var(--christmas-green) 50%,
        var(--christmas-gold) 75%,
        var(--christmas-red) 100%
    ) !important;
    animation: festiveShimmer 8s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes festiveShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Add sparkle effect to banner icons */
.hero-highlight-banner p {
    position: relative;
}

.hero-highlight-banner p::before {
    content: '✨';
    position: absolute;
    left: -1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.hero-highlight-banner p::after {
    content: '✨';
    position: absolute;
    right: -1.5rem;
    animation: sparkle 2s ease-in-out infinite 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ====================================================================
   7. MOBILE OPTIMIZATIONS
   ==================================================================== */

/* Reduce snowfall density on mobile */
@media (max-width: 768px) {
    .snowflake:nth-child(n+11) {
        display: none;
    }
    
    .christmas-light {
        width: 8px;
        height: 8px;
    }
    
    /* Hide side lights on mobile */
    .christmas-light:nth-child(n+11) {
        display: none;
    }
}

/* Scale down decorations on small screens */
@media (max-width: 480px) {
    .christmas-decoration {
        font-size: 2rem !important;
        opacity: 0.6;
    }
    
    .christmas-decoration.bottom-left,
    .christmas-decoration.bottom-right {
        display: none;
    }
    
    .christmas-section-divider {
        width: 90%;
        height: 3px;
    }
    
    /* Simplify hero banner on mobile */
    .hero-highlight-banner p::before,
    .hero-highlight-banner p::after {
        display: none;
    }
}

/* ====================================================================
   8. ACCESSIBILITY - REDUCED MOTION SUPPORT
   ==================================================================== */

/* Disable all animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .christmas-snowfall,
    .snowflake {
        display: none !important;
    }
    
    .christmas-light,
    .christmas-decoration {
        animation: none !important;
    }
    
    .btn-primary::before,
    .hero-buttons a::before,
    .nav-cta::before,
    .mobile-nav-cta::before {
        display: none !important;
    }
    
    .hero-highlight-banner .bg-gradient-to-r {
        animation: none !important;
        background: var(--christmas-gold) !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================================================
   9. PERFORMANCE OPTIMIZATIONS
   ==================================================================== */

/* Use GPU acceleration for animations */
.snowflake,
.christmas-light,
.christmas-decoration {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce complexity on low-end devices */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .snowflake {
        animation-duration: 15s !important;
    }
}

/* ====================================================================
   10. PRINT STYLES - REMOVE ALL CHRISTMAS DECORATIONS
   ==================================================================== */

@media print {
    .christmas-snowfall,
    .christmas-lights,
    .christmas-decoration,
    .christmas-bg-overlay,
    .christmas-section-divider {
        display: none !important;
    }
}

/* ====================================================================
   END OF CHRISTMAS THEME
   To remove this theme after the holidays, simply:
   1. Remove the link to this CSS file from index.html
   2. Remove HTML elements with class "christmas-*"
   ==================================================================== */
