/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  /* overflow-y: auto; */
  scroll-behavior: smooth;
}

/* Body styling */
body {
  font-family: Arial, monospace;
  background-color: #2d2d2d;
  color: #ffffff;
  margin: 0;
  height: 100vh;
  justify-content: center;
  transition: background-color 0.5s ease;
}
/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px); /* Increase blur */
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 10px 20px;
  border-radius: 25px;
}

.navbar li {
  display: inline-block;
}

.navbar a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: white;
  padding: 12px 20px;
  position: relative;
  border-radius: 25px;
  transition: all 0.3s ease;
}

/* Hover Effect */
.navbar a:hover {
  background: linear-gradient(to bottom, #3b82f6, #2563eb); /* Blue gradient */
  box-shadow: 0px 0px 8px rgba(37, 99, 235, 0.5); /* Soft glow effect */
  transform: scale(2);
}

/* Active Button Effect */
.navbar a.active {
  background: linear-gradient(to bottom, #3b82f6, #2563eb);
  box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.2),
    0px 0px 8px rgba(37, 99, 235, 0.7);
  color: white;
  transform: scale(1.2);
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Full height of the viewport */
  width: 100%; /* Full width of the viewport */
  text-align: center;
  scroll-margin-top: 10vh;
}

/* Main content */
.content h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.content p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* Button */
button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #2563eb;
  color: #f0f0f0;
  margin-bottom: 20px;
}

button:hover {
  background-color: #1c1c1c;
  transform: translateY(-2px);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  font-size: 30px;
  color: #ffffff;
  text-decoration: none;
}

.social-icons a:hover {
  color: #2563eb;
  transform: translateY(-3px);
}

/* Profile Section */
.profile-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  background-color: #2d2d2d;
  padding: 40px 20px;
  margin-top: 20px;
  margin-bottom: 100px;
  width: 100%;
  height: 100vh;
  justify-content: space-around;
}

.profile-text {
  max-width: 50%;
}

.profile-text .badge {
  background-color: #ffc107;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
}

.profile-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.profile-text p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

/* Profile Image */
.profile-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 30px;
  align-content: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.02);
}

/* Modal CSS */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.modal-content {
  background-color: #1c1c1c;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  color: #ffffff;
  border-radius: 10px;
  text-align: justify;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: #2563eb;
  align-content: center;
}

.modal-header-content {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  align-content: space-between;
  align-items: center;
  line-height: 2;
}

.modal-header-content img {
  width: 30%;
  max-width: 400px;
  border-radius: 10px;
  animation: 3s ease-in 1s 2 reverse both paused slide-in;
  align-content: center;
}

.modal-header-content p {
  margin-left: 40px;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

/* Read More Button */
.read-more {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  margin-top: auto;
}

.read-more:hover {
  background-color: #2563eb;
}

/* Work Section */

.work-section {
  padding: 2rem;
}

.work-table {
  width: 100%;
  margin: 0 auto;
  table-layout: fixed;
  border-spacing: 20px;
}

.work-card {
  background-color: #1c1c1c;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1rem;
  transition: all transform 0.3s;
  max-width: 400px;
}

.work-card img {
  border-radius: 10px;
  width: 90%;
  margin: 1rem;
  /* object-fit: contain;
    transition: all 0.3s ease; */
}
.work-content h3 {
  margin: 0.5rem 0;
  font-size: 20px;
  margin-bottom: 10px;
}

.work-content p {
  height: 50px; /* To limit text overflow */
  overflow: hidden;
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #cccccc;
  text-align: justify;
}
.work-card:hover {
  box-shadow: 0 0 15px #2563eb;
  transform: translateY(-5px);
}

.work-section {
  padding: 40px 20px;
  background-color: #2d2d2d;
  color: #ffffff;
  text-align: center;
}

.work-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
}

.work-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.work-content li {
  text-align: justify;
}

.work-card:hover img {
  border-radius: 10px;
  transform: scale(1.05);
}

/* Projects Section */

.projects-section {
  padding: 2rem;
}

.projects-table {
  width: 100%;
  margin: 0 auto;
  table-layout: fixed;
  border-spacing: 20px;
}

.project-card {
  background-color: #1c1c1c;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s;
  max-width: 400px;
}

.project-card img {
  border-radius: 10px;
  width: 90%;
  object-fit: contain;
  margin: 1rem;
}

.project-card h3 {
  margin: 0.5rem 0;
}

.project-card p {
  font-size: 0.9rem;
  color: #555;
  height: 50px; /* To limit text overflow */
  overflow: hidden;
  margin-bottom: 1rem;
}

.project-card:hover {
  box-shadow: 0 0 15px #2563eb;
  transform: translateY(-5px);
}
.project-card:hover img {
  border-radius: 10px;
  padding-bottom: 10px;
  transform: scale(1.05);
}

.projects-section {
  padding: 40px 20px;
  background-color: #2d2d2d;
  color: #ffffff;
}

.projects-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.project-content p {
  font-size: 14px;
  text-align: justify;
  line-height: 1.6;
  color: #cccccc;
}

.project-content li {
  text-align: justify;
}

/* Experience Section */
.experience-section {
  padding: 40px 20px;
  background-color: #2d2d2d;
  color: #ffffff;
  height: 100vh;
  text-align: center;
}

.experience-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.experience-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-card {
  background-color: #1c1c1c;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
  text-align: left;
  color: #ffffff; /* Text color matching the yellow from the image */
}
.experience-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #2563eb;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.experience-card:hover {
  transform: translateX(5px);
}
.experience-card:hover::before {
  transform: scaleY(1);
}

.experience-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ffcc00;
}

.experience-card h4 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 5px;
}

.experience-card p {
  font-size: 16px;
  margin-bottom: 15px;
}

.experience-card ul {
  list-style-type: disc;
  padding-left: 20px;
}

.experience-card li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #ffffff; /* Bullet points color matching the yellow from the image */
}

/*Certification Model Section*/

.certmodal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.certmodal-content {
  background-color: #1c1c1c;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 740px; /* Could be more or less, depending on screen size */
  color: #ffffff;
  border-radius: 10px;
  align-items: center;
}

.certmodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.certmodal-header h2 {
  color: #2563eb;
  align-content: center;
}

.certmodal-header-content {
  padding-top: 20px;
  max-width: 850px;
  align-items: center;
  align-content: center;
  line-height: 2;
}

.certmodal-header-content img {
  width: 100%;
  max-width: 800px;
  max-height: 600px;
  border-radius: 10px;
  animation: 3s ease-in 1s 2 reverse both paused slide-in;
}

/* Certifications Section */
.certification-section {
  background-color: #2d2d2d;
  padding: 40px 20px;
  text-align: center;
}

.certification-table {
  width: 100%;
  margin: 0 auto;
  table-layout: fixed;
  border-spacing: 20px;
}
.certification-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
}

.certification-card {
  background-color: #1c1c1c;
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
  max-width: 400px;
  max-height: 500px;
  box-shadow: 0px 0px 10px 2px #000000;
}

.certification-card:hover,
.badge-card:hover {
  box-shadow: 0 0 15px #2563eb;
  transform: translateY(-5px);
}

.certification-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
  transform: scale3d(1.05);
}

.certification-card p {
  font-size: 16px;
  color: #ffffff;
}

/* Badges & Skills Section */
/* --- Skills Section Styling (Updated) --- */

.badges-skills-section .skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px; /* Add padding around the skills list */
}

.badges-skills-section .skills-category {
  width: 45%; /* Adjust as needed */
  margin-bottom: 30px; /* Increased margin for better spacing between categories */
  text-align: left;
  background-color: #2d2d2d; /* Use lighter dark gray for category background */
  color: #fff; /* White text for skills categories */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
}

.badges-skills-section .skills-category h4 {
  color: #ffc107; /* Yellow for category headings */
  border-bottom: 2px solid #ffc107; /* Yellow underline for headings */
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-transform: uppercase; /* Optional: Uppercase category headings */
  letter-spacing: 1px; /* Optional: Letter spacing for headings */
}

.badges-skills-section .skills-category ul {
  list-style: none;
  padding-left: 0;
}

.badges-skills-section .skills-category li {
  margin-bottom: 8px;
  color: #f0f0f0; /* Slightly off-white for list items for better readability against #2d2d2d */
  font-size: 1em; /* Adjust font size if needed */
  line-height: 1.6; /* Improve line spacing for readability */
}

.badges-skills-section .skills-category li strong {
  color: #2563eb; /* Teal color for skill category names within list items (e.g., "Programming Languages:") */
  font-weight: bold; /* Make category names bold */
  margin-right: 5px; /* Add a little spacing after the bold category name */
}

.badges-skills-section .skills-category li span {
  position: relative;
  padding: 8px;
  padding-left: 12px;
  display: inline-block;
  z-index: 1;
  transition: 0.5s; /* Add a little spacing after the bold category name */
}

/* ... your existing CSS ... */

/* --- Soft Skills Badges Styles --- */

.skills-category h4 {
  /* Style the "Soft Skills" heading if needed */
  margin-bottom: 10px; /* Add some space below heading */
  color: #fff; /* Example color, adjust to your theme */
}

.soft-skills-badges.list ul {
  /* Target the UL inside soft-skills-badges with 'list' class */
  padding-left: 0; /* Remove default UL padding */
}

.soft-skills-badges.list ul li {
  /* Style the LI (list item) */
  position: relative;
  left: 0; /* Reset left position */
  color: #fce4ec; /*  Text color - adjust */
  list-style: none; /* Remove bullet points */
  margin: 8px 0; /* Increased vertical margin for better spacing between badges */
  border-left: none; /* REMOVE left border */
  transition: 0.5s;
  cursor: pointer;
  display: flex; /* Use flex to center badge content vertically in LI */
  align-items: center; /* Vertically center content */
  height: auto; /* Adjust height as needed based on badge content & padding */
}

.soft-skills-badges.list ul li:hover {
  left: 5px; /* Reduced hover left movement */
}

.soft-skills-badges.list ul li .soft-skill-badge {
  /* Style the .soft-skill-badge DIV inside LI */
  position: relative;
  padding: 10px 20px; /* Adjusted padding for badge shape */
  display: block; /* Make it a block element to fill LI width */
  z-index: 1;
  transition: 0.5s;
  color: #f0f0f0; /* Badge text color - adjust, dark grey example */
  border-radius: 25px; /* More rounded corners for badge shape */
  font-weight: bold; /* Make badge text bold */
  font-size: 0.95em; /* Adjust font size for badges */
  text-align: center; /* Center text inside badge */
  white-space: nowrap; /* Prevent text from wrapping in badges */
}

.soft-skills-badges.list ul li:hover .soft-skill-badge {
  /* Hover style for the badge itself */
  color: #fff; /* White text on hover */
  /* You can change other badge styles on hover here if desired */
}

.soft-skills-badges.list ul li:before {
  /* Style the :before pseudo-element (the background hover effect) */
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #2563eb; /* Hover background color from your example - adjust to your theme */
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s;
  border-radius: 25px; /* Match border-radius of badge for hover effect */
}

.soft-skills-badges.list ul li:hover:before {
  transform: scaleX(1); /* Expand hover background on hover */
}

.badges-achievements {
  margin-bottom: 30px; /* Space between badges and skills list */
}
/* Badge Category Buttons Styling */
.badge-category-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.badge-category-button {
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  border-radius: 5px;
  background-color: #1c1c1c; /* Default button background */
  color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.badge-category-button.active,
.badge-category-button:hover {
  background-color: #2563eb; /* Active/Hover button background */
  color: #fff;
}

/* Initially hide badge categories except "All Badges" if you choose to implement "All Badges" differently */
/* If you *don't* want an "All Badges" category showing initially, and want to start with just category buttons: */
/* .badge-category:not(#allBadges) {
    display: none;
} */

/* If you *do* want an "All Badges" showing initially, and then filter categories: */
.badge-category:not(#allBadges) {
  display: none; /* Initially hide category-specific badges */
}

/* Rest of your badge-skills-section CSS (badge-container, badge-card, skills-list etc.) remains the same or adjust as needed */
.badge-category {
  margin-bottom: 20px;
}

.badge-container {
  display: flex;
  flex-wrap: wrap; /* Allow badges to wrap to the next line */
  justify-content: center; /* Center badges horizontally */
  gap: 20px; /* Space between badges */
}

.skills-list {
  display: flex;
  flex-wrap: wrap; /* Allow skill categories to wrap */
  justify-content: space-around; /* Distribute categories evenly */
}

.skills-category {
  width: 45%; /* Adjust category width as needed (leave space for margin/padding) */
  margin-bottom: 20px;
  text-align: left; /* Align skill list text to the left */
}

.skills-category h4 {
  margin-bottom: 10px;
}

.skills-category ul {
  list-style: none;
  padding-left: 0;
}

.skills-category li {
  margin-bottom: 5px;
}
.badges-skills-section {
  padding: 40px 20px;
  text-align: center;
}

.badges-skills-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.badge-card {
  background-color: #1c1c1c;
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
  width: 150px;
  box-shadow: 0px 0px 10px 2px #000000;
}

.badge-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.badge-card p {
  font-size: 14px;
  color: #ffffff;
}

/* Education Section */
.education-section {
  padding: 40px 20px;
  color: #ffffff;
}

.education-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.education-card {
  background-color: #1c1c1c;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 2px #000000;
}
.education-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #2563eb;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.education-card:hover {
  transform: translateX(5px);
}
.education-card:hover::before {
  transform: scaleY(1);
}
.education-card h3 {
  font-size: 24px;
  color: #ffcc00;
}

.education-card p {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.education-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.education-card ul {
  list-style-type: disc;
  padding-left: 20px;
}

.education-card ul li {
  font-size: 16px;
  margin-bottom: 5px;
  color: #dddddd;
}

/* Center-align content in projects table cells */
.projects-section .projects-table td {
  text-align: center;
}

.projects-section .project-card {
  display: inline-block;
  padding: 40px 20px;
  width: 100%;
  text-align: center;
}

.projects-section .project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projects-section .project-card img {
  margin: 0 auto;
  display: block;
}

.work-section .work-table td {
  text-align: center;
}

.work-section .work-card {
  display: inline-block;
  padding: 40px 20px;
  width: 100%;
  text-align: center;
}

.work-section .work-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Footer */
.footer {
  margin-top: 25vh;
  position: relative;
  width: 100%;
  background: #3586ff;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.social-icon,
.menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.social-icon__item,
.menu__item {
  list-style: none;
}

.social-icon__link {
  font-size: 2rem;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
}
.social-icon__link:hover {
  transform: translateY(-10px);
}

.menu__link {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
  text-decoration: none;
  opacity: 0.75;
  font-weight: 300;
}

.menu__link:hover {
  opacity: 1;
}

.footer p {
  color: #fff;
  margin: 15px 0 10px 0;
  font-size: 1rem;
  font-weight: 300;
}

.wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("/images/wave.png");
  background-size: 1000px 100px;
}

.wave#wave1 {
  z-index: 1000;
  opacity: 1;
  bottom: 0;
  animation: animateWaves 4s linear infinite;
}

.wave#wave2 {
  z-index: 999;
  opacity: 0.5;
  bottom: 10px;
  animation: animate 4s linear infinite !important;
}

.wave#wave3 {
  z-index: 1000;
  opacity: 0.2;
  bottom: 15px;
  animation: animateWaves 3s linear infinite;
}

.wave#wave4 {
  z-index: 999;
  opacity: 0.7;
  bottom: 20px;
  animation: animate 3s linear infinite;
}
  
@media (max-width: 768px) {
  .content h1 {
    font-size: 36px;
  }

  .content p {
    font-size: 16px;
  }

  button {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 24px;
  }

  /* Profile Section - Responsive */
  .profile-section {
    flex-direction: column;
  }

  .profile-text {
    max-width: 100%;
    text-align: center;
  }

  .profile-image img {
    width: 100%;
    max-width: 300px;
  }

  .work-section h2 {
    padding-top: 15rem;
  }
  .certification-section h2 {
    padding-top: 15rem;
  }

  /* Responsive Work Section */
  .work-card {
    overflow-x: auto;
    flex-direction: column;
    width: 100%;
  }

  .work-card img {
    margin-bottom: 20px;
    margin-right: 0;
  }
  table,
  tr,
  td {
    display: block;
    padding-top: 1rem;
  }
}
body.mobile-only #mobile-message {
    display: block;
  }
  body.mobile-only *:not(#mobile-message) {
    display: none;
  }

  #mobile-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 50px;
  }
  #mobile-message div {
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #ccc;
    padding: 20px;
    border-radius: 8px;
  }
@keyframes animateWaves {
  0% {
    background-position-x: 1000px;
  }
  100% {
    background-positon-x: 0px;
  }
}

@keyframes animate {
  0% {
    background-position-x: -1000px;
  }
  100% {
    background-positon-x: 0px;
  }
}
