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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f8fb;
  color: #1a1a1a;
  line-height: 1.6;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Header styling (spj47) */
header {
  background-color: #0033a0; /* Boeing's blue */
  color: white;
  padding: 20px 40px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  opacity: 0.85;
}

/* Navigation bar (spj47) */
nav {
  background-color: #002d72;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #cce6ff;
}

.nav-img {
  height: 10px;
  width: 200px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #cce6ff;
}

/* Main content (spj47) */
main {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  flex: 1;
}

section {
  margin-bottom: 40px;
}

section h2 {
  color: #0033a0;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Team Stuff (spj47) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.team-member {
  text-align: center;
  padding: 20px;
}

.team-member a {
  display: inline-block;
  margin-top: 10px;
  color: #0033a0;
  text-decoration: none;
  font-weight: bold;
}

.team-member a:hover {
  text-decoration: underline;
}

.team-photo {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* For more important Text (spj47) */
.pt2 {
  color: #1a1a1a;
  font-size: 1.25rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Cards (quotes, images, etc.) (spj47)  */
.card,
.cardinert {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.card-link {
  text-decoration: none;
  color: #1a1a1a;
  display: inline-block;
}

.card:hover {
  transform: translateY(-5px);
}

/* Footer (spj47) */
footer {
  background-color: #001f4d;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 0.9rem;
}

/* Images (spj47) */
.buggy-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Support Section (spj47) */
.support-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  text-align: center;
  gap: 20px;
}

.support-section h2 {
  font-size: 2.5rem;
  color: #0033a0;
  font-weight: 700;
}

.support-section p {
  font-size: 1.2rem;
  color: #1a1a1a;
  max-width: 600px;
}

.gofundme-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 20px 50px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(255, 95, 109, 0.5);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.gofundme-btn:hover,
.gofundme-btn:focus {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(255, 95, 109, 0.7);
  outline: none;
}

/* Documents page (spj47) */
.doc-card-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px;
  margin-bottom: 20px;
}

.file-icon {
  width: 60px;
  height: auto;
  flex-shrink: 0;
}

.doc-details {
  flex-grow: 1;
}

.download-btn {
  background-color: #0033a0;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #0055cc;
}

/* Keep nav bar from overlapping cards */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Everything below this is my attempt at getting the website to play nice with phones (spj47) */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }

  section h2 {
    font-size: 1.4rem;
  }

  .pt2 {
    font-size: 1rem;
  }

  .team-photo {
    max-width: 120px;
  }

  .team-member {
    padding: 10px;
  }

  .support-section h2 {
    font-size: 2rem;
  }

  .support-section p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .gofundme-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
  }

  .buggy-img {
    max-width: 100%;
    height: auto;
  }

  .doc-card-horizontal {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 15px;
  }

  .file-icon {
    width: 50px;
    margin-bottom: 10px;
  }

  .download-btn {
    align-self: flex-end;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: unset;
  }

  .nav-img {
    width: 150px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .support-section h2 {
    font-size: 1.5rem;
  }

  .support-section p {
    font-size: 0.95rem;
  }

  .gofundme-btn {
    font-size: 1rem;
    padding: 12px 25px;
  }

  .doc-card-horizontal {
    padding: 10px;
  }

  .download-btn {
    font-size: 0.9rem;
  }
}
