:root {
    --primary-color: #4CAF50;
    --primary-dark: #2E7D32;
    --accent-color: #FF9800;
    --bg-color: #F1F8E9;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #33691E;
    --text-light: #558B2F;
    --wood-color: #8D6E63;
    --font-title: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%234caf50" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    animation: scrollPattern 20s linear infinite;
}

@keyframes scrollPattern {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero {
    height: 100vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg.png') center/cover no-repeat;
    animation: breatheBg 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes breatheBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(241,248,233,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.30);
    padding: 30px 40px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.5);
    transform: translateY(20px);
}

h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.8);
    font-style: italic;
    text-transform: capitalize;
}

.subtitle {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.container {
    max-width: 600px;
    margin: -50px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.05);
}

h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    text-align: center;
}

.detail-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-align: center;
}

.small-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.text-center {
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
}

.btn-primary {
    background-color: #25D366; 
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-primary:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-secondary:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.gift-list {
    list-style: none;
    width: 100%;
    margin-bottom: 20px;
}

.gift-list li {
    background: rgba(76, 175, 80, 0.08);
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

.gift-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Intro Animation */
#intro-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out 1s, visibility 0.8s ease-out 1s;
    overflow: hidden;
}

.leaf-curtain {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: var(--primary-dark);
    z-index: -1;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.leaf-left {
    left: 0;
    border-right: 5px solid var(--accent-color);
    border-top-right-radius: 50% 20%;
    border-bottom-right-radius: 20% 50%;
}

.leaf-right {
    right: 0;
    border-left: 5px solid var(--accent-color);
    border-top-left-radius: 20% 50%;
    border-bottom-left-radius: 50% 20%;
}

#intro-animation.open .leaf-left {
    transform: translateX(-100%);
}

#intro-animation.open .leaf-right {
    transform: translateX(100%);
}

#intro-animation.open .intro-content {
    opacity: 0;
    transform: scale(1.5);
    transition: all 0.5s ease-in;
}

/* Background Parallax Animals */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Below content but above hero bg */
}

.anim-animal {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
}

.monkey {
    top: 250px;
    right: 15%;
    font-size: 4rem;
    animation: swing 4s infinite ease-in-out alternate;
    transform-origin: top center;
}

.giraffe {
    top: 800px;
    left: 5%;
    font-size: 5rem;
    animation: peek 6s infinite ease-in-out alternate;
}

.parrot {
    top: 1300px;
    right: 10%;
    font-size: 3.5rem;
    animation: floatHorizontal 5s infinite ease-in-out alternate;
}

.leaf-float {
    top: 600px;
    right: 30%;
    font-size: 4rem;
    opacity: 0.6;
    animation: spinFloat 8s infinite linear;
}

.leaf-float2 {
    top: 1100px;
    left: 20%;
    font-size: 3rem;
    opacity: 0.6;
    animation: spinFloat 6s infinite linear reverse;
}

@keyframes swing {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

@keyframes peek {
    0% { transform: translateY(20px) rotate(5deg); }
    100% { transform: translateY(-20px) rotate(-5deg); }
}

@keyframes floatHorizontal {
    0% { transform: translateX(30px) translateY(-10px); }
    100% { transform: translateX(-30px) translateY(10px); }
}

@keyframes spinFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.intro-content {
    position: absolute;
    text-align: center;
    color: var(--primary-dark);
    font-family: var(--font-title);
    padding: 0 20px;
}

.intro-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.fade-in-text {
    animation: textFadeIn 1s forwards;
    display: block !important;
}

.fade-out-text {
    animation: textFadeOut 1s forwards;
}

@keyframes textFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes textFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(1.2); }
}

/* RSVP Form */
.rsvp-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.rsvp-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
}

.rsvp-form input:focus {
    border-color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-family: var(--font-title);
    font-size: 1.2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out 2.5s;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 480px) {
    h1 { font-size: 3rem; }
    .subtitle { font-size: 1.6rem; }
    .hero-content { padding: 25px 20px; }
    .card { padding: 25px 20px; }
    .btn-copy { width: 100%; }
}

/* Utils */
.bounce-arrow {
    animation: bounceDown 1.5s infinite;
    display: inline-block;
    margin-left: 5px;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Intro Profile Image */
.intro-profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulseImg 2s infinite alternate;
}

@keyframes pulseImg {
    from { transform: scale(0.95); }
    to { transform: scale(1.05); }
}

.countdown-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
    width: 100%;
}

.time-box {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.time-unit {
    text-align: center;
}

.time-unit span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    font-family: var(--font-title);
    display: block;
    line-height: 1.1;
}

.time-unit p {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: 5px;
    text-transform: capitalize;
    font-weight: bold;
    letter-spacing: 1px;
    font-style: italic;
}

/* Story Profile (Instagram Style) */
.story-profile {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    z-index: 10;
}

.story-profile::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
    animation: spinStory 4s linear infinite;
    z-index: -1;
}

@keyframes spinStory {
    100% { transform: rotate(360deg); }
}

.story-profile img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff; /* the white gap inside the gradient */
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Dynamic Background Animations */

/* Falling Leaves */
.anim-leaf {
    position: absolute;
    top: -10vh;
    font-size: 24px;
    animation: fallDown linear forwards;
    z-index: 1;
    pointer-events: none;
}
@keyframes fallDown {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Moving Clouds */
.anim-cloud {
    position: absolute;
    font-size: 40px;
    animation: driftRight linear forwards;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}
@keyframes driftRight {
    0% { transform: translateX(-10vw); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateX(110vw); opacity: 0; }
}

/* Fireflies */
.anim-firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #ffeb3b;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #ffeb3b, 0 0 20px 5px rgba(255, 235, 59, 0.5);
    animation: fireflyFloat linear forwards;
    z-index: 2;
    pointer-events: none;
}
@keyframes fireflyFloat {
    0% { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
    20% { transform: translateY(-10px) translateX(10px) scale(1); opacity: 1; }
    80% { transform: translateY(-40px) translateX(-10px) scale(1.2); opacity: 0.8; }
    100% { transform: translateY(-50px) translateX(0) scale(0); opacity: 0; }
}

/* Location Image */
.location-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 3px solid white;
}

/* Lightbox Styles */
.location-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.location-img:hover {
    transform: scale(1.05);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #bbb;
}

