/* ========================================
   Khaled Music Landing Page Styles
   JOOX-Inspired Design
   ======================================== */

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

html {
    width: 100%;
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

:root {
    /* Khaled Music Brand Colors - Navy Blue and Gold Theme */
    --primary-gold: #FFD700;
    --light-gold: #FFEB64;
    --navy-blue: #002060;
    --light-navy: #193778;
    --dark-navy: #050A19;
    --medium-navy: #0A1840;
    --dark-bg: #001040;
    --darker-bg: #000520;
    --card-bg: #001854;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-muted: #B0B0B0;
    --accent-gold: #FFC107;
    --gold-glow: rgba(255, 215, 0, 0.3);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed nav */
    margin: 0;
    width: 100%;
    min-width: 320px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.highlight {
    color: var(--primary-gold);
    font-weight: 700;
}

/* ========================================
   Navigation Header
   ======================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.98), rgba(0, 32, 96, 0.95));
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 20px 0;
}

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

.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.nav-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.3));
    transition: transform 0.3s ease;
}

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

.nav-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-btn {
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-gold);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn {
    background: rgba(0, 32, 96, 0.5);
    color: var(--primary-gold);
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background: rgba(0, 32, 96, 0.8);
    color: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: var(--light-gold);
}

.signup-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-gold) 100%);
    color: var(--navy-blue);
    border: 2px solid var(--primary-gold);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.signup-btn:hover {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--primary-gold) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    border-color: var(--light-gold);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--medium-navy) 50%, var(--navy-blue) 100%);
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.logo-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-logo-img {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.brand-logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-availability {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-download-btn {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-download-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.hero-download-btn img {
    height: 60px;
    width: auto;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 450px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(255, 215, 0, 0.4));
    border-radius: 40px;
    background: var(--navy-blue);
}

.mockup-placeholder {
    width: 100%;
    min-height: 600px;
    background: linear-gradient(135deg, var(--navy-blue), var(--medium-navy));
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-gold);
}

.placeholder-content {
    text-align: center;
    padding: 40px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   Music Library Section
   ======================================== */
.music-library-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--navy-blue) 0%, var(--dark-navy) 100%);
    position: relative;
}

.library-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.library-phone img {
    width: 100%;
    max-width: 350px;
    border-radius: 30px;
    filter: drop-shadow(0 15px 50px rgba(255, 215, 0, 0.2));
}

.library-text,
.playlists-text {
    padding: 20px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-item {
    margin-bottom: 30px;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--dark-navy) 0%, var(--medium-navy) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.blue-card::before {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
}

.coral-card::before {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-gold) 100%);
}

.green-card::before {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-gold) 100%);
}

.purple-card::before {
    background: linear-gradient(135deg, var(--light-navy) 0%, var(--navy-blue) 100%);
}

.feature-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon img {
    width: 70%;
    height: auto;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   Cross Platform Section
   ======================================== */
.cross-platform-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--medium-navy) 0%, var(--navy-blue) 100%);
    position: relative;
    overflow: hidden;
}

.cross-platform-section::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.platform-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.platform-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.platform-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.platform-devices {
    margin-top: 60px;
}

.devices-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    filter: drop-shadow(0 30px 80px rgba(255, 215, 0, 0.2));
}

/* ========================================
   Footer Section
   ======================================== */
.footer-section {
    background: linear-gradient(to bottom, var(--darker-bg) 0%, var(--navy-blue) 100%);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.3));
}

.brand-logo-footer {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.app-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.download-btn {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    height: 50px;
    width: auto;
}

.footer-contact {
    text-align: left;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-methods {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    gap: 25px;
}

.contact-item {
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-gold);
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

.contact-item strong {
    color: var(--primary-gold);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .library-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    .playlists-text {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description,
    .hero-availability {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-download-buttons {
        justify-content: center;
    }
    
    .brand-logo {
        font-size: 2.5rem;
    }
    
    .hero-logo-img {
        height: 120px;
    }
    
    .library-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .nav-brand {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .nav-logo-img {
        height: 40px;
    }
    
    .nav-buttons {
        gap: 12px;
    }
    
    .nav-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .main-nav {
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-title {
        font-size: 2.5rem;
    }
    
    .brand-logo {
        font-size: 2rem;
    }
    
    .hero-section,
    .music-library-section,
    .features-section,
    .cross-platform-section {
        padding: 60px 0;
    }
    
    .app-download-buttons {
        align-items: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .nav-content {
        gap: 15px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
    }
    
    .nav-brand {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .nav-logo-img {
        height: 35px;
    }
    
    .hero-logo-img {
        height: 100px;
    }
    
    .footer-logo-img {
        height: 60px;
    }
    
    .nav-buttons {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 8px 18px;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
    
    .main-nav {
        padding: 12px 0;
    }
    
    .brand-logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .platform-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 40px 20px;
    }
    
    .hero-download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-download-btn img {
        height: 50px;
    }
}

/* ========================================
   Animations
   ======================================== */

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

.hero-text,
.library-text,
.playlists-text,
.feature-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-gold);
    color: var(--navy-blue);
}

::-moz-selection {
    background: var(--primary-gold);
    color: var(--navy-blue);
}
