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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #a8d5e2 0%, #e8c5d8 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #333;
}

/* ===== Fixed Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin-left: 4px;
  margin-right: 4px;
  padding: 5px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin-top: 4px;
  padding-top: 5px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: #007bff;
}

/* Add top padding to main so navbar doesn’t overlap */
main {
  padding-top: 5px;
  margin-top: 100px;
}

/* ===== Responsive Navbar ===== */
@media (max-width: 600px) {
  .nav-links {
    gap: 1rem;
  }
  .logo {
    font-size: 1.1rem;
    padding-top: 5px;
  }
}


main {
  width: 100%;
  max-width: 900px;
}

/* Profile Card Styles  */

.profile-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: white;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-content {
  padding: 2rem;
}

header {
  margin-bottom: 1rem;
}

.user-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.time-label {
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.current-time {
  display: inline;
  font-size: 0.875rem;
  color: #1a202c;
  font-family: "Courier New", monospace;
  font-weight: 500;
}

.user-bio {
  font-size: 0.9375rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  margin-bottom: 2rem;
}

.social-links ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1da1f2;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-weight: 500;
}

.social-twitter {
  background: #1da1f2;
}

.social-linkedin {
  background: #0077b5;
}

.social-github {
  background: #333;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links a:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.interests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hobbies h3,
.dislikes h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.hobbies ul,
.dislikes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hobbies li,
.dislikes li {
  padding: 0.5rem 0.75rem;
  background: #f7fafc;
  border-radius: 0.375rem;
  color: #4a5568;
  border-left: 3px solid #667eea;
  font-size: 0.9375rem;
}

.dislikes li {
  border-left-color: #f56565;
}

.user-name,
.user-bio,
.hobbies li,
.dislikes li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive layout for profile card */
@media (min-width: 768px) {
  .logo{
    padding-top: 8px;
  }

  .profile-card {
    flex-direction: row;
  }

  .avatar-container {
    flex-shrink: 0;
    width: 280px;
    padding: 2.5rem 2rem;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .profile-content {
    flex: 1;
    padding: 2.5rem;
  }

  .interests {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .user-name {
    font-size: 2rem;
  }

  .user-bio {
    font-size: 1rem;
  }
}


/* contact and about styles */

.container {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 700px;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #222;
}

h2 {
  margin-bottom: 0.75rem;
  color: #2d3748;
}

section {
  margin-bottom: 8px;
}

p,
li {
  color: #4a5568;
}

ul {
  list-style: disc inside;
  margin-left: 1rem;
}

/* Form */
.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #1a202c;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn {
  background: #667eea;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  width: 100%;
  margin-top: 0.5rem;
}

.btn:hover {
  background: #5a67d8;
}

.error {
  color: #e53e3e;
  font-size: 0.9rem;
  height: 1rem;
}

.success {
  color: #38a169;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* Responsive layout */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }
  h1 {
    font-size: 1.5rem;
  }
}
