/* PAGE - BASIC STYLE */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  scroll-behavior: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
}

@media (min-width: 769px) {
  body {
    font-size: 1.4rem;
  }
  header {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* PAGE - BASIC STYLE - buttons*/
.btn,
.box-btn {
  display: inline-block;
  padding: 1% 2%;
  border: none;
  border-radius: 0.313rem;
  margin-top: 1.25rem;
  margin-left: 0.938rem;
  cursor: pointer;
  font-size: 1.2vw;
}
.box-btn-dark,
.btn-dark {
  background: #222222;
  color: #fff;
  transition: background 0.3s ease;
}
.box-btn-dark:hover,
.btn-dark:hover {
  background: #444;
  border-radius: 0.313rem;
  transition: 0.3s ease all;
}

.backtothetopbtn {
  --offset: 3.125rem;
  position: fixed;
  bottom: 0.7rem;
  right: 2.5rem;
  text-decoration: none;
  padding: 0.3rem;
  width: 2.5rem;
  height: 3rem;
  text-align: center;
  font-family: stencil, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  font-weight: bolder;
  color: #fff;
  background: black;
  border-radius: 0.313rem;
  white-space: nowrap;
  z-index: 1000;
  display: none;
}

/* General container */

.gen-container {
  flex: 1;
}

#page-main {
  flex: 1;
}

/* Apply blur effect */
.gen-container#blur.active {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

/* PAGE - BASIC STYLE - header styles */
header {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 1% 2%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 900;
  display: flex;
  align-items: center;
}

.header-logo img {
  margin-right: 20px;
  width: 4.375rem;
  height: 2.875rem;
}

.header-title h1 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.7;
  color: white;
  text-decoration: none;
  text-align: center;
}
.header-title a {
  text-decoration: none;
}

.header-title > a {
  text-decoration: none !important;
}

/* end of PAGE - BASIC STYLE */

/* Hamburger menu */
.hamburger {
  display: flex;
}

/* MAIN NAVIGATION */
header #main-navigation {
  width: 67%;
  display: inline-block;
  text-align: right;
}

header #main-navigation ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
}
header #main-navigation ul li {
  display: inline-block;
}
header #main-navigation ul li a {
  color: white;
  text-decoration: none;
  padding: 0.625rem 0.938rem;
}
header #main-navigation ul li a:hover {
  background: #444;
  border-radius: 0.188rem;
  transition: 0.3s ease all;
}
header #main-navigation a:active {
  text-decoration: underline;
}
header #main-navigation ul li a.active {
  text-decoration: underline;
}

/* end of MAIN NAVIGATION */

/*HERO*/
.hero {
  height: 100vh;
  padding-top: 0;
  text-align: center;
  background: #555;
  background-image: url(../img/background.jpg);
  background-size: cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-content {
  color: black;
  line-height: 1.2;
  max-width: 960px;
  width: 100%;
}
.hero-title {
  margin-top: 0.5rem;
  margin-left: 4rem;
  font-size: 6vw;
  line-height: 0.6;
}
.hero-content p {
  font-size: 2.5vw;
  margin-bottom: 3rem;
  margin-left: 4rem;
}
.hero-content #slogan {
  font-size: 1.5vw;
  line-height: 4;
  margin-bottom: 0;
}
/* end of HERO */

/* SKILLS AND PROJECTS */
.site-section {
  padding: 2.6% 0;
  background-color: #ededed;
}
.section-header {
  text-align: center;
  margin-bottom: -1rem;
}
.section-title {
  text-align: center;
  margin-bottom: 5px;
}
.section-header h2 {
  font-size: 1.9rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #777;
}
.skills-section-title {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 5px;
  font-size: 1.2rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #777;
}
.projects-section-title {
  text-align: center;
  margin-top: -85px;
  margin-bottom: 5px;
  font-size: 1.2rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #777;
}

.container-1 {
  height: 400px;
}
.container-2 {
  height: 400px;
}
.slider-container {
  max-width: 1150px;
  width: 100%;
  height: 300px;
}

.slider-content {
  margin: 0 40px;
  overflow: hidden;
  border-radius: 25px;
  background: white;
}

.card {
  position: relative;
  border-radius: 25px;
  background-color: #fff;
  height: 270px;
}

.image-content,
.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 14px;
}

.image-content {
  position: relative;
  row-gap: 5px;
  padding: 5px 0;
}

.overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #222222;
  border-radius: 25px;
  top: 0;
  left: 0;
}

.card-image {
  position: relative;
  height: 75px;
  width: 75px;
  background-color: #fff;
  border-radius: 50%;
  padding: 3px;
}

.card-image img {
  z-index: 0;
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #777;
  right: 4px;
  bottom: 5px;
}

.name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 14px;
  flex-grow: 1;
}

.description {
  font-size: 16px;
  font-weight: 400;
  color: #707070;
  text-align: center;
  margin-top: -5px;
  flex-grow: 1;
}

.rdmore-button {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 8px 16px;
  margin-top: 10px;
  background-color: #222222;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-end;
}
a .rdmore-button:hover {
  background-color: #444;
}

.swiper-navBtn {
  color: #222222;
  transition: all 0.3s ease;
  margin-bottom: -20px;
}

.swiper-navBtn:hover {
  color: #444;
}

.swiper-navBtn::before,
.swiper-navBtn::after {
  font-size: 35px;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev {
  left: 0;
}

.swiper-pagination-bullet {
  background-color: #222222;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #444;
}

/* Popup styling */
#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 500px;
  min-height: 200px;
  padding: 5vw;
  background: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  border: solid black 1rem;
  border-radius: 2rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 9999;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#popup.active {
  visibility: visible;
  opacity: 1;
}
#popup h2 {
  margin-top: 0rem;
  font-size: 2rem;
}
#popup p {
  font-size: 1.4rem;
  margin: 1rem 0;
  text-align: justify;
  word-wrap: break-word;
  line-height: 2.5rem;
}
.open-link-button {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 1rem;
  bottom: 1rem;
  right: 8.7rem;
  padding: 0;
  height: 40px;
  width: 80px;
  background: black;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 9999;
  text-align: center;
}

/* Close button styling */
.close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 0;
  height: 40px;
  width: 7.2rem;
  background: black;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 9999;
  text-align: center;
}
.open-link-button:hover,
.close-button:hover {
  background: #444;
  border-radius: 0.313rem;
  transition: 0.3s ease all;
}
.hidden-content {
  display: none;
}
.hidden-content #htmlcss-content {
  color: black;
  text-align: justify;
  line-height: 4rem;
}

/* end of SKILLS AND PROJECTS */

/* ABOUT */
.about {
  position: relative;
  background-color: #ededed;
  width: 100%;
  padding: 3.125rem 0rem 2.188rem;
  margin-bottom: 0rem;
  overflow: hidden;
}
.about img {
  float: right;
  width: 40%;
  border-radius: 25%;
  margin-left: 6.875rem;
  margin-right: 5rem;
  margin-bottom: 1.875rem;
}
.about p {
  margin-left: 6%;
  text-align: left;
  font-size: 1.4rem;
  width: 80%;
  line-height: 1.7;
}
/* end of ABOUT */

/* CONTACT */
#contact {
  margin-top: 0rem;
  text-align: left;
  background-image: url(../img/contact-background.jpg);
  background-size: cover;
  padding: 1rem 0;
}
#contact .contact-section-header h2 {
  font-size: 1.9rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #777;
  text-align: center;
  margin-top: 3.7rem;
}
.contact-section-title h3 {
  font-size: 1.4rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #777;
  margin-top: -1rem;
  text-align: left;
}
#contact .contact-form {
  max-width: 70%;
  margin: auto;
  padding: 1rem;
  box-sizing: border-box;
}
#contact .contact-form .form-group {
  margin: 0.75rem 0rem;
  margin-bottom: 0;
  max-width: 70%;
  width: 30rem;
}
#contact .contact-form .form-group label {
  display: block;
  padding-top: 0.938rem;
  width: 18.75rem;
}

#contact .contact-form .form-group input {
  width: 100%;
  border: 0.125rem solid black;
  padding: 0.5rem;
}
#contact .contact-form #submit {
  width: 8rem;
  height: 3rem;
  margin-bottom: 0rem;
  margin-left: 5%;
  font-size: 1.2rem;
  text-align: center;
  padding: 8px 16px;
  background: black;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
#contact .contact-form #submit:hover {
  background: #444;
  border-radius: 0.313rem;
  transition: 0.3s ease all;
}

#contact .contact-form .form-group textarea {
  width: 100%;
  height: 9.375rem;
  padding: 0.5rem;
  border: 0.125rem solid black;
}
#contact .contact-form .form-group input:focus,
#contact .contact-form .form-group textarea:focus {
  outline: none;
  border: #333 solid 0.063rem;
}
/* end of CONTACT */

/* FOOTER */
footer {
  margin-top: auto;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: black;
  color: white;
  padding: 1rem;
  text-align: center;
  height: 69px;
}

footer p {
  color: white;
  margin: 0rem;
}
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social-links a,
.social-links div {
  margin: 0rem 0;
}
.social-links img {
  width: 1rem;
  height: 1rem;
  padding: 0rem 0.625rem;
}
.footer-text {
  margin-top: 0.7rem;
  text-align: center;
}
footer .social-links,
footer .footer-text {
  width: 100%;
  margin-bottom: 0.1rem;
}

footer .footer-text p {
  text-align: center !important;
}
.social-links img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* end of FOOTER */

@media only screen and (max-width: 1320px) {
  header {
    padding: 10px 50px;
    background: rgba(0, 0, 0, 0.9);
  }
}
@media only screen and (max-width: 1100px) {
  header {
    padding: 10px 50px;
    background: rgba(0, 0, 0, 0.9);
    margin-bottom: 15px;
  }
  header #main-navigation {
    top: 3px;
  }
  .hero-title {
    font-size: 3.5rem;
    line-height: 2.5rem;
  }
  .hero-content {
    font-size: 2.5rem;
    margin-bottom: 1%;
    margin-left: 20%;
    line-height: 1rem;
  }
  .hero-content p {
    font-size: 2.5rem;
  }
  .hero-content #slogan {
    font-size: 1.5rem;
    display: none;
  }
  #popup {
    padding: 1vw;
    margin-bottom: 80%;
    line-height: 1;
    width: 80vw;
    max-height: 80vh;
  }

  #popup h2 {
    font-size: 2vw;
  }

  #popup p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 6%;
  }
  .open-link-button {
    bottom: 0.5rem;
    height: 35px;
    width: 5rem;
    font-size: 1rem;
  }

  .close-button {
    height: 35px;
    width: 7.5rem;
    font-size: 1rem;
    bottom: 0.5rem;
    right: 0.9rem;
  }
}
@media only screen and (max-width: 900px) {
  .header-logo {
    margin-left: -30px;
  }

  header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.9);
  }
  .hamburger {
    display: block;
    cursor: pointer;
    margin-left: 10px;
  }
  .hamburger .line {
    width: 30px;
    height: 3px;
    background: #fefefe;
    margin: 6px 0;
  }
  header #main-navigation {
    position: fixed;
    width: 100%;
    top: 74.5px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
  }

  header #main-navigation.active {
    visibility: visible;
    opacity: 1;
  }

  header #main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
  }

  header #main-navigation ul li a {
    color: white;
    text-decoration: none;
    padding: 15px;
    font-size: 1.5rem;
    display: block;
    text-align: center;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-content {
    font-size: 2.5rem;
    margin-bottom: 9%;
    margin-left: 8%;
  }
  .hero-content p {
    font-size: 2.3rem;
  }
  .hero-content #slogan {
    font-size: 1.5rem;
    display: none;
  }
  .hero-title,
  .hero-content p,
  .hero-content #slogan {
    margin-left: 210px;
    margin-bottom: 0px;
    padding: 5px;
  }
  #popup {
    width: 70vw;
    padding: 10vw;
    top: 30%;
  }

  #popup h2 {
    font-size: 1.9rem;
  }

  #popup p {
    font-size: 1.4rem;
  }
  .open-link-button {
    bottom: 0.5rem;
    right: 11rem;
    height: 35px;
    width: 7rem;
    font-size: 1.4rem;
  }

  .close-button {
    height: 35px;
    width: 9.5rem;
    font-size: 1.4rem;
    bottom: 0.5rem;
    right: 0.9rem;
  }
}

@media (min-width: 451px) and (max-width: 768px) {
  .header-logo {
    margin-left: 10px;
  }

  header {
    background: rgba(0, 0, 0, 0.9);
  }
  #main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
  }

  #main-navigation ul li {
    width: 100%;
    text-align: left;
    text-align: center;
    line-height: 2.4rem;
  }
  .backtothetopbtn {
    margin-left: auto;
    margin-right: auto;
    right: 1.25rem;
    font-weight: bolder;
    font-size: 1rem;
    height: 1rem;
    width: 1rem;
  }
  header,
  footer,
  .contact-section,
  .main-content {
    padding: 10px;
  }
  .hero-title,
  .hero-content p {
    font-size: 3vh;
    margin-left: 140px;
    margin-top: 40px;
  }

  .hero-content {
    font-size: 3vw;
    margin-left: 180px;
    margin-bottom: 40%;
  }
  .hero-content p {
    line-height: 2;
    font-size: 1rem;
    margin-left: 140px;
  }

  .hero-content #slogan {
    display: none;
  }
  .slider-content {
    margin: 0 10px;
  }

  .btn,
  .btn-dark {
    padding: 10px 15px;
    margin: 10px 0;
  }
  .name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
  }

  .description {
    font-size: 0.9rem;
    font-weight: 400;
    color: #707070;
    text-align: center;
    margin-top: -5px;
    flex-grow: 1;
  }

  #popup {
    width: 70vw;
    padding: 10vw;
    top: 23%;
  }

  #popup h2 {
    font-size: 1.6rem;
  }

  #popup p {
    font-size: 1rem;
  }
  .open-link-button {
    bottom: 0.5rem;
    right: 8.5rem;
    height: 30px;
    width: 6.5rem;
    font-size: 1rem;
  }

  .close-button {
    height: 30px;
    width: 7.7rem;
    font-size: 1rem;
    bottom: 0.5rem;
    right: 0.5rem;
  }
  .about p {
    font-size: 1.4rem;
    line-height: 2.5rem;
    width: 90%;
  }

  #contact .contact-form .form-group input,
  #contact .contact-form .form-group textarea {
    width: 100%;
    margin: 0;
    padding: 0.5rem;
    box-sizing: border-box;
  }

  #contact .contact-form #submit {
    width: auto;
    padding: 10px 15px;
    font-size: 1rem;
    margin-top: 1rem;
    margin-left: 13%;
  }
  footer {
    margin-bottom: 0;
  }
}
@media (min-width: 283px) and (max-width: 450px) {
  .header-logo {
    margin-left: -30px;
  }

  .hero-title {
    margin-bottom: 2rem;
    margin-left: 4rem;
    font-size: 3vh;
    line-height: 3rem;
    width: auto;
  }

  .hero-content {
    font-size: 1.2rem;
    margin-bottom: 0%;
    margin-top: 4%;
    margin-left: 36%;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 10%;
    margin-left: 5%;
  }

  .hero-content #slogan {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  .site-section {
    padding: 1.6rem 0;
    background-color: #ededed;
  }
  .section-header {
    text-align: center;
    margin-bottom: 1rem;
  }
  .section-title {
    text-align: center;
    margin-bottom: 1rem;
  }
  .section-header h2 {
    font-size: 1.5rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #777;
  }
  .skills-section-title,
  .projects-section-title {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #777;
  }
  .container-1,
  .container-2 {
    height: auto;
    min-height: 200px;
    padding: 1rem;
  }

  .slider-container {
    max-width: 100%;
    width: 100%;
    height: auto;
    overflow: hidden;
  }
  .slider-content {
    margin: 0 1rem;
    overflow: hidden;
    border-radius: 15px;
  }
  .name {
    font-size: 1rem;
  }
  .description {
    font-size: 0.9rem;
  }
  .rdmore-button {
    bottom: 1rem;
  }
  .swiper-navBtn::before,
  .swiper-navBtn::after {
    font-size: 25px;
  }

  #popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-height: 60vh;
    padding: 6vw;
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: solid black 1rem;
    border-radius: 2rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999;
    overflow-y: auto;
    display: block;
    padding-bottom: 50px;
  }

  #popup.active {
    visibility: visible;
    opacity: 1;
  }

  #popup h2 {
    font-size: 1.5rem;
  }

  #popup p {
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.6rem;
  }

  .open-link-button,
  .close-button {
    position: fixed;
    bottom: 10px;
    z-index: 10000;
  }

  .open-link-button {
    left: calc(58% - 135px);
    font-size: 1rem;
  }

  .close-button {
    left: calc(58% + -18px);
    font-size: 1rem;
  }
  .about p {
    font-size: 1.4rem;
    line-height: 2.5rem;
  }
  #contact {
    margin-top: -1.2rem;
  }
  #contact .contact-form {
    max-width: 90%;
    margin: auto;
  }
  #contact .contact-form #submit {
    margin-left: 18%;
    font-size: 1.2rem;
  }
}
@media (min-width: 276px) and (max-width: 282px) {
  .backtothetopbtn {
    display: none;
  }
}
