@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Open-Sans" Arial, Helvetica, sans-serif;
  list-style: none;
  text-decoration: none;
}

:root {
  --bg-color: #000000;
  --second-bg-color: #202020;
  --text-color: #fff;
  --big-font: 5rem;
  --second-color: #f3e8e8;
  --h2-font: 3rem;
  --p-font: 1.1rem;
  --main-color: #c71585;
  --text-color-light: #948989;
}

html,
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Open-Sans" Arial, Helvetica, sans-serif;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 22px 6%;
  border-bottom: 1px solid transparent;
  transition: all .45s ease;

}

.logo {
  color: var(--text-color);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none !important;

}

.logo:hover {
  color: var(--text-color);
  text-decoration: none;
}


header.sticky {
  background: var(--bg-color);
  border-bottom: 1px solid #ffffff1a;
  padding: 40px 2%;
  height: 50px;
}

span {
  color: var(--main-color);


}

.navbar {
  display: flex;

}

.navbar a {
  position: relative;
  color: var(--second-color);
  font-size: 14px;
  font-weight: 500;
  margin: 0 10px;
  transition: all .45s ease;
  text-decoration: none;
  opacity: 0.8;
  letter-spacing: 1.1px;
}

.navbar a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-out;
}

.navbar a:hover::before {
  transform: scaleX(1.1);
}

.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 35px;
  color: var(--text-color);
  z-index: 10001;
  cursor: pointer;
  margin-right: 10px;
  display: none;
}

.home {
  margin-top: 10px;
  margin-bottom: 100px;
  position: relative;
  height: auto;
  width: 100%;
  background-image: url(../img/arnoldcengeli.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 80% center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 230px 11% 120px;
}


.first {
  margin-bottom: 20px;
}




.one {
  display: inline-block;
  margin-right: 15px;
  height: 32px;
  padding: 0 15px;
  line-height: 32px;
  font-size: 20px;
  font-weight: 500;
  border-radius: 5px;
  background: var(--main-color);
  color: var(--text-color);
}

.two {
  display: inline-block;
  color: var(--second-color);
  font-size: 20px;
  font-weight: 500;
}

.home-text h1 {
  font-size: 10vh;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px;
}

.home-text h3 {
  color: var(--text-color);
  margin: 0 0 35px;
  font-weight: 700;
  line-height: 1.1;
}

.li-home {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(min-content, max-content);
  gap: 5px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;

}

.li-home li {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;

}

.li-home li span {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: #a59c9c;
}

.li-home li span::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.2s ease;
}

.li-home li:hover span::before {
  visibility: visible;
  transform: scaleX(1);
  background-color: var(--second-bg-color);
}

.li-home li i {
  font-size: 13px;
  margin-right: 8px;
  color: var(--main-color);
}



/* aboutttttt*/

.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;

  gap: 1rem;
  margin-top: 130px;
}

.about-image img {
  max-height: 500px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: var(--h2-font);
  line-height: 1;
}

.about-text h4 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.7;
  margin: 15px 0 30px;
}

.about-text p {
  color: var(--second-color);
  font-size: var(--p-font);
  line-height: 1.9;
  margin-bottom: 4rem;
  margin-right: 15%;
}
.about-text a{
  text-decoration: none;
  color: var(--main-color);
}

.p-text {
  color: var(--main-color);
}

/*=================================skill =======================*/
.skills h2 {
  font-size: var(--h2-font);
  line-height: 1;
  text-align: center;
  padding: 60px;
}

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

.container {
  max-width: 1200px;
  margin: 0px auto 0px auto;
  padding: 0px 40px;
}

.skills {
  padding: 100px 0px;
}

.skills .skills-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 70px;
  width: 100%;
}

.skills .skills-flex-container .box {
  flex: 1 1 20%;
  background: var(--bg-color);
  padding: 25px;
  text-align: center;
  border: 5px solid var(--second-bg-color);
  transition: all 0.3s ease-in;
  position: relative;
  perspective: 1000px;
}

.skills .skills-flex-container .box .image {
  transition: all 0.3s ease-in-out 0.1s;
  z-index: 1;
}

.skills .skills-flex-container .box .image img {
  max-width: 75px;
  object-fit: contain;
}

.skills .skills-flex-container .box .title {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  color: var(--text-color);
  transition: all 0.3s ease-out;
}

.skills .skills-flex-container .box:hover .image {
  transform: scale(1.5) translateY(-20px);
}

.skills .skills-flex-container .box:hover .image img {
  animation: bouncing 0.5s 0.3s;
}

.skills .skills-flex-container .box:hover .title {
  letter-spacing: 2px;
}




/*projectsss*/
.portfolio {
  background: var(--bg-color);
}

.main-text h2 {
  font-size: var(--h2-font);
  line-height: 1;
  text-align: center;
  padding: 60px;
}

.portfolio .main-text p {
  opacity: 0;
  text-align: center;
  color: var(--second-color);
  font-size: var(--p-font);
  line-height: 1.9;
  animation: slideInFromBottom 1s ease-in-out 1s forwards;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}






.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  gap: 1rem;
  padding: 10px 5%;
  width: 100%;

}

.row {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  max-width: 100%;
  max-height: 100%;
}


.row img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.1), #c71585);
  position: absolute;
  border-radius: 8px;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  transition: height 0.5s
}


.layer h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.layer p {
  color: var(--second-color);
  font-size: 0.9rem;
  line-height: 1.8;
}

.layer i {
  color: var(--main-color);
  margin-top: 20px;
  font-size: 20px;
  background: var(--text-color);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.row:hover img {
  transform: scale(1.1);
}

.row:hover .layer {
  height: 100%;
}




/*foote*/

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  padding: 80px 20px;
  font-size: 14px;
  margin-left: 90px;
}

.footer h5 {
  text-align: center;
  justify-content: center;
  margin-bottom: 50px;
  margin-right: 20px;
}

/* Contact Info */
#contact-info p {
  margin-bottom: 12px;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease-out;
}


#contact-info p:hover {
  border-bottom: 1px solid var(--main-color);
  color: var(--text-color);
}

#contact-info i {
  margin-right: 1px;
  font-size: 20px;
}


/* CV Button */
#cv a {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--main-color);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}

#cv a:hover {
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

/* Social Icons */
.footer a {
  text-decoration: none;
  display: inline;
  margin-right: 20px;
  font-size: 20px;
  color: var(--text-color-light);
  transition: all 0.3s ease-in-out;
}

.footer a:hover {
  color: var(--main-color);
}

.footer a:last-child {
  margin-right:10px ;
}

/* Thank you message */
#merci {
  font-size: 18px;
  margin-bottom: 15px;
  margin-top: 50px;
}

#merci:hover {
  color: var(--text-color);

}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--main-color);
  color: #111010;
  border: none;
  font-weight: 600;
  border-radius: 50%;
  font-size: 15px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  z-index: 9999;
}

.back-to-top:hover {
  background-color: #fff;
  color: var(--main-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}



.footer a i.fab {
  font-size: 2rem;
  color: var(--text-color-light);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.footer a i.fab.fa-github:hover {
  transform: rotateY(180deg);
  color: var(--main-color);
}

.footer a i.fab.fa-linkedin:hover {
  transform: rotateY(180deg);
  color: var(--main-color);
}