@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6f42c1;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(224, 231, 255, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(224, 231, 255, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
    transition-delay: 0.1s;
}

.section-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 1.875rem; /* 30px */
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    color: #1e3a8a;
}

.section-content {
    color: #374151;
    line-height: 1.8;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.custom-table th,
.custom-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: right;
}

.custom-table th {
    background-color: #f9fafb;
    font-weight: 700;
    color: #1f2937;
}

.custom-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.tech-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.tech-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

#nav-sidebar {
    width: 224px;
}

#nav-sidebar.open {
    transform: translateX(0);
}

#nav-links a {
    display: block;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #4b5563;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

#nav-links a:hover {
    background-color: #eef2ff;
    color: #312e81;
}

#nav-links a.active {
    background-color: #e0e7ff;
    color: #1e3a8a;
    font-weight: 700;
    border-right-color: var(--primary-color);
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }
  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

.animate-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
