* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  /*outline: red 1px solid; */
}

.navbar {
  background: #222831;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(34, 40, 49, 0.90); /* 0.90 = 90% opacity, adjust to taste */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari support */
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
 /* max-width: 1300px; */
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}

#navbar__logo {
  background-color: #222831;
  background-image: linear-gradient(135deg, #DFD0B8, #222831);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
}

.logo {
  height: 45px;                /* Control the logo size here */
  width: auto;                 /* Keeps the aspect ratio perfect */
  display: block;
}

.fa-gem {
  margin-right: 0.5rem;
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
  margin-left: auto;
}

.navbar__item {
  height: 60px;
}

.navbar__links {
  color: #DFD0B8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 1rem;
  height: 100%;
}

.navbar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #948979;
  color: #DFD0B8;
}

.button:hover {
  background: #DFD0B8;
  color: #948979;
  transition: all 0.3s ease;
}

.navbar__links:hover {
  color: #948979;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0;
  }

  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 1;
    transition: all 0.5s ease;
    height: 50vh;
    z-index: -1;
  }

  .navbar__menu.active {
    background: #222831;
    top: 100%;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 99;
    height: 60vh;
    font-size: 1.6rem;
  }

  #navbar__logo {
    padding-left: 25px;
  }

  .logo {
  height: 30px;                /* Control the logo size here */
  width: auto;                 /* Keeps the aspect ratio perfect */
  display: block;
}

  .navbar__toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #DFD0B8;
  }

  .navbar__item {
    width: 100%;
  }

  .navbar__links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
  }

  .navbar__btn {
    padding-bottom: 2rem;
  }

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 60px;
    margin: 0;
  }

  #mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }

  .navbar__toggle .bar {
    display: block;
    cursor: pointer;
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Main Content CSS */
.main {
  background-color: #393E46;
}

.main__card {
  grid-column: 1 / -1;  /* ← ADD THIS - spans full width */
  margin: 0;            /* ← remove the 1rem margin */
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ← makes background stay while scrolling */
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.70) 100%
    ),
    url('images/background1film.jpeg');
  color: #DFD0B8;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical center */
  align-items: center;      /* horizontal center */
  text-align: center;       /* centers the text itself */
  position: relative; /* ← needed for sticky child to work */
}

.main__card--text {
  position: sticky;
  top: 40%;              /* ← how far from top it sticks */
  text-align: center;
  padding: 70px clamp(20px, 5vw, 100px); /* shrinks horizontally on small screens */
  z-index: 10;
  filter: 
  drop-shadow(0px 0px 20px rgba(0, 0, 1)) 
  drop-shadow(0px 0px 40px rgba(0, 0, 0, 0.8));
}

.main__card h1 {
  font-size: 10rem;
  letter-spacing: 0.05em;
  background-color: #393E46;
  background-image: linear-gradient(135deg, #DFD0B8 42%, #222831);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  font-family: 'Cormorant Garamond', serif;
  line-height: 0.9;
  margin-bottom: -1rem;
}

.main__card h2 {
  font-size: 3.5rem;
  letter-spacing: 0.05em;
  margin-top: 0;
  background-color: #393E46;
  background-image: linear-gradient(135deg, #DFD0B8 42%, #222831);
  background-size: 100%;
  padding-right: 25px;
  padding-left: 25px;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  font-family: 'Montserrat', sans-serif;
}

.main__card p {
  margin-top: 2rem;
  font-size: 21px;
  font-weight: 700;
  background-color: #393E46;
  background-image: linear-gradient(135deg, #DFD0B8 42%, #222831);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}


/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .main__card {
    display: grid;
    grid-template-columns: 1fr;   /* ← cleaner than auto */
    align-items: center;
    justify-self: center;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;            /* ← full height on mobile */
    height: auto;
    padding: 20px;   
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;    /* ← reduced padding */
  }

  /* ← Also update your card for mobile */
  .main__card {
    grid-column: 1 / -1;
    height: 100vh;
    margin: 0;
  }

  /* ← Shrink text for mobile */
  .main__card h1 {
    font-size: 4rem;              /* desktop might be 3rem */
    line-height: 1;
    margin-bottom: 0rem;
  }

  .main__card h2 {
    font-size: 1.5rem;            /* desktop might be 2rem */
  }

  .main__card p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 599px) {
  .main__content h1 {
    font-size: 2rem;
    margin-top: 3rem;
  }

  .main__content h2 {
    font-size: 2rem;
  }

  .main__content p {
    margin-top: 2rem;
    font-size: 1.5rem;
  }

  .main__btn {
    padding: 12px 36px;
    margin: 2.5rem 0;
  }
}

/* Solutions Section */
.solutions {
  background: #393E46;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

.solutions h1 {
  background-color: #393E46;
  background-image: linear-gradient(135deg, 
  #fff9e0 0%,
  #DFD0B8 11%, 
  #C9B99A 42%, 
  #948979 60%, 
  #5A6070 85%, 
  #393E46 100%
  );

  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  margin-bottom: 5rem;
  font-size: 2.5rem;
}

.solutions__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
  color: #DFD0B8;
}

.solutions__content h2 {
  margin-top: 1rem;
  padding: 0 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.solutions__content p {
  margin-top: 1rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .solutions {
    height: auto;
  }

  .solutions h1 {
    font-size: 2rem;
    margin-top: 2rem;
  }

  .solutions__content h2 {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 599px) {
  .solutions {
    height: auto;
  }

}

/* projects Section */
.projects {
  background: #393E46;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

.projects h1 {
  background-color: #393E46;
  background-image: linear-gradient(135deg, 
  #fff9e0 0%,
  #DFD0B8 11%, 
  #C9B99A 42%, 
  #948979 60%, 
  #5A6070 85%, 
  #393E46 100%
  );
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  margin-bottom: 5rem;
  font-size: 2.5rem;
}

.projects__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.projects__card {
  margin: 1rem;
  height: 600px;
  width: 400px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(17, 17, 17, 0.6) 100%
    ),
    url('');
  background-size: cover;
  position: relative;
  background-position: center;
  color: #DFD0B8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.projects__card:before {
  opacity: 0.2;
}

.projects__card:nth-child(2) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(17, 17, 17, 0.9) 100%
    ),
    url('images/dysrhythmia.png');
  background-size: cover;
  position: relative;
  color: #DFD0B8;
}

.projects__card:nth-child(3) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(17, 17, 17, 0.9) 100%
    ),
    url('images/betweenthelines.png');
  background-size: cover;
  position: relative;
  color: #DFD0B8;
}

.projects__card:nth-child(4) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(17, 17, 17, 0.9) 100%
    ),
    url('images/countyrescue.png');
  background-size: cover;
  position: relative;
  color: #DFD0B8;
}

.projects__card h2 {
  position: static;
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.projects__card p {
  position: static;
  margin-bottom: 0.75rem;
}

.projects__card button {
  color: #DFD0B8;
  padding: 10px 20px;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #948979;
  position: static;
  align-self: flex-start;
  font-size: 1.25rem;
}

.projects__card button:hover {
  cursor: pointer;
}

.projects__card:hover {
  transform: scale(1.075);
  transition: 0.2s ease-in;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .projects {
    height: auto;
  }

  .projects h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
  }

  .projects__card h2 {
    font-size: 1.25rem;
  }

  .projects__card p {
    font-size: 0.9rem;
  }

  .projects__card button {
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 599px) {
  .projects {
    height: auto;
  }

  .projects h1 {
    font-size: 2.5rem;
  }

  .projects__card {
    width: 300px;
    height: 450px;
  }

  .projects__card h2 {
    top: 300px;
    left: 20px;
  }

  .projects__card p {
    top: 340px;
    left: 20px;
  }

  .projects__card button {
    top: 390px;
    left: 20px;
  }
}

/* Biography Section */
.biography {
  background: #393E46;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

.biography h1 {
  background-color: #393E46;
  background-image: linear-gradient(
    135deg,
    #fff9e0 0%,
    #DFD0B8 11%,
    #C9B99A 42%,
    #948979 60%,
    #5A6070 85%,
    #393E46 100%
  );

  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  margin-bottom: 5rem;
  font-size: 2.5rem;
}

.biography__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.biography__card {
  margin: 1rem;
  height: 200px;
  width: 300px;
  max-width: 100%;
  border-radius: 4px;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(17, 17, 17, 0.6) 100%
    ),
    url('images/Annashawprofile.png');
  background-size: cover;
  position: relative;
  color: #DFD0B8;
}

.biography__card p {
  text-decoration: none;
  padding: 10px 20px;
  border: none;
  outline: none;
  border-radius: 4px;
  position: absolute;
  top: 160px;
  left: 0;
  font-size: 1rem;
  color: #DFD0B8;
}

.biography__content h2 {
  margin-top: 1rem;
  padding: 0 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.biography__content p {
  margin-top: 1rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
  color:#DFD0B8;
}

@media screen and (max-width: 768px) {
  .biography {
    height: auto;
  }

  .biography h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 599px) {
  .biography {
    height: auto;
  }

  .biography h1 {
    font-size: 2.5rem;
  }
}

/* Footer CSS */
.footer__container {
  background-color: #222831;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#footer__logo {
  color: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
}

.footer__links {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
}

.footer__link--wrapper {
  display: flex;
}

.footer__link--items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 16px;
  text-align: left;
  width: 160px;
  box-sizing: border-box;
}

.footer__link--items h2 {
  margin-bottom: 16px;
}

.footer__link--items > h2 {
  color: #DFD0B8;
}

.footer__link--items a {
  color: #DFD0B8;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer__link--items a:hover {
  color: #DFD0B8;
  transition: 0.3s ease-out;
}

/* Social Icons */
.social__icon--link {
  color: #DFD0B8;
  font-size: 24px;
}

.social__media {
  width: 100%;
}

.social__media--wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  margin: 40px auto 0 auto;
}

.social__icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 240px;
}

.social__logo {
  color: #DFD0B8;
  justify-self: start;
  margin-left: 20px;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.website__rights {
  color: #DFD0B8;
}

@media screen and (max-width: 768px) {
  .footer__links {
    padding-top: 2rem;
  }

  #footer__logo {
    margin-bottom: 2rem;
  }

  .website__rights {
    margin-bottom: 2rem;
  }

  .footer__link--wrapper {
    flex-direction: column;
  }

  .social__media--wrap {
    flex-direction: column;
  }
}

@media screen and (max-width: 599px) {
  .footer__link--items {
    margin: 0;
    padding: 10px;
    width: 100%;
  }
}

/* Scroll Animation Base States */
.navbar__container,
.main__container,
.solutions__content,
.projects__card,
.biography__card,
.biography__content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.solutions h1,
.projects h1,
.biography h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Stagger project cards */
.projects__card:nth-child(1) { transition-delay: 0s; }
.projects__card:nth-child(2) { transition-delay: 0.1s; }
.projects__card:nth-child(3) { transition-delay: 0.2s; }
.projects__card:nth-child(4) { transition-delay: 0.3s; }

/* Triggered state */
.animate-in {
  opacity: 1 !important;
  transform: none !important;
}
