/**
 * Hero Sections
 * @copyright     cliqable.com
 * @project       DJCliq
 * @version       0.1.3
 * @author        Strange Shapes Studio
 * @author_url    https://www.strangeshapesstudio.com
 * @developer     Strange Shapes Studio
 * @developer_url info@strangeshapes.com
 * @file          css/hero.css
 */

/* ── Shared background elements ──────────────────────────── */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(216,91,0,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(253,169,0,0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.8) 100%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-orbs    { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
    width: 600px; height: 600px;
    background: rgba(216,91,0,0.15);
    top: -10%; left: -10%;
    animation-delay: 0s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: rgba(253,169,0,0.08);
    top: 30%; right: 5%;
    animation-delay: -3s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: rgba(216,91,0,0.1);
    bottom: 10%; left: 30%;
    animation-delay: -6s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* ── Homepage hero ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Shift content up — away from bottom fade */
    padding-top: var(--header-h);
    padding-bottom: 12vh;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* ── Video crossfade stack ───────────────────────────────── */
.hero-videos {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}
.hero-video.active { opacity: 1; }

/* Hero1 specific — shift up so DJ table stays visible,
   not eaten by the bottom fade overlay */
.hero-video[data-index="0"] {
    object-position: center 15%;
}

/* ── Overlay stack ────────────────────────────────────────── */
.hero-overlays {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* 1. Colour grade — reduced from 0.45 → 0.30 */
.overlay-grade {
    position: absolute;
    inset: 0;
    background: rgba(30, 10, 0, 0.30);
    mix-blend-mode: multiply;
}

/* 2. Orange tint — reduced from 0.12 → 0.08 */
.overlay-tint {
    position: absolute;
    inset: 0;
    background: rgba(216, 91, 0, 0.08);
    mix-blend-mode: screen;
}

/* 3. Vignette */
.overlay-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 75% 80% at 50% 45%,
        transparent 30%,
        rgba(0, 0, 0, 0.45) 70%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

/* 4. Grain */
.overlay-grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: grainShift 0.5s steps(1) infinite;
}
@keyframes grainShift {
    0%   { background-position: 0 0; }
    20%  { background-position: -40px -20px; }
    40%  { background-position: 20px -40px; }
    60%  { background-position: -20px 30px; }
    80%  { background-position: 40px 10px; }
    100% { background-position: 0 0; }
}

/* 5. Bottom fade — starts lower so table area stays clearer */
.overlay-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(8, 8, 8, 0.5) 45%,
        rgba(8, 8, 8, 0.92) 80%,
        #080808 100%
    );
}

/* 6. Top fade */
.overlay-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 25%;
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0.65) 0%,
        transparent 100%
    );
}

/* 7. Horizontal edges */
.overlay-sides {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8,8,8,0.35) 0%,
        transparent 20%,
        transparent 80%,
        rgba(8,8,8,0.35) 100%
    );
}

/* ── Hero content — shifted up, text shadows ─────────────── */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    /* Pull content up from vertical centre */
    margin-top: -6vh;
}

/* ── Prominent colour logo ────────────────────────────────── */
.hero-logo {
    display: block;
    margin: 0 auto 1.75rem;
    width: clamp(220px, 30vw, 360px);
    height: auto;
    filter:
        drop-shadow(0 0 30px rgba(216, 91, 0, 0.6))
        drop-shadow(0 0 60px rgba(253, 169, 0, 0.3));
    animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(216,91,0,0.6)) drop-shadow(0 0 60px rgba(253,169,0,0.3)); }
    50%       { filter: drop-shadow(0 0 45px rgba(216,91,0,0.9)) drop-shadow(0 0 80px rgba(253,169,0,0.5)); }
}

/* ── Hero tagline ────────────────────────────────────────── */
.hero-eyebrow {
    font-family: var(--font-cond);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-title        { margin-bottom: 1.5rem; }
.hero-title-dj {
    display: block;
    font-size: 0.55em;
    letter-spacing: 0.15em;
    color: var(--grey-2);
    margin-bottom: -0.2em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.hero-title-main {
    display: block;
    background: linear-gradient(135deg, var(--white) 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 16px rgba(0,0,0,0.9));
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}

/* ── Hero search ─────────────────────────────────────────── */
.hero-search { margin-bottom: 2rem; }
.search-wrap {
    display: flex;
    align-items: center;
    background: rgba(8,8,8,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 1.5rem;
    gap: 0.75rem;
    max-width: 680px;
    margin: 0 auto;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap:focus-within {
    border-color: var(--orange);
    box-shadow: var(--glow-orange), 0 4px 32px rgba(0,0,0,0.5);
}
.search-icon { flex-shrink: 0; color: var(--grey-3); width: 20px; height: 20px; }
.search-wrap input {
    flex: 1;
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--white);
}
.search-wrap input:focus { box-shadow: none; }
.search-btn { flex-shrink: 0; }

/* ── Hero event tags ─────────────────────────────────────── */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.hero-tags span {
    font-family: var(--font-cond);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-pill);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
}

/* ── Video progress dots ─────────────────────────────────── */
.hero-progress {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.hero-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}
.hero-progress-dot.active {
    width: 24px;
    border-radius: 3px;
    background: var(--orange);
    box-shadow: 0 0 8px rgba(216,91,0,0.7);
}

/* ── Scroll hint ─────────────────────────────────────────── */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-cond);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%       { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    padding-top: var(--header-h);
    overflow: hidden;
}
.page-hero-short { min-height: 40vh; }
.page-hero-bg    { position: absolute; inset: 0; z-index: 0; }
.page-hero-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    pointer-events: none;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}
.page-hero-content h1           { margin-top: 0.5rem; }
.page-hero-content-short        { text-align: center; }
.page-hero-content-short h1     { margin-bottom: 0.75rem; }
.page-hero-content-short p      { color: var(--grey-2); font-size: 1.1rem; }
