/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --christmas-red: #c41e3a;
    --christmas-green: #0d7d3d;
    --christmas-gold: #ffd700;
    --christmas-white: #ffffff;
    --christmas-dark: #1a1a1a;
    --snow-white: #f0f8ff;
}

body {
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--christmas-white);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

.snowflake {
    position: absolute;
    color: var(--christmas-white);
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    opacity: 0.8;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Christmas Lights */
.lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, 
        var(--christmas-red) 0%, 
        var(--christmas-green) 25%, 
        var(--christmas-blue) 50%, 
        var(--christmas-yellow) 75%, 
        var(--christmas-red) 100%);
    z-index: 10;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: twinkle 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.light.red {
    background: var(--christmas-red);
    color: var(--christmas-red);
    animation-delay: 0s;
}

.light.green {
    background: var(--christmas-green);
    color: var(--christmas-green);
    animation-delay: 0.3s;
}

.light.blue {
    background: #4169e1;
    color: #4169e1;
    animation-delay: 0.6s;
}

.light.yellow {
    background: var(--christmas-gold);
    color: var(--christmas-gold);
    animation-delay: 0.9s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Header */
.header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(ellipse at center, rgba(13, 125, 61, 0.3) 0%, transparent 70%);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--christmas-gold);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        3px 3px 0px var(--christmas-red);
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4),
            3px 3px 0px var(--christmas-red);
    }
    to {
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6),
            3px 3px 0px var(--christmas-red);
    }
}

.ornaments {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.ornament {
    animation: spin 4s linear infinite;
    display: inline-block;
}

.ornament:nth-child(2) {
    animation-delay: 0.5s;
}

.ornament:nth-child(3) {
    animation-delay: 1s;
}

.ornament:nth-child(4) {
    animation-delay: 1.5s;
}

.ornament:nth-child(5) {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Message Section */
.message-section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.message-container {
    perspective: 1000px;
}

.message-card {
    background: linear-gradient(135deg, 
        rgba(196, 30, 58, 0.15) 0%, 
        rgba(13, 125, 61, 0.15) 100%);
    border: 3px solid var(--christmas-gold);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: cardFloat 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: shimmer 4s linear infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.message-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    color: var(--christmas-gold);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.message-content {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--christmas-white);
    text-align: justify;
    position: relative;
    z-index: 1;
}

.message-content p {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.message-content p:nth-child(1) {
    animation-delay: 0.2s;
}

.message-content p:nth-child(2) {
    animation-delay: 0.4s;
}

.message-content p:nth-child(3) {
    animation-delay: 0.6s;
}

.message-content p:nth-child(4) {
    animation-delay: 0.8s;
}

.message-content p:nth-child(5) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signature {
    text-align: right;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--christmas-gold);
    margin-top: 30px;
    font-style: italic;
}

/* Gallery Section */
.gallery-section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--christmas-gold);
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid var(--christmas-gold);
    cursor: pointer;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    background: var(--christmas-dark);
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.6);
    border-color: var(--christmas-white);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, 
        rgba(196, 30, 58, 0.2) 0%, 
        rgba(13, 125, 61, 0.2) 100%);
    border: 3px dashed var(--christmas-gold);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--christmas-gold);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    opacity: 1;
    border-style: solid;
    transform: translateY(-5px);
}

.photo-placeholder p:last-child {
    font-size: 1rem;
    margin-top: 10px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid var(--christmas-gold);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--christmas-white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.lightbox-close:hover {
    color: var(--christmas-gold);
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 215, 0, 0.3);
    color: var(--christmas-white);
    border: 2px solid var(--christmas-gold);
    padding: 20px 25px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
}

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(ellipse at center, rgba(196, 30, 58, 0.2) 0%, transparent 70%);
    margin-top: 80px;
}

.footer-content p {
    font-size: 1.8rem;
    color: var(--christmas-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.footer-ornaments {
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 30px;
    animation: float 3s ease-in-out infinite;
}

/* Music Toggle */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    border: 2px solid var(--christmas-gold);
    color: var(--christmas-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.music-toggle:hover {
    background: rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
}

.music-toggle.active {
    background: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .ornaments {
        font-size: 2rem;
        gap: 15px;
    }
    
    .message-card {
        padding: 30px 20px;
    }
    
    .message-title {
        font-size: 2rem;
    }
    
    .message-content {
        font-size: 1.2rem;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px 20px;
        font-size: 25px;
    }
    
    .lights {
        height: 40px;
    }
    
    .light {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .header {
        padding: 100px 15px 60px;
    }
    
    .message-section {
        padding: 50px 15px;
    }
    
    .gallery-section {
        padding: 50px 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

