/* ============================================================
 *  stylesheet.css
 *  Theme: soft purple, lavender, and gold
 *  ============================================================ */

/* ── CSS Variables (colour palette) ── */
:root {
    --plum:       #4a2060;
    --violet:     #7b4fa6;
    --lavender:   #c9a8e0;
    --blush:      #f0e6f7;
    --mist:       #f7f0fc;
    --gold:       #c9a84c;
    --gold-light: #e8d4a0;
    --text-dark:  #2a1a3e;
    --text-mid:   #5a3e70;
    --text-light: #9b7bb5;
    --white:      #ffffff;
}

/* ── Reset & base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--mist);
    color: var(--text-dark);
    overflow-x: hidden;
}


/* ============================================================
 *  HERO SECTION
 *  ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    background:
    radial-gradient(ellipse at 60% 20%, rgba(123,79,166,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(74,32,96,0.12) 0%, transparent 50%),
    linear-gradient(160deg, #1a0a2e 0%, #2e1250 40%, #4a2060 70%, #3a1a55 100%);
    overflow: hidden;
}

/* Subtle dot texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='0.5' fill='%23ffffff08'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-label {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 200;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.3s forwards;
}

/* Italic gold accent on the surname */
.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--lavender);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.hero-quote {
    max-width: 540px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
    opacity: 0;
    animation: fadeUp 1s ease 1s forwards;
}

/* Animated scroll hint at the bottom of the hero */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-hint span {
    color: var(--lavender);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease infinite;
}


/* ============================================================
 *  CAROUSEL SECTION
 *  ============================================================ */

.carousel-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #1a0a2e 0%, #2e1250 100%);
}

.section-label {
    text-align: center;
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--white);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Wrapper constrains the carousel width and holds the buttons */
.carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hides the overflowing slides */
.carousel-viewport {
    overflow: hidden;
    border-radius: 14px;
    box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 168, 224, 0.15);
}

/* The sliding strip that contains all slides side by side */
.carousel-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Each slide takes the full width of the viewport */
.carousel-slide {
    min-width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Subtle dark gradient at the bottom of each photo */
.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(26, 10, 46, 0.55), transparent);
    pointer-events: none;
}

/* Prev / Next arrow buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 224, 0.3);
    background: rgba(26, 10, 46, 0.65);
    backdrop-filter: blur(6px);
    color: var(--lavender);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(123, 79, 166, 0.5);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left:  -24px; }
.carousel-btn.next { right: -24px; }

/* Dot indicator row */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.6rem;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(201, 168, 224, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.4);
}


/* ============================================================
 *  TRIBUTE SECTION
 *  ============================================================ */

.tribute-section {
    padding: 6rem 2rem;
    background: var(--mist);
    position: relative;
}

/* Thin gradient top border */
.tribute-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--violet),
        var(--gold),
        var(--violet),
        transparent
    );
}

.tribute-inner {
    max-width: 800px;
    margin: 0 auto;
}

.tribute-inner .section-title {
    color: var(--plum);
    margin-bottom: 0.8rem;
}

.tribute-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 3rem;
}

.tribute-block {
    margin-bottom: 2.8rem;
}

.tribute-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--violet);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Short gold line before each sub-heading */
.tribute-block h3::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.tribute-block p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-mid);
}


/* ============================================================
 *  FAVORITES SECTION
 *  ============================================================ */

.favorites-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #2e1250 0%, #1a0a2e 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative glow in the corner */
.favorites-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,79,166,0.14) 0%, transparent 70%);
    top: -180px;
    right: -180px;
    pointer-events: none;
}

.favorites-grid {
    max-width: 880px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.4rem;
}

.fav-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 224, 0.14);
    border-radius: 14px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.fav-card:hover {
    background: rgba(123, 79, 166, 0.14);
    border-color: rgba(201, 168, 80, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fav-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.9rem;
}

.fav-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.fav-card p {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--lavender);
    line-height: 1.65;
}

/* ============================================================
 *  GOFUNDME / QR CODE SECTION
 *  ============================================================ */

.gofundme-section {
    padding: 5rem 2rem;
    background: var(--blush);
    position: relative;
}

/* The card holds the text on the left and QR code on the right */
.gofundme-card {
    max-width: 860px;
    margin: 2.5rem auto 0;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow:
    0 20px 60px rgba(74, 32, 96, 0.12),
    0 0 0 1px rgba(123, 79, 166, 0.1);
}

/* Left side — descriptive text */
.gofundme-text {
    flex: 1;
}

.gofundme-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--plum);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.gofundme-text p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.gofundme-cta {
    font-style: italic;
    color: var(--violet) !important;
    font-weight: 400 !important;
}

/* Right side — QR code image */
.gofundme-qr {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.gofundme-qr img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(123, 79, 166, 0.15);
    padding: 8px;
    background: var(--white);
}

.gofundme-qr p {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 400;
}

/* Stack vertically on small screens */
@media (max-width: 640px) {
    .gofundme-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
}



/* ============================================================
 *  CLOSING SECTION
 *  ============================================================ */

.closing-section {
    padding: 6rem 2rem;
    background: var(--blush);
    text-align: center;
    position: relative;
}

.closing-section::before {
    content: '✦';
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.4rem;
    opacity: 0.5;
}

.closing-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic;
    font-weight: 300;
    color: var(--plum);
    max-width: 660px;
    margin: 0 auto 1.8rem;
    line-height: 1.65;
}

.closing-attribution {
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: 0.18em;
    font-weight: 400;
}

.closing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.8rem;
    padding: 0.75rem 2rem;
    background: var(--plum);
    color: var(--gold-light);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 300;
    letter-spacing: 0.08em;
}


/* ============================================================
 *  FOOTER
 *  ============================================================ */

footer {
    background: #0d0520;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2.2rem 1rem;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

footer span {
    color: var(--gold);
}


/* ============================================================
 *  SCROLL-REVEAL  (JS adds .visible when element enters view)
 *  ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;

}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto; /* release the hint once animation is done */
}


/* ============================================================
 *  ANIMATIONS
 *  ============================================================ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1);   }
    50%       { opacity: 1;    transform: scaleY(1.2); }
}


/* ============================================================
 *  RESPONSIVE  (narrow screens)
 *  ============================================================ */

@media (max-width: 600px) {
    .carousel-btn.prev { left:  4px; }
    .carousel-btn.next { right: 4px; }
    .tribute-block p   { font-size: 0.98rem; }
    .favorites-grid    { grid-template-columns: 1fr 1fr; }
}
