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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Password Screen */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.password-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.password-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeInUp 0.6s ease;
}

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

.heart-animation {
    font-size: 60px;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.password-container h1 {
    color: #f5576c;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

#password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#date-input {
    padding: 15px;
    border: 2px solid #f5576c;
    border-radius: 10px;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s ease;
}

#date-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

#password-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
}

#password-form button:hover {
    transform: scale(1.05);
}

.error-message {
    color: #f5576c;
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px;
}

/* Main Content */
.main-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content.hidden {
    display: none;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    color: white;
    margin-bottom: 40px;
}

.logo {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease;
}

.site-title {
    font-size: 4em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.8); }
}

.tagline {
    font-size: 1.3em;
    opacity: 0.9;
}

/* Widgets Section */
.widgets-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f5576c;
    padding-bottom: 10px;
}

.widget-icon {
    font-size: 1.5em;
}

.widget-header h3 {
    color: #f5576c;
    font-size: 1.3em;
}

.widget-content {
    text-align: center;
}

.memories-message {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
}

.counter-display {
    font-size: 3em;
    font-weight: bold;
    color: #f5576c;
    margin-top: 10px;
}

.love-message {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
}

.quote-text {
    font-size: 1.2em;
    color: #333;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.quote-refresh-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
    margin-top: 10px;
}

.quote-refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.mood-display {
    font-size: 1.5em;
    color: #667eea;
    font-weight: bold;
}

/* Gallery Section */
.gallery-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.lightbox.hidden {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

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

.nav-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: white;
    font-size: 1.2em;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5em;
    }
    
    .widgets-section {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .password-container {
        padding: 30px 20px;
    }
}

