/* Projects Section with Background Animation */
#projects {
    background-color: #1D3557; /* Deep Blue for a professional, clean look */
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure animations do not overflow */
}

/* Keyframes for background animation */
@keyframes backgroundAnimation {
    0% {
        background-color: #1D3557; /* Deep Blue */
    }
    25% {
        background-color: #457B9D; /* Soft Sky Blue */
    }
    50% {
        background-color: #A8DADC; /* Light Aqua */
    }
    75% {
        background-color: #F1FAEE; /* Soft Ivory */
    }
    100% {
        background-color: #1D3557; /* Back to Deep Blue */
    }
}

/* Apply animation to the background */
#projects {
    animation: backgroundAnimation 10s infinite alternate; /* Smooth animation with alternate direction */
}

/* Projects Heading */
#projects h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold;
}

/* Project Items Styling */
.project-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.project-item p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

/* Responsive Design for Projects Section */
@media (max-width: 768px) {
    #projects {
        padding: 40px 15px;
    }

    .project-item {
        width: 100%;
        margin: 10px 0;
    }
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    overflow: hidden;
}

h2::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3b82f6;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

h2:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.container {
    width: 80%;
    margin: 0 auto;
}


/* Projects Section */
#projects {
    background-color: #710404;
    padding: 50px 0;
    text-align: center;
}

/* Projects Section Heading Styling */
#projects h2 {
    margin-bottom: 20px;
}

/* Projects Heading Box */
.projects-heading {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    background-color: #007bff;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    opacity: 0; /* Initially invisible */
    transform: translateY(-20px); /* Start position slightly above */
    animation: fadeInScale 1.2s ease-out forwards, colorChange 3s infinite alternate;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Keyframes for fade-in and scaling animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for color-changing animation */
@keyframes colorChange {
    0% {
        color: #ffffff;
        background-color: #007bff;
    }
    25% {
        color: #ffffff;
        background-color: #ff6347; /* Tomato */
    }
    50% {
        color: #ffffff;
        background-color: #1e90ff; /* Dodger Blue */
    }
    75% {
        color: #ffffff;
        background-color: #32cd32; /* Lime Green */
    }
    100% {
        color: #ffffff;
        background-color: #007bff;
    }
}


h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: #333;
  transition: transform 0.3s ease;
}

h2:hover {
  transform: translateY(-10px); /* Bounce effect */
  color: #ff6347; /* Change color on hover */
}


h2 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    color: #333;
    transition: transform 0.3s ease;
  }
  
  h2:hover {
    transform: translateY(-10px); /* Bounce effect */
    color: #ff6347; /* Change color on hover */
  }
  

/* Ensure uniform size for the project cards */
.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Fix image height to ensure all cards are of uniform size */
.project-card img {
    width: 40%;
    height: 100%; /* Make sure the image takes the full height of the card */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    border-radius: 8px;
}

.project-content {
    width: 55%;
    text-align: left;
}

.project-content h3 {
    font-size: 24px;
    color: #333;
}

.project-content p {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

.tags span {
    background-color: #e0e7ff;
    color: #3b82f6;
    font-size: 14px;
    padding: 5px 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.tags span:hover {
    background-color: #3b82f6;
    color: #fff;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        height: auto;
    }

    .project-card img {
        width: 100%;
        height: 200px; /* Set a fixed height for images on mobile */
        margin-bottom: 15px;
    }

    .project-content {
        width: 100%;
    }
}


h3 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #333;
    animation: jumpEffect 2s infinite ease-in-out; /* Apply animation */
    display: inline-block;
}

/* Keyframe for "jump" effect */
@keyframes jumpEffect {
    0% {
        transform: translateY(0); /* Start at normal position */
    }
    25% {
        transform: translateY(-10px); /* Move up */
    }
    50% {
        transform: translateY(0); /* Return to normal */
    }
    75% {
        transform: translateY(-10px); /* Move up again */
    }
    100% {
        transform: translateY(0); /* Return to normal again */
    }
}

/* Optional: You can make the text slide in with a bounce effect */
@keyframes slideInBounce {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    60% {
        transform: translateX(20px);
        opacity: 1;
    }
    80% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Apply the slide-in-bounce animation */
h3 {
    animation: slideInBounce 1.5s ease-out forwards;
}


@keyframes drop {
    0% {
      transform: translateY(-100px);
      opacity: 0;
    }
    50% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(50px);
      opacity: 0.8;
    }
  }
  
  .drop-effect {
    display: inline-block;
    font-size: 30px;
    font-weight: bold;
    animation: drop 2s ease-in-out forwards;
  }
  

  @keyframes fireDrip {
    0% {
      color: #fff;
      text-shadow: 0 0 10px rgba(255, 69, 0, 0.8), 0 0 20px rgba(255, 69, 0, 0.7), 0 0 30px rgba(255, 140, 0, 0.8);
      transform: translateY(-20px);
    }
    25% {
      color: #ff6347;
      text-shadow: 0 0 15px rgba(255, 140, 0, 0.9), 0 0 25px rgba(255, 69, 0, 0.7);
      transform: translateY(0px);
    }
    50% {
      color: #ff4500;
      text-shadow: 0 0 25px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 140, 0, 0.7);
      transform: translateY(10px);
    }
    75% {
      color: #ff3300;
      text-shadow: 0 0 10px rgba(255, 69, 0, 0.8), 0 0 25px rgba(255, 69, 0, 0.6);
      transform: translateY(20px);
    }
    100% {
      color: #ff1100;
      text-shadow: none;
      transform: translateY(30px);
    }
  }
  
  .fire-drip-effect {
    display: inline-block;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    animation: fireDrip 2s ease-in-out infinite;
    position: relative;
  }
  
  .fire-drip-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.5);
    animation: particleDrip 3s ease-in-out infinite;
    pointer-events: none;
  }
  
  @keyframes particleDrip {
    0% {
      top: 0;
      opacity: 1;
    }
    100% {
      top: 100%;
      opacity: 0;
    }
  }
  