html{
  width: 100%;
  height: 100%;
  margin:0px;
  scroll-behavior: smooth;
}

body{
  margin:0px;
  width: 100%;
  height: 100%;
  background-image: url("tumblr_piwmfy6Auo1rnbw6mo1_1280.gif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#wrapper{
  position: relative;
  z-index: 0;
  width: 100%;
  display: block;
  pointer-events: none;
}

#wrapper * {
  pointer-events: auto;
}


.Title{
  grid-column: 2/5;
  grid-row: 1;
  color: #C82100;
  font-size: 25vh;
  font-family: 'Tilt Warp';
  display:flex;
  justify-content: space-around;
  opacity: 80%;
  z-index: 1;
  position: relative;
}

.Title-Name{
  grid-row: 1/3;
  grid-column: 2/5;
  color: #FFFFFF;
  height: fit-content;
  align-self: center;
  font-size: 11vh;
  display:flex;
  justify-content: space-around;
  font-family: "Parisienne";
  margin-top: -65px;
  position: relative;
  top: -90px;       
  text-align: center;
  z-index: 2;  

} 

.Title,
.Title-Name {
  pointer-events: none;
}


.header{
display: flex;
flex-direction: column;
background-color: black;
width: 50px;
height: 50px;
z-index: 100;
}

.About-Me-Title {
  margin: 120px auto 30px;
  text-align: center;
  color: #FFFFFF;
  font-family: "Story Script";
  font-size: 5vh;
}

.textruta {
  max-width: 900px;     
  margin: 0 auto 160px; 
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 10, 10, 0.6);
  border-radius: 20px;
}

.About-Me-Text{
  color: #FFFFFF;
  width: 95%;
  font-size: 1.2rem;

}

.project-title{
  grid-row: 6/8;
  grid-column: 3;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #FFFFFF;
  font-family: "Story Script";
  font-size: 5vh;
}

.projects-page {
  scroll-margin-top: 120px;
  grid-row: 7 / 10; 
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 120px; 
  margin-bottom: 200px; 
  width: 100%;
}



.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
}


.project-card {
  background: rgba(10, 10, 10, 0.6);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #222;
}

.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #ffffff;
}

.project-content p {
  color: #e5e5e5;
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.5;
}

.buttons {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  text-decoration: none;
  background-color: #811600;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;

display: flex;
align-items: center;
justify-content: center;
}

.btn:hover {
  background-color: #691200;
}

.settings {
  position: fixed;
  top: 2vh;
  right: 2vw;
  z-index: 30;
}

.settings-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.settings-button img {
  width: 100%;
  transition: transform 0.3s ease;
}

.settings-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.settings-button:hover img {
  transform: rotate(60deg);
}


.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.language-option img {
  width: 30px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.language-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.settings {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999999;
}


.settings-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.settings-menu {
  position: fixed;
  top: calc(2vh + 55px);
  right: 2vw;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 12px;
  border-radius: 12px;
  width: 160px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 99999999;
}

.settings-menu.show {
  display: flex;
}

.footer {
  position: relative;
  z-index: 5;
  margin-top: 120px;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
  color: #ffffff;
}

.footer h2 {
  font-family: "Story Script";
  font-size: 4vh;
  margin-bottom: 20px;
}

.footer p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #C82100;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ff3b1f;
}

#contact {
  scroll-margin-top: 120px;
}

@media (max-width: 800px) {

  /* Titles */
  .Title {
    font-size: 10vh;
  }

  .Title-Name {
    font-size: 4.5vh;
    top: -24px;
  }

  /* Projects layout */
  .projects-page {
    padding: 0 18px;
    margin-top: 32px;
    margin-bottom: 80px;
  }

  .projects {
    gap: 14px;
  }

  .project-card {
    border-radius: 12px;
  }

  .project-image {
    height: 110px;
  }

  .project-content {
    padding: 12px;
  }

  .project-content h3 {
    font-size: 0.95rem;
  }

  .project-content p {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .buttons {
    margin-top: 8px;
  }

  .btn {
    font-size: 0.8rem;
    padding: 5px 12px;
    max-width: 200px;
  }

  /* Navbar */
  .navbar {
    width: 58px;
    height: 280px;
  }

  .navbar-button {
    width: 46px;
    height: 46px;
    left: 16px;
  }

  /* Footer */
  .footer {
    padding: 32px 16px;
  }
}
