* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe5f1 50%, #ffd5e9 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Floating Hearts Animation */
.hearts-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    opacity: 0.6;
    animation: float 15s infinite;
}

.heart:before,
.heart:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
}

.heart:before {
    top: -10px;
    left: 0;
}

.heart:after {
    top: 0;
    left: 10px;
}

.heart {
    transform: rotate(-45deg);
}

.heart:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 30%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.heart:nth-child(3) {
    left: 50%;
    animation-duration: 13s;
    animation-delay: 4s;
}

.heart:nth-child(4) {
    left: 70%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.heart:nth-child(5) {
    left: 85%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.heart:nth-child(6) {
    left: 20%;
    animation-duration: 11s;
    animation-delay: 5s;
}

@keyframes float {
    0% {
        bottom: -50px;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    font-size: 3.5rem;
    color: #c2185b;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(194, 24, 91, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: #d81b60;
    font-style: italic;
}

/* Hero Image Section */
.hero-image-section {
    margin-bottom: 60px;
    padding: 20px;
}

.hero-image-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(194, 24, 91, 0.3);
    background: linear-gradient(135deg, #ffc0cb 0%, #ff9a9e 100%);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(194, 24, 91, 0.4);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 1024 / 1536;
}

.hero-hearts {
    position: absolute;
    top: -15px;
    right: -15px;
    display: flex;
    gap: 10px;
}

.hero-heart {
    font-size: 2.5rem;
    animation: float-hearts 3s ease-in-out infinite;
    display: inline-block;
}

.hero-heart:nth-child(1) {
    animation-delay: 0s;
}

.hero-heart:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-heart:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float-hearts {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Cards */
.card,
.message-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(194, 24, 91, 0.15);
}

.big-heart {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.card h2,
.message-card h2 {
    color: #c2185b;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* Timeline */
.timeline {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.1);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 50px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(to bottom, #ff6b9d, #ffc0cb);
}

.timeline-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.timeline-content h3 {
    color: #c2185b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Love Message */
.love-message {
    font-size: 1.2rem;
    line-height: 2;
    color: #444;
    text-align: center;
    font-style: italic;
}

.signature {
    text-align: right;
    font-size: 1.3rem;
    color: #c2185b;
    margin-top: 30px;
    font-family: 'Brush Script MT', cursive;
}

/* Interactive Section */
.interactive-section {
    text-align: center;
    padding: 40px;
}

.love-button {
    background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.3);
    font-weight: bold;
}

.love-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(194, 24, 91, 0.4);
}

.love-button:active {
    transform: translateY(0);
}

.surprise-message {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e8 100%);
    border-radius: 15px;
    display: none;
    animation: fadeInScale 0.5s ease;
}

.surprise-message.show {
    display: block;
}

.surprise-message p {
    font-size: 1.4rem;
    color: #c2185b;
    margin: 15px 0;
    font-weight: bold;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gallery Button */
.gallery-section {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.gallery-button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.3);
    font-weight: bold;
}

.gallery-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 154, 158, 0.4);
}

/* Password Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f8 100%);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(194, 24, 91, 0.3);
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    color: #c2185b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff6b9d;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #c2185b;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: #ff6b9d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.password-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#galleryPassword {
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #ffc0cb;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 3px;
}

#galleryPassword:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.2);
}

.unlock-button {
    background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.unlock-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.3);
}

.unlock-button:active {
    transform: translateY(0);
}

.error-message {
    color: #d32f2f;
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    min-height: 20px;
}

/* Gallery Container */
.gallery-container {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    color: #c2185b;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #ff6b9d;
    font-size: 1.2rem;
    font-style: italic;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.2);
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(194, 24, 91, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 2rem;
    color: #ff6b9d;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #c2185b;
    font-size: 1.1rem;
    font-style: italic;
}

/* Fade In Animations */
.fade-in,
.fade-in-delay-1,
.fade-in-delay-2,
.fade-in-delay-3,
.fade-in-delay-4,
.fade-in-delay-5,
.fade-in-delay-6,
.fade-in-delay-7 {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.3s;
}

.fade-in-delay-2 {
    animation-delay: 0.6s;
}

.fade-in-delay-3 {
    animation-delay: 0.9s;
}

.fade-in-delay-4 {
    animation-delay: 1.2s;
}

.fade-in-delay-5 {
    animation-delay: 1.5s;
}

.fade-in-delay-6 {
    animation-delay: 1.8s;
}

.fade-in-delay-7 {
    animation-delay: 2.1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Image Viewer Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 107, 157, 0.5);
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-modal-close:hover {
    color: #ff6b9d;
    transform: rotate(90deg);
}

.image-modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.3rem;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-image-section {
        padding: 10px;
        margin-bottom: 40px;
    }

    .hero-image-container {
        max-width: 100%;
    }

    .image-frame {
        padding: 10px;
    }

    .hero-hearts {
        top: -10px;
        right: -10px;
    }

    .hero-heart {
        font-size: 2rem;
    }

    .card,
    .message-card,
    .timeline {
        padding: 25px;
    }

    .big-heart {
        font-size: 3rem;
    }

    .card h2,
    .message-card h2 {
        font-size: 1.5rem;
    }

    .card p,
    .love-message {
        font-size: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }

    .love-button,
    .gallery-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .surprise-message p {
        font-size: 1.2rem;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        height: 200px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .image-modal-caption {
        bottom: 15px;
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 20px 15px;
    }

    .hero-image-section {
        margin-bottom: 30px;
    }

    .image-frame {
        padding: 8px;
        border-radius: 20px;
    }

    .hero-image {
        border-radius: 15px;
    }

    .hero-hearts {
        top: -5px;
        right: -5px;
        gap: 5px;
    }

    .hero-heart {
        font-size: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .gallery-header h2 {
        font-size: 1.8rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .image-modal-close {
        top: 5px;
        right: 10px;
        font-size: 35px;
    }

    .image-modal-caption {
        font-size: 0.9rem;
        padding: 8px 15px;
        bottom: 10px;
    }
}
