/* Traditional Holiday Theme - Red, Green & Gold */
:root {
    --ny-red: #d32f2f;
    --ny-dark-red: #b71c1c;
    --ny-green: #2e7d32;
    --ny-dark-green: #1b5e20;
    --ny-gold: #ffb300;
    --ny-light-gold: #ffca28;
    --ny-white: #ffffff;
    --ny-snow: #f5f5f5;
    --ny-glass: rgba(255, 255, 255, 0.9);
    --ny-glass-border: rgba(255, 255, 255, 0.5);
    --ny-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Theme Activation */
body.new-year-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Candy Cane Scrollbar */
body.new-year-theme::-webkit-scrollbar {
    width: 16px;
}

body.new-year-theme::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #e0e0e0;
}

body.new-year-theme::-webkit-scrollbar-thumb {
    background: repeating-linear-gradient(
        45deg,
        var(--ny-red),
        var(--ny-red) 10px,
        var(--ny-white) 10px,
        var(--ny-white) 20px
    );
    border-radius: 10px;
    border: 3px solid #f1f1f1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.new-year-theme::-webkit-scrollbar-thumb:hover {
    background: repeating-linear-gradient(
        45deg,
        var(--ny-dark-red),
        var(--ny-dark-red) 10px,
        #f0f0f0 10px,
        #f0f0f0 20px
    );
}

/* Dynamic Background Pattern */
body.new-year-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(211, 47, 47, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(46, 125, 50, 0.05) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.ny-glass {
    background: var(--ny-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ny-glass-border);
    box-shadow: var(--ny-shadow);
}

/* Header Overrides */
body.new-year-theme header {
    background: var(--ny-dark-green);
    border-bottom: 3px solid var(--ny-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.new-year-theme .logo {
    color: var(--ny-white);
}

body.new-year-theme .nav-link {
    color: var(--ny-white);
    font-weight: 600;
}

body.new-year-theme .nav-link:hover {
    color: var(--ny-gold);
    background: rgba(255, 255, 255, 0.1);
}

body.new-year-theme .nav-link::after {
    background: var(--ny-red);
}

/* Hero Section Overrides */
body.new-year-theme .hero {
    background: linear-gradient(135deg, var(--ny-red) 0%, var(--ny-dark-red) 100%);
    border: 2px solid var(--ny-gold);
    box-shadow: 0 20px 40px rgba(183, 28, 28, 0.3);
    position: relative;
    overflow: visible;
    color: var(--ny-white);
}

body.new-year-theme .hero::before {
    display: none;
}

/* Hero Title & Text */
body.new-year-theme .main-title {
    color: var(--ny-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.new-year-theme .description {
    color: rgba(255, 255, 255, 0.9);
}

body.new-year-theme .badge {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--ny-gold);
    color: var(--ny-white);
}

body.new-year-theme .badge i {
    color: var(--ny-gold);
}

/* Form Container Overrides */
body.new-year-theme .form-container {
    background: var(--ny-white);
    border: 2px solid var(--ny-green);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(46, 125, 50, 0.2);
    position: relative;
}

/* Decorative Ribbon on Form */
body.new-year-theme .form-container::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 40px;
    height: 60px;
    background: var(--ny-red);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

body.new-year-theme .form-container::before {
    background: linear-gradient(90deg, var(--ny-red), var(--ny-green), var(--ny-gold));
}

body.new-year-theme .form-header h2 {
    color: var(--ny-dark-green);
}

body.new-year-theme input[type="email"] {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    color: #333;
}

body.new-year-theme input[type="email"]:focus {
    border-color: var(--ny-green);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    background: #fff;
}

body.new-year-theme .participate-btn {
    background: linear-gradient(135deg, var(--ny-green) 0%, var(--ny-dark-green) 100%);
    color: var(--ny-white);
    font-weight: 700;
    border: none;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
}

body.new-year-theme .participate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, var(--ny-dark-green) 0%, var(--ny-green) 100%);
}

/* Steps Section Overrides */
body.new-year-theme .step {
    background: var(--ny-white);
    border: 1px solid #eee;
    border-radius: 20px;
    transition: all 0.3s ease;
}

body.new-year-theme .step:hover {
    border-color: var(--ny-red);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.15);
}

body.new-year-theme .step-icon {
    background: rgba(211, 47, 47, 0.1);
    color: var(--ny-red);
}

body.new-year-theme .step h3 {
    color: var(--ny-dark-red);
}

/* Features Section Overrides */
body.new-year-theme .features {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Snow pattern background for features */
body.new-year-theme .features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

body.new-year-theme .section-header h2 {
    color: var(--ny-dark-green);
}

body.new-year-theme .feature-card {
    background: var(--ny-white);
    border: 1px solid #eee;
    z-index: 1;
}

body.new-year-theme .feature-card:hover {
    border-color: var(--ny-gold);
    box-shadow: 0 10px 25px rgba(255, 179, 0, 0.2);
}

body.new-year-theme .feature-icon {
    color: var(--ny-gold);
}

body.new-year-theme .feature-card h3 {
    color: #333;
}

/* Company Section Overrides */
body.new-year-theme .company {
    background: var(--ny-white);
    border-top: 4px solid var(--ny-gold);
}

body.new-year-theme .stat {
    background: #f9f9f9;
    border-radius: 16px;
}

body.new-year-theme .stat i {
    color: var(--ny-green);
}

body.new-year-theme .stat h3 {
    color: var(--ny-dark-green);
}

/* Footer Overrides */
body.new-year-theme footer {
    background: var(--ny-dark-green);
    color: var(--ny-white);
    border-top: 4px solid var(--ny-red);
}

body.new-year-theme .footer-info p {
    color: rgba(255, 255, 255, 0.8);
}

body.new-year-theme .social-link {
    background: rgba(255, 255, 255, 0.1);
}

body.new-year-theme .social-link:hover {
    background: var(--ny-red);
}

/* Snow Effect Container */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* Countdown Timer - Festive Style */
.ny-countdown-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem 0;
}

body.new-year-theme .ny-countdown-wrapper {
    display: flex;
}

.ny-countdown-title {
    color: var(--ny-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 600;
}

.ny-countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.ny-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 12px;
}

.ny-countdown-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--ny-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.ny-countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ny-white);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Animated Garland */
.ny-garland-container {
    position: absolute;
    top: 85%;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.ny-garland-rope {
    position: absolute;
    top: -20px;
    left: -5%;
    width: 110%;
    height: 50px;
    border-bottom: 3px solid #2c3e50;
    border-radius: 50%;
    z-index: 1;
}

.ny-bulb {
    position: relative;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
    animation: bulb-glow 1.5s infinite alternate;
    z-index: 2;
}

.ny-bulb::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 4px;
    width: 8px;
    height: 6px;
    background: #333;
    border-radius: 2px;
}

.ny-bulb:nth-child(4n+1) { background: #ffeb3b; box-shadow: 0 5px 20px rgba(255, 235, 59, 0.6); animation-delay: 0s; }
.ny-bulb:nth-child(4n+2) { background: #f44336; box-shadow: 0 5px 20px rgba(244, 67, 54, 0.6); animation-delay: 0.5s; }
.ny-bulb:nth-child(4n+3) { background: #4caf50; box-shadow: 0 5px 20px rgba(76, 175, 80, 0.6); animation-delay: 1s; }
.ny-bulb:nth-child(4n+4) { background: #2196f3; box-shadow: 0 5px 20px rgba(33, 150, 243, 0.6); animation-delay: 1.5s; }

@keyframes bulb-glow {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Decorative Gift Boxes */
.ny-gift-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
    pointer-events: none;
}

.ny-gift {
    width: 60px;
    height: 60px;
    background: var(--ny-red);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.ny-gift::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 100%;
    background: var(--ny-gold);
    left: 50%;
    transform: translateX(-50%);
}

.ny-gift::after {
    content: '';
    position: absolute;
    height: 10px;
    width: 100%;
    background: var(--ny-gold);
    top: 50%;
    transform: translateY(-50%);
}

.ny-gift-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
}

.ny-gift-top::before, .ny-gift-top::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--ny-gold);
    border-radius: 50%;
    top: 0;
}

.ny-gift-top::before { left: 0; transform: rotate(-45deg); }
.ny-gift-top::after { right: 0; transform: rotate(45deg); }

.ny-gift:nth-child(2) {
    background: var(--ny-green);
    width: 50px;
    height: 50px;
}

.ny-gift:nth-child(2)::before, .ny-gift:nth-child(2)::after {
    background: var(--ny-red);
}

.ny-gift:nth-child(2) .ny-gift-top::before, .ny-gift:nth-child(2) .ny-gift-top::after {
    border-color: var(--ny-red);
}

/* Christmas Tree Component */
.ny-tree-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    animation: tree-sway 4s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

.ny-tree {
    position: relative;
    width: 160px;
    height: 200px;
}

.ny-tree-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 70px solid;
    border-radius: 20px;
}

/* Bottom Tier */
.ny-tree-layer:nth-child(1) {
    bottom: 20px;
    border-left-width: 70px;
    border-right-width: 70px;
    border-bottom-width: 80px;
    border-bottom-color: var(--ny-dark-green);
    z-index: 1;
    /* Add gradient effect to bottom tier */
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

/* Middle Tier */
.ny-tree-layer:nth-child(2) {
    bottom: 60px;
    border-left-width: 55px;
    border-right-width: 55px;
    border-bottom-width: 65px;
    border-bottom-color: var(--ny-green);
    z-index: 2;
}

/* Top Tier */
.ny-tree-layer:nth-child(3) {
    bottom: 95px;
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 50px;
    border-bottom-color: #4caf50;
    z-index: 3;
}

.ny-tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px; /* Increased height to close gap */
    background: #5d4037;
    border-radius: 4px;
}

.ny-tree-star {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ny-gold);
    font-size: 24px;
    z-index: 4;
    animation: star-twinkle 1.5s infinite alternate;
}

.ny-tree-ornament {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ny-red);
    box-shadow: 0 0 5px var(--ny-red);
    z-index: 5;
    animation: ornament-flash 2s infinite alternate;
}

/* Specific positioning for ornaments to ensure even distribution */
/* Top Layer */
.ny-tree-ornament:nth-child(5) { top: 25%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }

/* Middle Layer */
.ny-tree-ornament:nth-child(6) { top: 45%; left: 35%; animation-delay: 0.4s; background: var(--ny-gold); box-shadow: 0 0 5px var(--ny-gold); }
.ny-tree-ornament:nth-child(7) { top: 45%; right: 35%; animation-delay: 0.8s; background: #0288d1; box-shadow: 0 0 5px #0288d1; }
.ny-tree-ornament:nth-child(8) { top: 55%; left: 50%; transform: translateX(-50%); animation-delay: 1.2s; }

/* Bottom Layer */
.ny-tree-ornament:nth-child(9) { top: 65%; left: 25%; animation-delay: 1.6s; background: var(--ny-gold); box-shadow: 0 0 5px var(--ny-gold); }
.ny-tree-ornament:nth-child(10) { top: 65%; right: 25%; animation-delay: 2.0s; background: var(--ny-red); box-shadow: 0 0 5px var(--ny-red); }
.ny-tree-ornament:nth-child(11) { top: 75%; left: 40%; animation-delay: 0.2s; background: #0288d1; box-shadow: 0 0 5px #0288d1; }
.ny-tree-ornament:nth-child(12) { top: 75%; right: 40%; animation-delay: 0.6s; background: var(--ny-gold); box-shadow: 0 0 5px var(--ny-gold); }
.ny-tree-ornament:nth-child(13) { top: 85%; left: 15%; animation-delay: 1.0s; background: var(--ny-red); box-shadow: 0 0 5px var(--ny-red); }
.ny-tree-ornament:nth-child(14) { top: 85%; right: 15%; animation-delay: 1.4s; background: #0288d1; box-shadow: 0 0 5px #0288d1; }

@keyframes tree-sway {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

@keyframes star-twinkle {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

@keyframes ornament-flash {
    0% { opacity: 0.4; filter: brightness(0.8); }
    50% { opacity: 1; filter: brightness(1.2); box-shadow: 0 0 12px currentColor; }
    100% { opacity: 0.4; filter: brightness(0.8); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ny-countdown {
        gap: 0.75rem;
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .ny-countdown-item {
        min-width: 60px;
    }
    
    .ny-countdown-value {
        font-size: 1.75rem;
    }
    
    .ny-countdown-label {
        font-size: 0.6rem;
    }
    
    .ny-gift-container {
        display: none;
    }
    
    
    .ny-garland-container {
        height: 40px;
    }
    
    .ny-bulb {
        width: 12px;
        height: 12px;
        top: 15px;
    }
}