/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');

:root {
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
}

html[lang="ar"] {
    font-family: var(--font-ar);
}

html[lang="en"] {
    font-family: var(--font-en);
}

/* Base Body Styles */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.7); /* slate-900 with opacity */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
}

.dark ::-webkit-scrollbar-track {
    background: #0f172a; /* slate-900 */
}

::-webkit-scrollbar-thumb {
    background: #3b82f6; /* blue-500 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb; /* blue-600 */
}

/* Animations */
.opacity-0 {
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Skill Progress Bars */
.progress-bar-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dark .progress-bar-container {
    background-color: #334155;
}

.progress-bar-fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 9999px;
    transition: width 1s ease-in-out;
}

/* Timeline specific styles */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #3b82f6;
}

html[dir="rtl"] .timeline-item::before {
    right: 0.5rem;
}

html[dir="ltr"] .timeline-item::before {
    left: 0.5rem;
}

.timeline-dot {
    position: absolute;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: #3b82f6;
    border-radius: 50%;
    border: 3px solid white;
}

html[dir="rtl"] .timeline-dot {
    right: 0.125rem;
}

html[dir="ltr"] .timeline-dot {
    left: 0.125rem;
}

.dark .timeline-dot {
    border-color: #0f172a;
}
