/* General styles */

body {
  font-family: 'Phantom Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: var(--theme-ui-colors-text, #1f2d3d);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--theme-ui-colors-background, #000000);
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.125;
  margin-bottom: 16px;
}

h1 {
  font-size: 48px;
  /* Adjust font size as needed */
}

h2 {
  font-size: 32px;
  /* Adjust font size as needed */
}

ul {
  list-style: disc;
  padding-left: 32px;
}

li {
  margin-bottom: 8px;
}

p {
  font-size: 20px;
  /* Adjust font size as needed */
  margin-bottom: 16px;
}

a {
  color: var(--theme-ui-colors-primary, #ec3750);
  text-decoration: underline;
  text-underline-position: under;
  transition: color 0.125s ease-in-out;
}

a:hover,
a:focus {
  text-decoration-style: wavy;
}

/* Container styles */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  /* Add subtle shadow for depth */
  box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  /* Smooth transition for tilt effect */
  border-radius: 20px; /* Rounded corners */
  background-color: #FFFFFF; /* Light faded background */
}

.container:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
  /* Tilt effect on hover */
}

@media screen and (min-width: 48em) {
  .container {
    max-width: 1200px;
  }
}

/* Section styles */
section {
  padding: 32px 0;
}

/* Header styles */
header {
  background-color: var(--theme-ui-colors-primary, #ec3750);
  color: red;
  /* Set text to white */
  padding: 64px 0;
  text-align: center;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  /* Strong shadow for the header */
  border-radius: 20px; /* Rounded corners for the header */
}

header h1 {
  font-size: 64px;
  /* Adjust font size as needed */
  font-weight: 700;
  letter-spacing: -0.009em;
  line-height: 1;
  /* Set line height to 1 for a tighter look */
}

/* Intro styles */
.intro {
  background-color: #ffffff;
  padding: 64px 0;
  text-align: center;
  border-radius: 20px; /* Rounded corners for the intro section */
}

.intro p {
  font-size: 24px;
  /* Adjust font size as needed */
  margin-bottom: 32px;
}

/* Mission styles */
.mission {
  background-color: var(--theme-ui-colors-sheet, #f9fafc);
  padding: 64px 0;
  text-align: left;
  /* Align text to the left */
  border-radius: 20px; /* Rounded corners for the mission section */
}

.mission ul {
  list-style: none;
  /* Remove list markers */
  padding-left: 0;
  margin-top: 32px;
  /* Add spacing between mission statement and list */
}

.mission li {
  margin-bottom: 16px;
  /* Add spacing between list items */
}

.mission h2 {
  animation: typing 3.5s steps(40, end),
             blink-caret .75s step-end infinite;
  overflow: hidden; /* Hide text that overflows */
  border-right: .15em solid black; /* The cursor */
  white-space: nowrap; /* Don't wrap the text */
}

/* Objectives styles */
.objectives {
  background-color: #ffffff;
  padding: 64px 0;
  text-align: left;
  /* Align text to the left */
  border-radius: 20px; /* Rounded corners for the objectives section */
}

.objectives ul {
  list-style: none;
  /* Remove list markers */
  padding-left: 0;
  margin-top: 32px;
  /* Add spacing between mission statement and list */
}

.objectives li {
  margin-bottom: 16px;
  /* Add spacing between list items */
}

.objectives li strong {
  font-weight: 700;
  /* Make strong elements bold */
}

.objectives h2 {
  animation: typing 3.5s steps(40, end),
             blink-caret .75s step-end infinite;
  overflow: hidden; /* Hide text that overflows */
  border-right: .15em solid black; /* The cursor */
  white-space: nowrap; /* Don't wrap the text */
}

/* How ASTRA Operates styles */
.how-astra-operates {
  background-color: var(--theme-ui-colors-sheet, #f9fafc);
  padding: 64px 0;
  text-align: left;
  /* Align text to the left */
  border-radius: 20px; /* Rounded corners for the how-astra-operates section */
}

.how-astra-operates h3 {
  font-size: 28px;
  /* Adjust font size as needed */
  margin-top: 32px;
  /* Add spacing between section headings */
}

.how-astra-operates ul {
  list-style: none;
  /* Remove list markers */
  padding-left: 0;
  margin-top: 32px;
  /* Add spacing between mission statement and list */
}

.how-astra-operates li {
  margin-bottom: 16px;
  /* Add spacing between list items */
}

.how-astra-operates h2 {
  animation: typing 3.5s steps(40, end),
             blink-caret .75s step-end infinite;
  overflow: hidden; /* Hide text that overflows */
  border-right: .15em solid black; /* The cursor */
  white-space: nowrap; /* Don't wrap the text */
}

/* Get Involved styles */
.get-involved {
  background-color: #ffffff;
  padding: 64px 0;
  text-align: left;
  /* Align text to the left */
  border-radius: 20px; /* Rounded corners for the get-involved section */
}

.get-involved ul {
  list-style: none;
  /* Remove list markers */
  padding-left: 0;
  margin-top: 32px;
  /* Add spacing between mission statement and list */
}

.get-involved li {
  margin-bottom: 16px;
  /* Add spacing between list items */
}

.get-involved h2 {
  animation: typing 3.5s steps(40, end),
             blink-caret .75s step-end infinite;
  overflow: hidden; /* Hide text that overflows */
  border-right: .15em solid black; /* The cursor */
  white-space: nowrap; /* Don't wrap the text */
}

/* Contact styles */
.contact {
  background-color: var(--theme-ui-colors-sheet, #f9fafc);
  padding: 64px 0;
  text-align: left;
  /* Align text to the left */
  border-radius: 20px; /* Rounded corners for the contact section */
}

.contact p {
  margin-bottom: 16px;
  /* Add spacing between paragraphs */
}

.contact h2 {
  animation: typing 3.5s steps(40, end),
             blink-caret .75s step-end infinite;
  overflow: hidden; /* Hide text that overflows */
  border-right: .15em solid black; /* The cursor */
  white-space: nowrap; /* Don't wrap the text */
}

/* Footer styles */
footer {
  background-color: var(--theme-ui-colors-primary, #ec3750);
  color: black;
  /* Set text to white */
  padding: 32px 0;
  text-align: center;
  border-radius: 20px; /* Rounded corners for the footer */
}

/* 3D Card Flip Example (You can customize this!) */
.flip-card {
  width: 300px;
  height: 200px;
  perspective: 1000px;
  margin: 50px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  /* Rounded corners */
}

.flip-card-front {
  background-color: #bbb;
  color: black;
  transform: rotateY(0deg);
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Text Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typewriter effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-right-color: black;
  }
  50% {
    border-right-color: transparent;
  }
}

/* Button Styles (Add these for the "Join Us" and other buttons) */
.join-button {
  background-color: var(--theme-ui-colors-primary, #ec3750);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 10px; /* Rounded corners for buttons */
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s ease;
}

.join-button:hover {
  background-color: var(--theme-ui-colors-orange, #ff8c37); /* Change background color on hover */
}

/* "Join Us" Button Style */
.join-us-button {
  margin-top: 20px; /* Add some spacing above the button */
  display: inline-block;
}

/* "Read the ASTRA Guide" Link Style */
.guide-link {
  text-decoration: underline;
  transition: text-decoration 0.2s ease;
}

.guide-link:hover {
  text-decoration: none; /* Remove underline on hover */
}

/* Hover Cursor Style */
.hover-cursor {
  cursor: pointer; /* Change cursor to a pointer on hover */
}
