@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
  --primary-color: black;
  --accent-color: rgba(24, 29, 61, 0.8);
  --hover-color: rgba(120, 103, 98, 0.627);
  --accent-hover-color: rgba(175, 131, 75, 0.9);
  --active-color: #272832;
  --active-link-color: orange;
  --text-color: #ffffff;
  --hover-text-color: rgba(175, 131, 75, 0.9);
  --menu-glass-color: rgba(32, 33, 35, 0);
  --card-glass-color: rgba(61, 72, 86, 0.273);
  --scrollbar-thumb: rgba(255, 255, 255, 0.2);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body{
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Courier New", Courier, monospace;
  color: var(--text-color);
  background-color: var(--primary-color);
  scroll-behavior: smooth; /*For bookmark links*/
  display: flex;
  flex-direction: column;
}

.home-bgimg{
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/Turi_Condon_Moderating_1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed; /* Keeps background static during scrolling */
  transition: background-position 0.8s ease-in-out;
}

.about-bgimg{
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/Turi_Condon_Moderating_1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed; /* Keeps background static during scrolling */
  transition: background-position 0.8s ease-in-out;
  background-position-x: 20vw;
  background-position-y: center;
  background-attachment: fixed; /* Keeps background static during scrolling */
  overflow: hidden;
  transition: background-position 0.8s ease-in-out;
}

.home-page-link {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: var(--text-color);
  font-size: clamp(1rem, calc(1em + 2.9vw), 3rem);
  text-decoration: none;
  text-align: left;
  max-width: 60vw;
  z-index: 8;
  transition: background-color 0.8s ease-in-out, color 0.4s linear;
}

a.home-page-link:hover {
  background-color: var(--hover-color);
  color: var(--hover-text-color);
}

/* Accessibility: Improve focus visibility for keyboard users */
.home-page-link:focus {
  outline: 1px solid var(--hover-color);
}
main{
  flex: 1;
  margin: 130px 0 0;
  /*padding: min(2em, 7%); /* Responsive text block for use with @Media */
z-index: 0;
}
.title{
  /* background-color: val(--primary-color); */
  background-color: black; /* color variable black won't cover cards!! */
  position: fixed;
  top: 125px;
  width: 60vw;
  margin: -125px 0px 0px 0px;
  padding: 125px 0px 15px 25px;
  border-radius: 5px;
  z-index: 1;
}
.intro{
  position: absolute;
  top: 45vh;
  transform: translate(-50%, -50%);
  text-align: center;
  margin-left: 18%;
  margin-right: 55%;
  font-size: 1.2rem;
  border-radius: 10px;
  background-color: val(--primary-color);
  backdrop-filter: blur(3px);
  line-height: 1.25; /* Improves readability */
  max-height: 80vh; /* Prevents the container from taking up the whole screen */
  overflow-y: auto; /* Enables vertical scrolling when needed */
  transition: top 0.8s ease-in-out, margin-left 0.8s ease-in-out, margin-right 0.8s  ease-in-out;
}
.intro p{
  margin-top: .8em;
}
.services-container{
  margin: 50px 0 0;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
}
.card{
  width: 300px;
  min-width: 250px;
  padding: 2em;
  border: 1px solid rgb(75, 82, 92);
  border-radius: 10px;
  background-color: #222429;
  text-align: left ;
  line-height: 1.25;
  background-color: var(--card-glass-color);
  /* background-color: var(--menu-glass-color); */
  backdrop-filter: blur(3px);
  z-index: 0;
}
.about-content{
  margin: 53px 50% 0 25px;
  line-height: 1.25; /* Improves readability */
  border-radius: 10px;
  background-color: var(--primary-color);
  backdrop-filter: blur(3px);
  z-index: 10;
}
.about-content p{
  margin-top: .8em;
}
.contact-content{
  margin: 53px 0px 0 25px;
  line-height: 1.25; /* Improves readability */
  border-radius: 10px;
  z-index: 0;
}
nav{
  /* background-color: var(--primary-color); */
  /* border-bottom: 1px solid var(--hover-color); */
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  z-index: 9;
}
nav ul{
  list-style: none;
  display: flex;
  justify-content: flex-end; /* Keeps RH menu items right with .home-li off. */
}
nav .home-li{
  margin-right: auto;
  display: none; /* Only display 'home' menu item on small screens */
}
nav li{
  display: flex;
}
nav a{
  display: flex;
  text-decoration: none;
  color: var(--text-color);
  padding: 1em 2em;
  /* transition: background-color 150ms ease; */
  position: relative; /* Needed for absolute positioning of active-link ::after */
  transition: background-color 0.7s ease-in-out, color 0.4s linear;
}
nav a:hover{
  background-color: var(--hover-color);
  color: var(--hover-text-color);
}
nav a.active-link{
  border-bottom: 2px solid var(--active-link-color);
}
nav a.accent-link{
  background-color: var(--accent-color);
}
nav a.active-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--active-link-color);
  bottom: -2px;
  left: 0;
}
#open-sidebar-button{
  display: none;
  background: none;
  border: none;
  padding: 1em;
  margin-left: auto;
  cursor: pointer;
  position: fixed;
  right: 0;
  z-index: 9;
}
#close-sidebar-button{
  display: none;
  background: none;
  border: none;
  padding: 1em;
  cursor: pointer;
}
#overlay{
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
}
.skip-link {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background-color: var(--accent-color); 
  color: #ffffff; 
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}
.skip-link:focus {
  opacity: 1; 
  pointer-events: auto; 
  outline: 3px solid #ffffff; 
}
footer {
  padding: 0.5em 25px 10px;
  width: 100%;
  text-align: left;
  margin-top: auto; /* Push to bottom when main content is short */
  z-index: 0;
}
footer ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
footer li {
  display: flex;
  flex-direction: column;
  align-self: center;
  flex-wrap: wrap; /* Allow wrapping if content overflows */
}
footer a {
  display: flex;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  padding: 1.1em 0.9em;
  transition: background-color 0.7s ease-in-out, color 0.4s linear;
}
footer a:hover {
  background-color: var(--hover-color);
  color: var(--accent-hover-color);
}
footer a.accent-link {
  background-color: var(--accent-color);
}
@media screen and (max-width: 935px) {
  .title{
    width: 83vw;
  }
  .home-bgimg{
    background-position-x: 20%;
    background-position-y: center;
    overflow: hidden;
  }
}
@media screen and (max-width: 768px) {
  #open-sidebar-button, #close-sidebar-button{
    display: block;
  }
  .about-bgimg{
    background-position-x: center;
    background-position-y: center;
    overflow: hidden;
  }
  .title{
    width: 100vw;
  }
  nav{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(15em, 100%);
    border-left: 1px solid var(--hover-color);
    background-color: var(--menu-glass-color);
    backdrop-filter: blur(3px);
    transition: right 500ms ease-in-out;
    z-index: 1000;
  }
  nav.show{
    right: 0;
  }
  nav.show ~ #overlay{
    display: block;
  }
  nav ul{
    width: 100%;
    flex-direction: column;
  }
  nav a{
    width: 100%;
    padding-left: 2.5em;
  }
  /* Original active link replaced by nav a.active-link::after */
  /*  nav a.active-link {
    border-bottom: none;
  }*/
  nav a.active-link::after {
    background-color: var(--active-link-color);
  }
  nav .home-li{
    margin-right: unset;
    display: block;
  }
  #close-sidebar-li {
    display: flex;
    justify-content: flex-end;
  }
  .intro{
    top: 50vh;
    margin-left: 20%;
    margin-right: 60%;
  }
  .about-content{
    margin-left: 2vw;
    margin-right: 2vw;
    background-color: var(--card-glass-color);
  }
  footer {
    position: relative; /* Ensures footer remains at bottom of content */
  }
  footer .contact-li {
    display: none;
  }
}
@media screen and (max-width: 414px) {
  .intro{
    top: 50vh;
    transform: translate(-30%, -50%);
    text-align: left;
    margin-left: 20%;
    margin-right: 60%;
  }
  footer {
    font-size: 0.9em;
  }
}
.socials-container{
  margin: 20px 0;
  width: 37px;
  display: flex;
  gap: 0px;
}
.socials-container a{
  background-color: white;
  padding: 0.0em;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  box-sizing: border-box;
  font-family: Poppins, 'Segoe UI', sans-serif;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 2.5px 5px rgba(0, 0, 0, 0.05);
  z-index: 4;
}
.socials-container a svg{
  height: 32px;
  z-index: 5;
}
.socials-container a::before{
  content: attr(data-social);
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 0.25em 0.5em;
  border-radius: 50px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-15px) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}
.socials-container a:hover{
  background-color: var(--accent-color);
  fill: white;
}
.socials-container a::after{
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}
.socials-container a:hover::before{
  transform: translateY(-32px) rotate(0);
  opacity: 1;
}
.socials-container a:hover::after{
  transform: translateY(-21px) rotate(0);
  opacity: 1;
}