* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffc3a0;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #636e72;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Love Quotes */
.love-quotes {
    margin-top: 20px;
    animation: fadeInUp 1s ease;
}

.quote {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-style: italic;
    margin: 10px 0;
    font-weight: 400;
}

.animate-heart {
    animation: heartbeat 2s infinite;
    font-weight: 600;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Styles */
.filter-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-color), #ffe4e1);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item span {
    font-weight: 700;
    color: var(--secondary-color);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color, #ddd);
    background: white;
    color: var(--dark-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--secondary-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
}

.gallery-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.photo-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover .gallery-badge {
    transform: scale(1.2) rotate(10deg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 107, 157, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.caption {
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.photo-text {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.9;
    font-weight: 300;
    font-style: italic;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 107, 157, 0.5);
    animation: zoomIn 0.4s ease;
    transition: transform 0.3s ease;
}

.lightbox-content:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(255, 107, 157, 0.95);
    padding: 20px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 80%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.lightbox-caption p {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: 0.95;
    line-height: 1.5;
}

.lightbox-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 15px;
}

.lightbox-counter {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    padding: 20px;
    background-color: rgba(255, 107, 157, 0.7);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.prev:hover, .next:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--secondary-color);
}

.footer-love {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.footer-message {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #636e72;
}

.love-notes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.note {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    animation: bounceIn 1s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 25px;
    opacity: 0;
    animation: float 10s infinite ease-in;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
    font-size: 30px;
}

.heart:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
}

.heart:nth-child(4) {
    left: 60%;
    animation-delay: 1s;
    font-size: 35px;
}

.heart:nth-child(5) {
    left: 75%;
    animation-delay: 3s;
}

.heart:nth-child(6) {
    left: 90%;
    animation-delay: 5s;
    font-size: 28px;
}

@keyframes float {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    25% {
        opacity: 1;
    }
    50% {
        transform: translateX(100px) rotate(180deg);
    }
    75% {
        opacity: 0.5;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-100px) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }
    
    .quote {
        font-size: 0.95rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .love-notes {
        gap: 10px;
    }
    
    .note {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 75vh;
    }

    .prev, .next {
        font-size: 30px;
        width: 50px;
        height: 50px;
        padding: 10px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .close {
        font-size: 40px;
        right: 20px;
        top: 10px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 10px 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 2rem;
    }
}

/* Empty Gallery State */
.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 243, 224, 0.95));
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease;
}

.empty-gallery h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-gallery p {
    font-size: 1.2rem;
    color: #636e72;
    font-weight: 400;
}

/* Loading Animation */
.gallery-item img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.gallery-item img[src] {
    animation: none;
    background: none;
}

/* Love Loading Animation */
.love-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.love-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.beating-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.heart-icon {
    font-size: 60px;
    animation: heartBeat 1.5s infinite;
}

.heart-icon:nth-child(1) {
    animation-delay: 0s;
}

.heart-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.heart-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.3);
    }
    20%, 40% {
        transform: scale(1.1);
    }
}

.loader-text {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: fadeInOut 2s infinite;
    font-weight: 700;
}

.loader-subtitle {
    color: #636e72;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.love-progress {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.love-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: loadProgress 2s ease-in-out forwards;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .heart-icon {
        font-size: 45px;
    }
    
    .loader-text {
        font-size: 1.5rem;
    }
    
    .love-progress {
        width: 250px;
    }
}
