/* style.css — Inspired by dingsiqin.com */

:root {
  /* Color palette */
  --primary: #001f3f;       /* dark navy */
  --background: #f7f7f7;    /* light gray */
  --text: #333;             /* dark gray */
  --heading: #001f3f;
  --link: #001f3f;
}

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

body {
  font-family: Georgia, serif;
  font-size: 18px;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.7;
  max-width: 1100px;  /* wider content */
  margin: 40px auto;
  padding: 0 40px;
  padding: 0 20px 60px;
}

header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.2rem;
  color: var(--primary);
}

nav {
  margin-top: 10px;
}

nav a {
  margin-right: 20px;
  font-size: 1.1rem;
  color: var(--link);
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

h2, h3 {
  color: var(--heading);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

p, ul {
  margin-bottom: 1.2rem;
}

ul {
  list-style-type: disc;
  margin-left: 1.4rem;
}

footer {
  border-top: 1px solid #ccc;
  padding-top: 20px;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #666;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  body {
    margin: 20px auto;
    padding: 0 10px 40px;
  }
  header h1 {
    font-size: 1.8rem;
  }
  nav a {
    display: block;
    margin: 8px 0;
    font-size: 1rem;
  }
}
/* Profile photo + text layout */
.about {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
}

.profile-photo {
  width: 330px;       /* 1.5x larger portrait */
  height: auto;       /* keeps proportions natural */
  border-radius: 8px; /* optional rounded corners */
  object-fit: cover;  
  flex-shrink: 0;
}

/* Mobile-friendly layout */
@media (max-width: 600px) {
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

.profile-photo {
  width: 160px;   /* larger on phones but not overwhelming */
  height: auto;
  margin-bottom: 10px;
}

/* CV section header with button */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.download-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #001f3f, #004080); /* modern gradient */
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 1.1rem;
  color: #555;
  margin-top: 5px;
  font-style: italic;
}

.contact-info {
  font-size: 0.95rem;
  margin-top: 12px;
  line-height: 1.5;
}

.contact-info a {
  color: var(--link);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.simple-contact {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.simple-contact li {
  margin-bottom: 0.5rem;
}

.simple-contact a {
  color: var(--link);
  text-decoration: none;
}

.simple-contact a:hover {
  text-decoration: underline;
}

/* Additional SEO and accessibility improvements */
main {
  min-height: 60vh;
}

section {
  margin-bottom: 2rem;
}

/* Improve link accessibility */
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Better print styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .download-btn {
    display: none;
  }
  
  nav {
    display: none;
  }
  
  footer {
    display: none;
  }
}

/* Improve mobile navigation */
@media (max-width: 600px) {
  nav {
    text-align: center;
  }
  
  nav a {
    display: inline-block;
    margin: 5px 10px;
    padding: 8px 12px;
    background-color: var(--background);
    border: 1px solid var(--primary);
    border-radius: 4px;
  }
  
  nav a:hover {
    background-color: var(--primary);
    color: white;
  }
}

