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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #eef2f3, #dbeafe, #bfdbfe);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111;
}

header {
  width: 100%;
  max-width: 1100px;
  margin: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title { font-size: 1.1rem; font-weight: 600; color: #0b2545; }

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.top-nav a {
  text-decoration: none;
  color: #0b2545;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}
.top-nav a:hover,
.top-nav a:focus { background: rgba(59,130,246,0.12); outline: none; }

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  width: 24px; height: 3px; background: #0b2545; border-radius: 3px;
}
.top-nav .mobile { display: none; }

.container { width: 100%; max-width: 1100px; padding: 0 1rem; }

article[data-testid="test-profile-card"]{
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
  color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  margin: 0 auto;
}
article[data-testid="test-profile-card"]:hover { transform: translateY(-4px); }

figure { display:flex; justify-content:center; align-items:center; }
img[data-testid="test-user-avatar"] {
  width: 140px; height:140px; border-radius:50%; object-fit:cover;
  margin-bottom:1rem; border:4px solid #fff;
}

h2[data-testid="test-user-name"] { font-size:1.6rem; margin-bottom:0.5rem; }
p[data-testid="test-user-bio"] { color:#f0f9ff; font-size:1rem; margin-bottom:1rem; line-height:1.5; }

nav[data-testid="test-user-social-links"] { margin-bottom:1rem; }
nav[data-testid="test-user-social-links"] > ul{
  display:flex; gap:10px; list-style:none; justify-content:center; flex-wrap:wrap;
}
nav[data-testid="test-user-social-links"] li a{
  color:#1e3a8a; background:#f8fafc; padding:6px 12px; border-radius:6px;
  text-decoration:none; font-weight:500;
}
nav[data-testid="test-user-social-links"] li a:hover { background:#bfdbfe; }

/* --- Hobbies & Dislikes --- */
.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  /* width: 100%; */
  margin-top: 0.5rem;
}
.sections section {
  flex: 1 1 45%;
  background: rgba(255,255,255,0.15);
  border-radius:10px;
  padding:1rem;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
  min-width: 250px;
}
.sections h3 { color:#fff; margin-bottom:0.5rem; font-size:1.1rem; }
.sections ul { list-style:none; color:#e0e7ff; font-size:0.95rem; }

.card-buttons { display:flex; gap:10px; margin-top:1rem; justify-content:center; }
.card-buttons a {
  background:#f8fafc; color:#1e3a8a; padding:8px 16px; border-radius:6px;
  text-decoration:none; font-weight:600;
}
.card-buttons a.outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.3); color:#fff;
}

.date-section { font-size:0.85rem; color:#f1f5f9; margin-top:1rem; }

#contact {
  width: 100%; max-width: 900px; margin: 1.5rem auto;
  border-radius: 12px; padding: 1.75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  background: #ffffff; color: #0b2545;
}
#contact h2 { color: #1e3a8a; margin-bottom:0.75rem; }
#contact form { display:flex; flex-direction:column; gap:0.75rem; }
#contact input, #contact textarea {
  padding:10px; border-radius:8px; border:1px solid #d1d5db;
  font-family:inherit;
}
#contact button {
  margin-top:0.5rem; padding:10px 14px;
  background:#1e3a8a; color:#fff; border:none;
  border-radius:8px; cursor:pointer; font-weight:600;
}
.error { color:#b91c1c; font-size:0.9rem; min-height:1rem; }
.success { color:#065f46; font-weight:600; }


/* About Page Container */
.about-container {
max-width: 900px;
margin: 2rem auto;
background: #fff;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-container h1 {
text-align: center;
margin-bottom: 1.5rem;
font-size: 2rem;
color: #1f2937;
}

/* Each Section */
.about-section {
margin-bottom: 2rem;
}

.about-section h2 {
color: #0c0c0c;
font-size: 1.3rem;
margin-bottom: 0.6rem;
}

.about-section p,
.about-section ul {
color: #4b5563;
font-size: 1rem;
line-height: 1.8;
}

.about-section ul {
list-style: disc;
margin-left: 1.5rem;
}

footer { text-align:center; margin:2rem 0; color:#0b2545; }

@media (min-width: 768px) {
  article[data-testid="test-profile-card"] {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  figure { flex: 0.4; }
  .content { flex: 0.6; }
  .sections { flex-direction: row; }
  img[data-testid="test-user-avatar"] { width:160px; height:160px; margin-bottom:0; }
}

@media (max-width: 767px) {
  header { padding: 0.5rem 1rem; }
  .menu-toggle { display:flex; }
  .top-nav ul.desktop { display:none; }
  .top-nav .mobile { display:none; flex-direction:column; gap:0.5rem; }
  .card-buttons { flex-direction:column; }
  .card-buttons a { width:100%; text-align:center; }
  .top-nav .mobile.active { display:flex; }
}