:root {
  --darkBackground: #1b2027;
  --githubDark_lighter: rgb(37, 41, 44);
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    flex: 1;
}

main {
    flex: 1;
}

body {
  margin: 0;
  background-color: var(--darkBackground);
   font-family: "Raleway", sans-serif;
}

#popup {
  position: relative;
  margin-top: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  font-weight: bold;
  color: black;
  width: fit-content;
  align-self: center;
}

#popup.hidden {
  display: none;
}

/* ========== NAV ========== */
nav {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  border-radius: 50px;
  color: white;
  font-size: clamp(30px, 2.5vw, 2.5vw);
  font-weight: 550;
  margin: 10px 0 0 0;
}

/* ========== MAIN CONTENT ========== */
.landingPage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  color: white; 
  margin-top: 5%;
}

.introduction h2,
.introduction h3 {
  margin: 0;
  padding: 0;
  line-height: 2;
  text-align: left;
}

.introduction h3{
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 400;
}
.introduction h2{
    font-size: clamp(14px, 2vw, 25px);
}


.landingPage .introduction{
    margin-bottom: 30px;
}

/* ========== FORM ========== */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: clamp(250px, 90vw, 320px);
  padding: 24px;
  border-radius: 8px;
  background-color: var(--githubDark_lighter);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  max-width: 75%;
}

#contact-form input,
#contact-form button {
  padding: 10px;
  font-size: 16px;
  color: white;
  background-color: #1c2128;
  border: 1px solid #333;
  border-radius: 4px;
}

#contact-form input::placeholder {
  color: #aaa;
}

#contact-form button {
  background-color: #007BFF;
  color: white;
  border: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

#contact-form button:hover {
  background-color: #0056b3;
}

/* ====== FADE ======= */
.fade {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.fade-out {
  opacity: 0;
}

.loading {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  opacity: 0;
  transition: opacity 0.5s ease;
}


/* ==================== */
/* ====== MOBILE ====== */
/* ==================== */
@media (max-width: 768px) {
  .landingPage {
    margin-top: 25px;
  }
  .introduction h2, .introduction h3{
    text-align: center;
    padding-left: 12.5%;
    padding-right: 12.5%;
    line-height: 1.7;
  }

  .introduction h2{
    margin-top: 20px;
  }
  
}
