@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Quicksand:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #FF8FA3;
    --secondary-color: #FF4D6D;
    --accent-color: #FFB3C1;
    --bg-color: #FFF0F3;
    --text-color: #590D22;
    --text-muted: #800F2F;
    --white: #ffffff;
    --font-heading: 'Pacifico', cursive;
    --font-body: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========== ANIMATIONS =========== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(-5deg) translateX(-40px);
    }

    50% {
        transform: translateY(-15px) rotate(-3deg) translateX(-40px);
    }
}

@keyframes floatReverse {

    0%,
    100% {
        transform: translateY(0px) rotate(6deg) translateX(40px);
    }

    50% {
        transform: translateY(-15px) rotate(4deg) translateX(40px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1.2s ease 0.4s forwards;
}

.hidden {
    display: none !important;
}

/* =========== NAVIGATION =========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 112, 150, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* =========== HERO SECTION =========== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
        url('/img/marin_tel.jpeg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    color: var(--white);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

/* CTA Button - White with pink text */
.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: var(--white);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* =========== SECTIONS =========== */
.section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: -2rem;
}

/* =========== LOVE METER =========== */
.love-meter-section {
    padding: 3rem 10%;
    background-color: var(--bg-color);
    text-align: center;
}

.love-meter-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe3e9 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(255, 112, 150, 0.15);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.love-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

.love-text {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.love-bar-bg {
    width: 100%;
    height: 20px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--accent-color);
}

.love-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    width: 0%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* =========== STORY SECTION =========== */
.story-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.story-text {
    flex: 1;
    font-size: 1.1rem;
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-image-container {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-image {
    position: absolute;
    width: 55%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.2);
    transition: transform 0.3s;
    object-fit: cover;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.float-img-1 {
    transform: rotate(-5deg) translateX(-40px) translateY(-20px);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.float-img-2 {
    transform: rotate(6deg) translateX(40px) translateY(20px);
    z-index: 2;
    animation: floatReverse 7s ease-in-out infinite;
}

.story-image:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

/* =========== GALLERY =========== */
.gallery {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========== WISHES SECTION =========== */
.wishes {
    text-align: center;
}

.wish-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wish-form input,
.wish-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background: white;
}

.wish-form input:focus,
.wish-form textarea:focus {
    border-color: var(--secondary-color);
}

.submit-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-body);
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #C9184A);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.3);
}

/* =========== WISHES DISPLAY =========== */
.wishes-display {
    margin-top: 4rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.wishes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.wish-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s;
}

.wish-card:hover {
    transform: translateY(-5px);
}

.wish-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.wish-card p {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* =========== FOOTER =========== */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* =========== LIGHTBOX =========== */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

#lightbox-close:hover {
    color: var(--secondary-color);
}

/* =========== LOVE MESSAGE =========== */
#love-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: linear-gradient(135deg, #fff0f3 0%, #fff 100%);
    color: #ff4d6d;
    padding: 2.5rem 4rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    box-shadow: 0 15px 50px rgba(255, 77, 109, 0.3);
    z-index: 10000;
    text-align: center;
    border: 4px solid #ffccd5;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

#love-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========== HEART RAIN =========== */
.heart {
    position: fixed;
    top: -10vh;
    color: var(--secondary-color);
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
}

/* =========== PAGINATION =========== */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--white);
    color: var(--secondary-color);
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-family: var(--font-body);
}

.page-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.page-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* =========== MOBILE =========== */
@media (max-width: 768px) {
    .story-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .story-image-container {
        height: 350px;
    }
}