/* =====================================================
   YouNeedBill — style.css
   All text: Urbanist Bold, White
   Video background, classy reveal animations
   ===================================================== */

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

html, body {
    width: 100%;
    min-height: 100%;
    background: #000;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    color: #fff;
    overflow-x: hidden;
}

/* Hide default WP page title if theme shows one */
.entry-title,
.page-title,
h1.page-title {
    display: none !important;
}

/* ── VIDEO BACKGROUND ─────────────────────────────── */
#ynb-video-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#ynb-bg-video {
    /* Keep original aspect ratio, crop to fill — like background-size: cover */
    position: absolute;
    top: 50%;
    left: 50%;
    /* The video is 624×624 (square). We scale it to cover the viewport
       without stretching — it will be CROPPED on the sides or top/bottom
       depending on the viewport. */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;   /* crops, does NOT stretch */

    /* ── VIDEO FILTER OPTIONS ───────────────────────
       Change this one line to adjust the look:
         Normal color  → filter: brightness(0.45);
         Desaturated   → filter: brightness(0.45) saturate(0.3);
         Black & White → filter: brightness(0.45) grayscale(1);
       ─────────────────────────────────────────────── */
    filter: brightness(0.45);

    transition: filter 0.6s ease;
}

/* ── DARK OVERLAY on top of video ─────────────────── */
#ynb-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}


/* ── DOWNLOAD BUTTON (fixed top-right) ────────────── */
#ynb-download-btn {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 14px 8px 10px;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 4px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    /* Pulsing fade animation to draw attention */
    animation: ynb-pulse 3s ease-in-out infinite;
    transition: background 0.2s, border-color 0.2s;
}

#ynb-download-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    animation-play-state: paused;
    opacity: 1 !important;
}

#ynb-download-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes ynb-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.35; }
    100% { opacity: 1; }
}


/* ── RESUME WRAPPER ───────────────────────────────── */
#ynb-resume {
    position: relative;
    z-index: 10;
    max-width: 860px;
    padding: 42px 32px 80px 28px;   /* small margins left & top as requested */
    margin: 0;                        /* flush to left */
}


/* ── HEADER ───────────────────────────────────────── */
.ynb-header {
    margin-bottom: 6px;
}

.ynb-name {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 8px;
}

.ynb-contact {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.82);
    font-weight: 700;
}


/* ── DIVIDER ──────────────────────────────────────── */
.ynb-divider {
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin: 18px 0;
}


/* ── SECTION ──────────────────────────────────────── */
.ynb-section {
    margin-bottom: 4px;
}

.ynb-section-title {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    font-weight: 700;
}

.ynb-body-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
    font-weight: 700;
}

/* ── JOB ENTRY ────────────────────────────────────── */
.ynb-job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 2px;
}

.ynb-job-title {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: #fff;
    font-weight: 700;
}

.ynb-job-dates {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
    font-weight: 700;
}

.ynb-company {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    font-weight: 700;
}


/* ── BULLET LIST ──────────────────────────────────── */
.ynb-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ynb-bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 0.93rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    font-weight: 700;
}

.ynb-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.5);
}

/* Two-column layout for skills */
.ynb-two-col {
    columns: 2;
    column-gap: 40px;
}

@media (max-width: 520px) {
    .ynb-two-col {
        columns: 1;
    }
}


/* ── REVEAL ANIMATION ─────────────────────────────── */
/* Elements start invisible and slide up */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 640px) {
    #ynb-resume {
        padding: 28px 18px 60px 16px;
    }

    .ynb-name {
        font-size: 2rem;
    }

    .ynb-download-btn span {
        display: none;   /* icon only on mobile */
    }
}
