/*--------------------------------------------------
  STYLE DASAR & TIPOGRAFI
----------------------------------------------------*/
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    color: #5c5c5c;
    background: linear-gradient(180deg, #fff1f4 0%, #ffffff 30%);
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #d83a7a; /* Warna pink tua untuk judul */
}

p {
    line-height: 1.8;
    font-size: 1.1em;
    color: #4f4f4f;
}

/*--------------------------------------------------
  HEADER & HERO SECTION
----------------------------------------------------*/
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.moving-photos-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.moving-photos-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 137, 172, 0.4); /* Overlay pink transparan */
    z-index: 2;
}

.photo-row {
    display: flex;
    width: 200%; /* Lebar ganda untuk animasi */
    position: absolute;
}

.photo-row img {
    width: 10%; /* 10 gambar per baris */
    height: 50vh;
    object-fit: cover;
    filter: grayscale(30%) sepia(20%); /* Efek foto lama */
}

.row-1 {
    animation: slide-left 80s linear infinite;
}

.row-2 {
    top: 50vh;
    animation: slide-right 80s linear infinite;
}

@keyframes slide-left {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

@keyframes slide-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

.hero-content {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.25);
    padding: 30px 50px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4em;
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    margin: 10px 0 20px 0;
    color: #fce4ec;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-meta {
    font-size: 1.1em;
    font-weight: 400;
    color: #ffffff;
}

.heart-divider {
    color: #ff8a80; /* Warna hati */
    margin: 0 15px;
    font-size: 1.2em;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    z-index: 3;
    color: #ffffff;
    font-size: 0.9em;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    margin: 10px auto 0 auto;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background-color: white;
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/*--------------------------------------------------
  ANIMASI SCROLL (REVEAL)
----------------------------------------------------*/
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reveal.active {
    transform: translateY(0px);
    opacity: 1;
}

/*--------------------------------------------------
  SECTION UMUM
----------------------------------------------------*/
main, footer {
    background-color: #ffffff;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #fdebee;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '❤️';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5em;
    color: #ff8a80;
}

/*--------------------------------------------------
  LETTER SECTION
----------------------------------------------------*/
.letter {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.letter-content {
    border-left: 3px solid #f8bbd0;
    padding-left: 30px;
}

.signature {
    margin-top: 40px;
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5em;
    color: #d83a7a;
}


/*--------------------------------------------------
  BIRTHDAY SECTION
----------------------------------------------------*/
.birthday-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.birthday-card {
    flex: 1;
    min-width: 320px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(216, 58, 122, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.birthday-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(216, 58, 122, 0.15);
}

.birthday-image {
    position: relative;
}

.birthday-image img {
    width: 100%;
    display: block;
}

.birthday-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(216, 58, 122, 0.85);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1em;
}

.birthday-content {
    padding: 30px;
}

.birthday-content h3 {
    margin-top: 0;
    font-size: 1.8em;
}

.birthday-message {
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
}

.wish-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.wish-icon {
    font-size: 1.5em;
    margin-right: 15px;
}

.birthday-memories {
    flex: 1;
    min-width: 320px;
}

.birthday-memories h3 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.memory-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.memory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.memory-item:hover img {
    transform: scale(1.1);
}

.memory-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px 10px 10px;
    font-size: 0.9em;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.memory-item:hover .memory-caption {
    opacity: 1;
    transform: translateY(0);
}

.birthday-quote {
    background: #fff9fb;
    border-left: 4px solid #d83a7a;
    padding: 20px;
    font-style: italic;
    text-align: center;
    border-radius: 0 8px 8px 0;
}

/*--------------------------------------------------
  MOMENTS & GALLERY SECTION
----------------------------------------------------*/
.moments-grid, .love-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.moment-card, .gallery-item {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(216, 58, 122, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.moment-card:hover, .gallery-item:hover {
    transform: translateY(-10px);
}

.moment-image-wrapper {
    position: relative;
}

.moment-image, .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.moment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(216, 58, 122, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.moment-card:hover .moment-overlay {
    opacity: 1;
}

.heart-icon {
    font-size: 3em;
    color: white;
    transform: scale(0);
    transition: transform 0.4s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.moment-card:hover .heart-icon {
    transform: scale(1);
}

.moment-card-content {
    padding: 25px;
}

.moment-card-content h3 {
    margin-top: 0;
    font-size: 1.6em;
}

.moment-date {
    margin-top: 15px;
    font-size: 0.9em;
    color: #999;
    font-weight: 700;
}

.gallery-item {
    position: relative;
}

.gallery-caption {
    padding: 15px;
    font-weight: 700;
    color: #666;
    background: #fff9fb;
}

.love-quote {
    margin-top: 60px;
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: #d83a7a;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------
  FOOTER
----------------------------------------------------*/
footer {
    padding: 50px 20px;
    text-align: center;
    background: #fff1f4; /* Warna pink muda untuk footer */
}

footer p {
    font-size: 1.2em;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #d83a7a;
    line-height: 1.6;
}

/*--------------------------------------------------
  RESPONSIVE DESIGN
----------------------------------------------------*/
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    .hero-content {
        padding: 20px 30px;
    }
    .section-title {
        font-size: 2.2em;
    }
    .birthday-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2em;
    }
    p {
        font-size: 1em;
    }
    .moments-grid, .love-gallery {
        grid-template-columns: 1fr;
    }
}
