* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a0a14 0%, #2d1520 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    opacity: 1;
}

.floating-element.heart {
    font-size: 120px;
}

.floating-element.panipuri {
    width: 120px;
    height: auto;
}

.floating-element img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.1) contrast(1.2);
}

.floating-element.meme {
    width: 140px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255,255,255,0.3);
    background: white;
    padding: 2px;
}

.floating-element.meme img {
    filter: brightness(0.8) contrast(1.1) saturate(1.1);
}

@keyframes floatUpSway {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(-30vh) translateX(30px) rotate(5deg);
    }
    50% {
        transform: translateY(-60vh) translateX(-20px) rotate(-5deg);
    }
    75% {
        transform: translateY(-90vh) translateX(25px) rotate(3deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
}

/* AUTH PAGE */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
}

.auth-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 240, 245, 0.98));
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 198, 214, 0.3);
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-card h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #333;
}

.auth-question {
    font-size: 1.3rem;
    color: #8b3a5c;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.6;
}

#passwordInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #f5c6d6;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    background: white;
}

#passwordInput:focus {
    border-color: #d4a5a5;
    box-shadow: 0 0 0 4px rgba(245, 198, 214, 0.2);
    transform: translateY(-2px);
}

#loginBtn {
    position: relative;
    width: 100%;
    padding: 15px 30px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f5c6d6 0%, #d4a5a5 100%);
    color: #2d1520;
    border: 3px solid #f5c6d6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: visible;
    box-shadow: 0 8px 20px rgba(245, 198, 214, 0.4);
}

#loginBtn .heart-1, #loginBtn .heart-2, #loginBtn .heart-3, 
#loginBtn .heart-4, #loginBtn .heart-5, #loginBtn .heart-6 {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    filter: drop-shadow(0 0 0 #ff69b4);
    z-index: -5;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

#loginBtn .heart-1 { top: 20%; left: 20%; }
#loginBtn .heart-2 { top: 45%; left: 45%; font-size: 12px; }
#loginBtn .heart-3 { top: 40%; left: 40%; font-size: 10px; }
#loginBtn .heart-4 { top: 20%; left: 40%; font-size: 14px; }
#loginBtn .heart-5 { top: 25%; left: 45%; font-size: 16px; }
#loginBtn .heart-6 { top: 5%; left: 50%; font-size: 10px; }

#loginBtn:hover {
    background: transparent;
    color: #f5c6d6;
    box-shadow: 0 0 30px rgba(245, 198, 214, 0.6);
    transform: translateY(-2px);
}

#loginBtn:hover .heart-1 { top: -80%; left: -30%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
#loginBtn:hover .heart-2 { top: -25%; left: 10%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
#loginBtn:hover .heart-3 { top: 55%; left: 25%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
#loginBtn:hover .heart-4 { top: 30%; left: 80%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
#loginBtn:hover .heart-5 { top: 25%; left: 115%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
#loginBtn:hover .heart-6 { top: 5%; left: 60%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }

#loginBtn:active {
    transform: translateY(0);
}

.auth-error {
    color: #d63031;
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 20px;
}

/* MAIN CONTENT - BEAUTIFUL REDESIGN */
.main-content {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.content-card {
    background: linear-gradient(145deg, rgba(45, 21, 32, 0.95), rgba(35, 15, 25, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 198, 214, 0.2);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    margin: 0 auto;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(245, 198, 214, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* COUNTDOWN TIMER */
.timer-card h1 {
    font-size: 2.2rem;
    color: #f5c6d6;
    margin-bottom: 35px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(245, 198, 214, 0.3);
}

.title-emoji {
    width: 40px;
    height: 40px;
    margin-left: 5px;
    vertical-align: middle;
    border-radius: 8px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(245, 198, 214, 0.05);
    padding: 20px 15px;
    border-radius: 15px;
    min-width: 90px;
    border: 1px solid rgba(245, 198, 214, 0.1);
}

.time-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f5c6d6;
    background: linear-gradient(135deg, #f5c6d6 0%, #ffb6c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(245, 198, 214, 0.3);
}

.time-label {
    font-size: 0.85rem;
    color: #c9b3b3;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* PHOTO SLIDER */
.slider-card {
    padding: 35px;
}

.slider-title {
    font-size: 1.6rem;
    color: #f5c6d6;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(245, 198, 214, 0.3);
    line-height: 1.5;
}

.slider-title .subtitle {
    font-size: 1.1rem;
    color: #d4a5a5;
    font-weight: 500;
    font-style: italic;
    display: block;
    margin-top: 8px;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.slider-image-container {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.5), rgba(20, 10, 15, 0.6));
    border: 2px solid rgba(245, 198, 214, 0.2);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.slider-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Empty state for when no photos */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c9b3b3;
    font-size: 1.2rem;
    gap: 10px;
}

.empty-state p:first-child {
    font-size: 4rem;
    margin-bottom: 10px;
}

.empty-state.visible {
    display: flex;
}

.delete-photo-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
}

.slider-image-container:hover .delete-photo-btn {
    opacity: 1;
    transform: scale(1);
}

.delete-photo-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.5);
}

.delete-photo-btn:active {
    transform: scale(0.95);
}

.slider-btn {
    position: absolute;
    background: linear-gradient(145deg, rgba(245, 198, 214, 0.95), rgba(212, 165, 165, 0.95));
    color: #2d1520;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(245, 198, 214, 0.3);
}

.slider-btn:hover {
    background: linear-gradient(145deg, rgba(255, 182, 193, 1), rgba(245, 198, 214, 1));
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(245, 198, 214, 0.5);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

#imageCounter {
    color: #c9b3b3;
    font-size: 1.05rem;
    font-weight: 600;
    background: rgba(245, 198, 214, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(245, 198, 214, 0.2);
}

.upload-btn {
    position: relative;
    padding: 14px 35px;
    background: linear-gradient(135deg, #f5c6d6 0%, #d4a5a5 100%);
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d1520;
    border: 3px solid #f5c6d6;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(245, 198, 214, 0.4);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    overflow: visible;
}

.upload-btn .heart-1, .upload-btn .heart-2, .upload-btn .heart-3, 
.upload-btn .heart-4, .upload-btn .heart-5, .upload-btn .heart-6 {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    filter: drop-shadow(0 0 0 #ff69b4);
    z-index: -5;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

.upload-btn .heart-1 { top: 20%; left: 20%; }
.upload-btn .heart-2 { top: 45%; left: 45%; font-size: 12px; }
.upload-btn .heart-3 { top: 40%; left: 40%; font-size: 10px; }
.upload-btn .heart-4 { top: 20%; left: 40%; font-size: 14px; }
.upload-btn .heart-5 { top: 25%; left: 45%; font-size: 16px; }
.upload-btn .heart-6 { top: 5%; left: 50%; font-size: 10px; }

.upload-btn:hover {
    background: transparent;
    color: #f5c6d6;
    box-shadow: 0 0 25px rgba(245, 198, 214, 0.6);
    border-color: #f5c6d6;
}

.upload-btn:hover .heart-1 { top: -80%; left: -30%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
.upload-btn:hover .heart-2 { top: -25%; left: 10%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
.upload-btn:hover .heart-3 { top: 55%; left: 25%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
.upload-btn:hover .heart-4 { top: 30%; left: 80%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
.upload-btn:hover .heart-5 { top: 25%; left: 115%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }
.upload-btn:hover .heart-6 { top: 5%; left: 60%; opacity: 1; filter: drop-shadow(0 0 10px #ff69b4); z-index: 2; }

.upload-btn:active {
    transform: scale(0.98);
}

.upload-btn.uploading .heart-1,
.upload-btn.uploading .heart-2,
.upload-btn.uploading .heart-3,
.upload-btn.uploading .heart-4,
.upload-btn.uploading .heart-5,
.upload-btn.uploading .heart-6 {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* QUOTES SECTION */
.quotes-card {
    min-height: 200px;
}

.quotes-card h2 {
    font-size: 1.8rem;
    color: #f5c6d6;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(245, 198, 214, 0.3);
}

.quote {
    font-size: 1.5rem;
    color: #f5e6ea;
    line-height: 1.8;
    font-style: italic;
    font-weight: 500;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-content {
        gap: 40px !important;
        padding: 60px 10px 100px 10px !important;
        justify-content: flex-start !important;
    }
    
    /* Make floating elements smaller on mobile */
    .floating-element.heart {
        font-size: 25px !important;
    }
    
    .floating-element.panipuri,
    .floating-element.meme {
        width: 60px !important;
    }
    
    .content-card {
        max-width: 70%;
        width: 70%;
        padding: 15px 12px;
        margin-bottom: 20px;
    }
    
    .timer-card h1 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .title-emoji {
        width: 30px;
        height: 30px;
        margin-left: 3px;
    }
    
    .countdown {
        gap: 8px;
    }
    
    .time-unit {
        padding: 8px 6px;
        min-width: 48%;
        flex: 0 0 48%;
    }
    
    .time-value {
        font-size: 1.4rem;
    }
    
    .time-label {
        font-size: 0.5rem;
        margin-top: 4px;
    }
    
    .slider-image-container {
        height: 200px;
    }
    
    .slider-card {
        padding: 15px 12px;
    }
    
    .slider-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .slider-title .subtitle {
        font-size: 0.75rem;
    }
    
    .quotes-card {
        min-height: 80px;
        padding: 12px 10px;
    }
    
    .quotes-card h2 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .quote {
        font-size: 0.8rem;
        min-height: 40px;
        line-height: 1.3;
    }
    
    .upload-btn {
        padding: 7px 14px;
        font-size: 0.7rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    #imageCounter {
        font-size: 0.7rem;
    }
    
    .empty-state {
        font-size: 0.9rem;
    }
    
    .empty-state p:first-child {
        font-size: 2.5rem;
    }
}