*, *::before, *::after {
  box-sizing: border-box; 
  transition: all .2s linear;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Bebas Neue", sans-serif;
  font-weight: 200;
  text-align: center;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* TYPOGRAPHY */

/* HOME */

.home-section {
  font-size: 1.75rem; /* 28px */
}

.home-section h1 {
   font-family: "Bebas Neue", sans-serif;
   font-size: 5rem;
   margin-bottom: 30px;
}

.multi-text {
  display: inline;
  font-style: italic;
}

/* ABOUT ME */

.about-me h4 {
  font-weight: bold;
}

.about-me h2 {
  color: #FF204E;
  font-size: 2.5rem;
  font-family: "Bebas Neue", sans-serif;
  /*border-bottom: 0.3125rem #FF204E solid; /* 5px */
}

.about-me-text{
  padding: 0.5em;
}

.underline {
  text-decoration: underline;
}

.language-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lang-btn {
  background-color: #06060660;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px; 
  transition: background-color 0.5s, color 0.3s;
  font-family: "Bebas Neue", sans-serif;
}

.lang-btn:hover {
  background-color: #ff204d61;
  color: white;
  border: none;
}



/* PORTFOLIO */

.portfolio-section h2{
  font-family: "Bebas Neue", sans-serif;
}

.card h2 {
  color: #000000;
  font-size: 1.75rem; /* 22px */
  font-weight: 400;
  font-family: "Bebas Neue", sans-serif;
}

.card p {
  margin-top: 0.25rem; /* 4px */
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  color: #060606;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
}

.filter-menu {
  font-size: 1em; /* 16px */
  font-family: "Bebas Neue", sans-serif;
}

#close-full-img {
  font-size: 2rem; /* 32px */
}

.expand-icon {
  font-size: 1.25em; /* 20px */
}

/* CONTACT */

.contact i {
  font-size: 2rem; /* 32px */
}

/* HEADER */

.nav-bar {
  margin: 0;
  padding: 0.75em 1.25em; /* 12px 20px */
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  position: relative;
  background-color: #060606;
}

.logo img {
  width: 2.5rem; /* 40px */
}

.menu {
  display: flex;
}

.menu li {
  padding-left: 2.5em; /* 40px */
}

.menu li a {
    position: relative;
    text-decoration: none;
    padding-bottom: 0.5em;
    color: #fff; /* ensure links are visible on dark bg */
}

.menu li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0; /* little space underneath */
    width: 0;
    height: 1px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover::after {
    width: 100%;
}

.open-menu,
.close-menu {
  position: absolute;
  color: white;
  cursor: pointer;
  font-size: 1.5rem; /* 24px */
  display: none;
}

.open-menu {
  top: 50%;
  right: 1.25rem; /* 20px */
  transform: translateY(-50%);
}

.close-menu {
  top: 1.25rem; /* 20px */
  right: 1.25rem; /* 20px */
}

#check {
  display: none;
}

/* HOME SECTION */

.home-section{
  background-image: url("images/main-cover.jpg");
  background-size: cover;
  background-position: 100%;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  height: 21.875rem; /* 350px */
  color: white;
  line-height: 0;
}

/* ABOUT ME SECTION */

.about-me {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  padding: 0.75em 1.25em;
  background-color: #060606;
  color: white;
}

.about-me-image {
  width: 50%;
  margin: 1em 0 1em 0;
}

.skills-container ul{
  padding: 0;
  list-style: none;
}

.skills-container li{
  margin-bottom: 0.5rem;
}

/* PORTFOLIO */

/* FILTER MENU */

.filter-menu {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75em 1.25em;
  border-bottom: 0.125rem solid #060606; /* 2px */
}

.filter-menu li {
  list-style: none;
  margin: 0 0.3125em; /* 5px */
  cursor: pointer;
}

.filter-menu li.active {
  background-color: #FF204E;
  color: white;
  padding: 0 1em; /* 16px */
}

/* SCROLL BARS */



/* FULL IMAGE ON CLICK */

#full-img-view {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, .8);
  z-index: 9999;
}

#FullImage {
  padding: 1.5rem; /* 24px */
  width: 98%;
  object-fit: cover;
}

.expand-icon {
  cursor: pointer;
}

#close-full-img {
  position: fixed;
  top: 0.75rem; /* 12px */
  right: 0.75rem; /* 12px */
  color: white;
  cursor: pointer;
}

/* CONTAINER */

section {
  background-size: contain;
}

.slide-icon {
  width: 7%;
  color: #191919;
}

.expand-icon {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  color: #191919;
}

.image {
  position: relative;
}

.card .image {
  padding: 1em; /* 16px */
  background-color: #FF204E;
  border-radius: 50%;
}

.image img {
  width: 100%;
  object-fit: cover;
  border: 0.2rem solid #fff; /* 5px */
  cursor: pointer;
}

.card .content {
  flex-grow: 1;
}

.btns{ 
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between; 
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  border-radius: 8px;
  background: white;
}

.catalog-btn {
  margin-top: auto;
}

.btns a,
.catalog-btn {
  background-color: #060606;
  color: white;
  padding: 0.25em 0.3125em; /* 5px */
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  border-radius: 4px; 
}

.btns a:hover {
  background-color: #FF204E;
}

.catalog-btn:hover {
  background-color: #FF204E;
}

/*dots*/

.slider-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slider-dots .dot{
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .25s;
}

.slider-dots .dot.active{
  background-color: #FF204E; /* your theme color */
}

/* hide dots on desktop grid if you prefer */
@media (min-width: 768px) {
  .slider-dots { display: none; }
}

/* CONTACT */

.contact {
  height: 75vh;
}

.contact ul {
  list-style: none;
  padding: 0.75em 1.25em; /* 12px 20px */
}

.contact i {
  cursor: pointer;
  color: #191919;
}

.contact i:hover {
  color: #FF204E;
}

/* SCROLL UP BTN */

.to-top {
  z-index: 1;
  background: white;
  position: fixed;
  bottom: 1em; /* 16px */
  right: 1em; /* 16px */
  width: 3.125rem; /* 50px */
  height: 3.125rem; /* 50px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* 32px */
  background-color: #060606;
  color: white;
  border: 0.1875rem white solid; /* 3px */
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all .4s;
}

.to-top.active {
  bottom: 2em; /* 32px */
  pointer-events: auto;
  opacity: 1;
}

/* FOOTER */

footer {
  background: #060606;
  color: #fff;
  text-align: center;
  padding: 0.75em 1.25em;
  margin-top: 50px;
  font-family: "Roboto", sans-serif;
}

footer h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

footer p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #ddd;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
}

.contact-form button {
  background: #FF204E; /* your theme color */
  color: #fff;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Bebas Neue", sans-serif;
}

.contact-form button:hover {
  background: #e6003c;
}


/* MEDIA QUERIES */

/* HAMBURGER STACK */

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    width: 70%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 100;
    background-color: #060606;
    transition: all 0.2s ease-in-out;
    font-size: 1.8rem; /* 32px */
    padding-top: 4rem;
}

.menu li {
    padding: 0.5em;
}

.menu li a {

}

.open-menu,
.close-menu {
    display: block;
}

#check:checked ~ .menu {
    right: 0;
}

.container {
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    -ms-overflow-style: none;  /* Hide scrollbar in IE & Edge */
    scrollbar-width: none;
}

.container {
  display: flex;
  gap: 0.75rem; /* 12px */
  width: 100%;
  border-radius: 0.75rem; /* 12px */
  padding: 0.2em 1.25em; /* 12px 20px */
  scroll-padding: 1.875rem; /* 30px */
  box-shadow: 0 0.9375rem 1.5625rem rgba(0, 0, 0, 0.1); /* 15px 25px */
}

.container .card {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: center;
  padding: 1.875rem; /* 30px */
  border-radius: 0.75rem; /* 12px */
  background: #fff;
  scroll-snap-align: start;
  box-shadow: 0 0.9375rem 1.5625rem rgba(0, 0, 0, 0.1); /* 15px 25px */
  height: auto;
}
}

/* MEDIA QUERY FOR DESKTOP */

@media (min-width: 769px) {
  /* HEADER */

  .nav-bar {
      padding: 0.75em 4em; /* 12px 64px */
  }

  /* ABOUT ME */

  section .about-me {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em 4em; /* 32px 64px */
}

.about-me-text {
    font-size: 1.4rem;
    flex: 1;
}

.about-me-image {
    flex-shrink: 0;
    width: 70%; 
    max-width: 100%; 
    height: auto;
    margin: 1em 0 1em 0;
}

.about-me h2 {
  color: #FF204E;
  font-size: 3em;
  margin: 0 auto;
  /*border-bottom: 0.3125rem #FF204E solid; /* 5px */
}


  /* PORTFOLIO */

section {
  background-size: contain;
}

.portfolio-section {
  padding: 2em 4em; /* 32px 64px */
}

.projects {
  column-gap: 3.125em; /* 50px */
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  border-radius: 0.75rem; /* 12px */
  padding: 0.75em 1.25em; /* 12px 20px */
  scroll-padding: 1.875rem; /* 30px */
}

.container .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.875rem; /* 30px */
  border-radius: 0.75rem; /* 12px */
  background: #fff;
  box-shadow: 0 0.9375rem 1.5625rem rgba(0, 0, 0, 0.1); /* 15px 25px */
  height: 85vh;
  height: auto;
}

.card .image {
  padding: 1em; /* 16px */
  background-color: #FF204E;
  border-radius: 50%;
}

.image img {
  width: 100%;
  object-fit: cover;
  border: 0.2rem solid #fff; /* 5px */
  cursor: pointer;
}

.card .content {
  flex-grow: 1;
}

.card .btns {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.catalog-btn{
  margin-top: auto;
}

.btns a,
.catalog-btn {
  background-color: #191919;
  color: white;
  padding: 0.25 0.3125em; /* 5px */
  text-decoration: none;
}

.btns a:hover {
  background-color: #FF204E;
}

.catalog-btn:hover {
  background-color: #FF204E;
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .portfolio-section h2 {
    font-size: 2rem; /* 32px */
  }

  .filter-menu {
    font-size: 1.25rem; /* 20px */
  }

  .slide-icon {
    display: none;
  }
}

  /* CONTACT */

  .contact ul {
      padding: 2em 4em; /* 32px 64px */
  }
}

/* FOOTER */

footer {
  font-size: 1.25rem; /* 20px */
}
