@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Sora:wght@100..800&display=swap");

* {
  scroll-behavior: smooth;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #facc15;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
#particles-js canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Accordion */
.accordion {
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  overflow: hidde;
}
.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease,
    transform 0.5s ease, padding 0.4s ease;
  padding: 0 1rem;
}

.accordion-content.open {
  max-height: none;
  opacity: 1;
  transform: translateY(0);
  padding: 1rem;
}

.accordion .applyBtn {
  margin-top: 0.75rem;
  background: #facc15;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: black;
}

.section-job {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.section-job.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-container {
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  white-space: nowrap;
  margin-bottom: 1rem;
}
.tab-container::-webkit-scrollbar {
  display: none;
}

#tabs {
  display: inline-flex;
  gap: 2px;
  padding-bottom: 4px;
  position: relative;
  border-bottom: 2px solid #37415160;
}
::selection {
  color: #fbbf24;
  background-color: whitesmoke;
}
.tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.tab.text-yellow-400 {
  color: #facc15;
  font-weight: bold;
}
.tab.text-gray-400 {
  color: #9ca3af;
}

#underline {
  position: absolute;
  bottom: -1px;
  height: 3px;
  border-radius: 100px;
  background-color: #facc15;
  transition: all 0.3s ease;
}

.arrow-btn {
  background: rgba(55, 65, 81, 0.8);
  color: #facc15;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 99999px;
  transition: all 0.3s ease;
}
.arrow-btn:hover {
  background: #facc15;
  color: black;
  transform: scale(1.1);
}
@media (max-width: 1000px) {
  .arrow-btn {
    display: none;
  }
}

.tab-wrapper {
  position: relative;
  width: 100%;
}
.tab-container {
  scroll-behavior: smooth;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tab-container::-webkit-scrollbar {
  display: none;
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  text-decoration: none;
}
/* Text animation */
.hidden-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-in-out;
}
.show-text {
  opacity: 1;
  transform: translateY(0);
}

/* Fade/slide animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
.slide-in {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}
.slide-in.show {
  opacity: 1;
  transform: translateX(0);
}

/* Circle animation */
.hidden-circle {
  transform: scale(0);
  opacity: 0;
  transition: all 0.6s ease-out;
}
.show-circle {
  transform: scale(1);
  opacity: 1;
}
/* Whatapps Chat */

.chat-body {
  background-color: #0b141a;
  background-image: url("Images/whatapps-chat.jpg");
  background-size: cover;
  background-repeat: repeat;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.25s ease-out forwards;
}

.animate-fadeOut {
  animation: fadeOut 0.25s ease-in forwards;
}

/* Scrollbar thin */
#whatsapp-popup::-webkit-scrollbar {
  width: 3px;
}
#whatsapp-popup::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

/* Footer refinements */
footer {
  background-color: #000;
  color: #fff;
  position: relative;
}

/* Contact block alignment */
.contact-block {
  max-width: 500px;
  margin: 0 auto;
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f1f1f;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  color: #fff;
}

.social-icon:hover {
  background-color: #dca22a;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(220, 162, 42, 0.6);
}

/* Apply to the entire page */
html {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #facc15 #111;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track {
  background: #111;
}

html::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #b58920;
}

@media (min-width: 800px) and (max-width: 1440px) {
  nav .nav-link {
    font-size: 0.9rem;
  }
  nav span {
    font-size: 20px;
  }
  nav .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  nav .hidden.md\:flex {
    gap: 10px;
  }
  nav a.bg-yellow-500 {
    font-size: 14px;
  }
}

/* fonts */
.headingfont {
  font-family: "Orbitron", sans-serif;
}
.basicfont {
  font-family: "Sora", sans-serif;
}

@media (max-width: 1440px) {
  html {
    font-size: 15px;
  }
  html nav .nav-link {
    font-size: 1.01rem;
  }
}

@media (max-width: 769px) {
  html {
    font-size: 13px;
  }
}
@media (max-width: 430px) {
  html {
    font-size: 12px;
  }
}
@media (max-width: 375px) {
  html {
    font-size: 10px;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 10px;
  }
}

/* Gradient text hero*/
.gradient-text {
  background: linear-gradient(90deg, #facc15, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Blur animations for section transitions */
@keyframes blurOut {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-20px);
  }
}
@keyframes blurIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
.slide-out {
  animation: blurOut 0.5s ease-in forwards;
}
.slide-in {
  animation: blurIn 0.7s ease-out forwards;
}

@media (max-width: 768px) {
  [style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
  }
}
