/* Core Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #0d0b18;
    color: #f1f1f6;
    overflow-x: hidden;
    background-linear: linear-gradient(135deg, #0d0b18 0%, #1a1235 100%);
    min-height: 100vh;
}

/* Screens Setup */
.screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    padding: 20px;
}

.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(30px);
}

/* Lock Screen & Countdown UI */
#lock-screen {
    background: radial-gradient(circle, #1a103c 0%, #070412 100%);
    text-align: center;
}

.lock-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    max-width: 500px;
    width: 100%;
}

.lock-box h2 {
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: #e2d9ff;
}

#countdown {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

#countdown div {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    width: 80px;
    border-bottom: 3px solid #ff4181;
}

#countdown span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

#countdown p {
    font-size: 0.75rem;
    color: #bfaeff;
    text-transform: uppercase;
    margin-top: 5px;
}

.subtext {
    font-size: 0.85rem;
    color: #887da9;
}

/* Main Canvas Configuration */
.wrapper {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.glow-text {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff4181, #9c27b0, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(156, 39, 176, 0.3);
    margin-bottom: 10px;
}

.tagline {
    color: #a59bc8;
    font-size: 1.1rem;
}

/* Elegant Text Block Container */
.letter-box {
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid #ff4181;
    padding: 35px;
    border-radius: 0 15px 15px 0;
    backdrop-filter: blur(8px);
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e4dfff;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.letter-box p {
    margin-bottom: 20px;
}

.letter-box p:last-of-type {
    margin-bottom: 0;
}

.signature {
    margin-top: 30px;
    font-style: italic;
    color: #ff4181;
    font-weight: 600;
}

/* Polaroid Memory Grid Styling */
.gallery-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #e2d9ff;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.photo-card {
    background: #16122c;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    text-align: center;
}

.photo-card:hover {
    transform: translateY(-8px) rotate(1deg);
}

.photo-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.photo-card p {
    font-size: 0.95rem;
    color: #bfaeff;
    font-style: italic;
}

/* Simple Animations */
.fade-in {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Scaling */
@media (max-width: 600px) {
    .glow-text { font-size: 2rem; }
    .letter-box { padding: 20px; font-size: 1rem; }
    #countdown div { width: 65px; padding: 10px 5px; }
    #countdown span { font-size: 1.3rem; }
}