@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Space+Grotesk:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #e5e5e5;
}

h1, h2, h3, .font-heading {
    font-family: 'Space Grotesk', sans-serif;
}

/* Arabic Font Support */
.font-arabic {
    font-family: 'Noto Sans Arabic', sans-serif;
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #d4d4d4;
}

/* Modal Animation */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
}
.modal.active .modal-content {
    transform: scale(1);
}

/* Custom Scrollbar for Modals */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a; 
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Code Block Styling for Chat */
.prose pre {
    background-color: #1e1e1e !important;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.prose code {
    color: #e0e0e0 !important;
    background-color: transparent !important;
    font-family: monospace;
}

/* Academic Section Styles */
.academic-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.academic-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}
.semester-badge {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}
.subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    color: #e2e8f0;
}
.subject-row:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}
.subject-row span:last-child {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
}
.highlight-subject {
    border-right: 3px solid #60a5fa;
}

/* --- NEW: Filter Tabs Styles --- */
.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Fade Animation for Grid */
@keyframes fadeInGrid {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.grid-animate {
    animation: fadeInGrid 0.4s ease-out forwards;
}