.profil-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  min-width: 320px;
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;

  scrollbar-width: none;
  -ms-overflow-style: none;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);

  opacity: 0;
  animation: popInCentered 0.8s ease-out 0.2s both;
}

.profil-container::-webkit-scrollbar {
  display: none;
}

.profil-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.profil-title {
  font-family: var(--display-font);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s both;
}

.profil-subtitle-main {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease-out both;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 450px;
  justify-self: center;
}

.project-card:nth-child(1) {
  animation-delay: 1.4s;
}
.project-card:nth-child(2) {
  animation-delay: 1.6s;
}
.project-card:nth-child(3) {
  animation-delay: 1.8s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  background: rgba(255, 255, 255, 0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.02);
}

.project-title {
  font-family: var(--display-font);
  font-size: 1.5rem;
  color: #4ecdc4;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.project-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #4ecdc4, #45b7d1);
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
  text-align: left;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: flex-start;
  flex-grow: 1;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.project-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
  background: linear-gradient(135deg, #45b7d1 0%, #4ecdc4 100%);
}

.back-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff9ff3 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease-out 2s both;
  margin-top: 1rem;
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff9ff3 0%, #ff6b6b 100%);
}

@keyframes popInCentered {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .profil-container {
    padding: 1.5rem;
    width: 95%;
  }

  .profil-title {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .profil-container {
    padding: 1rem;
  }

  .profil-title {
    font-size: 1.8rem;
  }

  .project-image {
    height: 160px;
  }
}
