/*
    Amal Zenab Artist Website Styles
    
    Developed by: Dennis de Groot
    Company: PunchDouble
    Year: 2025
    
    Modern, responsive CSS with custom animations,
    mobile-first design, and optimized performance.
*/

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

body {
    font-family: Helvetica, Arial, sans-serif;
    background: #000;
    color: #e0e0e0;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    line-height: 1.6;
}

body.loaded {
    opacity: 1;
}

/* Screen reader only content */
.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;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none; 
    outline: none; 
}

.header-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: #896e55;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    color: #f5d76e;
    outline: none;
}

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

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #896e55;
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 0;
}

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

/* Perfect X animation */
.hamburger.active span:nth-child(1) {
    top: 13.5px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 13.5px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   BACKGROUND VIDEO
   ========================================================================== */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

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

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.artist-name {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #896e55;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 2s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.content {
    position: relative;
    z-index: 10;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    min-height: 100vh;
    padding-bottom: 3rem;
}

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

.section-title {
    text-align: center;
    font-size: 1.5rem;
    color: #896e55;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

#about .bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

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

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

/* ==========================================================================
   MUSIC RELEASES SECTION
   ========================================================================== */

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

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

.release-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.release-item:hover,
.release-item:focus {
    transform: translateY(-10px);
    outline: 2px solid #896e55;
    outline-offset: 4px;
}

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

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

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

.release-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px 8px 0 0;
}

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

.listen-btn {
    background: #896e55;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.listen-btn:hover,
.listen-btn:focus {
    background: #f5d76e;
    transform: scale(1.05);
    outline: none;
}

.release-title {
    font-size: 1.1rem;
    color: #896e55;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.release-year {
    color: #e0e0e0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */

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

.video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s ease-out;
}

.gallery-item:hover,
.gallery-item:focus {
    transform: scale(1.05);
    outline: 2px solid #896e55;
    outline-offset: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.2);
}

.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.download-btn {
    background: #896e55;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.download-btn:hover,
.download-btn:focus {
    background: #f5d76e;
    transform: scale(1.05);
    outline: none;
}

/* ==========================================================================
   SOCIAL MEDIA SECTION
   ========================================================================== */

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

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

.social-icon {
    width: 40px;
    height: 40px;
    background: #896e55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease; 
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.social-icon:hover,
.social-icon:focus {
    background: #f5d76e;
    color: #000;
}

#emailBtn {
    width: 40px;
    height: 40px;
    background: #896e55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease; 
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

#emailBtn:hover,
#emailBtn:focus {
    background: #f5d76e;
    color:#000;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    overflow: hidden;
}

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

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #e0e0e0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: transparent;
    border: none;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #f5d76e;
    outline: none;
}

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

.footer {
    margin: 40px auto;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #896e55;
    z-index: 1;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        backdrop-filter: blur(10px);
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu li a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    /* General Mobile Adjustments */
    .header-nav {
        padding: 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

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

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

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

    /* Mobile Social Icons */
    .social-icons {
        gap: 1rem;
        padding: 0 0.5rem;
        flex-wrap: wrap; 
        justify-content: center;
    }

    .social-icon,
    #emailBtn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .social-icons {
        gap: 0.8rem;
        justify-content: space-between;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .social-icon,
    #emailBtn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

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

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

    .social-icon,
    #emailBtn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   ANIMATION UTILITIES
   ========================================================================== */

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

/* Focus visible for better accessibility */
@supports selector(:focus-visible) {
    .social-icon:focus:not(:focus-visible),
    .release-item:focus:not(:focus-visible),
    .gallery-item:focus:not(:focus-visible),
    .hamburger:focus:not(:focus-visible) {
        outline: none;
    }
}