/* ================================
   PROFILE COMPONENTS STYLES
   ================================ */

/* === PROFILE SECTION === */
.profile-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
}

/* === PROFILE IMAGE === */
.profile-image-container {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: var(--gradient);
  padding: 4px;
  box-shadow: 0 10px 30px var(--shadow-heavy),
    0 0 0 1px rgba(242, 242, 247, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.profile-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-heavy),
    0 0 0 1px rgba(242, 242, 247, 0.2), 0 0 30px rgba(242, 242, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.3;
  filter: blur(20px);
  z-index: 1;
  transition: all 0.4s ease;
}

.profile-image-container:hover .profile-image-glow {
  opacity: 0.5;
  filter: blur(25px);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Animation for profile image */
@keyframes profileFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.profile-image-container {
  animation: profileFloat 6s ease-in-out infinite;
}

.profile-image-container:hover {
  animation-play-state: paused;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .profile-image-glow {
    width: 170px;
    height: 170px;
  }

  .name-title-component .content h1.title {
    font-size: 2.5rem;
  }

  .name-title-component .content .subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 120px;
    height: 120px;
  }

  .profile-image-glow {
    width: 140px;
    height: 140px;
  }

  .profile-section {
    gap: 20px;
  }
}

/* === ACCESSIBILITY === */
.profile-image:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .profile-image-container {
    animation: none;
  }

  .profile-image,
  .profile-image-glow {
    transition: none;
  }
}

.profile-description {
  text-align: center;
  margin: 20px 0;
}

.profile-description .description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  box-shadow: 0 10px 30px var(--shadow-medium);
  flex-shrink: 0;
}

.profile-info {
  text-align: left;
  flex: 1;
  min-width: 300px;
}

.profile-info h1 {
  font-size: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: white;
  background-clip: text;
  margin-bottom: 10px;
}

.profile-info .subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  font-weight: 300;
}

.profile-info .description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* === SOCIAL LINKS === */
.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px 2px var(--accent-color), 0 5px 15px var(--shadow-medium);
}

/* LinkedIn hover */
.social-links a.linkedin:hover {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 0 12px 2px #0a66c2, 0 5px 15px var(--shadow-medium);
}

/* GitHub hover */
.social-links a.github:hover {
  background: #fff;
  color: #181717;
  box-shadow: 0 0 12px 2px #fff, 0 5px 15px var(--shadow-medium);
}

/* Email hover */
.social-links a.email:hover {
  background: #fbbf24;
  color: #fff;
  box-shadow: 0 0 12px 2px #fbbf24, 0 5px 15px var(--shadow-medium);
}

/* WhatsApp hover */
.social-links a.whatsapp:hover {
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 12px 2px #25d366, 0 5px 15px var(--shadow-medium);
}

/* === PROGRESS OVERVIEW === */
.progress-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.overall-progress {
  text-align: center;
}

.progress-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  position: relative;
  background: conic-gradient(#4caf50 0deg 180deg, #e0e0e0 180deg 360deg);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.progress-circle::before {
  content: "";
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: var(--card-bg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.progress-text {
  position: relative;
  z-index: 2;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .profile-info {
    text-align: center;
    min-width: auto;
  }

  .profile-info h1 {
    font-size: 2rem;
  }

  .profile-info .subtitle {
    font-size: 1.2rem;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }

  .social-links {
    justify-content: center;
    gap: 10px;
  }

  .social-links a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .progress-overview {
    flex-direction: column;
    gap: 20px;
  }

  .progress-circle {
    width: 100px;
    height: 100px;
  }

  .progress-circle::before {
    width: 75px;
    height: 75px;
  }

  .progress-text {
    font-size: 1rem;
  }
}

/* === PROGRESS BAR COMPONENT INTEGRATION === */
/* Override progress bar component styles for integration */
.overall-progress .wobbling-element {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
}

.overall-progress #percentageCounter {
  color: #f2f2f7 !important; /* Website accent color */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2em;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(242, 242, 247, 0.5);
}

/* Ensure the progress bar integrates with page layout */
.overall-progress svg {
  filter: drop-shadow(0 0 20px rgba(242, 242, 247, 0.2));
}

/* Additional responsive adjustments */
.overall-progress .wobbling-element svg {
  max-width: 280px;
  height: auto;
}

@media (max-width: 768px) {
  .overall-progress .wobbling-element svg {
    max-width: 200px;
  }
  .overall-progress #percentageCounter {
    font-size: 1.5em;
  }
}
