
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #f3f4f6;
  display: flex;
  flex-direction: column; /* Stack navbar on top, content below */
  align-items: center;    /* Center content horizontally */
  min-height: 100vh;
}

/* Navigation Bar Styling */
.navbar {
  width: 100%;
  background-color: #1e1e2f; /* dark bluish background */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #00bcd4; /* accent color */
}

/* Responsive behavior */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-links a {
    padding: 5px 0;
  }
}


.profile-card {
  background: #fff;
  margin-top: 40px;
  width: 340px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
}


.card-banner {
  height: 100px;
  background: linear-gradient(120deg, #dbeafe, #e0e7ff);
}


.avatar-container {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
  width: 100px;
  height: 100px;
  border: 4px solid #fff;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.follow-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #f9fafb;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.follow-btn:hover {
  background-color: #e5e7eb;
}

.follow-btn:active {
  transform: scale(0.96);
}

.profile-info {
  padding: 70px 20px 10px;
  text-align: center;
}

.user-name {
  font-size: 1.3rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.user-bio {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.exp-bar {
  background-color: #e5e7eb;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px auto 12px;
  max-width: 160px;
}

.exp-bar .bar {
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399);
}


.user-time {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 6px;
}


.social-links ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover img {
  transform: scale(1.15);
  opacity: 0.85;
}

.stats {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.stats div {
  text-align: center;
}

.stats strong {
  display: block;
  font-weight: 600;
}

section {
  padding: 10px 20px;
}

section h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

section ul {
  list-style: disc;
  padding-left: 20px;
  text-align: left;
  color: #4b5563;
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .profile-card {
    width: 380px;
  }
}
