/* Utilities */
.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem;
}

.color-1 {
  color: var(--color-1);
}
.color-2 {
  color: var(--color-2);
}
.color-3 {
  color: var(--color-3);
}
.color-4 {
  color: var(--color-4);
}

.text-primary {
  color: var(--primary-color);
  font-weight: 600;
}

.text-secondary {
  font-weight: 700;
}

.language {
  font-family: "Jetbrains", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.underline {
  display: inline-block;
  width: 50px;
  height: 1px;
  margin: 0 10px 0;
  background: var(--text-primary-color);
}

.underline-light {
  background-color: var(--text-primary-color);
}

.bg-primary,
.underline-primary {
  background-color: var(--primary-color);
}

.bg-secondary,
.underline-secondary {
  background-color: var(--secondary-color);
}

/* Title text */
.head-text {
  text-align: center;
  margin: 30px 0;
  font-size: 0.95rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  cursor: pointer;
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 14px 35px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px var(--shadow-color);
}

.btn:hover span {
  transition: all 0.4s cubic-bezier(0, 0, 1, 0);
}

.btn:hover span {
  transform: translateX(5px);
}

/* CTA project Buttons */
.btn-one,
.btn-two,
.btn-three,
.btn-four,
.btn-five,
.btn-six {
  padding: 0.7rem 1.2rem;
  font-size: 0.8rem;
  background: var(--bg-primary-color);
  color: var(--text-primary-color);
  border-radius: 999px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.btn-one:hover {
  background: #2962ff;
  color: #fff;
}

.btn-two:hover {
  background: #f0d107;
  color: #000;
}
.btn-three:hover {
  background: orangered;
  color: #fff;
}
.btn-four:hover {
  background: #e22439;
  color: #fff;
}
.btn-five:hover {
  background: #3cce96;
  color: #fff;
}
.btn-six:hover {
  background: #0073e0;
  color: #fff;
}

.icons a,
.icons .icon {
  font-size: 1.7rem;
  margin: 10px 20px;
  padding: 12px 10px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  background: var(--bg-secondary-color);
  box-shadow: 0 12px 24px var(--shadow-color);
  transition: all 0.3s ease-in-out;
}

.icons span:hover,
.icons a:hover {
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--surface-color);
  border-radius: 16px;
  position: relative;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  background: var(--bg-secondary-color);
  box-shadow: 0 18px 40px var(--shadow-color);
}

.card-images img {
  transition: 0.3s ease-in-out;
}
.card-images img:hover {
  opacity: 0.8;
}

/* Icons */
.icons-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 3rem;
}

/* ------- Animation starts here ------ */

/* Hero Animation */
@keyframes anime-2 {
  0% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(0);
  }
}

.content .content-image {
  position: relative;
  animation: anime-2 1.5s infinite alternate-reverse forwards ease-in-out;
}

/* -------- Animation Ends Here ----------- */

/* Dark Mode switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 26px;
  position: relative;
  width: 42px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: var(--other-color);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  transition: 0.4s;
  cursor: pointer;
}

.slider:before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 3px;
  height: 20px;
  width: 20px;
  transition: 0.4s;
  background-color: #fff;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(17px);
}

.slider.round {
  border-radius: 25px;
}

.slider.round:before {
  border-radius: 50%;
}

.link-style {
  text-decoration: underline;
  transition: color 0.3s ease-in-out;
}

.link-style:hover {
  color: var(--primary-color);
}

.badges {
  width: 160px;
  padding-bottom: 0.5rem;
}

/* Responsive 700px */
@media (max-width: 768px) {
  .icons a,
  .icons .icon {
    margin: 10px;
  }

  .theme-switch-wrapper {
    display: block;
    padding: 1rem;
    width: 100%;
  }

  /* CTA project buttons */
  .btn-one,
  .btn-two,
  .btn-three,
  .btn-four,
  .btn-five {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 500px) {
  .icons a,
  .icons .icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin: 0;
  }
}
