body {
  scroll-behavior: smooth;
}

/* Title Section */
.title_sec {
  padding-top: 1px;
  background: url(images/background.jfif) center/cover no-repeat;
  min-height: 100vh;
  text-align: center;
}

.navbar {
  animation: slideDown 0.8s ease-in-out;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar,
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-text,
.navbar .dropdown-item {
  color: white !important;
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link:hover {
  transform: translateY(-2px);
}

.navbar .nav-link {
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.floating-flip-container {
  display: flex;
  justify-content: center;
  margin-top: 100px;
  padding-bottom: 50px;
}

.floating-flip-box {
  position: relative;
  width: 500px;
  height: 500px;

  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);

  overflow: hidden;
  transition: transform 0.5s ease;
}

.floating-flip-front,
.floating-flip-back {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.floating-flip-front {
  opacity: 1;
  transform: translateY(0);
}

.floating-flip-back {
  opacity: 0;
  transform: translateY(20px);
}

.floating-flip-box:hover {
  transform: scale(1.03);
}

.floating-flip-box:hover .floating-flip-front {
  opacity: 0;
  transform: translateY(-20px);
}

.floating-flip-box:hover .floating-flip-back {
  opacity: 1;
  transform: translateY(0px);
}

.floating-flip-front img {
  width: 50%;
}

.floating-flip-back h1 {
  font-size: 4rem;
  color: white;
}

.floating-flip-back p {
  font-size: 1.5rem;
  color: white;
}

.floating-flip-back span {
  color: aqua;
}

/* About Section */
.about_sec {
  padding: 50px 0;
  min-height: 100vh;
  background-image: linear-gradient(315deg, #003153 0%, #131313 74%);
}

.about_container {
  display: flex;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  width: 95%;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.4);
}

.about_desc,
.about_img {
  width: 50%;
  margin: 50px 0;
}

.about_img {
  text-align: center;
}

.about_desc_margin {
  margin: 25px 50px;
}

.about_desc_color1 {
  color: white;
}

.about_desc_color2 {
  color: rgb(195, 194, 194);
}

.about_desc h2 {
  margin: 0 50px;
  font-weight: bold;
}

.about_img img {
  width: 50%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  outline: 10px solid rgba(0, 0, 0, 0.4);
  transition: transform 0.7s ease;
}

.about_img img:hover {
  transform: scale(1.05);
}

/* Project */
:root {
  --size: 20px;
}

.project_sec {
  position: relative;
  display: grid;
  min-height: 100vh;
  background: hsl(0 0% 6%);
  overflow: hidden;
}

/* BACKGROUND LAYER */
.project_sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background: conic-gradient(
    from 180deg at 50% 70%,
    hsla(0, 0%, 98%, 1) 0deg,
    #eec32d 72deg,
    #ec4b4b 144deg,
    #709ab9 216deg,
    #4dffbf 288deg,
    hsla(0, 0%, 98%, 1) 1turn
  );

  mask:
    radial-gradient(circle at 50% 50%, white 2px, transparent 2.5px) 50% 50% /
      var(--size) var(--size),
    url("https://assets.codepen.io/605876/noise-mask.png") 256px 50% / 256px
      256px;

  mask-composite: intersect;
  animation: flicker 20s linear infinite;
}

@keyframes flicker {
  to {
    mask-position:
      50% 50%,
      0 50%;
  }
}

.project_container {
  position: relative;
  z-index: 1;
  color: white;
  margin: 50px 0;
}

.project_title_alignment {
  text-align: center;
  margin-bottom: 30px;
}

.project_title h2 {
  font-size: 3rem;
}
.project_title p {
  font-size: 1.3rem;
}

.project_list {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  width: 90%;
  margin: 0 auto;
}

.project1,
.project2,
.project3 {
  display: flex;
  justify-content: space-evenly;
  margin: 50px 0;
}

.project_img {
  width: 30%;
  transition: transform 0.5s ease;
}

.kmappy {
  width: 100%;
  border: 1px solid #1e293b;
  box-shadow: 0 0 8px #334155;
  border-radius: 15px;
  transition: transform 0.5s ease;
}

.wait {
  width: 100%;
  border: 1px solid #2e87cf;
  box-shadow: 0 0 8px #2e87cf;
  border-radius: 15px;
  transition: transform 0.5s ease;
}

.project_img:hover {
  transform: scale(1.03);
}

.project_desc {
  width: 40%;
  transition: transform 0.5s ease;
}

.project_desc:hover {
  transform: scale(1.03);
}

.project_desc h3 {
  margin: 30px 0 0;
}

.project_desc p {
  margin: 30px 0 20px;
}

.project_desc a {
  text-decoration: none;
  color: #38bdf8;
}

.desc_right {
  text-align: right;
}

/* Contact */
.contact_sec {
  background-image: linear-gradient(315deg, #003153 0%, #131313 74%);
  color: white;
  padding: 30px 0;
}

.contact_container {
  display: flex;
  justify-content: space-evenly;
  margin: 30px auto;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
}

.contact_title {
  display: flex;
  flex-direction: column;
  width: 45%;
}

.contact_header,
.contact_list {
  margin: 20px 0;
}

.contact_header h3 {
  margin-bottom: 20px;
}
.contact_list {
  display: flex;
  flex-direction: column;
}

.contact_desc {
  display: flex;
  gap: 10px;
}

.contact_desc div,
.contact_desc p {
  transition: all 0.3s ease;
}

.contact_links {
  display: flex;
  gap: 27px;
  margin-top: 15%;
}

.contact_links a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.phone:hover {
  transform: scale(1.15);
  color: #25d366;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.7);
}

.mail:hover {
  transform: scale(1.15);
  color: #ea4335;
  text-shadow: 0 0 10px rgba(234, 67, 53, 0.7);
}

.github:hover {
  transform: translateY(-6px) scale(1.15);
  color: #9b59b6;
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.7);
}

.linkedin:hover {
  transform: translateY(-6px) scale(1.15);
  color: #00bfff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

.telegram:hover {
  transform: translateY(-6px) scale(1.15);
  color: #0088cc;
  text-shadow: 0 0 10px rgba(0, 136, 204, 0.7);
}

.whatsapp:hover {
  transform: translateY(-6px) scale(1.15);
  color: #25d366;
  text-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
}

.contact_form {
  width: 45%;
  margin: 20px 0;
}

.contact_form textarea {
  width: 100%;
}

.contact_form input,
.contact_form textarea {
  border: none;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.contact_labels {
  position: relative;
  padding: 5px 0;
}

.contact_labels input {
  padding: 6px 10px;
  width: 70%;
}

.contact_labels textarea {
  padding: 6px 10px;
}

.contact_labels .input_label {
  position: absolute;
  top: 50%;
  left: 10px;
  font-size: 16px;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
  transition: 0.3s ease;
  padding: 0 5px;
}

.contact_labels input:focus + .input_label,
.contact_labels input:valid + .input_label {
  top: 4px;
  font-size: 14px;
  background: #0d1820;
}

.message_label {
  padding: 0 0 5px 10px;
}

form button {
  font-family: inherit;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 0.7em 1em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

form button span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}

form button svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

form button:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}

form button:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

form button:hover span {
  transform: translateX(5em);
}

form button:active {
  transform: scale(0.95);
}

@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }

  to {
    transform: translateY(-0.1em);
  }
}

/* Footer */

.jozh_footer {
  padding: 30px 0 15px;
  text-align: center;
  background-color: rgb(8, 14, 23);
  color: #94a3b8;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Media Query */
@media (max-width: 480px) {
  /* Title */
  .title_sec {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .navbar-collapse {
    text-align: center;
  }

  .floating-flip-container {
    width: 100%;
  }

  .floating-flip-box {
    width: 80%;
    height: 500px;
  }

  .floating-flip-front img {
    width: 70%;
  }

  .floating-flip-back h1 {
    font-size: 2.9rem;
    color: white;
  }

  .floating-flip-back p {
    font-size: 1.2rem;
    color: white;
  }

  /* About */
  .about_container {
    display: flex;
    flex-direction: column;
  }

  .about_desc,
  .about_img {
    width: 100%;
    margin: 30px 0;
  }

  .about_img {
    margin-top: 0;
    margin-bottom: 40px;
  }

  /* Project */
  .project1,
  .project2,
  .project3 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .project_img,
  .project_desc {
    width: 80%;
  }

  .project_title h2 {
    font-size: 2.5rem;
  }
  .project_title p {
    font-size: 1.2rem;
  }

  .project2 {
    display: flex;
    flex-direction: column-reverse;
    text-align: left;
  }

  /* Contact */
  .contact_container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact_title,
  .contact_form {
    width: 80%;
    margin-bottom: 20px;
  }

  .contact_header {
    margin: 20px 0 10px 0;
  }
  .contact_list {
    margin: 10px 0;
  }

  .contact_links {
    margin-top: 5%;
  }

  .jozh_footer {
    font-size: 12px;
    padding: 20px 9 8px;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  /* Title */
  .title_sec {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .navbar-collapse {
    text-align: center;
  }

  .floating-flip-container {
    width: 100%;
  }

  .floating-flip-box {
    width: 70%;
    height: 400px;
  }

  .floating-flip-front img {
    width: 60%;
  }

  .floating-flip-back h1 {
    font-size: 3.5rem;
    color: white;
  }

  .floating-flip-back p {
    font-size: 1.1rem;
    color: white;
  }

  /* About */
  .about_container {
    display: flex;
    flex-direction: column;
  }

  .about_desc,
  .about_img {
    width: 100%;
    margin: 30px 0;
  }

  .about_img {
    margin-top: 0;
    margin-bottom: 40px;
  }

  /* Project */
  .project1,
  .project2,
  .project3 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .project_img,
  .project_desc {
    width: 80%;
  }

  .project_title h2 {
    font-size: 2.75rem;
  }
  .project_title p {
    font-size: 1.25rem;
  }

  .project2 {
    display: flex;
    flex-direction: column-reverse;
    text-align: left;
  }

  /* Contact */
  .contact_container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact_title,
  .contact_form {
    width: 80%;
    margin-bottom: 20px;
  }

  .contact_header {
    margin: 20px 0 10px 0;
  }
  .contact_list {
    margin: 10px 0;
  }

  .contact_links {
    margin-top: 5%;
  }

  .jozh_footer {
    font-size: 14px;
    padding: 25px 0 10px;
  }
}
