.profile-page {
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 40px 16px 70px;
  background: #fcf5ee;
  color: var(--text-dark);
}

.profile-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.profile-shell::before,
.profile-shell::after {
  content: "";
  position: absolute;
  inset: 10% auto auto 10%;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(196, 43, 41, 0.35),
    transparent 60%
  );
  filter: blur(50px);
  z-index: 0;
  animation: pulse 8s infinite alternate;
}

.profile-shell::after {
  inset: auto 10% 10% auto;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.4),
    transparent 60%
  );
  animation-delay: 2s;
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 0.7;
  }
  to {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.glass-card {
  background: rgba(253, 253, 253, 0.95);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.glass-card:nth-of-type(2) {
  animation-delay: 0.15s;
}

.glass-card:nth-of-type(3) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  background: var(--gradient-secondary);
  padding: 4px;
  box-shadow: 0 10px 35px rgba(196, 43, 41, 0.35);
  animation: float 6s ease-in-out infinite;
}

.avatar-square {
  width: 100%;
  height: 100%;
  background: #1e7e34;
  border: 3px solid var(--brand-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initial {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.profile-text h1 {
  font-size: 2rem;
  margin: 0 0 8px;
  color: var(--text-dark);
}

.profile-text p {
  margin: 0 0 16px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.1rem;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.info-item {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.info-item strong {
  color: var(--brand-primary);
  margin-left: 8px;
}

.progress-track {
  margin-top: 24px;
}

.progress-track span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-primary);
  animation: grow 2.5s ease forwards;
}

@keyframes grow {
  from {
    width: 0;
  }
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.rating-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.rating-stars .fa-star {
  font-size: 1.3rem;
  color: #d1d5db;
}

.rating-stars .fa-star.filled {
  color: #fbbf24;
}

.section-title {
  margin: 0 0 18px;
  font-size: 1.4rem;
  color: var(--text-dark);
}


.project-card {
  background: rgba(0, 0, 0, 0.015);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, transform 0.2s;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.6s ease both;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-card:nth-child(5) {
  animation-delay: 0.5s;
}

.project-card:nth-child(6) {
  animation-delay: 0.6s;
}

.project-card:hover {
  border-color: rgba(196, 43, 41, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card-header {
  background: #374151;
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.card-action-btn {
  background: transparent;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.project-preview {
  width: 100%;
  height: 200px;
  margin: 0;
  overflow: hidden;
  background: #f3f4f6;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-preview img {
  transform: scale(1.05);
}

.project-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.project-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.project-browse-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
}

.project-browse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 43, 41, 0.3);
}

@media (max-width: 768px) {
  .profile-page {
    padding: 24px 12px 40px;
  }

  .glass-card {
    padding: 22px;
  }

  .profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
