/* Photo-Realistic Celebration Screen - Full Screen Modal */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 50%, #2E8B57 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    overflow: hidden;
    pointer-events: auto;
    user-select: none;
}

.celebration-overlay.show {
    opacity: 1;
}

.celebration-overlay.fade-out {
    opacity: 0;
}

.celebration-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.celebration-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo-realistic landscape scene */
.landscape-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Sky gradient */
.sky-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, 
        #87CEEB 0%,
        #B0E0E6 30%,
        #F0F8FF 60%,
        #E6F3FF 100%);
}

/* Sun */
.sun {
    position: absolute;
    top: 15%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    animation: sunGlow 3s ease-in-out infinite alternate;
}

@keyframes sunGlow {
    0% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 0 80px rgba(255, 215, 0, 0.8); }
}

/* Clouds */
.clouds {
    position: absolute;
    top: 10%;
    width: 100%;
    height: 40%;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.8;
    animation: cloudFloat 20s ease-in-out infinite;
}

.cloud:before {
    content: '';
    position: absolute;
    background: white;
    border-radius: 100px;
}

.cloud:after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 100px;
}

.cloud-1 {
    width: 80px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1:after {
    width: 60px;
    height: 30px;
    top: -15px;
    right: 10px;
}

.cloud-2 {
    width: 60px;
    height: 30px;
    top: 30%;
    left: 70%;
    animation-delay: -5s;
}

.cloud-2:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 5px;
}

.cloud-2:after {
    width: 50px;
    height: 25px;
    top: -10px;
    right: 5px;
}

.cloud-3 {
    width: 70px;
    height: 35px;
    top: 15%;
    left: 50%;
    animation-delay: -10s;
}

.cloud-3:before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 8px;
}

.cloud-3:after {
    width: 55px;
    height: 28px;
    top: -12px;
    right: 8px;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(30px); }
}

/* Mountains */
.mountains {
    position: absolute;
    bottom: 40%;
    width: 100%;
    height: 25%;
}

.mountain {
    position: absolute;
    bottom: 0;
}

.mountain-1 {
    left: 0%;
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 150px solid #708090;
    filter: blur(1px);
}

.mountain-2 {
    left: 30%;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 120px solid #696969;
    filter: blur(0.5px);
}

.mountain-3 {
    right: 10%;
    width: 0;
    height: 0;
    border-left: 180px solid transparent;
    border-right: 180px solid transparent;
    border-bottom: 140px solid #778899;
    filter: blur(1px);
}

/* Rolling hills */
.rolling-hills {
    position: absolute;
    bottom: 30%;
    width: 100%;
    height: 20%;
}

.hill {
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 0 0;
}

.hill-1 {
    left: -10%;
    width: 300px;
    height: 80px;
    background: linear-gradient(to bottom, #8FBC8F 0%, #6B8E23 100%);
}

.hill-2 {
    left: 25%;
    width: 250px;
    height: 60px;
    background: linear-gradient(to bottom, #9ACD32 0%, #7B8C32 100%);
}

.hill-3 {
    right: -5%;
    width: 280px;
    height: 70px;
    background: linear-gradient(to bottom, #8FBC8F 0%, #6B8E23 100%);
}

/* Trees */
.trees {
    position: absolute;
    bottom: 20%;
    width: 100%;
    height: 25%;
}

.tree {
    position: absolute;
    bottom: 0;
}

.tree:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: #8B4513;
}

.tree:after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 50px solid #228B22;
}

.tree-1 {
    left: 15%;
    animation: treeWave 4s ease-in-out infinite;
    animation-delay: 0s;
}

.tree-2 {
    left: 35%;
    animation: treeWave 4s ease-in-out infinite;
    animation-delay: -1s;
}

.tree-3 {
    left: 55%;
    animation: treeWave 4s ease-in-out infinite;
    animation-delay: -2s;
}

.tree-4 {
    left: 75%;
    animation: treeWave 4s ease-in-out infinite;
    animation-delay: -3s;
}

.tree-5 {
    right: 10%;
    animation: treeWave 4s ease-in-out infinite;
    animation-delay: -1.5s;
}

@keyframes treeWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

/* Grass field */
.grass-field {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, 
        #32CD32 0%,
        #228B22 50%,
        #006400 100%);
}

/* Property house */
.property-house {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.house-structure {
    position: relative;
}

.house-walls {
    width: 120px;
    height: 80px;
    background: linear-gradient(to bottom, #DEB887 0%, #D2B48C 100%);
    border: 2px solid #8B7355;
    position: relative;
}

.house-roof {
    position: absolute;
    top: -40px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 50px solid #8B4513;
}

.house-door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 40px;
    background: #654321;
    border: 1px solid #4A4A4A;
}

.house-windows {
    position: absolute;
    top: 20px;
    width: 100%;
}

.window {
    width: 20px;
    height: 20px;
    background: #87CEEB;
    border: 2px solid #4A4A4A;
    position: absolute;
}

.left-window {
    left: 20px;
}

.right-window {
    right: 20px;
}

.house-chimney {
    position: absolute;
    top: -30px;
    right: 20px;
    width: 12px;
    height: 25px;
    background: #696969;
}

.house-smoke {
    position: absolute;
    top: -35px;
    right: 22px;
    width: 8px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: smokeRise 3s ease-in-out infinite;
}

@keyframes smokeRise {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-30px) scale(1.5); opacity: 0; }
}

/* House yard */
.house-yard {
    position: relative;
    margin-top: 10px;
}

.yard-fence {
    width: 140px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        #8B4513 0px,
        #8B4513 3px,
        transparent 3px,
        transparent 8px
    );
    border-bottom: 2px solid #654321;
}

.yard-flowers {
    position: absolute;
    top: -10px;
    width: 100%;
}

.flower {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    bottom: 5px;
}

.flower-1 {
    left: 20px;
    background: #FF69B4;
}

.flower-2 {
    left: 60px;
    background: #FFD700;
}

.flower-3 {
    right: 30px;
    background: #FF6347;
}

.yard-path {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: #D2B48C;
    border-radius: 0 0 50% 50%;
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Celebration message */
.celebration-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    text-align: center;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.celebration-icon {
    font-size: 3rem;
    color: #32CD32;
    margin-bottom: 20px;
}

.message-card h1 {
    color: #2E8B57;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.message-card p {
    color: #4A4A4A;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.celebration-details {
    text-align: left;
    margin: 20px 0;
    padding: 20px;
    background: rgba(46, 139, 87, 0.1);
    border-radius: 10px;
    border-left: 4px solid #32CD32;
}

.celebration-details p {
    font-weight: bold;
    color: #2E8B57;
    margin-bottom: 10px;
}

.celebration-details ul {
    margin: 0;
    padding-left: 20px;
}

.celebration-details li {
    color: #4A4A4A;
    margin-bottom: 8px;
    font-size: 1rem;
}

.continue-btn {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.3);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.4);
}

.continue-btn i {
    margin-right: 8px;
}

/* Realistic Champagne Bottle */
.champagne-celebration {
    position: absolute;
    top: 20%;
    left: 15%;
    z-index: 8;
}

.champagne-bottle {
    position: relative;
    width: 120px;
    height: 300px;
    transform-origin: bottom center;
    transition: transform 0.3s ease;
}

.champagne-bottle.shake {
    animation: bottleShake 1s ease-in-out 3;
}

@keyframes bottleShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.bottle-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 80px;
    background: linear-gradient(to right, #1a4d1a 0%, #2d7d2d 50%, #1a4d1a 100%);
    border-radius: 0 0 8px 8px;
}

.bottle-foil {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #B8860B 100%);
    border-radius: 0 0 50% 50%;
    border: 2px solid #DAA520;
}

.bottle-cork {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: linear-gradient(to bottom, #DEB887 0%, #D2B48C 100%);
    border-radius: 50% 50% 20% 20%;
    border: 1px solid #8B7355;
    transition: all 0.5s ease;
}

.bottle-cork.pop {
    animation: corkPop 1s ease-out forwards;
}

@keyframes corkPop {
    0% { 
        transform: translateX(-50%) translateY(0) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateX(-50%) translateY(-100px) rotate(720deg); 
        opacity: 0; 
    }
}

.bottle-label {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, #F5F5DC 0%, #FFFAF0 50%, #F5F5DC 100%);
    border: 2px solid #DAA520;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.label-text {
    font-family: 'serif';
    font-size: 12px;
    font-weight: bold;
    color: #8B4513;
    text-align: center;
    margin-bottom: 5px;
}

.label-subtext {
    font-family: 'serif';
    font-size: 10px;
    color: #A0522D;
    text-align: center;
    font-style: italic;
}

.bottle-body {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 180px;
    background: linear-gradient(to right, 
        #0F4F0F 0%, 
        #1a6b1a 20%, 
        #2d8f2d 50%, 
        #1a6b1a 80%, 
        #0F4F0F 100%);
    border-radius: 0 0 45px 45px;
    box-shadow: 
        inset -10px 0 20px rgba(0,0,0,0.3),
        inset 10px 0 20px rgba(255,255,255,0.1),
        0 5px 15px rgba(0,0,0,0.2);
}

.bottle-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: linear-gradient(to bottom, #0F4F0F 0%, #0A3A0A 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Champagne Spray Animation */
.champagne-spray {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.champagne-spray.active {
    opacity: 1;
}

.spray-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    animation: sprayParticle 2s linear infinite;
}

.spray-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.spray-particle:nth-child(2) {
    left: 20%;
    animation-delay: 0.1s;
}

.spray-particle:nth-child(3) {
    left: 30%;
    animation-delay: 0.2s;
}

.spray-particle:nth-child(4) {
    left: 40%;
    animation-delay: 0.3s;
}

.spray-particle:nth-child(5) {
    left: 50%;
    animation-delay: 0.1s;
}

.spray-particle:nth-child(6) {
    left: 60%;
    animation-delay: 0.2s;
}

.spray-particle:nth-child(7) {
    left: 70%;
    animation-delay: 0.3s;
}

.spray-particle:nth-child(8) {
    left: 80%;
    animation-delay: 0.4s;
}

@keyframes sprayParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(0.5);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .sun {
        width: 60px;
        height: 60px;
        top: 10%;
        right: 15%;
    }
    
    .message-card {
        margin: 20px;
        padding: 20px;
    }
    
    .message-card h1 {
        font-size: 2rem;
    }
    
    .house-walls {
        width: 80px;
        height: 60px;
    }
    
    .house-roof {
        top: -30px;
        left: -5px;
        border-left: 45px solid transparent;
        border-right: 45px solid transparent;
        border-bottom: 35px solid #8B4513;
    }
    
    .champagne-bottle {
        width: 80px;
        height: 200px;
    }
    
    .bottle-body {
        width: 60px;
        height: 120px;
    }
    
    .bottle-label {
        width: 50px;
        height: 80px;
    }
    
    .label-text {
        font-size: 8px;
    }
    
    .label-subtext {
        font-size: 6px;
    }
}

/* Champagne Corner Layout - Attached to content */
.champagne-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px; /* Match celebration overlay height */
    pointer-events: none;
    z-index: 9;
}

.champagne-corner {
    position: absolute;
    z-index: 9;
}

.champagne-corner.top-left {
    top: 20px;
    left: 20px;
}

.champagne-corner.top-right {
    top: 20px;
    right: 20px;
}

.champagne-corner.bottom-left {
    top: 200px; /* Position relative to celebration area, not viewport bottom */
    left: 20px;
}

.champagne-corner.bottom-right {
    top: 200px; /* Position relative to celebration area, not viewport bottom */
    right: 20px;
}

.corner-champagne-image {
    width: 360px;
    height: auto;
    max-height: 504px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    animation: champagneFloat 3s ease-in-out infinite;
}

/* Stagger the floating animations for each corner */
.top-right .corner-champagne-image {
    animation-delay: 0.5s;
}

.bottom-left .corner-champagne-image {
    animation-delay: 1s;
}

.bottom-right .corner-champagne-image {
    animation-delay: 1.5s;
}

/* Corner Sparkle Effects */
.corner-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff 0%, #ffd700 50%, transparent 100%);
    border-radius: 50%;
    animation: sparkleAnimation 2s ease-in-out infinite;
}

.sparkle-1 { top: 15%; left: 15%; animation-delay: 0s; }
.sparkle-2 { top: 25%; right: 20%; animation-delay: 0.7s; }
.sparkle-3 { top: 20%; left: 10%; animation-delay: 0.3s; }
.sparkle-4 { top: 35%; right: 15%; animation-delay: 1s; }
.sparkle-5 { top: 30%; left: 25%; animation-delay: 0.5s; }
.sparkle-6 { top: 45%; right: 30%; animation-delay: 1.2s; }
.sparkle-7 { top: 25%; left: 20%; animation-delay: 0.8s; }
.sparkle-8 { top: 40%; right: 25%; animation-delay: 1.5s; }

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .champagne-corner.top-left {
        top: 150px;
        left: 130px;
    }
    
    .champagne-corner.top-right {
        top: 150px;
        right: 130px;
    }
    
    .champagne-corner.bottom-left {
        bottom: 150px;
        left: 130px;
    }
    
    .champagne-corner.bottom-right {
        bottom: 150px;
        right: 130px;
    }
    
    .corner-champagne-image {
        width: 216px;
        max-height: 324px;
    }
}

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

@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes sparkleAnimation {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}