/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Bar */
nav {
  background: #000000;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

nav .logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

nav ul li a.active {
  background: #00bcd4;
}

nav ul li a:hover {
  background: rgb(227, 112, 196);
}

/* Hero Section - Fix for Overlapping Resume Button & Profile Picture */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Allows proper wrapping on smaller screens */
  padding: 5rem 0;
  background: #333;
  color: #fff;
}

.hero-content {
  max-width: 50%;
  position: relative; /* Ensures button does not overlap */
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content .highlight {
  color: #00bcd4;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-content .btn {
  background: #00bcd4;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem; /* Added margin to separate button from image */
  position: relative;
  z-index: 3; /* Ensures button is above the image */
}

.hero-image {
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1; /* Keeps image behind text */
}

.hero-image img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 5px solid #00bcd4;
  object-fit: cover;
}

/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-image {
    max-width: 100%;
    margin-top: 2rem; /* Adds space between text and image */
  }

  .hero-content .btn {
    margin-top: 1.5rem; /* Prevents overlap with image */
  }
}


/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* About Section */
.about .about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about h3 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

.about ul {
  list-style: none;
  padding: 0;
}

.about ul li {
  margin: 1rem 0;
}

/* Projects Section */
.project-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.project-card {
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: 10px;
  width: 30%;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
}

.project-card h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.project-card .btn {
  background: #00bcd4;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

.project-card .btn:hover {
  background: #074799;
}

/* Skills Section */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  width: 48%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.skill-bar {
  background: #f4f4f4;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.skill-level {
  background: #00bcd4;
  height: 20px;
  text-align: center;
  padding-right: 10px;
  color: #fff;
  font-size: 0.8rem;
  line-height: 10px;
}

/* Contact Section */
#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact-form input, #contact-form textarea {
  width: 80%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contact-form button {
  background: #00bcd4;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #111, #122313);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

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

footer .footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer .footer-section {
  flex: 1;
  min-width: 200px;
}

footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00bcd4; /* Highlight color */
}

footer .contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .contact-info li {
  margin: 0.5rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

footer .contact-info i {
  margin-right: 0.5rem;
  color: #00bcd4; /* Highlight color */
}

footer .social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

footer .social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: #00bcd4; /* Highlight color on hover */
}

footer .copyright {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #FFFFFF;
}
/* Project Details Section */
.project-details {
  padding: 4rem 0;
}

.project-content {
  max-width: 800px;
  margin: 0 auto;
}

.project-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.sub-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sub-images img {
  width: 48%;
  border-radius: 10px;
}
/* Skills Section */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.skill {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  width: 48%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.skill-bar {
  background: #f4f4f4;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.skill-level {
  background: #00bcd4;
  height: 20px;
  text-align: right;
  padding-right: 5px;
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 10px;
}

/* Certification Images */
.certification-images {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.certification-images img {
  width: 100px;
  height: auto;
  border-radius: 10px;
}

/* Footer Social Links */
.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: #00bcd4;
  font-size: 1.5rem;
  margin: 0 0.5rem;
}
/* Certification Images */
.certification-images {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.certification-images img {
  width: 200px; /* Increase the width */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  transition: transform 0.3s ease; /* Add hover effect */
}

.certification-images img:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
}
/* Lightbox Overlay */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

  /* Add this CSS for the box-like structure and animations */
  .education-box, .certification-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px 0;
    max-width: 100%;
    width: 100%;
    animation: fadeIn 2s ease-in-out;
  }

  .education-box h3, .certification-box h3 {
    color: #333;
    margin-bottom: 15px;
  }

  .education-box ul, .certification-box ul {
    list-style-type: none;
    padding: 0;
  }

  .education-box ul li, .certification-box ul li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .certification-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }

  .certificate-img {
    max-width: 100px;
    border-radius: 5px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Gradient Animation for Navigation Bar */
.navbar {
  width: 100%;
  padding: 15px 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #ff7e5f, #feb47b, #6a11cb, #2575fc);
  background-size: 400% 400%;
  animation: gradientAnimation 6s infinite alternate;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

 /* Gradient Background for About Me, Education, Experience, and Certifications Boxes */
 .education-box, .certification-box, .about-content .detail .education-box {
background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-size: 200% 200%;
  animation: gradientAnimation 6s infinite alternate;
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative; /* Ensuring constant position */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px; /* Prevents shrinking */
  overflow: hidden; /* Prevents content from overflowing */
}

/* Text Color */
.education-box h3, .certification-box h3, .about-content .detail .education-box h3,
.education-box ul, .certification-box ul, .about-content .detail .education-box ul,
.education-box ul li, .certification-box ul li, .about-content .detail .education-box ul li {
  color: white;
}

/* Prevent Animation from Affecting Box Position */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Ensure consistent animations for all sections */
.about-content .detail .education-box, .certification-box {
  animation: none; /* Remove conflicting animations */
}

/* Skills Box Gradient */
.skill {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



/* Gradient Line Animation Below the Title */
.section-title {
  position: relative;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem; /* Adjust spacing between title and line */
  padding-bottom: 5px; /* Fine-tune spacing */
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px; /* Closer to text */
  left: 50%;
  width: 120px; /* Adjust line width */
  height: 4px; /* Line thickness */
  background: linear-gradient(90deg, #ff7e5f, #feb47b, #6a11cb, #2575fc);
  background-size: 400% 400%;
  animation: gradientLine 3s infinite alternate;
  transform: translateX(-50%);
  border-radius: 2px;
}

@keyframes gradientLine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}


