/* Base reset */
* {
  box-sizing: border-box;
}

/* Page base */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 40px 20px;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
  margin-left: 250px;
}

/* Content width */
main {
  max-width: 800px;
  margin: 0 auto;
}


nav a {
  text-decoration: none;
  color: #0066cc;
  display: block;
  padding: 8px 0;
}

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

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1 {
  font-size: 2rem;
  margin-bottom: 0.2em;
}

h2 {
  font-size: 1.2rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

/* Sections */
section {
  margin-bottom: 1.5em;
}

/* Lists */
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 0.4em;
}

/* Paragraph spacing */
p {
  margin: 0.5em 0;
}

/* Subtle emphasis */
strong {
  font-weight: 600;
}

/* Footer */
footer {
  max-width: 800px;
  margin: 60px auto 20px auto;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #666;
}

footer a {
  color: #0066cc;
  text-decoration: none;
}

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

/* Blog post styling */

article {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1rem;
  line-height: 1.7;
}

article h1 {
  margin-bottom: 1rem;
}

article h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 1.2rem;
}

article ul {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

article li {
  margin-bottom: 0.4rem;
}

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  margin-bottom: 3rem;
}

.tagline {
  font-size: 1.1rem;
  color: #0066cc;
  margin-bottom: 1rem;
  font-weight: 500;
}

.bio {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Call-to-action buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Button styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  min-width: 150px;
  text-align: center;
}

.btn-primary {
  background-color: #0066cc;
  color: white;
}

.btn-primary:hover {
  background-color: #0052a3;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #0066cc;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #e8e8e8;
}

.btn-gray {
  background-color: #666;
  color: white;
}

/* Contact Form Elements */

.contact-form {
  max-width: 500px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #222;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form button {
  margin-top: 1rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}


/* Desktop */
@media (min-width: 769px) {

  /* Navigation */
  nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    padding: 20px 40px;
    background-color: white;
    border-right: 1px solid #ddd;
    font-size: 0.95rem;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2rem;
  }

  .profile-photo {
    width: 300px;
    height: 300px;
  }

  .cta-buttons {
    gap: 0.5rem;
    row-gap: 1rem;
  }

  .menu-button {
    display: none;
  }

  .main-nav {
    position: static;
    height: auto;
    width: auto;
    transform: none;
    flex-direction: column;
    background: none;
    padding: 0;
    gap: 1rem;
  }


}

/* Mobile */
@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    min-width: 60%;
    text-align: center;
  }

  body {
    margin-left: 0;
    padding: 20px;
  }

  .btn-primary:hover {
    background-color: #0052a3;
  }

  nav {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 20px;
  }

  .nav-menu {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
  }

  .menu-button {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Mobile nav (hidden by default) */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  /* When menu is open */
  .main-nav.open {
    transform: translateX(0);
  }

}