* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Christmas Lights */
.lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
}

.light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: twinkle 1.5s infinite alternate;
}

.light.red {
    background: #ff0000;
    box-shadow: 0 0 20px #ff0000;
    animation-delay: 0s;
}

.light.blue {
    background: #0066ff;
    box-shadow: 0 0 20px #0066ff;
    animation-delay: 0.3s;
}

.light.green {
    background: #00ff00;
    box-shadow: 0 0 20px #00ff00;
    animation-delay: 0.6s;
}

.light.yellow {
    background: #ffff00;
    box-shadow: 0 0 20px #ffff00;
    animation-delay: 0.9s;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Snowfall Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: white;
    font-size: 1.5em;
    opacity: 0.8;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(110vh);
    }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 7s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 8s; animation-delay: 0.8s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 10s; animation-delay: 2.5s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 9s; animation-delay: 1.2s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 7s; animation-delay: 0.3s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 10s; animation-delay: 1.8s; }
.snowflake:nth-child(11) { left: 75%; animation-duration: 8s; animation-delay: 2.2s; }
.snowflake:nth-child(12) { left: 35%; animation-duration: 9s; animation-delay: 0.7s; }

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 3.5em;
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 15px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.5em;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Card Styles */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 20px;
    padding: 35px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.3);
    border: 3px solid transparent;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.5);
    border-color: #ffd700;
}

.card-inner {
    text-align: center;
    position: relative;
}

.card-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.card-photo {
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover .profile-img {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card-name {
    font-size: 1.4em;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-label {
    font-size: 1.1em;
    color: #d32f2f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-decoration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 2em;
    opacity: 0.3;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.footer p {
    color: white;
    font-size: 1.3em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 25px;
    }
    
    .card-name {
        font-size: 1.2em;
        min-height: 50px;
    }
    
    .lights {
        height: 30px;
    }
    
    .light {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2em;
    }
    
    .container {
        padding: 60px 15px 30px;
    }
    
    .card-icon {
        font-size: 3em;
    }
}

/* Welcome Overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.welcome-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-content h1 {
    font-size: 3em;
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 30px;
}

.enter-btn {
    padding: 15px 50px;
    font-size: 1.5em;
    background: linear-gradient(135deg, #ff0000, #00ff00);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.enter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 215, 0, 0.9);
    }
}
