/* Custom properties for easier theming (using enhanced aesthetic from previous step) */
:root {
  --primary-color: #046ddd; /* Deep Indigo/Navy */
  --primary-light: #53a5fc; /* Lighter shade for accents */
  --secondary-color: #495057; /* Darker gray for better readability */
  --background-color: #eef2f6; /* Very light, cool background */
  --card-background: #ffffff; /* Crisp White card */
  --border-radius: 18px;
  --box-shadow: 0 8px 25px rgba(29, 74, 127, 0.1), 0 0 5px rgba(0, 0, 0, 0.03);
  --box-shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.12);
  --status-available: #28a745;
  --status-dislike: #dc3545; /* Red for dislikes */
  --font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles and Reset (omitted for brevity, assume previous setup) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--secondary-color);
  padding: 30px;
}
.profile-page-container {
  width: 100%;
  max-width: 700px; /* Wider card for the two-column layout */
}

/* Profile Card Styling */
.profile-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-elevated);
}
.profile-name {
  font-size: 2rem;
  color: #111;
  margin-bottom: 5px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.bio-summary {
  line-height: 1.7;
  color: var(--secondary-color);
  font-style: italic;
  margin-top: 15px;
  margin-bottom: 25px;
}

/* --- HEADER / AVATAR LAYOUT (RESPONSIVENESS CORE) --- */

/* Default (Mobile First): Stacked */
.card-header {
  text-align: center;
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-avatar-figure {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  /* Avatar styling remains the same */
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  padding: 4px;
  background-color: white;
  box-shadow: 0 0 0 6px rgba(29, 74, 127, 0.15);
}
.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.header-text-content {
  text-align: center;
}

/* Current Time Style */
.current-time-display {
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #f0f4f8;
  border-radius: 8px;
  display: inline-block;
}
.time-label {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
}
.time-value {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 5px;
  /* Use monospace font for time for a technical/precise look */
  font-family: monospace;
}

/* Media Query for Tablet/Desktop (Wider Screens) */
@media (min-width: 650px) {
  .card-header {
    display: flex;
    text-align: left; /* Align text content to the left */
    gap: 30px; /* Space between photo and text */
    padding-bottom: 30px;
  }

  .profile-avatar-figure {
    margin: 0; /* Remove auto margins to align left */
    flex-shrink: 0; /* Prevent avatar from shrinking */
  }

  .header-text-content {
    text-align: left; /* Align text within its container */
    flex-grow: 1;
  }

  .current-time-display {
    margin-left: 0;
    display: block; /* Align time display to the left */
    text-align: left;
  }
}

/* --- SECTION STYLES (Hobbies/Dislikes) --- */
.section-title {
  font-size: 1.35rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  margin-top: 15px;
  font-weight: 600;
  position: relative;
  padding-left: 0;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-light);
  border-radius: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}
.social-link {
  /* Aesthetic styling for social links (pill shape, hover effect) */
  text-decoration: none;
  color: var(--primary-color);
  padding: 10px 18px;
  border: 2px solid var(--primary-light);
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  flex-grow: 1;
  text-align: center;
  background-color: var(--card-background);
}

.social-link:hover {
  background-color: var(--primary-light);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  /* Visible focus style for accessibility */
  outline: 3px solid #ffaa00;
  outline-offset: 2px;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}
.skill-item {
  background-color: #e2e8f0;
  color: var(--secondary-color);
  padding: 7px 14px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #d4dbe4;
  word-wrap: break-word; /* Ensure content doesn't break layout */
  max-width: 100%; /* Limit chip width */
}
/* Style Dislikes differently for visual distinction */
.dislikes-list .dislike-item {
  background-color: #ffeaea;
  color: var(--status-dislike);
  border-color: #fdd;
}

/* Card Footer */
.card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 25px;
  margin-top: 25px;
  text-align: center;
}
.last-updated {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .profile-card {
    padding: 30px 20px;
  }
  .social-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- CONTACT FORM SPECIFIC STYLES (Add to style.css) --- */

/* Adapt the main card container for the contact form width */
.contact-page-container {
  max-width: 600px;
}

/* Form Group Styling */
.form-group {
  /* margin-bottom: 20px; */
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--secondary-color);
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 132, 178, 0.3); /* Focus ring effect */
  outline: none;
  background-color: var(--card-background);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

/* Validation and Error States */
.error-message {
  color: var(--status-dislike); /* Reusing the dislike color (red) for errors */
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 1.5em; /* Ensure layout doesn't jump when error appears */
  font-weight: 500;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--status-dislike);
}

/* Success Message Styling */
.success-message {
  background-color: #d4edda; /* Light green */
  color: #155724; /* Dark green text */
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
}

.hidden {
  display: none;
}

.cta-button {
  padding: 12px 15px 12px 15px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
}

.cta-button:hover {
  background-color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

/* ABOUT PAGE */

/* Ensure this rule is present in style.css for list styling */
.goals-list {
  list-style: none;
  display: flex;
  flex-direction: column; /* Stack goals vertically */
  gap: 10px;
  margin-bottom: 0;
}

/* Reusing the skill-item style for lists (like goals/extra thoughts) */
.skill-item {
  background-color: #e2e8f0;
  color: var(--secondary-color);
  padding: 7px 14px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  /* Ensuring full width on individual list items */
  /* width: 100%; */
  box-sizing: border-box;
}

/* Specific styling for the reflective note */
.italic-note {
  font-size: 1.1rem;
  color: var(--primary-color); /* Highlight the note */
  background-color: #f6f8fb; /* Light background for separation */
  padding: 15px;
  border-radius: 10px;
}

/* Ensure the container is wide enough for the text-heavy page */
.about-page-container {
  max-width: 700px;
}

.extra-list li {  
  list-style-type: none;
}
