:root {
  --main-font: "Markazi Text", serif;
  --secondary-font: "Lato", sans-serif;
  --main-green: #272d20;
  --main-black: #222;
  --accent-grey: #efefef;
}

html,
body,
section {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

html {
  height: 100%;
  background: var(--main-green);
}

body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

/* Hide reCaptcha Logo */
.et_pb_recaptcha_enabled .grecaptcha-badge {
  visibility: hidden;
}

.grecaptcha-badge {
  opacity: 0;
  visibility: hidden !important;
}

/*------- Loader ----------*/

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent-grey);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
  opacity: 1;
  transform: translateY(0);
}

.loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.svgloader {
  height: 100px;
}

/*----- Intro Section / Fonts -------*/

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--main-font);
}

h1 {
  font-family: var(--main-font);
  color: #fff;
  z-index: 5;
  margin: 10px;
  font-size: 50px;
}

h1 > span {
  color: var(--accent-grey);
}

h2 {
  font-family: var(--main-font);
  font-weight: 400;
  color: #fff;
  z-index: 5;
  margin: 10px;
}

h2 > span {
  color: var(--accent-grey);
}

h3 {
  font-size: 40px;
  color: var(--main-green);
  margin: 0;
  padding: 60px 0px;
}

h3::after {
  content: "";
  display: block;
  position: relative;
  height: 3px;
  width: 100px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #cbcbcb;
}

h4 {
  font-size: 32px;
  color: var(--main-green);
  margin: 16px 0px;

  /* padding: 60px 0px 20px 0px; */
}

h5 {
  font-size: 21px;
}

p {
  font-size: 14px;
  font-weight: 400;
  line-height: calc(14px * 1.5);
  font-family: "Lato";
}

/* Easy Overrides */

.white-text {
  color: var(--accent-grey);
}

.center-text {
  text-align: center;
}

/* Custom Scroll */

::-webkit-scrollbar {
  width: 0px;
}

#progressbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 5px;
  height: 0%;
  background-color: var(--main-green);
  z-index: 100;
}

nav {
  display: flex;
  position: absolute;
  height: 0;
  width: 100%;
  top: 0;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  transform: translateY(60px);
  z-index: 10;
}

nav > a {
  font-family: var(--main-font);
  font-size: 1.4em;
  color: #272d20;
  text-decoration: none;
  padding: 0px 20px 0px 20px;
  transition: 0.2s border ease;
  /* border-bottom: 2px solid transparent; */
}

nav > a::after {
  display: block;
  position: relative;
  content: "";
  top: 0;
  height: 2px;
  width: 0%;
  background-color: var(--main-green);
  margin-top: -2px;
  transition: 0.4s width ease;
}

nav > a:hover::after {
  width: 100%;
}

/* Intro Section */

.main_section {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100svh;
  width: 100vw;
  background-color: #222;
}

.main_section_bg {
  margin: 0;
  padding: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2) translateZ(0);
  transition: 6s transform ease-out;
  transform-origin: center top;
  backface-visibility: hidden;
  will-change: transform;
  pointer-events: none;
overflow-clip-margin: content-box;
overflow: clip;
}

/* .main_section_bg_topmasked {
  z-index: 3;
} */

.main_section_bg_scaled {
  transform: scale(1) translateZ(0);
}

/* .main_section.intro_parallax_grow::before {
  transform: scale(1.1);
}

.intro_cover.intro_parallax_grow::before {
  transform: scale(1.1);
} */

#jtc_logo {
  display: block;
  width: 80%;
  max-width: 500px;
  min-width: 200px;
  /* width: 500px; */
  transition: transform 0.1s ease-out; /* Smooth animation */
  will-change: transform;
}

.next-section-white {
  width: 32px;
  height: 32px;
  z-index: 5;
  object-fit: contain;
  transition: 0.3s transform ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  box-sizing: border-box;
}
.next-section-white:hover {
  transform: scale(1.1);
}

/* Section Two */

#section-two {
  background: #efefef;
  background-image: url(../img_25/section-2-bg.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Clip the section to let the sticky nav stay fixed at the top */
  position: relative;
  clip-path: inset(0px);
  min-height: 100vh;
  padding-bottom: 60px;
}

.other-places-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.other-places-container > a {
  cursor: pointer;
  transform: scale(1);
  transform-origin: center;
  transition: 0.3s transform ease;
}

.other-places-container > a:hover {
  transform: scale(1.04);
}

.other-places-logos {
  padding: 10px 20px;
  height: 35px;
  object-fit: contain;
  background-color: #ffffff77;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: 0.4s transform ease;
  box-shadow: 0px 0px 30px #22222239;
}

.other-places-logos:hover {
  transform: scale(1.05);
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 80%;
  max-width: 1200px;
  min-width: 300px;
  margin: 0 auto;
}
/* For smaller screens: two columns */
@media (max-width: 800px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
.card {
  position: relative;
  display: block;
  perspective: 1200px;
  overflow: visible;
  cursor: pointer;
}
.card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  transition: transform 0.2s ease-in;
  transform-style: preserve-3d;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  border-radius: 3px;
}

/* .card:hover img {
  filter: saturate(1);
} */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  /* backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); */
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 30px;
  font-family: var(--main-font);
}
/* Pseudo-element for the holographic effect */
.card-inner {
  position: relative; /* ensure proper positioning */
  filter: saturate(0);
  border-radius: 3px;
  overflow: hidden;
  transition: 0.5s filter ease, 0.2s transform ease;
}
.card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.8),
    rgba(219, 249, 243, 0.81) 40%,
    transparent 70%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  opacity: 0;
}
.card-inner:hover::before {
  opacity: 0.5;
}

.card-inner:hover {
  filter: saturate(1);
}

/* Section Three */

#section-three {
  background: #fff;
}

.bio-section-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  /* padding: 10px 100px; */
  width: 80%;
  max-width: 1200px;
  justify-self: center;
  margin: 0 auto;
}

.bio-headshot {
  width: 100%;
  padding: 0px 20px;
  transform: translateY(-60px);
  box-sizing: border-box;
}

.social-button-container {
  width: 100%;
  display: flex;
  flex-flow: row;
  gap: 20px;
}

.social-button-container > a > img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.social-button-container > a {
  transition: 0.3s transform ease;
}

.social-button-container > a:hover {
  transform: scale(1.1);
}

/* Education */

.education-block {
  display: grid;
  justify-self: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  grid-template-columns: 100px 100px 1fr;
  padding: 20px 40px;
  border-bottom: 3px solid var(--accent-grey);
  box-sizing: border-box;
  transition: 0.2s background-color ease;
  margin: 0 auto;
}

.education-block:hover {
  background-color: #efefef56;
}

.education-block:last-of-type {
  border-bottom: none;
}

.education-year {
  font-family: var(--main-font);
  font-size: 34px;
  font-weight: 500;
  text-align: center;
}

.education-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  justify-self: center;
}

.education-degree {
  font-family: var(--secondary-font);
  font-weight: 600;
  font-size: 18px;
}

.education-entity {
  font-family: var(--secondary-font);
  font-weight: 300;
  font-size: 16px;
}

.education-entitysubtext {
  font-family: var(--secondary-font);
  font-weight: 400;
  font-size: 11px;
}

#work-history-main-container {
  padding-bottom: 60px;
}

/* Section Four */

#contact-section {
  background-image: url(../img_25/25-contact-bg.svg);
  background-size: cover;
  background-attachment: fixed;
  background-position: top;
  padding-bottom: 100px;
}

#input-container {
  display: flex;
  justify-content: center;
  width: 80%;
  min-width: 300px;
  max-width: 800px;
  margin: 0 auto;
}

form {
  width: 100%;
  min-height: 700px;
}

label {
  font-family: var(--main-font);
  color: var(--accent-grey);
  font-size: 25px;
}

input[type="email"],
textarea {
  font-family: var(--secondary-font);
  font-size: 15px;
  color: var(--main-green);
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  background-color: var(--accent-grey);
  border: 4px solid transparent;
  outline: none;
  transition: 0.3s transform ease;
}

textarea {
  height: 300px;
}

input[type="email"]:focus,
textarea:focus {
  transform: scale(1.02);
  outline: none;
  border: 4px solid white;
}
#ctc-submit {
  width: 100%;
  padding: 10px 0px;
  outline: none;
  border: 2px solid var(--accent-grey);
  font-family: var(--main-font);
  font-size: 20px;
  background-color: transparent;
  color: #fff;
  transition: 0.3s all ease;
}

#ctc-submit:active,
#ctc-submit:focus,
#ctc-submit:hover {
  background-color: var(--accent-grey);
  color: var(--main-black);
  transform: scale(1.03);
}

#ctc-thankyou-container {
  color: #fff;
  font-family: var(--main-font);
  text-align: center;
  min-height: 700px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.ctc-thankyou-head {
  font-size: 58px;
}

.ctc-thankyou-subhead {
  font-size: 28px;
}

#ctc-status {
  color: #fff;
  font-family: var(--main-font);
  font-size: 20px;
  text-align: center;
  padding-bottom: 8px;
  visibility: hidden;
}

/* ---------- Footer -------- */

footer {
  padding-top: 50px;
  padding-bottom: 50px;
  min-height: 160px;
  background-color: #222;
  background-image: url(../img_25/herobgs/25-introsection-bg.webp);
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
}

.test-blur {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: #ccff33;
}
#footer_container {
  width: 80%;
  height: 100%;
  min-width: 200px;
  max-width: 600px;
  backdrop-filter: blur(10px) saturate(90%);
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer_logo_container {
  border-right: 2px solid #fff;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.footer_logo_container > span {
  font-family: var(--main-font);
  color: var(--accent-grey);
  font-size: 15px;
  text-align: center;
}

.footer_jtc_logo {
  height: 75px;
  width: auto;
  object-fit: cover;
  padding: 10px;
  box-sizing: border-box;
}

.footer_social_container {
  display: flex;
  flex-flow: column;
  padding-left: 30px;
  box-sizing: border-box;
}

.footer_social_container > span {
  font-family: var(--main-font);
  font-size: 16px;
  color: var(--accent-grey);
  padding: 10px 0px;
}

.footer_social_logos {
  display: flex;
  flex-flow: row;
  gap: 20px;
  align-items: center;
}

.footer_social_logos > a {
  height: 30px;
  width: 30px;
  object-fit: cover;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

.footer_social_logos > img {
  height: 30px;
  width: 30px;
  object-fit: cover;
}
