/**
 * Poetry Translated - "Spilled Ink on Darkness" Style
 * Spotify for Arabic Poetry - Visual Masterpiece
 */

/* ==========================================
   FONT LOADING - Custom Arabic Fonts
   ========================================== */

@font-face {
    font-family: 'HSN Naskh';
    src: url('../fonts/hsn-naskh.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dima Naskh';
    src: url('../fonts/dima-naskh.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Import Google Fonts for English - REPLACED BY CRIMSON PRO */
/* @import url('https://fonts.googleapis.com/css2?family=Literata:wght@400;500;700&family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap'); */

/* ==========================================
   CSS VARIABLES - Spilled Ink Palette
   ========================================== */

:root {
    /* Desert Nights & Ancient Ink - Arabian Design System */
    --ink-black: #0A0A0A;
    --desert-black: #0A0A0A;
    --surface-dark: #1A1410;
    --surface-darker: #120F0C;

    /* Henna - Primary brand color (replaces emerald) */
    --henna: #95472d;
    --henna-light: #B86A47;
    --henna-dark: #6B3420;
    --henna-glow: rgba(149, 71, 45, 0.3);

    /* Burgundy - Active verse highlighting */
    --burgundy: #6e0f3d;
    --burgundy-light: #8F1850;
    --burgundy-glow: rgba(110, 15, 61, 0.4);

    /* Neutrals */
    --parchment: #F4E9DC;
    --parchment-dim: #C4B9AC;
    --parchment-ghost: rgba(244, 233, 220, 0.1);
    --paper-white: #FAFAFA;

    /* Gold accents */
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.2);

    /* Legacy compatibility (will be replaced gradually) */
    --emerald-glow: var(--henna);
    --emerald-bright: var(--henna-light);
    --ink-shadow: rgba(250, 250, 250, 0.1);
    --emerald-shadow: var(--henna-glow);
    --glass-overlay: rgba(250, 250, 250, 0.05);
    --gradient-start: rgba(149, 71, 45, 0.05);
    --gradient-mid: rgba(149, 71, 45, 0.03);
}

/* ==========================================
   BASE RESET AND FOUNDATION
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   SPILLED INK ON DARKNESS AESTHETIC
   ========================================== */

body {
    background: var(--ink-black);
    background-image:
        radial-gradient(circle at 20% 80%, var(--gradient-start) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--gradient-mid) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.02) 0%, transparent 70%);
    color: var(--paper-white);
    font-family: 'Crimson Pro', Georgia, serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================
   GLOSSY INK EFFECT FOR ARABIC POETRY
   ========================================== */

.arabic-verse {
    font-family: 'UKIJ Merdane', 'HSN Naskh', 'Dima Naskh', serif;
    font-size: 2.5rem;
    line-height: 3.5rem;
    color: var(--paper-white);
    text-align: right;
    direction: rtl;
    text-shadow:
        0 0 30px rgba(250, 250, 250, 0.5),  /* Outer glow */
        0 0 15px rgba(250, 250, 250, 0.3),  /* Middle glow */
        0 0 5px rgba(250, 250, 250, 0.2),   /* Inner glow */
        0 2px 4px rgba(0, 0, 0, 0.8);       /* Depth shadow */
    letter-spacing: 0.05em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

/* When verse is playing/highlighted */
.arabic-verse.active {
    color: var(--burgundy, #6e0f3d);
    text-shadow:
        0 0 40px rgba(110, 15, 61, 0.8),
        0 0 20px rgba(110, 15, 61, 0.6),
        0 0 10px rgba(110, 15, 61, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.9);
    transform: scale(1.02);
    animation: verseGlow 0.8s ease-in-out;
}

@keyframes verseGlow {
    0% {
        text-shadow:
            0 0 40px rgba(110, 15, 61, 0.8),
            0 0 20px rgba(110, 15, 61, 0.6);
    }
    50% {
        text-shadow:
            0 0 60px rgba(110, 15, 61, 1),
            0 0 30px rgba(110, 15, 61, 0.8),
            0 0 15px rgba(110, 15, 61, 0.6);
    }
    100% {
        text-shadow:
            0 0 40px rgba(110, 15, 61, 0.8),
            0 0 20px rgba(110, 15, 61, 0.6);
    }
}

/* English translation styling */
.english-verse {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.2rem;
    line-height: 2rem;
    color: var(--paper-white);
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.english-verse.active {
    opacity: 1;
    color: var(--emerald-bright);
    transform: translateX(10px);
}

/* ==========================================
   SPINNING DISC AUDIO PLAYER
   ========================================== */

.poetry-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.poetry-player.hidden {
    transform: translateY(200px);
    opacity: 0;
}

.player-disc-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.player-disc {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #111;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.05),
        0 0 50px rgba(16, 185, 129, 0.2);
    position: relative;
    transition: transform 0.3s;
    overflow: hidden;
}

.disc-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s;
}

/* The vinyl record hole in center */
.disc-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ink-black);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* Spinning animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-disc.spinning {
    animation: spin 3s linear infinite;
}

.player-disc.spinning .disc-image {
    filter: brightness(1.1) saturate(1.2);
}

/* Progress ring */
.progress-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: transparent;
    stroke: var(--emerald-glow);
    stroke-width: 3;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.8));
    transition: stroke-dashoffset 0.3s;
    stroke-linecap: round;
}

/* Play button in center */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.play-btn:hover {
    background: var(--emerald-glow);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.pause-icon {
    display: none;
}

.play-btn.playing .play-icon {
    display: none;
}

.play-btn.playing .pause-icon {
    display: block;
}

/* Player controls */
.player-controls {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 10, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    font-size: 12px;
}

.time-current, .time-total {
    color: var(--emerald-glow);
    font-family: 'Inter', monospace;
    min-width: 35px;
}

.progress-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--emerald-glow);
    width: 0%;
    transition: width 0.3s;
    border-radius: 2px;
}

/* ==========================================
   ILLUMINATED MANUSCRIPT ALBUM CARDS
   ========================================== */

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding: 40px;
}

/* Card Container */
.poem-card {
    width: 100%;
    background: var(--surface-dark, #1A1410);
    border: 2px solid rgba(244, 233, 220, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.poem-card .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Cover Area (Square 1:1) */
.card-cover {
    position: relative;
    aspect-ratio: 1;
    background: var(--surface-darker, #120F0C);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-cover-text {
    font-family: 'UKIJ Merdane', 'HSN Naskh', 'Dima Naskh', serif;
    font-size: 1.8rem;
    color: rgba(244, 233, 220, 0.7);
    text-align: center;
    line-height: 1.6;
    direction: rtl;
    z-index: 1;
}

/* Play Button Overlay */
.card-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(149, 71, 45, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 2;
    cursor: pointer;
}

.poem-card:hover .card-play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.card-play-button:hover {
    background: var(--henna-light, #B86A47);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Card Content */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Arabic Title */
.card-title-ar {
    font-family: 'UKIJ Merdane', 'HSN Naskh', 'Dima Naskh', serif;
    font-size: 1.3rem;
    color: var(--parchment, #F4E9DC);
    line-height: 1.5;
    margin: 0 0 4px 0;
    text-align: right;
    direction: rtl;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* English Title */
.card-title-en {
    font-family: 'Literata', serif;
    font-size: 0.95rem;
    color: var(--parchment-dim, #C4B9AC);
    line-height: 1.4;
    margin: 0 0 12px 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadata Row */
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--parchment-dim, #C4B9AC);
    margin-bottom: 8px;
}

.card-poet {
    font-weight: 400;
}

.meta-separator {
    opacity: 0.5;
}

.card-era-badge {
    background: rgba(149, 71, 45, 0.2);
    color: var(--henna-light, #B86A47);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Bottom Row */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--parchment-dim, #C4B9AC);
}

.card-date {
    color: var(--gold, #D4AF37);
}

.card-duration {
    color: var(--parchment-dim, #C4B9AC);
}

/* Hover State */
.poem-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--henna, #95472d);
    box-shadow: 0 12px 32px rgba(149, 71, 45, 0.3);
}

.poem-card:hover .card-title-ar {
    color: var(--henna, #95472d);
    text-shadow: 0 0 12px rgba(149, 71, 45, 0.4);
}

.poem-card:hover .card-cover-text {
    opacity: 1;
}

/* Active/Pressed State */
.poem-card:active {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--henna-dark, #6B3420);
}

/* Focus State (Keyboard) */
.poem-card:focus-within {
    outline: 3px solid var(--henna, #95472d);
    outline-offset: 2px;
}

/* Responsive Grid Layouts */
@media (max-width: 1024px) {
    /* Tablet */
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
        padding: 20px;
    }

    .card-cover-text {
        font-size: 1.5rem;
    }

    .card-title-ar {
        font-size: 1.1rem;
    }

    .card-title-en {
        font-size: 0.85rem;
    }

    .card-meta {
        font-size: 0.75rem;
    }

    .card-bottom {
        font-size: 0.7rem;
    }

    .card-play-button {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    /* Very small mobile */
    .album-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}

/* ==========================================
   ENHANCED HOMEPAGE STRUCTURE
   ========================================== */

/* ==========================================
   OLD HEADER & NAVIGATION STYLES
   REPLACED BY navigation.css
   ========================================== */
/*
.header {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--henna, #95472d);
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(149, 71, 45, 0.8);
}

.logo-ar {
    font-family: 'UKIJ Merdane', 'HSN Naskh', serif;
    font-size: 1.8rem;
    margin-left: 0.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--paper-white);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-glow);
    transition: width 0.3s;
}

.nav a:hover {
    color: var(--emerald-glow);
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--emerald-glow);
}

.nav a.active::after {
    width: 100%;
}
*/

/* ==========================================
   HERO SECTION - INK FLOWING THROUGH DARKNESS
   Full viewport hero with Desert Nights aesthetic
   ========================================== */

/* Hero Container - Full viewport */
.hero-desert {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0A0A0A 0%, #1A1410 100%);
}

/* Geometric Pattern Background */
.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-pattern {
    width: 100%;
    height: 100%;
    opacity: 0.04;
}

/* Floating Particles Container */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* Individual Particle Styles - Subtle desert dust */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(244, 233, 220, 0.15);
    border-radius: 50%;
    opacity: 0;
}

/* Particle Animation Keyframes */
@keyframes particle-float-1 {
    0% {
        transform: translate(0, 100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translate(0, -100px) translateX(30px);
        opacity: 0;
    }
}

@keyframes particle-float-2 {
    0% {
        transform: translate(0, 100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.25;
    }
    90% {
        opacity: 0.25;
    }
    100% {
        transform: translate(0, -100px) translateX(-40px);
        opacity: 0;
    }
}

@keyframes particle-float-3 {
    0% {
        transform: translate(0, 100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translate(0, -100px) translateX(20px);
        opacity: 0;
    }
}

/* Assign animations to particles */
.particle:nth-child(1) { left: 10%; animation: particle-float-1 25s infinite; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation: particle-float-2 28s infinite; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation: particle-float-3 22s infinite; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation: particle-float-1 30s infinite; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation: particle-float-2 26s infinite; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation: particle-float-3 24s infinite; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation: particle-float-1 27s infinite; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation: particle-float-2 29s infinite; animation-delay: 4s; }
.particle:nth-child(9) { left: 90%; animation: particle-float-3 23s infinite; animation-delay: 1s; }
.particle:nth-child(10) { left: 15%; animation: particle-float-1 31s infinite; animation-delay: 3s; }
.particle:nth-child(11) { left: 25%; animation: particle-float-2 25s infinite; animation-delay: 5s; }
.particle:nth-child(12) { left: 35%; animation: particle-float-3 28s infinite; animation-delay: 2s; }
.particle:nth-child(13) { left: 45%; animation: particle-float-1 26s infinite; animation-delay: 4s; }
.particle:nth-child(14) { left: 55%; animation: particle-float-2 24s infinite; animation-delay: 1s; }
.particle:nth-child(15) { left: 75%; animation: particle-float-3 29s infinite; animation-delay: 3s; }

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Arabic Headline - The Main Hero */
.hero-arabic {
    font-family: 'UKIJ Merdane', 'HSN Naskh', 'Dima Naskh', serif;
    font-size: 4rem;
    color: #F4E9DC;
    text-shadow:
        0 0 40px rgba(244, 233, 220, 0.6),
        0 0 20px rgba(244, 233, 220, 0.4),
        0 0 10px rgba(244, 233, 220, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
    animation: hero-text-reveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* English Tagline */
.hero-english {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.5rem;
    color: #C4B9AC;
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0;
    animation: hero-text-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

/* Text Reveal Animation */
@keyframes hero-text-reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons Container */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: hero-text-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

/* Primary CTA Button - Henna */
.btn-hero-primary {
    background: #95472d;
    color: #F4E9DC;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid #95472d;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-hero-primary:hover {
    background: #B86A47;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(149, 71, 45, 0.4);
}

.btn-hero-primary:active {
    background: #6B3420;
    transform: translateY(0);
}

.btn-hero-primary:focus {
    outline: 2px solid #95472d;
    outline-offset: 4px;
}

/* Secondary CTA Button - Outline */
.btn-hero-secondary {
    background: transparent;
    color: #F4E9DC;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid rgba(244, 233, 220, 0.2);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-hero-secondary:hover {
    border-color: #95472d;
    color: #95472d;
    transform: translateY(-2px);
}

.btn-hero-secondary:focus {
    outline: 2px solid #95472d;
    outline-offset: 4px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(149, 71, 45, 0.6);
    z-index: 4;
    animation: hero-bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.3s;
}

.hero-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes hero-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #95472d;
    color: #F4E9DC;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 20px;
}

/* Featured Poem Section */
.featured-poem {
    padding: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--emerald-glow);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.poem-display {
    background: linear-gradient(145deg, #0F0F0F, #1A1A1A);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(255, 255, 255, 0.02);
}

.poem-pages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    min-height: 400px;
}

.page {
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.page-arabic {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent);
    border-right: 2px solid rgba(16, 185, 129, 0.2);
}

.page-english {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.02), transparent);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* Discovery Section */
.discovery {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   RESPONSIVE DESIGN - HERO SECTION
   ========================================== */

/* Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-desert {
        height: 80vh;
        min-height: 500px;
    }

    .hero-arabic {
        font-size: 3rem;
    }

    .hero-english {
        font-size: 1.3rem;
    }

    .hero-cta {
        gap: 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Reduce particle count on tablet */
    .particle:nth-child(n+11) {
        display: none;
    }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
    .hero-desert {
        height: 100vh;
        min-height: 500px;
    }

    .hero-arabic {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-english {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
    }

    .hero-scroll-indicator {
        bottom: 30px;
    }

    /* Remove particles on mobile for performance */
    .hero-particles {
        display: none;
    }
}

/* Extra small mobile (<480px) */
@media (max-width: 480px) {
    .hero-arabic {
        font-size: 2rem;
    }

    .hero-english {
        font-size: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Prefers Reduced Motion - Disable animations */
@media (prefers-reduced-motion: reduce) {
    .hero-arabic,
    .hero-english,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .particle {
        display: none;
    }

    .hero-scroll-indicator {
        animation: none;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        transition: none;
    }
}

/* ==========================================
   RESPONSIVE MOBILE DESIGN (General)
   ========================================== */

@media (max-width: 768px) {
    .poem-pages {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-arabic {
        border-right: none;
        border-bottom: 2px solid rgba(16, 185, 129, 0.2);
    }

    .page-english {
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
    }

    .arabic-verse {
        font-size: 1.8rem;
        line-height: 2.8rem;
        margin-bottom: 10px;
    }

    .english-verse {
        font-size: 1rem;
        line-height: 1.8rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    }

    .poetry-player {
        bottom: 10px;
        right: 10px;
        left: 10px;
        display: flex;
        justify-content: center;
    }

    .player-controls {
        bottom: -50px;
        font-size: 11px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-ar {
        font-size: 1.8rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .poetry-player {
        transform: scale(0.9);
    }

    .poem-display {
        padding: 2rem;
    }

    .arabic-verse {
        font-size: 1.5rem;
        line-height: 2.4rem;
    }
}
/* Navigation Right Side (Auth Buttons & Profile) */
/* OLD AUTH & USER PROFILE STYLES - REPLACED BY navigation.css */
/*
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-login-btn,
.nav-signup-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-login-btn {
    color: var(--paper-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-login-btn:hover {
    border-color: var(--emerald-glow);
    background: rgba(16, 185, 129, 0.1);
}

.nav-signup-btn {
    background: var(--emerald-glow);
    color: var(--ink-black);
    border: 1px solid var(--emerald-glow);
}

.nav-signup-btn:hover {
    background: rgb(13, 148, 103);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile-btn:hover {
    border-color: var(--emerald-glow);
    background: rgba(16, 185, 129, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--emerald-glow);
    font-size: 0.9rem;
}

.user-name {
    color: var(--paper-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-arrow {
    color: rgba(250, 250, 250, 0.6);
    font-size: 0.7rem;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 10px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.profile-dropdown-menu.show {
    display: block;
}

.dropdown-header {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.dropdown-user-name {
    color: var(--paper-white);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.dropdown-user-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(250, 250, 250, 0.6);
}

.dropdown-menu-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(250, 250, 250, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.dropdown-menu-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-glow);
}

.dropdown-menu-item span:first-child {
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-logout {
    color: rgba(239, 68, 68, 0.9);
}

.dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
}
*/

/* ==========================================
   LANDING PAGE STYLES - MODERN DESIGN
   Black background, Navy cards, Terracotta accents
   ========================================== */

/* Modern Color System for Landing Page */
:root {
    --black-bg: #000000;
    --navy-card: #0a1e43;
    --navy-hover: #1a3a5c;
    --terracotta: #95472d;
    --terracotta-hover: #b86847;
    --pink-active: #6e0f3d;
    --text-white: #FFFFFF;
    --text-grey: #A0A0A0;
    --text-dim: #707070;
}

/* Container Utilities */
.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Section Headings */
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 1.75rem;
    }
}

/* ==========================================
   SECTION 1: HERO
   ========================================== */
.hero-landing {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-bg);
    text-align: center;
}

.hero-container {
    max-width: 900px;
    padding: 0 20px;
}

.hero-title-ar {
    font-family: 'UKIJ Merdane', 'HSN Naskh', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-title-en {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--terracotta);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    padding: 14px 32px;
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .hero-title-ar {
        font-size: 2rem;
    }

    .hero-title-en {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================
   SECTION 2: EXPLAINER
   ========================================== */
.explainer-section {
    background: var(--black-bg);
}

.explainer-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--navy-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: var(--navy-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================
   SECTION 3: MU'ALLAQAT SHOWCASE
   ========================================== */
.muallaqat-section {
    background: var(--black-bg);
}

.muallaqat-title-ar {
    font-family: 'UKIJ Merdane', 'HSN Naskh', serif;
    font-size: 2.3rem; /* Increased from 2rem (+15%) */
    color: var(--text-white);
    text-align: center;
    margin-bottom: 0.5rem;
}

.muallaqat-title-en {
    font-size: 1.5rem; /* Increased from 1.3rem (+15%) */
    color: var(--text-grey);
    text-align: center;
    margin-bottom: 1.5rem;
}

.muallaqat-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-white);
    text-align: center;
}

.muallaqat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.muallaqat-card {
    background: var(--navy-card);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.muallaqat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.muallaqat-link {
    display: block;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.muallaqat-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--terracotta);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.muallaqat-content {
    padding-right: 50px;
}

.muallaqat-poet-ar {
    font-family: 'UKIJ Merdane', 'HSN Naskh', serif;
    font-size: 1.73rem; /* Increased from 1.5rem (+15%) */
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.muallaqat-poet-en {
    font-size: 1.15rem; /* Increased from 1rem (+15%) */
    color: var(--text-grey);
    margin-bottom: 1rem;
}

.muallaqat-first-line {
    font-family: 'UKIJ Merdane', 'HSN Naskh', serif;
    font-size: 1.1rem; /* Increased from 0.95rem (+15%) */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.muallaqat-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.muallaqat-play {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.muallaqat-card:hover .muallaqat-play {
    opacity: 1;
}

.muallaqat-play:hover {
    background: var(--terracotta-hover);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .muallaqat-grid {
        grid-template-columns: 1fr;
    }

    .muallaqat-play {
        opacity: 1;
    }
}

/* ==========================================
   SECTION 4: HOW IT WORKS
   ========================================== */
.how-it-works-section {
    background: var(--black-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--navy-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
}

.step-arrow {
    font-size: 2rem;
    color: var(--terracotta);
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

/* ==========================================
   SECTION 5: EXPLORE
   ========================================== */
.explore-section {
    background: var(--black-bg);
}

.explore-group {
    margin-bottom: 2.5rem;
}

.explore-group:last-child {
    margin-bottom: 0;
}

.explore-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-align: center;
}

.explore-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.explore-badge {
    padding: 10px 24px;
    background: var(--navy-card);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.explore-badge:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
}

/* ==========================================
   SECTION 6: CONTRIBUTE CTA
   ========================================== */
.contribute-cta-section {
    background: var(--black-bg);
    padding: 80px 0;
}

.contribute-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem;
    background: linear-gradient(135deg, var(--navy-card) 0%, #0d2850 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(149, 71, 45, 0.2);
}

.contribute-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.contribute-description {
    font-size: 1.15rem;
    color: #B0B0B0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-contribute {
    padding: 16px 48px;
    background: var(--terracotta);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-contribute:hover {
    background: var(--terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(149, 71, 45, 0.4);
}

@media (max-width: 768px) {
    .contribute-card {
        padding: 2.5rem 1.5rem;
    }

    .contribute-title {
        font-size: 1.6rem;
    }

    .contribute-description {
        font-size: 1rem;
    }

    .btn-contribute {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

/* ==========================================
   SECTION 7: FOOTER CTA
   ========================================== */
.footer-cta-section {
    background: var(--black-bg);
    padding: 100px 0;
}

.footer-cta-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--navy-card);
    border-radius: 12px;
    text-align: center;
}

.footer-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.btn-primary-large {
    padding: 16px 48px;
    background: var(--terracotta);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary-large:hover {
    background: var(--terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .footer-cta-card {
        padding: 2.5rem 1.5rem;
    }

    .footer-cta-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   SECTION 7: FOOTER
   ========================================== */
.footer {
    background: var(--black-bg);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--terracotta);
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-copyright p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
