:root {
  --card-bg: #ffffff;
  --text-color: #222;
  --accent-color: #0077ff;
  --border-radius: 1rem;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  font-family: system-ui, sans-serif;
  background-color: #f4f6f8;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Main content wrapper - Account for fixed header */
main {
  padding: 2rem 1rem;
  padding-top: 6rem; /* Add top padding to account for fixed header */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.profile-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.profile-avatar {
  flex-shrink: 0;
  text-align: center;
  padding: 1rem;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.profile-content {
  padding: 1rem 1.5rem;
}

.profile-content header h2 {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--accent-color);
}

.bio {
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
  font-size: 12px;

}

.time {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.social-links a {
  text-decoration: none;
  background: var(--accent-color);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
  background: #005bb5;
  outline: none;
}

section h3 {
  margin-bottom: 0.5rem;
}

 
.dislikes-heading{
    font-size: 12px;
}
.hobbies-heading{
    font-size: 12px;
}
.lists{
    font-size: 12px;
}

/* Navigation styles - Always visible header */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 1rem 2rem;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: fixed; /* Changed from sticky to fixed for guaranteed visibility */
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* Maximum z-index to ensure it's always on top */
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  /* Fallback for browsers that don't support backdrop-filter */
  background: var(--card-bg);
  will-change: transform;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}


.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent-color);
  color: #fff;
  outline: none;
}

.main-nav a[aria-current="page"] {
  background: var(--accent-color);
  color: #fff;
}

/* Contact page styles */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-section h1 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-section header p {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.submit-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center;
  min-width: 150px;
}

.submit-btn:hover,
.submit-btn:focus {
  background: #005bb5;
  outline: none;
}

.submit-btn:active {
  transform: translateY(1px);
}

/* About page styles */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.about-section h1 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.about-section header p {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.about-section section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.about-section h3 {
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.about-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-section ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.about-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.about-section blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.about-section blockquote p {
  margin: 0;
}

/* Responsive layout */
@media (min-width: 700px) {
  .profile-card {
    flex-direction: row;
    align-items: center;
  }

  .profile-avatar {
    padding: 2rem;
  }

  .profile-content {
    flex: 1;
    padding: 2rem;
  }
  
  .main-nav {
    padding: 1rem 3rem;
  }
  
  .contact-section,
  .about-section {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: row;
    gap: 1rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  main {
    padding: 1rem 0.5rem;
    padding-top: 5rem; /* Adjust for mobile header height */
    min-height: calc(100vh - 60px);
  }
  
  .contact-section,
  .about-section {
    padding: 1.5rem;
    margin: 0;
  }
}
