/* ==================== BASE RESET ==================== */
:root {
  --primary: #0070f3;
  --text-dark: #1f2937;
  --text-light: #ffffff;
  --bg-light: #f9fbfe;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
}



/* ==================== NAVBAR ==================== */

/* ==================== MAIN PROFILE CONTAINER ==================== */
.profile-container {
  max-width: 90%;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}


/* PROFILE PREVIEW CARD */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}
.profile {
  position: relative;
  width: 300px;
  height: 350px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.profile:hover .overlay {
  opacity: 1;
}
.overlay .about h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.overlay .about span {
  font-size: 1rem;
  color: #ccc;
}
.social-icons {
  display: flex;
  margin-top: 1.2rem;
  list-style: none;
  padding: 0;
  gap: 12px;
}
.social-icons li {
  width: 40px;
  height: 40px;
  border: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.social-icons li:hover {
  background: #fff;
  color: #000;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .profile {
    width: 260px;
    height: 300px;
  }
  .overlay .about h4 {
    font-size: 1.3rem;
  }
  .social-icons li {
    width: 36px;
    height: 36px;
  }
}



/* Edit Profile Section */
.edit-section {
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.edit-section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  color: #333;
}

.edit-section label {
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
  color: #333;
}

.edit-section input[type="text"],
.edit-section input[type="email"],
.edit-section input[type="tel"],
.edit-section input[type="url"],
.edit-section input[type="number"],
.edit-section input[type="date"],
.edit-section textarea,
.edit-section input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  margin-top: 6px;
  transition: border 0.3s ease;
}

.edit-section input:focus,
.edit-section textarea:focus {
  border-color: #007bff;
  outline: none;
}

.edit-section textarea {
  resize: vertical;
  min-height: 80px;
}

.edit-section button {
  margin-top: 20px;
  width: 100%;
  background-color: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.edit-section button:hover {
  background-color: #0056b3;
}

/* Responsive Grid for Large Screens */
@media (min-width: 768px) {
  .edit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .edit-section h2 {
    grid-column: span 2;
  }

  .edit-section label {
    margin-bottom: 10px;
  }

  .edit-section button {
    grid-column: span 2;
  }
}





/* ==================== HEADER CARD ==================== */
.header-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: linear-gradient(to right, #ebf8ff, #e0f2fe);
  padding: 2rem;
  border-radius: 0.6rem;
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.1);
  gap: 2rem;
}

.header-card img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  border: 0.25rem solid #0386e3;
  transition: transform 0.3s ease-in-out;
}

.header-card img:hover {
  transform: scale(1.05);
}

.header-info {
  flex: 1;
}

.header-info h2 {
  font-size: 1.625rem;
  margin-bottom: 0.5rem;
  color: #163a79;
}

.header-info p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

#star-rating {
  font-size: 1.2rem;
}


/* ==================== BUTTONS ==================== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn.primary {
  background: #007bff;
  color: #fff;
}

.btn:not(.primary) {
  background: #e0e0e0;
  color: #333;
}

.btn:hover {
  background: #0056b3;
  color: #fff;
}


/* ==================== CARD SECTION ==================== */
.card {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  padding: 1.8rem;
  border-radius: 0.6rem;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
}


/* ==================== FORM GRID ==================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  }
}

.form-grid label {
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  color: #444;
}

.form-grid input,
.form-grid textarea {
  margin-top: 0.4rem;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #007bff;
  outline: none;
}


/* ==================== PREVIEW GRID ==================== */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  }
}

.preview-box {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}


/* ==================== PROFILE COMPLETENESS BAR ==================== */
#profile-completeness {
  margin-top: 1rem;
}

#progress-fill {
  height: 0.75rem;
  width: 0%;
  background: #28a745;
  transition: width 0.6s ease;
  border-radius: 0.375rem;
}

#profile-completeness label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}


/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  html {
    font-size: 90%;
  }


  .header-card {
    flex-direction: column;
    text-align: center;
  }

  .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 87.5%;
  }

  .header-card img {
    width: 6.5rem;
    height: 6.5rem;
  }

  .header-info h2 {
    font-size: 1.3rem;
  }

}
