/*
0 - 600px:      Phone
600 - 900px:    Tablet portrait
900 - 1200px:   Tablet landscape
[1200 - 1800] is where our normal styles apply
1800px + :      Big desktop
$breakpoint arguement choices:
- phone
- tab-port
- tab-land
- big-desktop

Inside media queries 1em is always 16px i.e 1em = 16px at every screen size only inside media queries
*/
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  font-family: inherit;
}

:root {
  --primary-color: #f3f3f3;
  --secondary-color: #eaeaea;
  --teal-blue: #41ac41;
  --text-color-primary: #161616;
  --primary-blur: #b9b9b9a0;
  --gradient1: #b9b9b9a0;
  --gradient2: #6a6a6aa0;
  --neu-light: #ffffff;
  --neu-dark: #8a8a8a;
  --neu-dark-project: #dbdbdb;



}

.dark-theme {
  --primary-color: #161616;
  --secondary-color: #2d2d2d;
  --teal-blue: #378337;
  --text-color-primary: #f3f3f3;
  --primary-blur: #474747a0;
  --gradient1: #474747a0;
  --gradient2: #1f1f1fa0;
  --neu-light: #2e2e2e;
  --neu-dark: #000000;
  --neu-dark-project: #1d1d1d;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media only screen and (max-width: 75em) {
  html {
    font-size: 59%;
  }
}

@media only screen and (max-width: 56.25em) {
  html {
    font-size: 56%;
  }
}

@media only screen and (min-width: 112.5em) {
  html {
    font-size: 65%;
  }
}

body {
  transition: background-color 1.5s ease-in;
  background-color: var(--primary-color);
  box-sizing: border-box;
  position: relative;
  line-height: 1.5;
  font-family: sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
  font-family: 'Source Sans Pro', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

input:focus,
button:focus,
a:focus,
textarea:focus {
  outline: none;
}

button {
  border: none;
  cursor: pointer;
}

textarea {
  resize: none;
}

.skills-container {
  width: 300px;
  /* Adjust the width as needed */
  height: 20px;
  /* Adjust the height as needed */
  border: 1px solid #a10000;
  /* Optional: Add a border for the rectangular area */
  overflow: scroll;
  /* Clip images that exceed the container size */
}

.skills-container img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  /* Scale and crop images to cover the container */
}

.heading-primary {
  color: var(--text-color-primary);
  font-size: 6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center
}

@media only screen and (max-width: 37.5em) {
  .heading-primary {
    font-size: 4.5rem;
  }
}

.heading-sec__mb-bg {
  margin-bottom: 11rem;
}

@media only screen and (max-width: 56.25em) {
  .heading-sec__mb-bg {
    margin-bottom: 8rem;
  }
}

.heading-sec__mb-med {
  margin-bottom: 9rem;
}

@media only screen and (max-width: 56.25em) {
  .heading-sec__mb-med {
    margin-bottom: 8rem;
  }
}

.heading-sec__main {
  display: block;
  color: var(--text-color-primary);
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.heading-sec__main--lt {
  color: var(--text-color-primary);
  transition: color 1.5s ease;

}

.heading-sec__main--lt::after {
  content: '';
  background: var(--primary-color) !important;
}

.heading-sec__main::after {
  content: '';
  position: absolute;
  top: calc(100% + 1.5rem);
  height: 5px;
  width: 3rem;
  background: var(--teal-blue);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

@media only screen and (max-width: 37.5em) {
  .heading-sec__main::after {
    top: calc(100% + 1.2rem);
  }
}

.heading-sec__sub {
  display: block;
  text-align: center;
  color: var(--text-color-primary);
  font-size: 2rem;
  font-weight: 500;
  max-width: 80rem;
  margin: auto;
  line-height: 1.6;
}

@media only screen and (max-width: 37.5em) {
  .heading-sec__sub {
    font-size: 1.8rem;
  }
}

.heading-sec__sub--lt {
  color: var(--text-color-primary);
  transition: color 1.5s ease;

}

.heading-sm {
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-container {
  max-width: 120rem;
  margin: auto;
  width: 92%;
}

.btn {
  background: var(--primary-color);
  transition: background-color 1.5s ease-in;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  font-weight: 700;
  border-radius: 5px;
  /* box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15); */
  transition: transform .3s;
  border-radius: 50px;
  background: #e0e0e0;
  box-shadow: -29px 29px 58px var(--neu-dark),
    29px -29px 58px var(--neu-light);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--bg {
  color: var(--primary-color);
  background-color: var(--text-color-primary);
  padding: 1.5rem 8rem;
  font-size: 2rem;
}

.btn--med {
  padding: 1.5rem 5rem;
  font-size: 1.6rem;
}

.btn--theme {
  background: var(--teal-blue);
  color: var(--text-color-primary);
}

.btn--theme-inv {
  color: var(--teal-blue);
  background: var(--primary-color);
  border: 2px solid var(--teal-blue);
  box-shadow: none;
  padding: calc(1.5rem - 2px) calc(5rem - 2px);
}

.sec-pad {
  padding: 12rem 0;
}

@media only screen and (max-width: 56.25em) {
  .sec-pad {
    padding: 8rem 0;
  }
}

.text-primary {
  color: var(--text-color-primary);
  font-size: 2.3rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 2px 2px 3px var(--secondary-color);
  transition: background-color 1.5s ease-in;
  width: 100%;
  line-height: 1.6;
}

@media only screen and (max-width: 37.5em) {
  .text-primary {
    font-size: 2rem;
  }
}

.d-none {
  display: none;
}


.zoom-out {
  transform: scale(0.8);
}

/* #icon {
  width: 75%;
  cursor: pointer;
  padding-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
  
} */

.home-hero {
  color: var(--primary-color);
  background: url(../../assets/jpeg/whiteFade.jpg);
  background-size: 100% auto;
  transition: filter 1.5s ease-in;
  /* box-shadow: 0 0 120px var(--primary-blur); */
  background-repeat: no-repeat;
  background-position: top;
  height: 100vh;
  min-height: 80rem;
  max-height: 120rem;
  position: relative;
}


@media only screen and (max-width: 37.5em) {
  .home-hero {
    height: unset;
    min-height: unset;
  }
}

.home-hero__socials {
  position: absolute;
  top: 50%;
  border: 2px solid var(--text-color-primary);
  border-left: 2px solid var(--text-color-primary);
  transform: translateY(-50%);
}

@media only screen and (max-width: 56.25em) {
  .home-hero__socials {
    display: none;
  }
}

.home-hero__mouse-scroll-cont {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
}

@media only screen and (max-width: 37.5em) {
  .home-hero__mouse-scroll-cont {
    display: none;
  }
}

.home-hero__social {
  width: 5rem;
}

.home-hero__social-icon-link {
  width: 100%;
  display: block;
  padding: 1.2rem;
  border-bottom: 2px solid var(--text-color-primary);
  transition: background .3s;
}

.home-hero__social-icon-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-hero__social-icon-link--bd-none {
  border-bottom: 0;
}

.home-hero__social-icon {
  transition: filter 1.5s ease-in;
  width: 100%;
  filter: invert();
}

.home-hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90rem;
  width: 92%;
}

@media only screen and (max-width: 37.5em) {
  .home-hero__content {
    padding: 19rem 0 13rem 0;
    margin: auto;
    position: static;
    transform: translate(0, 0);
  }
}

.home-hero__info {
  margin: 3rem auto 0 auto;
  max-width: 80rem;
}

.home-hero__cta {
  margin-top: 5rem;
  text-align: center;
}

.about {
  background: var(--primary-color);
  transition: background-color 1.5s ease-in;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10rem;
}

@media only screen and (max-width: 56.25em) {
  .about__content {
    grid-template-columns: 1fr;
    grid-gap: 8rem;
  }
}

.about__content-title {
  color: var(--text-color-primary);
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 3rem;
}

@media only screen and (max-width: 37.5em) {
  .about__content-title {
    font-size: 2.4rem;
  }
}

.about__content-details-para {
  font-size: 1.8rem;
  color: grey;
  max-width: 60rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__content-details-para--hl {
  font-weight: 700;
  margin: 0 3px;
}

.about__content-details-para:last-child {
  margin-bottom: 4rem;
}

.projects__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-gap: 5rem;
  margin-bottom: 13rem;
}

@media only screen and (max-width: 56.25em) {
  .projects__row {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
    margin-bottom: 8rem;
  }
}

@media only screen and (max-width: 56.25em) {
  .projects__row {
    text-align: center;
  }
}

.projects__row:last-child {
  margin-bottom: 0;
}

.projects__row-img-cont {
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(225deg, var(--neu-dark-project), var(--neu-light));
  box-shadow: -20px 20px 40px var(--neu-dark),
    20px -20px 40px var(--neu-light);
  transition: transform 1.7s cubic-bezier(0.2, 1, 0.2, 1);
  text-align: center;
  position: relative;
}

.projects__row-img-cont video {}



.projects__row-img {
  width: 100%;
  display: block;
  object-fit: cover;


}

.projects__row-img-cont:hover {
  transform: scale(1.1);
  /* Zoom in when hovered */
}

.projects__row-content {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
}

@media only screen and (max-width: 56.25em) {
  .projects__row-content {
    align-items: center;
  }
}

.projects__row-content-title {
  color: var(--text-color-primary);
  font-weight: 700;
  font-size: 4.7rem;
  margin-bottom: 2rem;
}

@media only screen and (max-width: 37.5em) {
  .projects__row-content-title {
    font-size: 2.4rem;
  }
}

.projects__row-content-desc {
  font-size: 2rem;
  font-weight: 500;
  color: grey;
  max-width: 60rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

@media only screen and (max-width: 37.5em) {
  .projects__row-content-desc {
    font-size: 1.7rem;
  }
}

.contact {
  background: ease-in-gradient(to right, rgba(0, 56, 55, 0.7), rgba(0, 194, 155, 0.8)), url(../../assets/svg/common-bg.svg);

  background-size: cover;
  background-position: center;
}

.contact__form-container {
  box-shadow: 0 0 12px var(--text-color-primary);
  background: var(--primary-color);
  padding: 4rem;
  transition: background-color 1.5s ease-in;
  margin-top: 6rem;
  max-width: 80rem;
  text-align: right;
  width: 95%;
  border-radius: 5px;
  margin: 5rem auto 0 auto;
}

@media only screen and (max-width: 37.5em) {
  .contact__form-container {
    padding: 3rem;
  }
}

.contact__form-field {
  margin-bottom: 4rem;
}

@media only screen and (max-width: 37.5em) {
  .contact__form-field {
    margin-bottom: 3rem;
  }
}

.contact__form-label {
  color: #666;
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
  text-align: left;
}

.contact__form-input {
  transition: background-color 1.5s ease-in;
  color: #333;
  padding: 2rem;
  width: 100%;
  border: 1px solid #ebebeb;
  font-size: 1.6rem;
  letter-spacing: 0px;
  background: var(--secondary-color);
  border-radius: 5px;
  font-weight: 600;
  /* Code for Modern Browsers */
  /* Code for WebKit, Blink, Edge */
  /* Code for Internet Explorer 10-11 */
  /* Code for Microsoft Edge */
  /* Code for Mozilla Firefox 4 to 18 */
  /* Code for Mozilla Firefox 19+ */
}

.contact__form-input::placeholder {
  color: #999;
  font-weight: 600;
  font-size: 1.6rem;
}

.contact__form-input::-webkit-input-placeholder {
  color: #999;
  font-weight: 600;
  font-size: 1.6rem;
}

.contact__form-input:-ms-input-placeholder {
  color: #999;
  font-weight: 600;
  font-size: 1.6rem;
}

.contact__form-input::-ms-input-placeholder {
  color: #999;
  font-weight: 600;
  font-size: 1.6rem;
}

.contact__form-input:-moz-placeholder {
  opacity: 1;
  color: #999;
  font-weight: 600;
  font-size: 1.6rem;
}

.contact__form-input::-moz-placeholder {
  opacity: 1;
  color: #999;
  font-weight: 600;
  font-size: 1.6rem;
}

.contact__btn {
  transition: background-color 1.5s ease-in;
  width: 30%;
  padding: 2rem 4rem;
  font-size: 1.6rem;
}

@media only screen and (max-width: 37.5em) {
  .contact__btn {
    width: 100%;
  }
}

.project-cs-hero {
  color: var(--primary-color);
  background: ease-in-gradient(to right, rgba(0, 194, 155, 0.8), rgba(0, 194, 155, 0.8)), url(../../assets/svg/common-bg.svg);
  background-size: cover;
  background-position: center;
  position: relative;
}

@media only screen and (max-width: 37.5em) {
  .project-cs-hero {
    height: unset;
    min-height: unset;
  }
}

.project-cs-hero__content {
  padding: 25rem 0 17rem 0;
  max-width: 90rem;
  width: 92%;
  margin: auto;
}

@media only screen and (max-width: 37.5em) {
  .project-cs-hero__content {
    padding: 19rem 0 13rem 0;
    margin: auto;
    position: static;
    transform: translate(0, 0);
  }
}

.project-cs-hero__info {
  margin: 3rem auto 0 auto;
  max-width: 80rem;
}

.project-cs-hero__cta {
  margin-top: 5rem;
  text-align: center;
}

.project-details__content {
  padding: 8rem 0;
  max-width: 90rem;
  margin: auto;
}

.project-details__content-title {
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 3rem;
}

@media only screen and (max-width: 37.5em) {
  .project-details__content-title {
    font-size: 2.4rem;
  }
}

.project-details__showcase-img-cont {
  width: 100%;
  margin-bottom: 6rem;
}

.project-details__showcase-img {
  width: 100%;
}

.project-details__content-main {
  width: 100%;
  max-width: 70rem;
  margin: auto;
}

.project-details__desc {
  margin: 0 0 7rem 0;
}

.project-details__desc-para {
  font-size: 1.8rem;
  line-height: 1.7;
  color: grey;
  margin-bottom: 2rem;
}

.project-details__tools-used {
  margin: 0 0 7rem 0;
}

.project-details__tools-used-list {
  display: flex;
  flex-wrap: wrap;
}

.project-details__tools-used-item {
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  margin-right: 1.5rem;
  font-size: 1.6rem;
  background: rgba(153, 153, 153, 0.2);
  border-radius: 5px;
  font-weight: 600;
  color: #777;
}

.project-details__links {
  margin: 0 0;
}

.project-details__links-btn {
  margin-right: 2rem;
}

@media only screen and (max-width: 37.5em) {
  .project-details__links-btn {
    margin-right: 0;
    width: 70%;
    margin-bottom: 2rem;
    text-align: center;
  }
}

.project-details__links-btn:last-child {
  margin: 0;
}

@media only screen and (max-width: 37.5em) {
  .project-details__links-btn:last-child {
    margin: 0;
  }
}



.darkIcon {
  max-width: 100%;
  height: auto;
}

.darkIcon img {
  max-width: 100%;
  height: auto;
}


.header {
  position: fixed;
  width: 90%;
  transform: translate(5%, 15%);
  transition: background-color 1.5s ease-in;
  z-index: 1000;
  /* background: var(--teal-blue); */
  background: radial-gradient(circle at center, var(--gradient1), var(--gradient2));
  backdrop-filter: blur(9px);
  border-radius: 32px;

  box-shadow: 0 10px 100px rgba(0, 0, 0, 0.1);

}

.hidden_menu {
  opacity: 0;
  /* Hide the button visually */
  transition: opacity 0.6s ease-in-out;
  /* Add a smooth transition */
}



.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5rem;
  transition: color 1.5s ease;


}

@media only screen and (max-width: 56.25em) {
  .header__content {
    padding: 0 2rem;
  }
}

.header__logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-color-primary);
  transition: color .3s;
}

.header__logo-container:hover {
  color: var(--teal-blue);
}

.header__logo-img-cont {
  width: 5rem;
  height: 5rem;
  border-radius: 50px;
  overflow: hidden;
  margin-right: 1.5rem;
  transition: transform 1.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: var(--secondary-color);
}

.header__logo-img-cont img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__logo-img-cont:hover {
  transform: scale(2.2);
  /* Zoom in when hovered */
}

@media only screen and (max-width: 56.25em) {
  .header__logo-img-cont {
    width: 4.5rem;
    height: 4.5rem;
    margin-right: 1.2rem;
  }
}

.header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.header__logo-sub {
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transform: translateX(0);
  /* Start with no translation */
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  ;
}

.header__logo-container:hover .header__logo-sub {
  transform: translateX(39px);
  /* Adjust the slide effect */
}



.header__links {
  display: flex;
}

@media only screen and (max-width: 37.5em) {
  .header__links {
    display: none;
  }
}

.header__link {
  padding: 2.2rem 3rem;
  display: inline-block;
  font-size: 1.6rem;
  color: var(--text-color-primary);
  transition: background-color 1.5s ease;

  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  transition: color .3s;
}

.header__link:hover {
  color: var(--teal-blue);
}

.header__links img {
  display: block;
}

@media only screen and (max-width: 56.25em) {
  .header__link {
    padding: 3rem 1.8rem;
    font-size: 1.5rem;
  }
}

.header__main-ham-menu-cont {
  display: none;
  width: 3rem;
  padding: 2.2rem 0;
}

@media only screen and (max-width: 37.5em) {
  .header__main-ham-menu-cont {
    display: block;
  }
}

.header__main-ham-menu {
  width: 100%;
}

.header__main-ham-menu-close {
  width: 100%;
}

.header__sm-menu {
  background: var(--primary-color);
  position: absolute;
  width: 100%;
  top: 100%;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
}

.header__sm-menu--active {
  visibility: hidden;
  opacity: 0;
}

@media only screen and (max-width: 37.5em) {
  .header__sm-menu--active {
    visibility: visible;
    opacity: 1;
  }
}

.header__sm-menu-link a {
  display: block;
  text-decoration: none;
  padding: 2.5rem 3rem;
  font-size: 1.6rem;
  color: var(--text-color-primary);
  text-align: right;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color .3s;
}

.header__sm-menu-link a:hover {
  color: var(--teal-blue);
}

.header__sm-menu-link:first-child a {
  border-top: 1px solid #eee;
}

.header__sm-menu-link-last {
  border-bottom: 0;
}

.main-footer {
  background: #000;
  color: #c7c7c7;
}

.main-footer__upper {
  display: flex;
  justify-content: space-between;
  padding: 8rem 0;
}

@media only screen and (max-width: 56.25em) {
  .main-footer__upper {
    padding: 6rem 0;
  }
}

@media only screen and (max-width: 37.5em) {
  .main-footer__upper {
    display: block;
  }
}

.main-footer__row-1 {
  order: 2;
}

@media only screen and (max-width: 56.25em) {
  .main-footer__row-1 {
    margin-bottom: 5rem;
  }
}

.main-footer__row-2 {
  width: 40%;
  order: 1;
  max-width: 50rem;
}

@media only screen and (max-width: 56.25em) {
  .main-footer__row-2 {
    width: 100%;
  }
}

.main-footer__short-desc {
  margin-top: 2rem;
  color: #eee;
  font-size: 1.5rem;
  line-height: 1.7;
}

.main-footer__social-cont {
  margin-top: 2rem;
}

.main-footer__icon {
  margin-right: 1rem;
  width: 2.5rem;
}

.main-footer__icon--mr-none {
  margin-right: 0;
}

.main-footer__lower {
  padding: 4rem 0;
  border-top: 1px solid #444;
  color: #eee;
  font-size: 1.2rem;
  text-align: left;
  text-align: center;
}

.main-footer__lower a {
  text-decoration: underline;
  font-weight: bold;
  margin-left: 2px;
}

@media only screen and (max-width: 56.25em) {
  .main-footer__lower {
    padding: 3.5rem 0;
  }
}

.icon {

  transition: transform 0.8s ease;
  width: 75px;
  cursor: pointer;
  padding-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
  /* Add a transition for the scale effect */
}

.icon.active {
  transform: translate3d(-30px, 0px, 0px) scale(1.3);
  /* Increase the size when active */
}




.skills {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-around; */
  align-items: center;


}

.skills__skill {
  padding: 1.5rem 2.1rem;
  margin-bottom: 3.1rem;
  margin-right: 2.5rem;
  font-size: 1.6rem;
  background: rgba(153, 153, 153, 0.2);
  border-radius: 32px;
  font-weight: 600;
  color: var(--text-color-primary);
  border-radius: 50px;
  /* background: #d1d1d1; */
  box-shadow: -29px 29px 58px var(--neu-dark),
    29px -29px 58px var(--neu-light);
}

.skills__skill img {
  max-height: 50px;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-color-primary);
  border-radius: 60px;
  position: relative;
  overflow: hidden;
}

.mouse::before {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-color-primary);
  border-radius: 50%;
  opacity: 1;
  animation: wheel 1.3s infinite;
  -webkit-animation: wheel 1.3s infinite;
}

@keyframes wheel {
  to {
    opacity: 0;
    top: 27px;
  }
}

@-webkit-keyframes wheel {
  to {
    opacity: 0;
    top: 27px;
  }
}

.carousel {
  height: 100%;
  width: 100%;
  position: relative;
  object-fit: fill;

}

.carousel>ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
  align-items: center;
  background-color: #262a35;
}



.slide>img {
  display: flex;
  align-items: center;

  width: 100%;
  height: 100%;

  object-fit: fill;
  object-position: center;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0ms;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  font-size: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  border-radius: .25rem;
  padding: 0 .5rem;
  background-color: rgba(0, 0, 0, .1);
}

.carousel-button:hover,
.carousel-button:focus {
  color: white;
  background-color: rgba(0, 0, 0, .2);
}

.carousel-button:focus {
  outline: 1px solid black;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

/* timeline */
.timeline {
  --color: var(--primary-color);
  --bgColor: var(--bgColor);
  --accent-color: rgba(0, 123, 255);
  /* Add this if not defined earlier */
  margin: 12px;

  border-radius: 32px;
  font-weight: 600;
  color: var(--text-color-primary);
  border-radius: 50px;
  /* background: #d1d1d1; */
  box-shadow: -29px 29px 58px var(--neu-dark),
    29px -29px 58px var(--neu-light);
}

.timeline *,
.timeline *::before,
.timeline *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.timeline {
  min-height: 10vh;
  display: grid;
  align-content: center;
  gap: 2rem;
  padding: 2rem;
  color: var(--text-color-primary);
  background: var(--bgColor);
}

.timeline h1 {
  text-align: center;
  font-size: 42px;
}

.timeline ul {
  --col-gap: 9rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: min(90rem, 90%);
  margin-inline: auto;
}

.timeline ul::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

.timeline ul li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

.timeline ul li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

.timeline ul li .date {
  --dateH: 6rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);
  text-align: center;
  background-color: var(--accent-color);
  color: white;
  font-size: 2.15rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

.timeline ul li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

.timeline ul li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--bgColor);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

.timeline ul li .title,
.timeline ul li .descr {
  background: var(--bgColor);
  position: relative;
  padding-inline: 1.5rem;
}

.timeline ul li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 900;
  font-size: 28px;
}

.timeline ul li .descr {
  padding-block-end: 1.5rem;
  font-weight: 300;
  font-size: 18px;
}

/* .timeline ul li .title::before,
.timeline ul li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
} */

.timeline ul li .title::before {
  bottom: calc(100% + 0.125rem);
}

.timeline ul li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  

  .timeline ul {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }

  .timeline ul::before {
    grid-column: 2;
  }

  .timeline ul li:nth-child(odd) {
    grid-column: 1;
  }

  .timeline ul li:nth-child(even) {
    grid-column: 3;
  }

  .timeline ul li:nth-child(2) {
    grid-row: 2/4;
  }

  .timeline ul li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timeline ul li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }

  .timeline ul li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}


.timeline .credits {
  margin-top: 1rem;
  text-align: right;
}

.timeline .credits a {
  color: var(--color);
}