#rafik-pic {
  width: 50px;
}
#home-div {
  display: flex;
  direction: row;
  justify-content: flex-start;
  align-items: center;
}

.inline-link {
  display: inline !important;
  font-weight: bold !important;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  /* background: linear-gradient(90deg, #c5ebaa, #a5dd9b); */
}

.navbar-custom {
  background: linear-gradient(90deg, #86ac7f, #a5dd9b) !important;
}

#automatic-loading-container {
  width: 100%;
}
.doc-article {
  background: white;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  padding: 10px;
  margin: 10px;
  width: 100%;
}

.circular--square {
  border-radius: 50%;
}

figure {
  width: 100%;
  height: 100%;
  margin: auto;
  background: #fff;
  border: solid 1px gray;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  margin-bottom: 1;
}

figure > img {
  max-width: 100%;
}
figcaption {
  background: #86ac7f;
  color: #fff;
  width: 100%;
  height: 20%;
  text-align: center;
  padding: 5px;
}

/* Home */
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", sans-serif;
}

body {
  color: #333;
  background-color: #f4f4f9;
}

.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #333, #555);
  color: #fff;
  text-align: center;
  padding: 10rem 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
}

.hero-button {
  padding: 0.8rem 2rem;
  border: none;
  color: #fff;
  background-color: #218838;
  border-radius: 25px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #1b6d32;
}

/* About Section */
.about,
.projects,
.contact {
  padding: 4rem 0;
  text-align: center;
}

.about h2,
.projects h2,
.contact h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

/* Project Grid */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

/* Project Card Styling */
.project-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 350px;
}

.project-card:hover {
  transform: translateY(-10px);
}

/* Project Image */
.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image {
  opacity: 0.9;
}

/* Project Title and Description */
.project-card h3 {
  font-size: 1.5rem;
  color: #218838;
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
}

.project-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 1rem 1rem;
  flex-grow: 1;
}

/* Project Button */
.project-button {
  display: inline-block;
  margin: 1rem;
  padding: 0.5rem 1.5rem;
  background-color: #218838;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-button:hover {
  background-color: #1b6d32;
}

/* Technology Pills */
.tech-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  color: white;
  font-weight: bold;
}

/* Specific Tech Colors */
.tech-pill-js {
  background-color: #f7df1e;
  color: #333;
}

.tech-pill-react {
  background-color: #61dafb;
  color: #333;
}

.tech-pill-django {
  background-color: #092e20;
}

/* Contact Section */
.contact-link {
  font-size: 1.1rem;
  color: #218838;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border: 1px solid #218838;
  border-radius: 25px;
  transition: color 0.3s, background-color 0.3s ease;
}

.contact-link:hover {
  color: #fff;
  background-color: #218838;
}

.linkedin-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  transition: transform 0.2s;
}
.linkedin-icon:hover {
  transform: scale(1.1);
}
