@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
    --emerald-glow: rgba(52, 211, 153, 0.4);
    --violet-glow: rgba(167, 139, 250, 0.4);
}

body {
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #050505;
    color: #e5e7eb;
}

/* Custom Hide Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glow Effects */
.glow-emerald {
    box-shadow: 0 0 20px var(--emerald-glow);
}
.glow-violet {
    box-shadow: 0 0 20px var(--violet-glow);
}

/* Shimmer Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Custom Audio Player Styles */
.audio-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.audio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.3);
}

/* Wave animation */
.wave-bar {
    @apply w-1 bg-violet-400 rounded-full;
    height: 4px;
    transition: height 0.2s ease;
}
.playing .wave-bar {
    animation: wave 1s infinite alternate;
}
@keyframes wave {
    0% { height: 4px; }
    100% { height: 20px; }
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Fade In On Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Frame */
.profile-frame {
    position: relative;
    padding: 8px;
    background: linear-gradient(45deg, #10b981, #8b5cf6);
    border-radius: 50%;
    animation: borderRotate 4s linear infinite;
}
@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.profile-frame::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: inherit;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0.7;
    z-index: -1;
}

/* Section Dividers */
.section-title {
    @apply relative inline-block mb-8 text-3xl font-bold;
}
.section-title::after {
    content: '';
    @apply absolute -bottom-2 left-0 w-1/2 h-1 bg-gradient-to-r from-emerald-500 to-violet-500 rounded-full;
}
[dir="rtl"] .section-title::after {
    @apply left-auto right-0;
}
