/* ============================================
   HadithWorld V2.0 - Additional Sections
   ============================================ */

/* ============================================
   Section Common Styles - DARK THEME
   ============================================ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Topics Section
   ============================================ */
.topics-section {
    padding: 5rem 2rem;
    position: relative;
}

.topics-explorer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.topic-circle-container {
    position: relative;
    width: 520px;
    height: 520px;
    margin: 0 auto;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 20%, #a78bfa 40%, #8b5cf6 60%, #7c3aed 80%, #6d28d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(109, 40, 217, 0.35), 0 0 80px rgba(167, 139, 250, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.25);
    z-index: 10;
    padding: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.6);
}

.center-content {
    text-align: center;
    color: white;
    max-width: 100%;
    overflow: hidden;
}

.center-content i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.center-content span {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    word-wrap: break-word;
    line-height: 1.3;
}

.topic-items {
    position: absolute;
    width: 100%;
    height: 100%;
}

.topic-item {
    --angle: calc(360deg / 8 * var(--i) - 90deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-210px) rotate(calc(-1 * var(--angle)));
    cursor: pointer;
    transition: var(--transition-normal);
}

.topic-item:hover {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-220px) rotate(calc(-1 * var(--angle))) scale(1.1);
}

.topic-icon {
    width: 70px;
    height: 70px;
    background: rgba(30, 30, 45, 0.9);
    /* PERFORMANCE: Removed backdrop-filter for smoother scrolling */
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin: 0 auto 0.5rem;
    transition: var(--transition-normal);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
    will-change: transform;
    transform: translateZ(0);
}

.topic-item:hover .topic-icon {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 40%, #8b5cf6 100%);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 40px rgba(109, 40, 217, 0.3), 0 0 30px rgba(167, 139, 250, 0.25);
    color: white;
}

.topic-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
    display: block;
    white-space: nowrap;
    font-weight: 500;
}

/* Topic Preview Card */
.topic-preview {
    padding: 2rem;
    max-width: 400px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.preview-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.preview-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.preview-stats i {
    color: var(--secondary);
}

.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
}

.preview-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Narrators Section
   ============================================ */
.narrators-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, 0.1) 25%, rgba(196, 181, 253, 0.12) 50%, rgba(167, 139, 250, 0.1) 75%, transparent 100%);
}

.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    opacity: 0.3;
}

.narrator-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.narrator-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.narrator-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.narrator-era {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.narrator-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.narrator-avatar.female {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.narrator-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.narrator-arabic {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.narrator-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.narrator-stats {
    margin-bottom: 1rem;
}

.narrator-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
}

.narrator-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.narrator-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.narrator-link:hover {
    color: var(--accent);
    gap: 0.75rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(30, 30, 45, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    margin: 0 auto;
    display: flex;
    width: fit-content;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(109, 40, 217, 0.3), 0 0 20px rgba(167, 139, 250, 0.2);
}

/* ============================================
   Knowledge Graph Section
   ============================================ */
.knowledge-section {
    padding: 5rem 2rem;
}

.knowledge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.knowledge-text .section-badge {
    margin-bottom: 1rem;
}

.knowledge-text .section-title {
    text-align: left;
    font-size: 2.5rem;
}

.knowledge-text .section-description {
    text-align: left;
    margin: 0 0 2rem 0;
}

.knowledge-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.knowledge-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.knowledge-graph {
    position: relative;
    height: 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#graphCanvas {
    width: 100%;
    height: 100%;
}

.graph-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(10, 15, 26, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
}

.graph-overlay span {
    display: block;
    font-weight: 500;
}

.graph-overlay small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   Floating Library Section - Creative Design
   ============================================ */
.library-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(139, 92, 246, 0.12) 20%,
            rgba(109, 40, 217, 0.15) 40%,
            rgba(139, 92, 246, 0.12) 60%,
            rgba(167, 139, 250, 0.08) 80%,
            transparent 100%);
}

.library-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.library-light {
    position: absolute;
    width: 300px;
    height: 600px;
    background: linear-gradient(180deg,
            rgba(139, 92, 246, 0.15) 0%,
            rgba(109, 40, 217, 0.08) 50%,
            transparent 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    opacity: 0.6;
}

.library-light-1 {
    left: 20%;
    top: 0;
    animation: lightFlicker 8s ease-in-out infinite;
}

.library-light-2 {
    right: 20%;
    top: 0;
    animation: lightFlicker 10s ease-in-out infinite reverse;
}

@keyframes lightFlicker {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

.dust-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dust {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(167, 139, 250, 0.6);
    border-radius: 50%;
    animation: dustFloat 15s linear infinite;
}

.dust-1 {
    left: 25%;
    top: 30%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.dust-2 {
    left: 45%;
    top: 50%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.dust-3 {
    left: 60%;
    top: 25%;
    animation-delay: 5s;
    animation-duration: 14s;
}

.dust-4 {
    left: 75%;
    top: 45%;
    animation-delay: 8s;
    animation-duration: 20s;
}

.dust-5 {
    left: 35%;
    top: 60%;
    animation-delay: 11s;
    animation-duration: 16s;
}

@keyframes dustFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) translateX(50px);
        opacity: 0;
    }
}

.floating-bookshelf {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0;
}

.shelf-light {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.bookshelf-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    padding: 0 2rem 0;
    perspective: 1000px;
    min-height: 340px;
    overflow: visible;
}

/* Individual Book Styling - OPTIMIZED */
.library-book {
    position: relative;
    width: 70px;
    height: 280px;
    transform-style: preserve-3d;
    /* PERFORMANCE: Simplified transition */
    transition: transform 0.35s ease, z-index 0s;
    cursor: pointer;
    text-decoration: none;
    z-index: 1;
    will-change: transform;
}

.library-book:hover {
    /* PERFORMANCE: Simplified 3D transform */
    transform: translateY(-15px) translateX(-5px) rotateY(-20deg);
    z-index: 10;
}

.library-book:hover~.library-book {
    transform: translateX(25px);
}

.book-body {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Book Spine */
.library-book .book-spine {
    position: absolute;
    width: 70px;
    height: 100%;
    background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 50%, #3b0764 100%);
    border-radius: 4px 0 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    box-shadow:
        inset -3px 0 6px rgba(0, 0, 0, 0.3),
        inset 3px 0 6px rgba(255, 255, 255, 0.05);
    transform: rotateY(0deg);
    transform-origin: right center;
    z-index: 2;
}

.spine-decor {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    border-radius: 2px;
}

.spine-title {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--secondary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.spine-author {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Book Cover (revealed on hover) */
.library-book .book-cover {
    position: absolute;
    left: 52px;
    top: 0;
    width: 200px;
    height: 100%;
    transform: rotateY(-90deg);
    transform-origin: left center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.library-book:hover .book-cover {
    transform: rotateY(0deg);
    opacity: 1;
}

.cover-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 50%, #3b0764 100%);
    border-radius: 0 8px 8px 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 2px solid var(--secondary);
    border-left: none;
    box-shadow:
        5px 0 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(167, 139, 250, 0.15);
}

.cover-pattern {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.cover-pattern::before,
.cover-pattern::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.cover-pattern::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.cover-pattern::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.cover-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.book-arabic-title {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cover-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.book-imam {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.book-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.book-meta span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-meta i {
    color: var(--secondary);
    font-size: 0.7rem;
}

.explore-text {
    display: inline-block;
    padding: 8px 15px;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Book Pages Effect - Hidden */
.library-book .book-pages {
    display: none;
}

/* Book Glow on Hover */
.book-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(167, 139, 250, 0.35) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.library-book:hover .book-glow {
    opacity: 1;
}

/* Different Book Colors - Luxurious Variety */
.book-muslim .book-spine {
    background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 50%, #581c87 100%);
}

.book-muslim .cover-inner {
    background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 50%, #581c87 100%);
}

.book-nasai .book-spine {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 50%, #831843 100%);
}

.book-nasai .cover-inner {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 50%, #831843 100%);
}

.book-tirmidhi .book-spine {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 50%, #7c2d12 100%);
}

.book-tirmidhi .cover-inner {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 50%, #7c2d12 100%);
}

.book-abudawud .book-spine {
    background: linear-gradient(135deg, #0369a1 0%, #075985 50%, #0c4a6e 100%);
}

.book-abudawud .cover-inner {
    background: linear-gradient(135deg, #0369a1 0%, #075985 50%, #0c4a6e 100%);
}

.book-ibnmajah .book-spine {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
}

.book-ibnmajah .cover-inner {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
}

/* 3D Elegant Shelf */
.shelf {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.shelf-front {
    height: 25px;
    background: linear-gradient(180deg,
            #4c1d95 0%,
            #3b0764 30%,
            #2e1065 100%);
    border-radius: 0 0 8px 8px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.shelf-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(6, 182, 212, 0.4) 20%,
            rgba(34, 211, 238, 0.6) 50%,
            rgba(6, 182, 212, 0.4) 80%,
            transparent 100%);
}

.shelf-top {
    position: absolute;
    bottom: 100%;
    left: -20px;
    right: -20px;
    height: 15px;
    background: linear-gradient(180deg,
            #6d28d9 0%,
            #5b21b6 100%);
    transform: rotateX(60deg);
    transform-origin: bottom;
    border-radius: 4px 4px 0 0;
}

/* Library CTA Button */
.library-cta {
    text-align: center;
    margin-top: 3rem;
}

.library-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 50%, #4c1d95 100%);
    border: 2px solid rgba(6, 182, 212, 0.4);
    color: var(--secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow:
        0 5px 20px rgba(109, 40, 217, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.library-btn:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow:
        0 10px 30px rgba(109, 40, 217, 0.45),
        0 0 20px rgba(6, 182, 212, 0.3);
}

.library-btn i {
    font-size: 1.1rem;
}

.btn-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.btn-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0;
}

.library-btn:hover .btn-particles span {
    animation: particleBurst 0.6s ease forwards;
}

.btn-particles span:nth-child(1) {
    left: 30%;
    animation-delay: 0s;
}

.btn-particles span:nth-child(2) {
    left: 50%;
    animation-delay: 0.1s;
}

.btn-particles span:nth-child(3) {
    left: 70%;
    animation-delay: 0.2s;
}

@keyframes particleBurst {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

/* ============================================
   3D Narrators Timeline Section (Enhanced)
   ============================================ */
.narrators-section-3d {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(196, 181, 253, 0.12) 25%, rgba(167, 139, 250, 0.15) 50%, rgba(196, 181, 253, 0.12) 75%, transparent 100%);
}

.narrators-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.narrator-orb {
    position: absolute;
    border-radius: 50%;
    /* PERFORMANCE: Removed heavy blur filter */
    opacity: 0.2;
}

.narrator-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(109, 40, 217, 0.2) 40%, transparent 70%);
    top: 20%;
    left: -15%;
    /* PERFORMANCE: Removed infinite animation */
}

.narrator-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(34, 211, 238, 0.15) 40%, transparent 70%);
    top: 50%;
    right: -10%;
    /* PERFORMANCE: Removed infinite animation */
}

.narrator-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, rgba(196, 181, 253, 0.18) 40%, transparent 70%);
    bottom: 10%;
    left: 30%;
    /* PERFORMANCE: Removed infinite animation */
}

.timeline-3d-container {
    position: relative;
}

.timeline-track-3d {
    display: none;
}

.timeline-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.5;
}

.narrator-cards-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    perspective: 1000px;
}

.narrator-card-3d {
    position: relative;
    perspective: 800px;
}

.card-3d-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.narrator-card-3d:hover .card-3d-inner {
    transform: translateZ(30px) rotateX(5deg);
}

.card-3d-front {
    background: rgba(25, 25, 35, 0.95);
    /* PERFORMANCE: Removed backdrop-filter for smoother scrolling */
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(139, 92, 246, 0.15);
}

.card-3d-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.card-3d-front.female .narrator-avatar-3d .avatar-core {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.card-3d-front.female .avatar-ring {
    border-color: rgba(6, 182, 212, 0.5);
}

.narrator-era-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.narrator-era-badge i {
    font-size: 0.65rem;
}

.narrator-avatar-3d {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 92, 246, 0.35);
    border-radius: 50%;
    /* PERFORMANCE: Removed infinite animation */
}

.avatar-ring-2 {
    width: 120%;
    height: 120%;
    border-color: rgba(167, 139, 250, 0.18);
    animation-delay: 0.5s;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

.avatar-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.avatar-core .arabic {
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: white;
}

.narrator-name-3d {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.narrator-arabic-3d {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.narrator-timeline-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.timeline-year {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-progress {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    position: relative;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

.narrator-stats-3d {
    margin-bottom: 1rem;
}

.stat-3d {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: var(--radius-full);
    border: 1px solid rgba(167, 139, 250, 0.22);
}

.stat-3d i {
    color: var(--secondary);
}

.stat-3d .stat-number {
    font-weight: 700;
    color: var(--accent);
}

.stat-3d .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.narrator-bio-3d {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.narrator-btn-3d {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.3s ease;
}

.narrator-btn-3d:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.narrator-btn-3d i {
    transition: transform 0.3s ease;
}

.narrator-btn-3d:hover i {
    transform: translateX(3px);
}

.card-reflection {
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    filter: blur(5px);
    transform: scaleY(-1) perspective(100px) rotateX(30deg);
    opacity: 0.3;
}

.view-all-btn-3d {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin: 0 auto;
    display: flex;
    width: fit-content;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.view-all-btn-3d:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(167, 139, 250, 0.35), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.view-all-btn-3d:hover .btn-glow {
    opacity: 1;
    animation: glowRotate 2s linear infinite;
}

@keyframes glowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Hadith of the Day Section
   ============================================ */
.hadith-day-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hadith-day-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hadith-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.hadith-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    animation: hadithOrbPulse 8s ease-in-out infinite;
}

.hadith-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
    bottom: -10%;
    right: 10%;
    animation: hadithOrbPulse 10s ease-in-out infinite reverse;
}

@keyframes hadithOrbPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1.1);
    }
}

.hadith-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 25%;
    right: 15%;
    animation-delay: 0.5s;
}

.star-3 {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
}

.star-4 {
    bottom: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

.star-5 {
    bottom: 20%;
    left: 35%;
    animation-delay: 2s;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.hadith-day-badge i {
    animation: rotateSun 10s linear infinite;
}

@keyframes rotateSun {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hadith-day-card {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hadith-card-glow {
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent), var(--secondary));
    border-radius: calc(var(--radius-xl) + 3px);
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
    animation: cardGlowPulse 4s ease-in-out infinite;
}

@keyframes cardGlowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.hadith-card-inner {
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.hadith-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, transparent 50%, rgba(167, 139, 250, 0.05) 100%);
    pointer-events: none;
}

.hadith-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hadith-decoration.bottom {
    margin-bottom: 0;
    margin-top: 2rem;
}

.decoration-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    max-width: 150px;
}

.decoration-diamond {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.hadith-arabic-container {
    position: relative;
    padding: 1.5rem 3rem;
    margin-bottom: 1.5rem;
}

.arabic-quote-mark {
    position: absolute;
    font-family: var(--font-arabic);
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.3;
    line-height: 1;
}

.arabic-quote-mark:first-child {
    top: 0;
    left: 0;
}

.arabic-quote-mark.end {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.hadith-arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.75rem;
    line-height: 2;
    text-align: center;
    color: #f8fafc;
    direction: rtl;
}

.hadith-translation {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.translation-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.hadith-english {
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.hadith-source {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
}

.source-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.source-book,
.source-number,
.source-narrator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
}

.source-book i,
.source-number i,
.source-narrator i {
    color: var(--secondary);
}

.hadith-authenticity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.hadith-authenticity.sahih {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.hadith-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hadith-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hadith-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.hadith-action-btn.read-more-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.hadith-action-btn.read-more-btn:hover {
    box-shadow: var(--shadow-glow);
}

.hadith-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: white;
    transform: scale(1.1);
}

.nav-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-date i {
    color: var(--secondary);
}

.view-all-hadiths-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin: 3rem auto 0;
    display: flex;
    width: fit-content;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.view-all-hadiths-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.view-all-hadiths-btn:hover .btn-shimmer {
    left: 100%;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    position: relative;
    padding: 6rem 2rem 10rem;
    overflow: visible;
    margin-bottom: 0;
    z-index: 2;
}

/* Removed separator line for cleaner look */

.newsletter-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.newsletter-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(76, 29, 149, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
}

/* ... (keeping glow and particles as is) ... */



.newsletter-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: nlGlow 8s ease-in-out infinite alternate;
}

.newsletter-glow-1 {
    top: -100px;
    left: -100px;
    background: rgba(76, 29, 149, 0.35);
}

.newsletter-glow-2 {
    bottom: -100px;
    right: -100px;
    background: rgba(6, 182, 212, 0.35);
    animation-delay: 4s;
}

@keyframes nlGlow {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.newsletter-particles {
    position: absolute;
    inset: 0;
}

.nl-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.5;
    animation: nlParticleFloat 12s linear infinite;
}

.nl-particle-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.nl-particle-2 {
    left: 30%;
    top: 70%;
    animation-delay: 3s;
}

.nl-particle-3 {
    right: 20%;
    top: 30%;
    animation-delay: 6s;
}

.nl-particle-4 {
    right: 10%;
    bottom: 20%;
    animation-delay: 9s;
}

@keyframes nlParticleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.7;
    }
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.newsletter-text {
    max-width: 550px;
}

.newsletter-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.newsletter-icon-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: iconPulse 3s ease-in-out infinite;
}

.newsletter-icon-wrapper i {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    color: white;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px 10px rgba(45, 212, 191, 0);
    }
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.newsletter-badge i {
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0);
    }
}

.newsletter-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.newsletter-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.newsletter-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.newsletter-features li i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Newsletter Form Card */
.newsletter-form-wrapper {
    display: flex;
    justify-content: center;
}

.newsletter-form-card {
    position: relative;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
}

.form-decoration {
    position: absolute;
    pointer-events: none;
}

.form-decoration-circle {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
}

.form-decoration-circle.small {
    top: auto;
    right: auto;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
}

.newsletter-form-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.newsletter-form-card h3 .highlight {
    color: var(--secondary);
}

.newsletter-form-card>p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.15);
}

.input-wrapper i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.subscribe-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0.5rem;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 212, 191, 0.3);
}

.subscribe-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-icon {
    transform: translateX(3px) rotate(-15deg);
}

.subscribe-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.subscribe-btn:hover .btn-glow {
    left: 100%;
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.privacy-note i {
    color: var(--accent);
}

/* ============================================
   Premium Modern Footer
   ============================================ */
.footer-premium {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 15, 26, 0) 0%, rgba(10, 15, 26, 0.95) 20%, #050810 100%);
    padding-top: 0;
    margin-top: -8rem;
    /* Pull footer up to overlap newsletter */
    overflow: hidden;
    z-index: 10;
}

.footer-wave {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
    transform: translateY(2px);
    /* Ensure no gap at bottom of wave */
}

.footer-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-glow-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.footer-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(13, 79, 60, 0.5);
    top: 10%;
    left: 5%;
    animation: footerOrbFloat 10s ease-in-out infinite;
}

.footer-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(6, 182, 212, 0.25);
    bottom: 20%;
    right: 10%;
    animation: footerOrbFloat 12s ease-in-out infinite reverse;
}

.footer-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(45, 212, 191, 0.2);
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation: footerOrbFloat 15s ease-in-out infinite;
}

@keyframes footerOrbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

.footer-container-premium {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-top-premium {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer Brand */
.footer-brand-premium {
    max-width: 350px;
}

.footer-logo-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.logo-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon-premium {
    font-size: 2rem;
    color: var(--secondary);
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.logo-ring {
    position: absolute;
    inset: -5px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    animation: logoRingPulse 2s ease-in-out infinite;
}

@keyframes logoRingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text-premium {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-description-premium {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.footer-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.footer-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Footer Links */
.footer-links-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column-premium h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-column-premium h4 i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.footer-column-premium ul {
    list-style: none;
}

.footer-column-premium ul li {
    margin-bottom: 0.75rem;
}

.footer-column-premium ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-column-premium ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.link-dot {
    width: 5px;
    height: 5px;
    background: var(--glass-border);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-column-premium ul li a:hover .link-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* Contact Column */
.contact-list-premium {
    list-style: none;
}

.contact-list-premium li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-info a,
.contact-info span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
}

/* Footer Social Section */
.footer-social-section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.social-links-premium {
    display: flex;
    gap: 0.75rem;
}

.social-link-premium {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
}

.social-link-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link-premium:hover::before {
    opacity: 1;
}

.social-link-premium i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link-premium:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(45, 212, 191, 0.3);
    color: white;
}

.social-link-premium:hover i {
    transform: scale(1.1);
}

.social-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0.35rem 0.75rem;
    background: rgba(10, 15, 26, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-link-premium:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Specific social colors on hover */
.social-link-premium.facebook:hover::before {
    background: linear-gradient(135deg, #1877f2, #3b5998);
}

.social-link-premium.twitter:hover::before {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link-premium.instagram:hover::before {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link-premium.youtube:hover::before {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-link-premium.linkedin:hover::before {
    background: linear-gradient(135deg, #0077b5, #006097);
}

.social-link-premium.telegram:hover::before {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

/* Footer Bottom */
.footer-bottom-premium {
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.copyright strong {
    color: var(--secondary);
}

.made-with-love {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.beating-heart {
    color: #e74c3c;
    animation: heartBeat 1s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }
}

.ummah-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-badge i {
    color: var(--accent);
    font-size: 0.7rem;
}