/* ══════════════════════════════════════════════
   Mario Pipe + Why You Should Hire Me overlay
   ══════════════════════════════════════════════ */

/* ── Pipe wrapper ─────────────────────────── */
.hire-pipe-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.hire-pipe-wrapper.rise {
    transform: translateX(-50%) translateY(0);
}

.hire-pipe-char {
    font-size: 1.8rem;
    margin-bottom: 0;
    transition: transform 0.35s ease-in, opacity 0.25s ease-in;
    display: block;
    text-align: center;
}

.hire-pipe-char.drop {
    transform: translateY(40px);
    opacity: 0;
}

/* Pipe head (wider lip) */
.hire-pipe-head {
    width: 108px;
    height: 28px;
    background: linear-gradient(180deg, #5ecb5e 0%, #3aac3a 60%, #278a27 100%);
    border: 3px solid #1a5e1a;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 4px 0 0 rgba(255,255,255,0.15), inset -4px 0 0 rgba(0,0,0,0.2);
}

/* Pipe body (narrower tube) */
.hire-pipe-body {
    width: 80px;
    height: 300px;
    background: linear-gradient(90deg, #278a27 0%, #3aac3a 25%, #4ec74e 50%, #3aac3a 75%, #278a27 100%);
    border: 3px solid #1a5e1a;
    border-top: 2px solid #278a27;
    box-shadow: inset 4px 0 0 rgba(255,255,255,0.12), inset -4px 0 0 rgba(0,0,0,0.2);
}

/* ── Screen flash ─────────────────────────── */
.hire-flash {
    position: fixed;
    inset: 0;
    z-index: 3800;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
}

.hire-flash.on { opacity: 1; }

/* ── Main overlay ─────────────────────────── */
.hire-overlay {
    position: fixed;
    inset: 0;
    z-index: 3500;
    background: #030303;
    background-image: radial-gradient(ellipse at 50% 10%, rgba(255,215,0,0.07) 0%, transparent 55%);
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 24px 60px;
    /* Hidden state */
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.hire-overlay.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease;
}

/* ── Close button ─────────────────────────── */
.hire-close-btn {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 3600;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #666;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s 0.7s, transform 0.3s 0.7s,
                background 0.2s, color 0.2s;
}

.hire-overlay.is-open .hire-close-btn {
    opacity: 1;
    transform: translateY(0);
}

.hire-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Inner content ────────────────────────── */
.hire-inner {
    max-width: 900px;
    width: 100%;
}

/* ── Header ───────────────────────────────── */
.hire-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s 0.25s, transform 0.5s 0.25s;
}

.hire-overlay.is-open .hire-header {
    opacity: 1;
    transform: translateY(0);
}

.hire-stars {
    display: block;
    font-size: 1.6rem;
    letter-spacing: 10px;
    margin-bottom: 14px;
    animation: star-spin 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.7));
}

@keyframes star-spin {
    0%,100% { letter-spacing: 10px;  filter: drop-shadow(0 0 8px rgba(255,215,0,0.6));  }
    50%     { letter-spacing: 18px;  filter: drop-shadow(0 0 22px rgba(255,215,0,1.0)); }
}

.hire-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 40%, #ffffff 70%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hire-sub {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,215,0,0.35);
    margin: 0;
}

/* ── Two-column grid ──────────────────────── */
.hire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

/* ── Section label ────────────────────────── */
.hire-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255,215,0,0.5);
    margin: 0 0 22px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s 0.45s, transform 0.4s 0.45s;
}

.hire-overlay.is-open .hire-section-label {
    opacity: 1;
    transform: translateX(0);
}

/* ── Skill bars ───────────────────────────── */
.skill-row {
    margin-bottom: 18px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s, transform 0.4s;
}

.hire-overlay.is-open .skill-row:nth-child(2) { opacity:1; transform:none; transition-delay:.55s; }
.hire-overlay.is-open .skill-row:nth-child(3) { opacity:1; transform:none; transition-delay:.65s; }
.hire-overlay.is-open .skill-row:nth-child(4) { opacity:1; transform:none; transition-delay:.75s; }
.hire-overlay.is-open .skill-row:nth-child(5) { opacity:1; transform:none; transition-delay:.85s; }
.hire-overlay.is-open .skill-row:nth-child(6) { opacity:1; transform:none; transition-delay:.95s; }

.skill-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 0.82rem;
    color: #bbb;
}

.skill-pct { color: #ffd700; font-weight: 800; font-size: 0.78rem; }

.skill-track {
    height: 6px;
    background: #111;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.skill-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #b8860b 0%, #ffd700 45%, #fff8dc 70%, #ffd700 100%);
    background-size: 200% auto;
    animation: gold-shine 2s linear infinite;
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Achievement badges ───────────────────── */
.hire-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #0c0c0c;
    border: 1px solid #181818;
    border-left: 3px solid #ffd700;
    border-radius: 10px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.4s, transform 0.4s, background 0.2s;
}

.hire-badge:hover {
    background: #111;
    border-left-color: #ffb300;
    box-shadow: 0 0 16px rgba(255,215,0,0.12);
}

.hire-overlay.is-open .hire-badge:nth-child(2) { opacity:1; transform:none; transition-delay:.55s; }
.hire-overlay.is-open .hire-badge:nth-child(3) { opacity:1; transform:none; transition-delay:.65s; }
.hire-overlay.is-open .hire-badge:nth-child(4) { opacity:1; transform:none; transition-delay:.75s; }
.hire-overlay.is-open .hire-badge:nth-child(5) { opacity:1; transform:none; transition-delay:.85s; }
.hire-overlay.is-open .hire-badge:nth-child(6) { opacity:1; transform:none; transition-delay:.95s; }

.hire-badge-icon { font-size: 1.3rem; flex-shrink: 0; }

.hire-badge-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 2px;
    text-shadow: 0 0 8px rgba(255,215,0,0.3);
}

.hire-badge-sub {
    display: block;
    font-size: 0.74rem;
    color: #555;
}

/* ── CTA buttons ──────────────────────────── */
.hire-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid #141414;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s 1.05s, transform 0.5s 1.05s;
}

.hire-overlay.is-open .hire-ctas {
    opacity: 1;
    transform: translateY(0);
}

.hire-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hire-btn--primary {
    background: var(--riot-red, #d13639);
    color: #fff;
    box-shadow: 0 4px 24px rgba(209,54,57,0.45);
}

.hire-btn--primary:hover {
    filter: brightness(1.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(209,54,57,0.65);
}

.hire-btn--outline {
    background: transparent;
    color: #ccc;
    border: 1px solid #252525;
}

.hire-btn--outline:hover {
    background: #111;
    color: #fff;
    transform: translateY(-3px);
    border-color: #333;
}

/* ── Gold shimmer animation ───────────────── */
@keyframes gold-border-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255,215,0,0.12), inset 0 0 12px rgba(255,215,0,0.04); }
    50%       { box-shadow: 0 0 0 4px rgba(255,215,0,0.22), inset 0 0 20px rgba(255,215,0,0.08); }
}

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

/* ── Contact form inside overlay ─────────── */
.hire-contact {
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    padding-top: 40px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s 1.05s, transform 0.5s 1.05s;
    position: relative;
}

/* Subtle gold glow behind the form area */
.hire-contact::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hire-overlay.is-open .hire-contact {
    opacity: 1;
    transform: translateY(0);
}

.hire-contact-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0 0 24px;
    /* Gold gradient text */
    background: linear-gradient(90deg, #fff 0%, #ffd700 40%, #fff 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shine 4s linear infinite;
    border-left: 4px solid #ffd700;
    padding-left: 14px;
}

.hire-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hire-form-row { display: flex; gap: 14px; }

.hire-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hire-form-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffd700;
}

.hire-form-input,
.hire-form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid rgba(255,215,0,0.18);
    border-left: 3px solid #ffd700;
    border-radius: 8px;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
    /* Idle golden pulse */
    animation: gold-border-pulse 2.5s ease-in-out infinite;
    transition: border-color 0.25s, box-shadow 0.25s, animation 0s;
}

.hire-form-input:focus,
.hire-form-textarea:focus {
    outline: none;
    border-color: #ffd700;
    border-left-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.18),
                0 0 24px rgba(255,215,0,0.1);
    animation: none;
}

.hire-form-input::placeholder,
.hire-form-textarea::placeholder { color: #3a3a3a; }

.hire-form-textarea {
    resize: vertical;
    min-height: 90px;
}

.hire-form-submit {
    align-self: flex-start;
    padding: 12px 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 50%, #ffd700 100%);
    background-size: 200% auto;
    color: #000;
    border: none;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,215,0,0.35),
                0 0 40px rgba(255,215,0,0.1);
    transition: background-position 0.4s, filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hire-form-submit:hover:not(:disabled) {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(255,215,0,0.5),
                0 0 60px rgba(255,215,0,0.15);
}

.hire-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.hire-form-submit.success  { background: #22c55e; color: #fff; box-shadow: 0 4px 20px rgba(34,197,94,0.4); animation: none; }
.hire-form-submit.error    { background: #dc2626; color: #fff; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 640px) {
    .hire-grid { grid-template-columns: 1fr; gap: 36px; }
    .hire-overlay { padding: 70px 16px 40px; }
    .hire-close-btn { top: 14px; right: 16px; }
    .hire-form-row { flex-direction: column; }
}
