/* ═══════════════════════════════════════════════════════════════
   RECUERDOS — JULIO Y MAYRA
   Premium Video Gallery Landing Page
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Primary Palette — Sage Green Wedding */
    --color-sage: #92AD97;
    --color-sage-light: #B5CCBA;
    --color-sage-lighter: #D4E4D7;
    --color-sage-dark: #6E8A73;
    --color-sage-deep: #4A6B50;

    /* Warm Gold Accents */
    --color-gold: #C9A96E;
    --color-gold-light: #E0C992;
    --color-gold-dark: #A8873D;

    /* Background & Surface */
    --color-bg: #0F1510;
    --color-bg-elevated: #161E18;
    --color-bg-card: #1A241C;
    --color-bg-glass: rgba(26, 36, 28, 0.65);
    --color-bg-glass-light: rgba(146, 173, 151, 0.08);

    /* Text */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #FFFFFF;
    --color-text-muted: #F0F0F0;
    --color-text-gold: #E0C992;

    /* Borders */
    --color-border: rgba(146, 173, 151, 0.15);
    --color-border-hover: rgba(146, 173, 151, 0.35);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(146, 173, 151, 0.15);
    --shadow-gold-glow: 0 0 40px rgba(201, 169, 110, 0.12);

    /* Typography */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-slab: 'Roboto Slab', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.75rem;
    --space-sm: 1.25rem;
    --space-md: 1.75rem;
    --space-lg: 2.75rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 200ms var(--ease-out-expo);
    --transition-base: 400ms var(--ease-out-expo);
    --transition-slow: 700ms var(--ease-out-expo);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

img, video {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.desktop-only {
    display: none;
}

/* ─── Particles Canvas ─── */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 50% 30%, rgba(146, 173, 151, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(201, 169, 110, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0D120E 0%, var(--color-bg) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 21, 16, 0.3) 0%,
        rgba(15, 21, 16, 0.1) 50%,
        rgba(15, 21, 16, 0.8) 100%
    );
    z-index: -1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-md);
    color: var(--color-gold-light);
    animation: float 4s ease-in-out infinite;
}

.hero__heart-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.4));
}

.hero__date {
    font-family: var(--font-slab);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: var(--space-sm);
}

.hero__title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.hero__name {
    display: inline-block;
}

.hero__ampersand {
    display: inline-block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.5em;
    color: var(--color-gold-light);
    margin: 0 0.15em;
    vertical-align: middle;
    opacity: 0.8;
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    margin-bottom: var(--space-md);
}

.hero__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero__divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.hero__divider-heart {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
    opacity: 0.7;
}

.hero__tagline {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-slab);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.hero__cta:hover {
    background: rgba(146, 173, 151, 0.15);
    border-color: var(--color-sage);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.hero__cta svg {
    width: 18px;
    height: 18px;
    animation: bounce-down 2s ease-in-out infinite;
}

.hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO GALLERY SECTION
   ═══════════════════════════════════════════════════════════════ */
.videos-section {
    position: relative;
    padding: var(--space-xl) var(--space-sm) var(--space-3xl);
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-label {
    font-family: var(--font-slab);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.section-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ─── Video Grid ─── */
.videos-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-xs);
}

/* ─── Video Card ─── */
.video-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.video-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

.video-card__visual {
    position: relative;
}

.video-card__number {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-sage);
    opacity: 0.08;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.video-card__player-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0f0b;
    overflow: hidden;
}

.video-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity var(--transition-base);
}

.video-card:hover .video-card__video {
    opacity: 1;
}

.video-card__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    color: rgba(255, 255, 255, 0.9);
    z-index: 3;
    transition: all var(--transition-base);
}

.video-card__play-btn:hover {
    color: var(--color-gold-light);
    transform: translate(-50%, -50%) scale(1.15);
}

.video-card__play-btn.is-playing {
    opacity: 0;
    pointer-events: none;
}

.video-card__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 4;
}

.video-card__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-sage), var(--color-gold-light));
    border-radius: 2px;
    transition: width 100ms linear;
}

.video-card__info {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}

.video-card__chapter-badge {
    display: inline-block;
    font-family: var(--font-slab);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    padding: 0.35rem 0.9rem;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 50px;
    margin-bottom: var(--space-sm);
}

.video-card__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.video-card__description {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.video-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.video-card__icon-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.video-card__icon-group svg {
    width: 15px;
    height: 15px;
    color: var(--color-sage);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   QUOTE SECTION
   ═══════════════════════════════════════════════════════════════ */
.quote-section {
    position: relative;
    padding: var(--space-3xl) var(--space-sm);
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(146, 173, 151, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--color-bg-elevated), var(--color-bg-elevated));
    text-align: center;
    z-index: 1;
}

.quote-section__wave-top,
.quote-section__wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 2;
}

.quote-section__wave-top {
    top: -1px;
}

.quote-section__wave-bottom {
    bottom: -1px;
}

.quote-section__wave-top svg,
.quote-section__wave-bottom svg {
    display: block;
    width: 100%;
    height: 50px;
}

.quote-section__content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.quote-section__quote-mark {
    width: 36px;
    height: 36px;
    color: var(--color-gold);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.quote-section__text {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: var(--space-lg);
}

.quote-section__signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.quote-section__names {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--color-gold-light);
}

.quote-section__date-small {
    font-family: var(--font-slab);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    padding: var(--space-2xl) var(--space-sm) var(--space-lg);
    text-align: center;
    z-index: 1;
}

.footer__content {
    max-width: 500px;
    margin: 0 auto;
}

.footer__heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--color-sage);
    animation: heartbeat 2s ease-in-out infinite;
}

.footer__heart svg {
    width: 28px;
    height: 28px;
}

.footer__names {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.footer__message {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.footer__divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin: 0 auto var(--space-md);
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-slab);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--color-sage-light);
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    transition: all var(--transition-base);
    margin-bottom: var(--space-lg);
}

.footer__link:hover {
    background: var(--color-bg-glass-light);
    border-color: var(--color-sage);
    color: var(--color-text-primary);
}

.footer__link svg {
    width: 14px;
    height: 14px;
}

.footer__copyright {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════
   FULLSCREEN VIDEO MODAL
   ═══════════════════════════════════════════════════════════════ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.video-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.video-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    transition: all var(--transition-fast);
}

.video-modal__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.video-modal__close svg {
    width: 20px;
    height: 20px;
}

.video-modal__container {
    width: 100%;
    max-width: 1100px;
    padding: 0 var(--space-sm);
}

.video-modal__video {
    width: 100%;
    border-radius: var(--radius-md);
    max-height: 75vh;
    background: #000;
}

.video-modal__info {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
}

.video-modal__chapter {
    font-family: var(--font-slab);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.3rem;
    display: block;
}

.video-modal__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Entrance Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.10); }
    56% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Video poster shimmer placeholder */
.video-card__player-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(146, 173, 151, 0.04) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (min-width: 640px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
    .desktop-only {
        display: inline;
    }

    .hero__wave svg {
        height: 100px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }

    .video-card__number {
        font-size: 5rem;
    }

    .quote-section__wave-top svg,
    .quote-section__wave-bottom svg {
        height: 70px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (min-width: 1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .videos-section {
        padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
        padding: 0;
    }

    .video-card {
        border-radius: var(--radius-xl);
    }

    .video-card__info {
        padding: var(--space-lg) var(--space-lg) var(--space-xl);
    }

    .video-card__number {
        font-size: 7rem;
        top: var(--space-md);
        left: var(--space-md);
    }

    .video-card__play-btn {
        width: 80px;
        height: 80px;
    }

    .video-card__title {
        font-size: 1.8rem;
    }

    .quote-section__wave-top svg,
    .quote-section__wave-bottom svg {
        height: 90px;
    }

    .hero__divider-line {
        width: 100px;
    }

    .hero__wave svg {
        height: 120px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (min-width: 1400px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1400px) {
    .videos-grid {
        max-width: 1400px;
    }

    .video-card__number {
        font-size: 8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY: Reduced Motion
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-fade-up,
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR CUSTOM STYLING
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-sage-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-sage);
}

/* ═══════════════════════════════════════════════════════════════
   SELECTION STYLE
   ═══════════════════════════════════════════════════════════════ */
::selection {
    background: rgba(146, 173, 151, 0.3);
    color: var(--color-text-primary);
}
