/* --------------------------------------------------------------------------
   FONTS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "GLYPHICONS Halflings";
  src: url("../fonts/GLYPHICONSHalflings-Regular.eot");
  src: url("../fonts/GLYPHICONSHalflings-Regular.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/GLYPHICONSHalflings-Regular.woff2") format("woff2"),
    url("../fonts/GLYPHICONSHalflings-Regular.woff") format("woff"),
    url("../fonts/GLYPHICONSHalflings-Regular.ttf") format("truetype"),
    url("../fonts/GLYPHICONSHalflings-Regular.svg#GLYPHICONSHalflings-Regular")
      format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
     BASE
     -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
:root {
  color-scheme: only light;
}

body {
  /* Change font to Century Gothic */
  font-family: "Century Gothic", sans-serif;
  /* Replace the second gradient color with #91439f */
  background: linear-gradient(110deg, rgba(19, 19, 22, 1) 70%, #91439f 100%);
  color: #ffffff;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

h1 {
  color: #ffffff;
  place-items: center;
  align-content: center;
  min-height: 100vh;
}

h2 {
  /* Replace heading font color references to #91439f where green was used */
  color: #91439f;
  font-size: 3em;
  /* We keep RiftSoft-Bold in the original, but the user wants Century Gothic
       for everything, so the priority will remain on Century Gothic. 
       You may remove or comment out if you want exclusively Century Gothic. */
  font-family: "Century Gothic", sans-serif;
}

h4 {
  font-size: x-large;
}

p {
  font-size: x-large;
}

/* --------------------------------------------------------------------------
     HEADER
     -------------------------------------------------------------------------- */
.header {
  background: linear-gradient(to top, #131316 0%, rgba(0, 0, 0, 0) 20%);
  color: #ffffff;
  width: 100%;
  height: 100%;
}

.header h1 {
  min-height: 0;
  justify-content: center;
  display: flex;
  font-size: 500%;
  margin-left: 20%;
  margin-right: 20%;
  text-align: center;
  height: 70%;
  align-items: center;
  font-weight: lighter;
  flex-direction: column;
}

/* Color of strong text replaced by #91439f */
.header strong {
  color: #91439f;
}

.mainlogo {
  display: block;
  width: 25%;
  left: 0px;
  top: 0px;
  margin: 2%;
  position: absolute;
}

/* --------------------------------------------------------------------------
     NAV
     -------------------------------------------------------------------------- */
.topnav .icon2 {
  display: none;
}

.nav {
  display: inline;
  padding: 10px;
  z-index: 1;
  color: #ffffff;
  text-decoration: none;
  margin: 10px;
  font-size: x-large;
  cursor: pointer;
}

.nav:hover {
  background-color: #484848a2;
}

header {
  display: flex;
  justify-content: end;
}

/* Responsive nav animation */
@keyframes slide {
  0% {
    top: -300px;
  }
  100% {
    top: 0;
  }
}

.topnav.responsive {
  animation: slide 0.8s;
}
.topnav.responsive {
  position: absolute;
  min-height: 70vh;
  left: 0;
  background: linear-gradient(
    #91439f 0%,
    rgb(19 19 22 / 100%) 25%,
    rgb(19 19 22) 60%,
    rgb(19 19 22 / 0%) 100%
  );
  z-index: 8;
  width: 100%;
  display: block;
  opacity: 0.9;
}

.topnav.responsive a.icon2 {
  position: absolute;
  right: 0;
  top: 0;
}

.topnav.responsive a {
  float: none;
  display: block;
  text-align: left;
}

/* --------------------------------------------------------------------------
     SECTIONS / LAYOUT
     -------------------------------------------------------------------------- */
section {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
}

.hidden {
  opacity: 0;
  filter: blur(5px);
  transition: all 1s;
}

/* Delay for progressive reveal */
.hidden #c2 {
  transition-delay: 0s, 1s, 1s;
  transition-property: all, filter, opacity;
}
.hidden #c3 {
  transition-delay: 0s, 2s, 2s;
  transition-property: all, filter, opacity;
}

.show {
  filter: blur(0);
  opacity: 1;
}

.fornav {
  padding-top: 5%;
}

.column {
  float: left;
  width: 50%;
}

/* --------------------------------------------------------------------------
     INTRO SECTION
     -------------------------------------------------------------------------- */
#Intro {
  display: flex;
  justify-content: left;
  padding: 10%;
  padding-top: 5%;
}

#Intro h2 {
  margin-top: 0;
  font-size: 3em;
}

#Intro h4 {
  color: #ffffffae;
  font-size: xx-large;
  margin-bottom: 5px;
}

#Intro p {
  margin-left: 0;
}

#Intro .column {
  justify-content: center;
}

.pic {
  /* hidden on mobile later */
}

.secimg {
  opacity: 0.5;
  height: 600px;
}

.mis {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
     MISSION SECTION
     -------------------------------------------------------------------------- */
#Mission {
  display: flex;
  padding: 10%;
  padding-top: 0;
  min-height: 70vh;
  height: fit-content;
  z-index: 4;
}

/* Replace original dark green (#03493b) with #91439f for the column background */
#Mission .column {
  padding: 3%;
  margin-bottom: 2%;
  background-color: #91439f;
  width: max(30%, fit-content);
}

#Mission .secimg {
  opacity: 0.5;
  position: absolute;
  margin-left: 40%;
  margin-top: 10%;
  width: 40%;
  object-fit: contain;
  z-index: -1;
}

#Mission p {
  margin-left: 0;
}

#Mission h4 {
  color: #ffffffae;
  font-size: large;
  margin-bottom: 5px;
}

#Mission h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 3em;
}

.skewed {
  position: absolute;
  left: 0;
  width: 100%;
  height: 300%;
  background: #4c1357;
  z-index: -1;
  transform: skewY(4deg);
  transform-origin: top left;
  opacity: 1;
}

/* --------------------------------------------------------------------------
     CARDS SECTION
     -------------------------------------------------------------------------- */
.cards {
  display: grid;
  place-items: center;
  align-content: center;
}

.card {
  padding-left: 10%;
  padding-right: 10%;
  align-items: center;
  gap: 5%;
  display: flex;
}

.icon {
  width: 30%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(33%) sepia(70%) saturate(500%)
    hue-rotate(270deg) brightness(90%) contrast(85%);
}

.container {
  background-color: #202026;
  display: inline-block;
  /* Replace box-shadow color #007057 with #91439f */
  box-shadow: 2px 2px 8px 1px #91439f;
  width: 25%;
  min-height: 65vh;
  height: auto;
  border-radius: 5px;
  padding: 2px 16px;
  margin: 15px;
  padding-top: 3%;
  text-align: center;
  vertical-align: middle;
  transform: skewY(6deg);
}

.container:hover {
  box-shadow: 2px 2px 16px 1px #91439f;
  color: #91439f;
}

.container h4 {
  text-align: center;
  margin-bottom: 10%;
}

.container p {
  color: #9d9d9d;
}

/* --------------------------------------------------------------------------
     FORM SECTION
     -------------------------------------------------------------------------- */
#Form {
  display: flex;
  padding-bottom: 20px;
}

#contact {
  display: block;
  margin-right: 100px;
  margin-left: 0;
}

#Form .ctext {
  padding-left: 10%;
}

#Form .column p {
  margin-left: 0;
  width: 40%;
  color: #9d9d9d;
  margin-left: 7px;
}

#Form .ctext {
  width: 80%;
  padding-left: 10%;
}

/* Input styling (border-bottom, etc. changed from #007057 to #91439f) */
.cont {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: none;
  border-bottom: 2px solid #91439f;
  color: #ffffff;
  background-color: #131316;
}

#Message {
  height: 100px;
  resize: none;
}

/* Button styling changed to #91439f */
#Send {
  background-color: #91439f;
  border: none;
  color: #ffffff;
  padding: 16px 32px;
  margin: 4px 2px;
  cursor: pointer;
  transition: 0.5s;
}

#Send:hover {
  background-color: #7b2d86; /* Slightly darker purple for hover state */
}

/* --------------------------------------------------------------------------
     ADDITIONAL CLASSES / FOOTER
     -------------------------------------------------------------------------- */
.end {
  display: grid;
  place-items: center;
  align-content: center;
}

.logo {
  margin: 10px;
}

.flogo {
  font-size: 300%;
  color: #7b2d86;
}

.address {
  position: absolute;
  left: 4%;
}

.mail {
  display: flex;
  align-items: center;
  max-width: 100%;
}

.mail p {
  font-size: large;
}

.mail .logo {
  width: 3%;
}

.ping {
  filter: invert(1);
  width: 3%;
  padding: 1.3%;
}

.back {
  position: absolute;
  width: 3%;
  right: 100px;
  cursor: pointer;
  filter: invert(100%);
}

.back:hover {
  filter: invert(80%);
}

.globe {
  filter: invert(1) drop-shadow(0 0 8px white);
  height: 20px;
}

/* --------------------------------------------------------------------------
     BACKGROUND ANIMATION
     -------------------------------------------------------------------------- */
.screen-image {
  background-image: url("/staticfiles/images/picture1.png");
  height: 100%;
  width: 100%;
  z-index: -1;
  left: 0px;
  top: 0px;
  position: absolute;
  background-size: cover;
  background-position: 90%;
}
.social {
  display: flex;
}
.social a {
  width: min(50%, 50px);
}

.social img {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(33%) sepia(70%) saturate(500%)
    hue-rotate(270deg) brightness(90%) contrast(85%);

  width: min(50%, 50px);
}

.social a:last-child {
  margin-right: 0;
}

.social img {
  transition: transform 0.3s;
}

.social img:hover {
  transform: scale(1.1);
}

.image-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  width: 50%;
  justify-content: space-around;
}

.imageflex {
  gap: 40px;
  display: flex;
}

.image-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}

@keyframes pan-image {
  0% {
    background-position: 0% 14%;
    background-size: 150%;
  }
  20% {
    background-position: 8% 27%;
    background-size: 150%;
  }
  20.0001% {
    background-position: 100% 30%;
    background-size: 200%;
  }
  40% {
    background-position: 85% 40%;
    background-size: 200%;
  }
  40.0001% {
    background-position: 0% 42%;
    background-size: 220%;
  }
  60% {
    background-position: 24% 33%;
    background-size: 220%;
  }
  60.0001% {
    background-position: 85% 80%;
    background-size: 270%;
  }
  80% {
    background-position: 100% 90%;
    background-size: 270%;
  }
  80.0001% {
    background-position: 70% 80%;
    background-size: 190%;
  }
  100% {
    background-position: 50% 72%;
    background-size: 190%;
  }
}

/* --------------------------------------------------------------------------
     MEDIA QUERIES
     -------------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
  section {
    height: auto;
    padding-bottom: 100px;
  }
  .mainlogo {
    padding: 15px;
    width: 60%;
    transition: 0.5s;
  }
  .back {
    display: none;
  }
  .header {
    height: 100%;
    padding-bottom: 100px;
    background: linear-gradient(
      to top,
      #131316 0%,
      #131316 20%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  .column {
    width: 100%;
  }
  .card {
    flex-direction: column;
  }
  .cards {
    height: auto;
  }
  #Form {
    display: grid;
    flex-direction: column;
  }
  #Mission a {
    align-self: center;
    margin-top: 15px;
  }
  .container {
    height: auto;
    width: 80%;
  }
  .ctext {
    display: flex;
    flex-direction: column;
  }
  #contact {
    margin-left: 50px;
    margin-right: 50px;
  }
  #Form .column p {
    width: 70%;
    margin-left: 0;
  }
  #Form .ctext {
    padding-bottom: 20%;
    width: 80%;
    padding-left: 10%;
  }
  .pic {
    display: none;
  }
  .secimg {
    display: none;
  }
  #Mission .secimg {
    display: none;
  }
  .topnav a:not(all) {
    display: none;
  }
  .topnav a.icon2 {
    position: absolute;
    display: block;
  }
  .hidden #c2 {
    transition-delay: 0s;
  }
  .hidden #c3 {
    transition-delay: 0s;
  }
  .header h1 {
    height: 100%;
    font-size: 300%;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 0;
  }
  .social {
    margin-left: auto;
    margin-right: auto;
    width: 30%;
  }
  .mail {
    align-items: center;
    width: 100%;
    position: static;
    justify-content: center;
    overflow: hidden;
  }
  .screen-image {
    height: 100%;
  }
  .image-grid {
    width: 100%;
  }

  .imageflex {
    flex-direction: column;
  }
  .address {
    position: relative;
    right: auto;
    overflow: hidden;
    max-width: 80%;
  }
  .flogo {
    width: 40%;
    padding-left: 0;
    color: white;
  }

  @keyframes pan-image {
    0% {
      background-position: 0% 14%;
      background-size: 510%;
    }
    20% {
      background-position: 8% 27%;
      background-size: 510%;
    }
    20.0001% {
      background-position: 100% 30%;
      background-size: 600%;
    }
    40% {
      background-position: 85% 40%;
      background-size: 600%;
    }
    40.0001% {
      background-position: 0% 42%;
      background-size: 500%;
    }
    60% {
      background-position: 24% 33%;
      background-size: 500%;
    }
    60.0001% {
      background-position: 85% 80%;
      background-size: 550%;
    }
    80% {
      background-position: 100% 90%;
      background-size: 550%;
    }
    80.0001% {
      background-position: 70% 80%;
      background-size: 500%;
    }
    100% {
      background-position: 50% 72%;
      background-size: 500%;
    }
  }
}

.no {
  opacity: 0;
}
