/* Variables */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #e5e5e5;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
    display: block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    border-radius: 12px; /* curved corners per user request */
    object-fit: cover;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('./assets/Hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(10,10,10,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 4px;
    filter: grayscale(100%);
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.about-image:hover img {
    filter: grayscale(0%);
    transform: translateY(-10px);
}

.bio-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* Music Section */
.music {
    background-color: #111;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.music-card {
    display: block;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.music-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.music-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.music-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.music-card:hover .music-img-wrapper img {
    transform: scale(1.05);
}

.music-hover {
    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;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.music-card:hover .music-hover {
    opacity: 1;
}

.music-info {
    padding: 1.5rem;
}

.music-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.music-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer Section */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.contact-email, .contact-phone {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-email:hover {
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.el7mz-link {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: underline;
}

.el7mz-link:hover {
    color: var(--text-muted);
}

/* RTL Support */
html[dir="rtl"] {
    --font-main: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-grid {
    grid-template-columns: 1.5fr 1fr;
}

html[dir="rtl"] .about-text {
    text-align: right;
}

html[dir="rtl"] .about-image {
    order: 2;
}

html[dir="rtl"] .footer-contact,
html[dir="rtl"] .footer-socials {
    text-align: right;
}

html[dir="rtl"] .footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

html[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.animate-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.animate-fade.visible {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    html[dir="rtl"] .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    html[dir="rtl"] .about-image {
        order: 0;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* simple mobile fallback: hide links or implement hamburger */
    }
    
    .section {
        padding: 4rem 0;
    }
}
