@import url('https://fonts.cdnfonts.com/css/devil-breeze');
@import url('https://fonts.cdnfonts.com/css/poppins');
@import url('https://fonts.cdnfonts.com/css/bimbo');


body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #1B1B1B;
  color: #eef8ce;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background-image:
    url(images/bg\ \(1\).png),
    repeating-linear-gradient(to right, transparent 0 500px, #73814B33 500px 501px);
  background-size: 100%;
}

* {
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.section {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-fit {
  width: min(1200px, 90vw);
  margin: auto;
  min-height: 100vh;
  position: relative;
  padding-block: 10em;
}

header {
  padding-block: 1em;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10px;
  backdrop-filter: blur(20px);
  z-index: 100;
  background-color: #1B1B1B11;
  background-image: repeating-linear-gradient(to right, transparent 0 500px, #eee1 500px 501px);
}

.logo img {
  border-radius: 50%;
}

header .content-fit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: unset !important;
  padding-block: unset !important;
}

header .content-fit nav ul {
  font-size: 1rem;
  color: rgb(231, 231, 162);
  font-family: "devil breeze";
  transition: 0.4s all cubic-bezier(0.075, 0.82, 0.165, 1);
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  font-weight: 900rem;
  list-style: none;
  transition: 0.3s;
}

header .content-fit nav ul li a {
  text-decoration: none;
  color: rgb(231, 231, 162);
  transition: color 0.3s ease;
}

header .content-fit nav ul li {
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

#container3D {
  position: fixed;
  inset: 0;
  z-index: 1;
  /* keep it under all content */
  pointer-events: none;
}




header .content-fit nav ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: rgb(96, 166, 168);
  transition: width 0.3s ease;
}

header .content-fit nav ul li:hover::after {
  width: 100%;
}

#banner .title {
  color: #d1ff48;
  font-size: 11em;
  font-family: "devil breeze";
  font-weight: bold;
  position: relative;
  text-align: center;
}

#banner .title::before {
  content: attr(data-before);
  position: absolute;
  top: 0.5em;
  inset: 0.66em 0 0 0;
  z-index: -1;
  color: #445022;
}

.section .decorate {
  position: absolute;
}

#intro .content-fit {
  display: flex;
  gap: 30%;
  justify-content: space-between;
  align-items: center;
}

.section .number {
  font-family: "devil breeze";
  font-size: 15em;
  font-weight: bold;
}

.section .content-fit .title {
  font-family: "devil breeze";
  font-size: 5em;
  font-weight: bold;
}

#description .content-fit {
  padding-right: 30%;
}

#description .number {
  font-size: 5em;
}

#description .title {
  font-size: 7em;
  font-weight: 500;
}

#contact .content-fit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

#contact table {
  width: min(800px, 90vw);
  padding-top: 2em;
  font-size: 2em;
  margin: auto;
}

#contact table td {
  padding-block: 0.5em;
  border-bottom: 1px dashed #445022;
}

#contact table td:nth-child(1) {
  text-align: left;
  font-weight: 500;
}

#contact table td:nth-child(2) {
  text-align: right;
  font-weight: 200;
}

#contact table td:nth-child(3) {
  text-align: right;

}

#contact .sign {
  font-family: 'Bimbo', sans-serif;
  font-size: 10em;
}

#container3D {
  position: fixed;
  inset: 0;
  /* background-color: red; */
  z-index: 100;
  pointer-events: none;
}

@media screen and (max-width: 1023px) {
  #banner .title {
    font-size: 5em;
  }

  #intro .content-fit {
    flex-direction: column;
  }
}

@media screen and (max-width: 767px) {
  #banner .title {
    font-size: 3em;
  }

  #intro .content-fit {
    flex-direction: column;
  }

  .section .number {
    font-size: 5em;
  }

  .section .content-fit .title {
    font-size: 2em;
  }

  #description .content-fit {
    padding-right: 0;
  }

  #contact table {
    font-size: 1em;
  }

  #contact .sign {
    font-size: 2em;
  }

  #container3D {
    position: absolute;
  }
}


.section {
  width: 100%;
  min-height: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}

.title {
  font-family: "devil breeze";
  font-size: 7em;
  font-weight: bold;
  color: #d1ff48;
  margin-bottom: 1em;
  text-align: center;
}

/* Skill Layout */
.skills-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  width: min(1100px, 90vw);
  flex-wrap: wrap;
}

.skills-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  width: 420px;
  height: 260px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.skills-box h2 {
  color: #a8ff78;
  margin-bottom: 5px;
}

.skills-box p {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* --- Scroll animations --- */
.scroll-container {
  overflow: hidden;
  width: 100%;
  height: 80px;
  margin-bottom: 10px;
}

.scroll-content {
  display: flex;
  gap: 15px;
  width: max-content;
  animation: scroll-left 10s linear infinite;
}

.scroll-container.right .scroll-content {
  animation: scroll-right 10s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.tech-card {
  background: white;
  color: black;
  border-radius: 12px;
  padding: 6px 15px;
  min-width: 130px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: scale(1.05);
}

.tech-card img {
  width: 28px;
  height: 28px;
}

/* --- Languages --- */
.languages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.lang-card {
  background: linear-gradient(145deg, #a43333, #9669ca);
  border-radius: 15px;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(64, 46, 155, 0.1);
  transition: transform 0.4s ease;
}

.lang-card img {
  width: 40px;
  height: 40px;
}

.lang-card:hover {
  transform: scale(1.2) rotate(5deg);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.tools-center {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.tools-card {
  background: rgba(20, 20, 20, 0.9);
  padding: 1.8rem;
  border-radius: 20px;
  width: 320px;
  color: #eee;
  box-shadow: 0 0 18px rgba(0, 255, 100, 0.2);
}

.tools-card h2 {
  color: #a8ff78;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.orbit-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 20px auto 0;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(0, 255, 150, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring1 {
  width: 100px;
  height: 100px;
}

.ring2 {
  width: 130px;
  height: 130px;
}

.ring3 {
  width: 160px;
  height: 160px;
}

.center-dot {
  width: 8px;
  height: 8px;
  background: #a8ff78;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.orbit-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.orbit1 {
  animation: orbit1 7s linear infinite;
}

.orbit2 {
  animation: orbit2 9s linear infinite reverse;
}

.orbit3 {
  animation: orbit3 11s linear infinite;
}

@keyframes orbit1 {
  0% {
    transform: rotate(0deg) translateX(45px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(45px) rotate(-360deg);
  }
}

@keyframes orbit2 {
  0% {
    transform: rotate(0deg) translateX(60px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(60px) rotate(-360deg);
  }
}

@keyframes orbit3 {
  0% {
    transform: rotate(0deg) translateX(75px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(75px) rotate(-360deg);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 70px;
  justify-content: center;
  width: 90%;
  max-width: 1200px;
}

.card-container {
  position: relative;
  perspective: 1000px;
}

.project-card {
  width: 100%;
  background: #141414;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  cursor: pointer;
  max-width: 320px;
  margin: 0 auto;
  border: 1px solid transparent;
}

/* ✨ Hover glow effect */
.project-card:hover {
  border: 1px solid rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), 0 0 45px rgba(0, 255, 255, 0.15);
  transform: scale(1.02);
}

.project-card h2 {
  margin-bottom: 8px;
  font-size: 1.3em;
}

.project-card p {
  font-size: 0.85em;
  color: #bcbcbc;
  margin-bottom: 15px;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  transition: all 0.5s ease;
}

/* Popup link */
.link-popup {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #1f1f1f;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid #333;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transition: all 0.4s ease;
  z-index: 2;
}

.link-popup a {
  text-decoration: none;
  color: #00ffff;
  font-weight: 600;
  font-size: 0.9em;
}

.link-line {
  width: 2px;
  height: 70px;
  background: linear-gradient(to bottom, #00ffff, transparent);
  margin: 0 auto;
  margin-top: 5px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Active state - tilt flat */
.active {
  transform: rotateX(75deg) translateY(10px) scale(0.92);
}

/* Show link animation */
.show-link {
  transform: translateX(-50%) scale(1);
}

.show-link .link-line {
  opacity: 1;
}

/* 
end */

.subscribe-container {
  /* text-align: left; */
  display: flex;
  justify-content: center;
  gap: 20px;

}

.subscribe-container h3 {
  margin-bottom: 10px;
  font-weight: 600;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 10px;


}

.subscribe-form input {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 10px 15px;
  border-radius: 8px;
  width: 250px;
  color: #fff;
  outline: none;
  transition: border 0.3s;
}

.subscribe-form input:focus {
  border: 1px solid #555;
}

.subscribe-form button {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, border 0.3s;
}

.subscribe-form button:hover {
  background-color: #333;
  border-color: #555;
}