/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 56px;
  }
  
  .navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
  }
  
  .navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.3), rgba(108, 117, 125, 0.3));
    z-index: -1;
  }
  
  .navbar-brand {
    display: flex;
    align-items: center;
  }
  
  .navbar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .navbar-brand a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
  }
  
  .navbar-nav .nav-item .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .navbar-nav .nav-item .nav-link:hover {
    color: #007bff;
    transform: translateY(-2px);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: #007bff;
    text-decoration-thickness: 2px;
    animation: underlineAnimation 0.5s ease-in-out;
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    transition: background-color 0.3s ease;
  }
  
  .navbar-nav .nav-item:last-child .nav-link:hover {
    background-color: #0056b3;
    text-decoration: none;
  }
  

/* Hero Section */
.hero-section {
  background: linear-gradient(120deg, #007bff, #6c757d);
  background-size: 200% 200%;
  animation: gradient-animation 5s ease infinite; /* Original animation duration */
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* Ensure content stays within bounds */
}

/* Adding Futuristic Lines */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay to enhance text readability */
  z-index: 1; /* Place above the background */
}

/* Futuristic Lines */
.futuristic-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0; /* Place behind the overlay */
  pointer-events: none; /* Ignore mouse events */
  overflow: hidden; /* Ensure lines don't overflow */
  background: radial-gradient(circle, rgba(0, 123, 255, 0.2), rgba(0, 0, 0, 0.5)); /* Subtle gradient for depth */
}

/* Lines Styling */
.line {
  position: absolute;
  background: rgba(0, 255, 255, 0.5); /* Lighter color for visibility */
  opacity: 0.9; /* Increased opacity for better visibility */
  border-radius: 2px; /* Rounded edges for a smoother look */
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8); /* Enhanced glow effect */
}

/* Vertical Lines */
.vertical-line {
  animation: move-vertical 6s linear infinite; /* Vertical line animation */
}

/* Diagonal Lines */
.diagonal-line {
  animation: move-diagonal 7s linear infinite; /* Diagonal line animation */
}

/* Keyframes for the vertical line animation */
@keyframes move-vertical {
  0% {
      transform: translateY(0);
  }
  100% {
      transform: translateY(-100%); /* Move upwards */
  }
}

/* Keyframes for the diagonal line animation */
@keyframes move-diagonal {
  0% {
      transform: translateY(0);
  }
  100% {
      transform: translateY(-50%); /* Move diagonally */
  }
}

/* Circles for additional visual effects */
.circle {
  position: absolute;
  width: 40px; /* Slightly larger size of circles for impact */
  height: 40px; 
  background: rgba(0, 255, 255, 0.6); /* Circle color */
  border-radius: 50%; /* Make it circular */
  box-shadow: 0 0 20px rgba(0, 255, 255, 1); /* Glow effect */
  animation: pulse 4s infinite; /* Pulsing animation */
}

/* Pulsing animation for circles */
@keyframes pulse {
  0% {
      transform: scale(1);
      opacity: 0.8; /* Start with visible */
  }
  50% {
      transform: scale(1.5); /* Scale up */
      opacity: 1; /* Fully visible */
  }
  100% {
      transform: scale(1); /* Scale down */
      opacity: 0.8; /* Return to original visibility */
  }
}

/* Adding a subtle background gradient */
.futuristic-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(255, 255, 255, 0.05));
  opacity: 0.3; /* Subtle gradient for a sophisticated look */
}

/* Hover effects for interactive elements (optional) */
.line:hover {
  background: rgba(0, 255, 255, 0.8); /* Change color on hover for interaction */
  transition: background 0.3s ease; /* Smooth transition */
}




.line {
  position: absolute;
  background: rgba(255, 255, 255, 0.2); /* Line color */
  animation: line-animation 3s linear infinite; /* Animation for lines */
}

/* Keyframes for Line Animation */
@keyframes line-animation {
  0% {
      transform: translateY(-100%); /* Start above */
  }
  100% {
      transform: translateY(100%); /* Move down */
  }
}

/* Gradient Animation */
@keyframes gradient-animation {
  0% {
      background-position: 0% 50%; /* Starting position */
  }
  50% {
      background-position: 100% 50%; /* Move to the end */
  }
  100% {
      background-position: 0% 50%; /* Complete cycle */
  }
}

/* Add multiple lines */
.line:nth-child(1) {
  width: 2px;
  height: 100%;
  left: 10%;
  animation-duration: 4s; /* Adjust speed */
}

.line:nth-child(2) {
  width: 2px;
  height: 100%;
  left: 30%;
  animation-duration: 3s; /* Adjust speed */
}

.line:nth-child(3) {
  width: 2px;
  height: 100%;
  left: 50%;
  animation-duration: 5s; /* Adjust speed */
}

.line:nth-child(4) {
  width: 2px;
  height: 100%;
  left: 70%;
  animation-duration: 4.5s; /* Adjust speed */
}

.line:nth-child(5) {
  width: 2px;
  height: 100%;
  left: 90%;
  animation-duration: 3.5s; /* Adjust speed */
}



  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .animated-text {
    animation: fadeInUp 1.5s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .btn-hero {
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  .btn-hero:hover {
    background-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5);
  }
  
  
  .hero-section h1 {
    font-size: 4rem;
    font-weight: bold;
  }
  
  .hero-section p {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto;
  }
  
  /* Skills Section */
  #skills i {
    color: #007bff;
  }
  
  #skills h5 {
    margin-top: 10px;
    font-weight: bold;
  }
  .progress {
    background-color: #e0e0e0; /* Background color */
    border-radius: 20px; /* Rounded corners */
    height: 8px; /* Height of the progress bar */
}

.progress-bar {
    background-color: #007bff; /* Progress bar color */
    border-radius: 20px; /* Rounded corners */
    transition: width 0.4s ease; /* Smooth transition */
}

  
  .project-card {
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

  
  #education .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }
  
  .education-content {
    flex: 1;
    padding-right: 20px;
    align-items: center;
  }
  
  .education-image {
    flex: 1;
    text-align: right;
  
  }
  
  .education-image img {
    max-width: 100%; /* Image will scale down but never exceed container width */
    max-height: 350px; /* Ensures the image doesn't get too tall */
    width: auto; /* Keeps the aspect ratio */
    height: auto; /* Automatically adjusts height for responsiveness */
}

 
  /* Contact Form */
  .contact-form .form-control {
    border-radius: 0;
  }
  
  .contact-form .btn-primary {
    border-radius: 30px;
    padding: 10px 30px;
  }
  
  /* Footer */
  footer {
    background-color: #343a40;
    color: #fff;
  }
  
  footer p {
    margin: 0;
  }

/* Add responsive adjustments if needed */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item:last-child .nav-link {
    margin-top: 0.5rem;
    margin-left: 0;
  }
}
