@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");

/* Default Light mode */
:root {
  --background: #edf2fb;
  --text: white;
  --primary: #84b59f;
  --secondary: #69a297;
  --accent: #50808e;
  --highlight: #50808e;
  --primary-text: #ffffff;
  --emphasis: #ffcaeb;
}

/* Dark mode palette */
.dark-mode {
  --background: #110e1b;
  --text: #e0e0e0;
  --primary: #7c162e;
  --secondary: #5c162e;
  --accent: #3c162f;
  --highlight: #3c162f;
  --primary-text: #ffffff;
  --emphasis: #f389f7;
}

/* Hidden class for hiding things */
.hidden {
  display: none;
}

/* Set smooth transition for all */
*,
*::before,
*::after {
  font-family: "Oswald", "Arial", "Helvetica", "Times New Roman", "Sans Serif";
  font-weight: 500;
  transition: color 0.5s, background 0.5s, background-color 0.5s;
}

/* Body coloring & margin */
body {
  margin: 0;
  background-color: var(--background);
}

/* Header */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  top: 0;
  position: sticky;
  background-color: var(--accent);
  box-shadow: var(--accent) 0 0 15px;
  height: 100px;
  color: var(--text);
  z-index: 1;
  transition: background-color 0.5s;
}
header img {
  height: 60%;
  position: absolute;
  top: 20%;
  left: 25px;
  filter: invert() drop-shadow(0 0 15px black);
}

/* Navigation bar */
#navBar {
  margin-right: 25px;
  width: 50%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#navBar button {
  cursor: pointer;
  border-width: 0;
  border-radius: 25px;
  background-color: var(--highlight);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#navBar button img {
  position: relative;
  top: 0;
  left: 0;
  height: 100%;
}
#navBar a {
  cursor: pointer;
  text-shadow: black 0 0 10px;
  color: var(--text);
  text-decoration: none;
}
#navBar a:hover {
  text-decoration: underline;
}

/* Element with image background */
.bgImg {
  overflow-y: hidden;
  max-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bgImg h1 {
  font-size: 4vw;
  color: white;
  text-shadow: black 1px 0px 10px;
  position: absolute;
  text-align: center;
  filter: opacity(1);
  transition: text-shadow 0.5s;
}

/* Text hover animation */
.bgImg h1:hover {
  text-shadow: black 1px 0px 15px;
}
.bgImg img {
  width: 100%;
  z-index: -2;
}
.bgImg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode {
  src: "images/logo.png";
}

/* Primary AboutPg CSS */
.aboutPg.primary {
  box-shadow: 0 0 10px var(--primary);
}
.aboutPg.primary::before {
  background-color: var(--primary);
}
.aboutPg.primary:hover {
  box-shadow: 0 0 20px var(--primary);
}

/* Secondary AboutPg CSS */
.aboutPg.secondary {
  box-shadow: 0 0 10px var(--secondary);
}
.aboutPg.secondary::before {
  background-color: var(--secondary);
}
.aboutPg.secondary:hover {
  box-shadow: 0 0 20px var(--secondary);
}

/* Highlight AboutPg CSS */
.aboutPg.highlight {
  box-shadow: 0 0 10px var(--highlight);
}
.aboutPg.highlight::before {
  background-color: var(--highlight);
}
.aboutPg.highlight:hover {
  box-shadow: 0 0 20px var(--highlight);
}

/* Common AboutPg CSS */
.aboutPg {
  margin-bottom: 50px;
  font-size: clamp(16px, 2vw, 24px);
  font-family: Helvetica;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  border-width: 5px;
  padding: 25px;
  text-align: center;
  color: white;
  text-shadow: black 0 0 5px;
  transition: box-shadow 0.5s;
}

/* The background for AboutPg */
.aboutPg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: -1; /* Places it behind content */
}

/* AboutPg text paragraph */
.aboutPg p {
  text-align: center;
  padding: 0 25px;
  max-width: 900px;
  min-width: 250px;
}

/* Wrapper for the ActionBtns */
#actionBtnWrapper {
  position: relative;
  justify-content: space-around;
  padding: 40px 25px;
  gap: 25px;
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;

  margin-bottom: 50px;
}

/* ActionBtn styling (now applies directly to the <a>) */
.actionBtn {
  display: flex; /* Ensures it behaves like a block */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 5px black;
  background-size: 200% auto;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  text-align: center;
  color: white;
  width: 275px;
  height: 250px;
  backdrop-filter: blur(5px);
  border-radius: 30px;
  box-shadow: 0 0 10px var(--highlight);
  transition: box-shadow 0.5s;
  flex-grow: 1;
}

/* Translucent ActionBtn overlay */
.actionBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.5;
  background-color: var(--accent);
  transition: opacity 0.5s;
}

/* ActionBtn hover */
.actionBtn:hover {
  box-shadow: 0 0 20px var(--highlight);
}
.actionBtn:hover::before {
  opacity: 0.25;
}
.actionBtn a {
  flex-grow: 1;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

footer {
  position: relative;
  margin-top: 50px;
  background-color: var(--accent);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 25px;
  align-items: center;
  height: 250px;
  font-size: clamp(12px, 2w, 24px);
  text-shadow: 0 0 5px black;
}

footer a {
  padding: 25px 0;
  font-size: clamp(12px, 2vw, 32px);
  width: 33vw;
  color: white;
  text-decoration: none;
  transition: text-shadow 0.5s;
}
footer a:hover {
  text-shadow: 0 0 5px var(--primary);
}

/* The background for the footer */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: -1; /* Places it behind content */
  box-shadow: var(--accent) 0 0 15px;
  transition: box-shadow 0.5s;
}
footer:hover::before {
  box-shadow: 0 0 25px var(--accent);
}

#contactLinks {
  display: flex;
  justify-content: space-around;
  width: 90%;
}

hl {
  color: var(--text);
}

@media screen and (max-width: 475px) {
  footer {
    padding-bottom: 50px;
  }

  #contactLinks {
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0px;
  }

  header {
    flex-direction: column;
    gap: 25px;
    padding: 25px;
    align-items: center;
    justify-content: center;
  }

  header img {
    position: relative;
    left: 0;
    margin: 0;
  }

  #navBar {
    width: fit-content;
    gap: 0 40px;
    margin: 10px 0;
    position: relative;
  }
}

.aboutPg a {
  color: aliceblue;
  text-shadow: black 0 0 10px;
  line-height: 2;
  text-decoration: underline;
}
.aboutPg a:hover {
  text-decoration: underline;
}
