@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    background: #f5f7fa;
    color: #222;
    min-height: 100vh;
    direction: rtl;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    padding: 1.2rem 0 1rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 18px 18px;
    transition: box-shadow 0.2s;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #00bcd4 0%, #ff9800 100%);
    border-image-slice: 1;
}
.main-title {
    text-align: center;
    font-size: 2.1rem;
    color: #1a237e;
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #607d8b;
    margin-bottom: 0.2rem;
    font-weight: 400;
}

/* Personal Info Section */
.personal-info {
    background: #fff;
    padding: 1.5rem 1rem 1.2rem 1rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.06);
    text-align: center;
}
.personal-info h2 {
    color: #1a237e;
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.personal-info p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 0.3rem;
}
.skills {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.7rem;
    margin-top: 0.7rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #bbdefb #f5f7fa;
    padding-bottom: 0.3rem;
}
.skills::-webkit-scrollbar {
    height: 6px;
}
.skills::-webkit-scrollbar-thumb {
    background: #bbdefb;
    border-radius: 10px;
}
.skill-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    border: 1px solid #bbdefb;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    white-space: nowrap;
}
.skill-tag:hover {
    background: #1976d2;
    color: #fff;
    transform: scale(1.08);
}

/* Purpose Section */
.purpose {
    background: #fff;
    padding: 1.5rem 1rem 1.2rem 1rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.06);
}
.purpose h2 {
    color: #1a237e;
    margin-bottom: 0.7rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}
.purpose ul {
    list-style: none;
    padding: 0;
}
.purpose li {
    background: #f8fafc;
    margin: 0.4rem 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border-right: 4px solid #00bcd4;
    font-size: 1.05rem;
    color: #333;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.03);
}
.purpose li:before {
    content: "✔ ";
    color: #00bcd4;
    font-weight: bold;
}

/* Tools Section */
.tools-section {
    margin-bottom: 2rem;
}
.tools-section h2 {
    text-align: center;
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.tool-card {
    background: #fff;
    padding: 1.5rem 1rem 1.2rem 1rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-top: 4px solid #00bcd4;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: cardFadeIn 0.7s cubic-bezier(.39,.58,.57,1) forwards;
}
.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.13s; }
.tool-card:nth-child(3) { animation-delay: 0.21s; }
.tool-card:nth-child(4) { animation-delay: 0.29s; }
.tool-card:nth-child(5) { animation-delay: 0.37s; }
.tool-card:nth-child(6) { animation-delay: 0.45s; }
@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.06);
    box-shadow: 0 12px 32px rgba(0, 188, 212, 0.18);
    border-top: 4px solid #ff9800;
    z-index: 2;
}
.tool-icon {
    font-size: 2.7rem;
    margin-bottom: 0.7rem;
    display: block;
}
.excel-card .tool-icon { color: #43a047; }
.sql-card .tool-icon { color: #1976d2; }
.powerbi-card .tool-icon { color: #ff9800; }
.python-card .tool-icon { color: #7b1fa2; }
.tool-card h3 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 0.7rem;
    font-weight: 700;
}
.tool-card p {
    color: #666;
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
}
.tool-link {
    display: inline-block;
    background: linear-gradient(90deg, #00bcd4 60%, #1976d2 100%);
    color: #fff;
    padding: 0.7rem 1.7rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
}
.tool-link:hover {
    background: linear-gradient(90deg, #ff9800 60%, #1976d2 100%);
    color: #fff;
}

/* Divider between sections */
.section-divider {
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #00bcd4 0%, #ff9800 100%);
    border: none;
    margin: 2.2rem 0 2rem 0;
    border-radius: 2px;
    opacity: 0.18;
}

/* Footer */
.footer {
    background: #fff;
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 18px 18px 0 0;
    text-align: center;
    box-shadow: 0 -2px 12px rgba(44, 62, 80, 0.07);
    margin-top: 2rem;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    color: #1976d2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.7rem;
    transition: transform 0.2s, background 0.2s, color 0.2s;
    border: 1.5px solid #bbdefb;
    box-shadow: 0 1px 6px rgba(44, 62, 80, 0.04);
    padding: 0;
}
.social-link i {
    font-size: 1.3em;
    margin: 0;
}
.social-link.linkedin {
    background: #eaf4fb;
    color: #0077b5;
    border-color: #b3d6ec;
}
.social-link.facebook {
    background: #f0f4ff;
    color: #1877f3;
    border-color: #b3c7ec;
}
.social-link.github {
    background: #f5f5f5;
    color: #222;
    border-color: #d1d5db;
}
.social-link.instagram {
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 60%, #6228d7 100%);
    color: #fff;
    border: none;
}
.social-link:hover {
    transform: scale(1.13);
    filter: brightness(1.08);
    color: #fff;
}
.social-link.linkedin:hover { background: #0077b5; }
.social-link.facebook:hover { background: #1877f3; }
.social-link.github:hover { background: #222; }
.social-link.instagram:hover { background: linear-gradient(135deg, #ee2a7b 0%, #f9ce34 100%); }
.social-link span {
    display: none;
}
.footer-message {
    color: #607d8b;
    font-size: 1.05rem;
    margin-top: 0.7rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 0 4px;
    }
    .main-title {
        font-size: 1.3rem;
    }
    .header {
        padding: 0.7rem 0 0.7rem 0;
    }
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .tool-card {
        padding: 1.1rem 0.5rem 1rem 0.5rem;
    }
    .tool-link {
        width: 100%;
        font-size: 1.05rem;
        padding: 0.9rem 0;
    }
    .skills {
        gap: 0.5rem;
        padding-bottom: 0.2rem;
        font-size: 0.9rem;
    }
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.35rem 0.8rem;
    }
    .footer {
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    }
    .personal-info, .purpose {
        padding: 1rem 0.5rem 0.7rem 0.5rem;
    }
    .social-links {
        gap: 1.1rem;
    }
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    .social-link span {
        font-size: 1.1em;
    }
} 

.skills-center {
    justify-content: center !important;
} 

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.3rem;
    margin: 2rem 0 1.5rem 0;
}
.resource-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
    padding: 1.2rem 1rem 1rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.18s, box-shadow 0.18s;
    border-top: 4px solid #00bcd4;
    position: relative;
    min-height: 120px;
}
.resource-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.13);
    border-top: 4px solid #ff9800;
    z-index: 2;
}
.resource-icon {
    font-size: 2.2rem;
    margin-top: 0.2rem;
    min-width: 2.2rem;
    text-align: center;
}
.resource-card.excel .resource-icon { color: #43a047; }
.resource-card.powerbi .resource-icon { color: #ff9800; }
.resource-card.sql .resource-icon, .resource-card.sqlserver .resource-icon { color: #1976d2; }
.resource-card.python .resource-icon { color: #7b1fa2; }
.resource-card.bootcamp .resource-icon { color: #00bcd4; }
.resource-card.channel .resource-icon { color: #ff9800; }
.resource-link {
    display: inline-block;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, #00bcd4 60%, #1976d2 100%);
    color: #fff;
    padding: 0.5rem 1.3rem;
    border-radius: 18px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 1px 6px rgba(25, 118, 210, 0.07);
}
.resource-link:hover {
    background: linear-gradient(90deg, #ff9800 60%, #1976d2 100%);
    color: #fff;
}
.resource-card h3 {
    font-size: 1.08rem;
    color: #1a237e;
    margin-bottom: 0.2rem;
    font-weight: 700;
}
@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .resource-card {
        padding: 0.8rem 0.5rem 0.7rem 0.5rem;
        min-height: 90px;
    }
    .resource-icon {
        font-size: 1.5rem;
        min-width: 1.5rem;
    }
    .resource-link {
        font-size: 0.98rem;
        padding: 0.7rem 0.5rem;
    }
} 

/* كروت عصرية للصفحات الفرعية */
.tool-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.course-card.modern-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.10), 0 1.5px 6px 0 rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1.2rem 1rem;
  transition: box-shadow 0.2s;
  margin-bottom: 0.5rem;
}
.course-card .course-thumb {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
}
.course-card .course-info {
  text-align: center;
}
.course-card .course-info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  color: #1a237e;
}

.cards-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.info-card {
  background: #f7f8fa;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(30,60,120,0.07);
  padding: 1.2rem 1.1rem 1.1rem 1.1rem;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover {
  box-shadow: 0 6px 24px 0 rgba(30,60,120,0.13);
  transform: translateY(-4px) scale(1.03);
}
.info-card h3 {
  color: #0d47a1;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.info-card ul {
  margin: 0 0 0.2rem 0;
  padding: 0 0 0 1.1rem;
  font-size: 1rem;
}
.info-card li {
  margin-bottom: 0.3rem;
}

.back-link {
  display: inline-block;
  margin: 2.5rem auto 0 auto;
  background: #1a237e;
  color: #fff;
  padding: 0.7rem 2.2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 10px 0 rgba(30,60,120,0.10);
  transition: background 0.2s, box-shadow 0.2s;
  text-align: center;
}
.back-link:hover {
  background: #3949ab;
  box-shadow: 0 6px 24px 0 rgba(30,60,120,0.13);
}

@media (max-width: 700px) {
  .tool-detail-grid {
    gap: 1.2rem;
    padding: 0 0.5rem;
  }
  .cards-section {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .info-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .course-card.modern-card {
    padding: 1rem 0.3rem 1rem 0.3rem;
  }
}

/* تحسين زر العودة للرئيسية في صفحة المصادر أيضًا */
.resources-grid + .back-link {
  margin-top: 2.5rem;
} 