/* ============================================================
   🎂 Happy 30th Birthday - Vanessa
   Color Palette: Romantic + Colombian Tropical
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --gold: #D4A574;
    --gold-light: #F0D9B5;
    --gold-dark: #B8874A;
    --pink: #F2C4CE;
    --pink-deep: #E8829A;
    --coral: #E8725C;
    --cream: #FFF8F0;
    --cream-dark: #F5EDE3;
    --warm-white: #FFFDF9;
    --text-dark: #2C1810;
    --text-medium: #5C4033;
    --text-light: #8B6F5E;
    --green-tropical: #4A7C59;
    --green-light: #7FB069;
    --colombia-yellow: #FCD116;
    --colombia-blue: #003893;
    --colombia-red: #CE1126;
    --shadow-soft: 0 4px 20px rgba(44, 24, 16, 0.08);
    --shadow-medium: 0 8px 32px rgba(44, 24, 16, 0.12);
    --shadow-strong: 0 12px 48px rgba(44, 24, 16, 0.18);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Lato', -apple-system, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Confetti Canvas ---------- */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ---------- Floating Hearts ---------- */
#floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: floatUp linear forwards;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* ---------- Section Commons ---------- */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-align: center;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 48px;
}

/* ---------- Animations ---------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.animate-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        url('../photos/20260502_145213.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 24, 16, 0.55) 0%,
        rgba(212, 165, 116, 0.35) 50%,
        rgba(232, 130, 154, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 24px;
}

.hero-pretext {
    font-family: var(--font-script);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.hero-name {
    font-family: var(--font-script);
    font-size: 1.3em;
    color: var(--gold-light);
    display: block;
    margin-top: 8px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.8vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    margin-bottom: 24px;
}

.hero-hearts {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.2em;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.scroll-arrow {
    font-size: 1.5rem;
}


/* ============================================================
   COUNTDOWN SECTION
   ============================================================ */
#countdown {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

.orchid-accent {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    pointer-events: none;
}

.orchid-left {
    top: 40px;
    left: 20px;
    transform: rotate(-15deg);
}

.orchid-right {
    bottom: 40px;
    right: 20px;
    transform: rotate(15deg);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.countdown-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px 20px;
    min-width: 100px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-4px);
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--gold-dark);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 8px;
    display: block;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    align-self: flex-start;
    padding-top: 24px;
}

.countdown-quote {
    font-family: var(--font-script);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.birthday-arrived h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.birthday-arrived p {
    font-size: 1.2rem;
    color: var(--text-medium);
}


/* ============================================================
   LOVE LETTER SECTION
   ============================================================ */
#love-letter {
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--warm-white) 50%, var(--cream) 100%);
}

.letter-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-strong);
    position: relative;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--pink-deep), var(--gold));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.letter-seal {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 16px;
}

.letter-title {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--gold-dark);
    margin-bottom: 32px;
}

.letter-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
}

.letter-body p {
    margin-bottom: 20px;
    text-indent: 1.5em;
}

.letter-body p:first-child {
    text-indent: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.letter-signature {
    text-align: right;
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--gold-dark);
    margin-top: 32px;
    text-indent: 0 !important;
}

.signature-name {
    font-size: 1.6em;
    display: inline-block;
}

.letter-quote {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gold-light);
    text-align: center;
}

.letter-quote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}


/* ============================================================
   PHOTO GALLERY SECTION
   ============================================================ */
#gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(44, 24, 16, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-sm);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Vary some grid items for visual interest */
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(10) { grid-row: span 2; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2.5rem;
    padding: 12px;
    z-index: 10001;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0.7;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    transform: scale(1.2);
}

.lightbox-close {
    top: 20px;
    right: 24px;
    font-size: 3rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.2);
}


/* ============================================================
   30 REASONS SECTION
   ============================================================ */
#reasons {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    perspective: 1000px;
}

.reason-card {
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.reason-card.flipped {
    transform: rotateY(180deg);
}

.reason-front,
.reason-back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.reason-front {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.reason-card:hover .reason-front {
    box-shadow: var(--shadow-medium);
}

.reason-front .reason-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.reason-front .reason-heart {
    font-size: 1.5rem;
    margin-top: 4px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.reason-back {
    background: white;
    transform: rotateY(180deg);
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--gold-light);
}

.reason-back .reason-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.reason-back .reason-num-small {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 8px;
}


/* ============================================================
   COLOMBIA SECTION
   ============================================================ */
#colombia {
    background: var(--warm-white);
    overflow: hidden;
}

.colombia-flag-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
}

.colombia-flag-bar:last-child {
    margin-bottom: 0;
    margin-top: 40px;
}

.flag-yellow { flex: 2; background: var(--colombia-yellow); }
.flag-blue { flex: 1; background: var(--colombia-blue); }
.flag-red { flex: 1; background: var(--colombia-red); }

.colombia-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.colombia-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--colombia-yellow);
}

.colombia-card:nth-child(2) { border-bottom-color: var(--colombia-blue); }
.colombia-card:nth-child(3) { border-bottom-color: var(--colombia-red); }
.colombia-card:nth-child(4) { border-bottom-color: var(--green-tropical); }

.colombia-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.colombia-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.colombia-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.colombia-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.colombia-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quote-card {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(242, 196, 206, 0.08));
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border-left: 4px solid var(--gold);
    transition: transform 0.3s ease;
}

.quote-card:hover {
    transform: translateX(4px);
}

.quote-card blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.quote-card cite {
    display: block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: normal;
}


/* ============================================================
   SURPRISE SECTION
   ============================================================ */
#surprise {
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream-dark) 100%);
    text-align: center;
}

.surprise-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: var(--radius-lg);
    padding: 32px 48px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-medium);
    animation: gentlePulse 3s ease infinite;
}

@keyframes gentlePulse {
    0%, 100% { box-shadow: var(--shadow-medium); }
    50% { box-shadow: 0 8px 40px rgba(212, 165, 116, 0.4); }
}

.surprise-button:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-strong);
    animation: none;
}

.surprise-emoji {
    font-size: 3rem;
}

.surprise-text {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: white;
}

.surprise-reveal {
    animation: fadeUp 0.8s ease forwards;
}

.surprise-message {
    margin-top: 40px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    display: inline-block;
    max-width: 600px;
    border: 2px solid var(--gold-light);
}

.surprise-big {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.surprise-sub {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--text-dark) 100%);
    padding: 60px 24px 40px;
    text-align: center;
    color: var(--cream);
}

.footer-flowers {
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    margin-bottom: 32px;
    opacity: 0.6;
}

.footer-message {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.7;
    color: var(--gold-light);
}

.footer-signature {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    color: var(--cream-dark);
}

.footer-signature .signature-name {
    font-family: var(--font-script);
    font-size: 1.4em;
    color: var(--gold-light);
}

.footer-year {
    font-size: 0.85rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
    .section-container {
        padding: 60px 16px;
    }

    .countdown-grid {
        gap: 6px;
    }

    .countdown-item {
        min-width: 72px;
        padding: 16px 12px;
    }

    .countdown-separator {
        font-size: 1.8rem;
        padding-top: 16px;
    }

    .letter-card {
        padding: 32px 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Reset the span on mobile */
    .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-column: span 1; }
    .gallery-item:nth-child(10) { grid-row: span 1; }

    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .colombia-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .colombia-quotes {
        grid-template-columns: 1fr;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-name {
        font-size: 1.2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .reason-front .reason-number {
        font-size: 1.4rem;
    }

    .reason-back .reason-text {
        font-size: 0.75rem;
    }

    .colombia-content {
        grid-template-columns: 1fr;
    }

    .surprise-button {
        padding: 24px 36px;
    }
}

/* ---------- Pre-birthday teaser mode ---------- */
body.pre-birthday #countdown {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

body.pre-birthday #footer .footer-message {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
