@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

#home {
  position: relative;
}

#home canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#home .container {
  position: relative;
  z-index: 1;
}

.fade-in {
  animation: fadeIn 1s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contact Form Styles */
#contact .container {
  transition: all 0.3s ease-in-out;
}

#contact .bg-white {
  background-color: #f9f9f9;
  border-radius: 10px;
}

#contact input[type="text"],
#contact textarea {
  transition: all 0.3s ease-in-out;
}

#contact input[type="text"]:focus,
#contact textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#contact .bg-primary {
  background-color: #007bff;
  transition: all 0.3s ease-in-out;
}

#contact .bg-primary:hover {
  background-color: #0056b3;
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

/* Brilliant Animation */
.brilliant {
  animation: brilliant 2s infinite;
}

@keyframes brilliant {
  0% {
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #007bff, 0 0 70px #007bff, 0 0 80px #007bff, 0 0 100px #007bff;
  }
  50% {
    box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #007bff, 0 0 35px #007bff, 0 0 40px #007bff, 0 0 50px #007bff;
  }
  100% {
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #007bff, 0 0 70px #007bff, 0 0 80px #007bff, 0 0 100px #007bff;
  }
}

/* Parallax effect */
.parallax {
  /* background-image: url('https://images.unsplash.com/photo-1507842214779-84ff4256952a?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8MHx8fHx&auto=format&fit=crop&w=1950&q=80'); */ /* Replace with your image URL */
  /* background-attachment: fixed; */
  /* background-position: center; */
  /* background-repeat: no-repeat; */
  /* background-size: cover; */
  /* transform: translateZ(-1px) scale(1.2); */
  background-color: rgba(255, 255, 255, 0.1); /* Add a semi-transparent background */
  backdrop-filter: blur(5px); /* Apply a blur effect */
}

/* Mission and Vision box animation */
.mission-vision-box {
  background-color: #f0f4ff; /* A softer background color */
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.mission-vision-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Title animation */
.title-animation {
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

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

/* Skill Bar Hover Animation */
.skill-bar-container:hover .animate-skill-bar {
  animation: skillbar-fill 1.5s ease-out forwards;
}

/* Skill Bar Animation */
.animate-skill-bar {
  animation: skillbar-fill 2s ease-out forwards;
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes skillbar-fill {
  to {
    transform: scaleX(1);
  }
}