html {
  scroll-behavior: smooth;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
button {
  font-family: 'Roboto', serif;
}

body {
  background-color: #f5f5f9;
  background-size: cover;
  width: auto;
  overflow-x: hidden;
  font-family: 'Roboto', serif;
  margin: 0px;
}

/* Nav Bar styles */
.nav-bar {
  width: 100%;
  display: inline-block;
  background-color: #1c539f;
  font-family: 'Roboto', serif;
  font-weight: 700 !important;
  padding-top: 10px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-content .logo-touch-target {
  display: inline-flex;
  height: 60%;
  width: 350px;
}

.nav-content .nav-logo {
  height: 60px;
  margin: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  width: 200px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  position: relative;
}

.hamburger-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hamburger-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-button img {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1c539f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.mobile-nav-link:first-child {
  border-radius: 8px 8px 0 0;
}

.mobile-nav-link:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-content nav {
  display: block;
  width: 100%;
  text-align: right;
  padding-top: 0px;
  padding-right: 0px;
}

/* Profile Styles */
.profile {
  background-color: #1d539f !important;
  text-align: center;
  margin-bottom: 50px;
  color: white;
  height: auto;
  min-height: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
}

.profile h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
}

.profile img {
  border-radius: 50%;
  max-width: 100%;
  max-height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 20px;
}

.profile .profile-picture {
  margin-bottom: 30px;
  height: 200px;
}

.banner {
  padding: 20px 0px 50px 0px;
  height: 150px;
  background-color: #1d539f;
}

.banner .logo {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
}

.banner .title {
  color: white;
  font-size: 50px;
  font-weight: 700;
}

#bio {
  padding-left: 1rem;
  padding-right: 1rem;
}

#bio > h3 {
  font-weight: 300;
}

#socials {
  font-size: 36px;
}

.link-nodecor {
  color: inherit;
  text-decoration: none;
}

.section {
  padding-left: 1.1rem;
  padding-right: 1.5rem;
}
.section h2 {
  color: #1d539f;
  margin-bottom: 0.8rem;
}

ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

/* Button Styles */
.btn {
  background-color: #1c539f;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Roboto', serif;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #3c6db2;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wide {
  width: 100%;
}

/* Error page specific styles */
.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  text-align: center;
  padding: 2rem;
}

.error-container h1 {
  color: #1d539f;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Timeline Page Styles */
#timeline-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 120px); /* Account for navbar height */
  max-width: 1200px;
  margin: 0 auto;
}

/* Form Container Styles */
#form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(28, 83, 159, 0.1);
}

#form-container h2 {
  color: #1d539f;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

/* Timeline Form Styles */
#timeline-form {
  width: 100%;
}

#timeline-form > div {
  margin-bottom: 1.5rem;
}

#timeline-form label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

#timeline-form input[type='email'],
#timeline-form input[type='text'],
#timeline-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-family: 'Roboto', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafbfc;
  box-sizing: border-box;
}

#timeline-form input[type='email']:focus,
#timeline-form input[type='text']:focus,
#timeline-form textarea:focus {
  outline: none;
  border-color: #1c539f;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(28, 83, 159, 0.1);
}

#timeline-form textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
}

/* Posts Container Styles */
#posts-container {
  flex: 1;
  max-width: 600px;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(28, 83, 159, 0.1);
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
}

#posts-container::-webkit-scrollbar {
  width: 8px;
}

#posts-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#posts-container::-webkit-scrollbar-thumb {
  background: #1c539f;
  border-radius: 4px;
}

#posts-container::-webkit-scrollbar-thumb:hover {
  background: #1d539f;
}

.posts-header {
  color: #1d539f;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(28, 83, 159, 0.1);
}

/* Individual Post Styles */
.post {
  background: #fafbfc;
  border: 1px solid rgba(28, 83, 159, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: rgba(28, 83, 159, 0.2);
}

.post:last-child {
  margin-bottom: 0;
}

.post::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(45deg, #1c539f, #1d539f);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(28, 83, 159, 0.1);
}

.post h6 {
  color: #1d539f;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.post-email {
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
}

.post-date {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  white-space: nowrap;
}

.post p {
  margin: 0;
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
}

.centered-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Responsive Design */
.responsive-lg {
  display: block;
}

.responsive-sm {
  display: none;
}

@media screen and (max-width: 768px) {
  .responsive-lg {
    display: none;
  }
  .responsive-sm {
    display: block;
  }

  /* Navigation responsive styles */
  .nav-links .nav-link {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .nav-content {
    padding: 0 15px;
  }

  .nav-logo img {
    width: 150px;
  }

  /* Timeline responsive styles */
  #timeline-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  #form-container,
  #posts-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  #posts-container {
    max-height: 50vh;
  }

  .post-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
