/*
* This file has been refactored to use the global variables
* defined in style/main.css.
*
* NOTE: .enterance and .pagination are duplicated components.
*/

/* ========================================= */
/* Main Elements */
/* ========================================= */

/* ===== Page Layout ===== */
.developer-page {
  padding: 60px 10%;
  font-family: "Poppins", sans-serif;
  background-color: var(--color-gray-page-bg); /* Refactored */
  color: var(--color-font-dark); /* Refactored */
}

/* ===== Header Section ===== */
.developer-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: var(--color-white); /* Refactored */
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 60px;
}

.developer-info {
  flex: 1 1 350px;
}

.developer-info h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--color-font-dark-alt); /* Refactored */
}

.developer-info p {
  font-size: 1rem;
  color: var(--color-font-mid-gray); /* Refactored */
  line-height: 1.6;
}

.developer-logo {
  flex: 0 0 200px;
  text-align: center;
}

.developer-logo img {
  width: 180px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== Projects Section ===== */
.developer-projects {
  margin-top: 40px;
}

.developer-projects h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--color-font-dark-alt); /* Refactored */
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: var(--color-white); /* Refactored */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.2rem;
  margin: 15px;
  color: var(--color-font-dark-gray); /* Refactored */
}

.project-card p {
  font-size: 0.95rem;
  color: var(--color-gray-text); /* Refactored */
  margin: 0 15px 20px 15px;
  line-height: 1.5;
}


/* ------------------------------------------ */
.company-page {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 2rem;
  background-color: var(--color-white); /* Refactored */
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.company-header {
  text-align: center;
  margin-bottom: 2rem;
}

.company-header h1 {
  color: var(--color-black); /* Refactored */
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.company-header h2 {
  color: var(--color-gray-text); /* Refactored */
  font-size: 1.2rem;
  font-weight: 400;
}

section {
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.project-card h3,
.ownership h3,
.company-values h3 {
  color: var(--color-black); /* Refactored */
  margin-bottom: 1rem;
}

/* RTL Direction (Arabic) */
html[dir="rtl"] .project-card h3,
html[dir="rtl"] .ownership h3,
html[dir="rtl"] .company-values h3 {
  border-left: none;
  padding-left: 0;
  border-right: 4px solid var(--color-brand-primary); /* Refactored */
  padding-right: 8px;
}

/* LTR Direction (English) */
html[dir="ltr"] .project-card h3,
html[dir="ltr"] .ownership h3,
html[dir="ltr"] .company-values h3 {
  border-right: none;
  padding-right: 0;
  border-left: 4px solid var(--color-brand-primary); /* Refactored */
  padding-left: 8px;
}


.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-item {
  background: var(--color-item-bg-light); /* Refactored */
  border-radius: 6px;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  background: var(--color-item-bg-hover); /* Refactored */
}

.project-item h4 {
  color: var(--color-item-text); /* Refactored */
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.other-projects {
  list-style: square;
  padding-right: 1.2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .developer-header {
    flex-direction: column;
    text-align: center;
  }

  .developer-logo img {
    width: 200px;
  }

  .company-page {
    padding: 1rem;
    width: 90%;
  }
  h1 {
    font-size: 1.5rem;
  }
}