/*
 * Amal Zenab
 * URI:     https://www.amalzenab.com
 * Author:  Dennis de Groot / Okay, Sounds Great
 * Version: 2.0.0
 */

/* =============================================================================
   VARIABLES
   ============================================================================= */

:root {
    --brown:      #896e55;
    --gold:       #f5d76e;
    --text:       #e0e0e0;
    --text-muted: rgba(224, 224, 224, 0.6);
    --bg:         #000;
    --nav-height: 70px;
}

/* =============================================================================
   RESET
   ============================================================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================================================================
   BASE
   ============================================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    line-height: 1.7;
}

body.loaded {
    opacity: 1;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: var(--brown);
    color: #000;
    padding: 8px 12px;
    font-size: 12px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 8px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.header-nav.scrolled {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-logo img {
    display: block;
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu li a {
    color: var(--brown);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    color: var(--gold);
    outline: none;
}

/* Desktop-only load animation — each item briefly lights to gold then settles */
@media (min-width: 769px) {
    .nav-menu li a.nav-intro {
        animation: nav-flash 1.4s ease forwards;
    }

    @keyframes nav-flash {
        0%   { color: var(--brown); }
        35%  { color: var(--gold); }
        100% { color: var(--brown); }
    }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--brown);
    transition: all 0.3s ease;
    left: 0;
}

.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 13px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* =============================================================================
   BACKGROUND VIDEO — parallax fix
   Wrapper clips overflow so translateY never reveals black
   ============================================================================= */

.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;       /* clips the taller inner container */
}

.video-background {
    position: absolute;
    top: -25%;              /* start above viewport */
    left: 0;
    width: 100%;
    height: 150%;           /* taller than wrapper — always fills on parallax down */
    will-change: transform;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
}

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

.hero {
    height: 100vh;
    position: relative;
}

/* =============================================================================
   SCROLL INDICATOR -- breathing vertical line
   ============================================================================= */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 48px;
    overflow: hidden;
    opacity: 0;
    animation: si-fadein 0.8s ease forwards 1.5s;
    pointer-events: none;
    z-index: 5;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(137, 110, 85, 0.9) 30%,
        rgba(137, 110, 85, 0.9) 70%,
        transparent 100%
    );
    animation: si-drip 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite 2s;
}

@keyframes si-fadein {
    to { opacity: 1; }
}

@keyframes si-drip {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scroll-indicator.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    .scroll-indicator { bottom: 32px; }
}

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */

.content {
    position: relative;
    z-index: 10;
    /* More transparent at top so video hero bleeds through the first section */
    background: linear-gradient(
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.72) 18%,
        rgba(0, 0, 0, 0.88) 40%,
        rgba(0, 0, 0, 0.92) 100%
    );
    padding-bottom: 4rem;
}

.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================================================
   ABOUT / BIO
   ============================================================================= */

.bio-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bio-text.animate {
    opacity: 0;
    transform: translateY(24px);
}

.bio-text.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   RELEASES
   ============================================================================= */

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.release-item {
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.release-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.release-cover {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    margin-bottom: 0.85rem;
    background: #1a1a1a;
}

.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.release-item:hover .release-cover img {
    transform: scale(1.04);
}

.release-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.release-item:hover .release-overlay,
.release-item:focus-within .release-overlay {
    opacity: 1;
}

.listen-btn {
    background: var(--brown);
    color: #000;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.listen-btn:hover {
    background: var(--gold);
    transform: scale(1.04);
}

.release-title {
    font-size: 13px;
    font-weight: 400;
    color: var(--brown);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.release-year {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* =============================================================================
   VIDEOS
   ============================================================================= */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.video-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: #111;
}

.video-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Video facade — thumbnail shown before iframe loads */
.video-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #000;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.75);
}

.video-facade:hover img,
.video-facade:focus img {
    transform: scale(1.02);
    filter: brightness(0.6);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-btn svg {
    color: #fff;
    opacity: 0.85;
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    padding: 12px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    /* nudge play icon visually centered */
    padding-left: 15px;
}

.video-facade:hover .video-play-btn svg,
.video-facade:focus .video-play-btn svg {
    opacity: 1;
    transform: scale(1.1);
}

/* =============================================================================
   MEDIA / GALLERY
   ============================================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: #111;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.1);
}

.download-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .download-overlay,
.gallery-item:focus-within .download-overlay {
    opacity: 1;
}

.download-btn {
    background: var(--brown);
    color: #000;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.download-btn:hover {
    background: var(--gold);
    transform: scale(1.04);
}

/* =============================================================================
   SOCIAL ICONS — flat, no background (matches Avangelia)
   ============================================================================= */

#contact {
    background: rgba(0, 0, 0, 0.5);
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.social-icon {
    color: rgba(137, 110, 85, 0.75);
    font-size: 20px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.social-icon:hover,
.social-icon:focus {
    color: var(--gold);
    transform: translateY(-2px);
    outline: none;
}

/* Tidal — color baked into CDN URL, no filter needed */
.icon-tidal-img {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.social-icon:hover .icon-tidal-img {
    opacity: 1;
}

/* =============================================================================
   MODAL
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(6px);
}

.modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    background: transparent;
    border: none;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 0;
}

.modal-close:hover { color: #fff; }

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

.footer {
    text-align: center;
    padding: 2rem;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brown);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        backdrop-filter: blur(12px);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li a {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .releases-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.25rem;
    }

    .social-icons {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .releases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .social-icons {
        gap: 20px;
    }
}

@media (min-width: 1400px) {
    .section {
        max-width: 1400px;
    }
}

/* =============================================================================
   REDUCED MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
