/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  color: #a12323;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(to bottom right, #ffffff, #ffe5e5);
  padding: 1rem;
  transition: background 0.3s ease;
}


.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #a12323;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
  transform: rotate(20deg);
  background: #c63535;
}


.profile-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 800px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  animation: fadeSlideIn 0.8s ease forwards;
  transform: translateY(20px);
  width: 100%;
}


.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: linear-gradient(145deg, #e83b3b, #fbd6d6);
}


.avatar-container {
  position: relative;
}

.avatar-ring {
  background: conic-gradient(from 180deg at 50% 50%, #c63535, #f5bcbc, #c63535);
  border-radius: 50%;
  padding: 5px;
  display: inline-block;
  animation: spin 6s linear infinite;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  border: 3px solid white;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.avatar:hover {
  transform: scale(1.08) rotate(-2deg);
}

.avatar-caption {
  font-style: italic;
  color: #a12323;
  margin-top: 8px;
  font-size: 0.9rem;
}


.profile-info {
  text-align: center;
  margin-top: 20px;
}

.user-name {
  font-size: 2rem;
  font-weight: 700;
  color: #a12323;
  margin-bottom: 10px;
}

.user-bio {
  font-size: 1.05rem;
  color: #c44a4a;
  margin-bottom: 14px;
  line-height: 1.6;
}

.current-time {
  background: #fff7f7;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #f1b1b1;
  font-family: 'Courier New', monospace;
  color: #a12323;
}


.social-links {
  padding: 20px 30px;
  background: #fafafa;
}

.social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
}

.social-link {
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  color: #a12323;
  text-decoration: none;
  border: 1.5px solid #c63535;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #c63535;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(198, 53, 53, 0.3);
}


.hobbies-section,
.dislikes-section {
  padding: 30px 35px;
  border-top: 1px solid #f3b4b4;
  background: #fff;
  position: relative;
}

.hobbies-section h3,
.dislikes-section h3 {
  font-size: 1.4rem;
  color: #a12323;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}


.chip {
  background: linear-gradient(135deg, #ffe5e5, #ffffff);
  border: 1px solid #f0a2a2;
  color: #a12323;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  box-shadow: 0 2px 5px rgba(161, 35, 35, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}


.chip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(161, 35, 35, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.chip:hover::after {
  width: 220%;
  height: 220%;
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(161, 35, 35, 0.15);
  background: linear-gradient(135deg, #fff3f3, #ffeaea);
}


.dislikes-section {
  border-top: 2px dashed #d46a6a;
  background: #fff9f9;
}

.dislikes-section .chip {
  background: linear-gradient(135deg, #ffe6e6, #fffafa);
  border-color: #e37c7c;
  color: #9b1c1c;
}

.dislikes-section .chip:hover {
  background: linear-gradient(135deg, #fff1f1, #ffe2e2);
  box-shadow: 0 5px 12px rgba(155, 28, 28, 0.15);
}


@media (max-width: 600px) {
  .hobbies-section,
  .dislikes-section {
    padding: 20px 20px;
  }
  .chip {
    font-size: 0.85rem;
    padding: 7px 12px;
  }
}


@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}


@media (min-width: 768px) {
  .profile-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .avatar-container {
    flex: 0 0 160px;
    margin-right: 20px;
  }

  .profile-info {
    flex: 1;
    text-align: left;
  }
}


body.dark-mode {
  background: #0b0b0b;
  color: #f1f1f1;
}

body.dark-mode .profile-card {
  background: #1a1a1a;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle {
  background: #f5bcbc;
  color: #c63535;
}
