@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

body {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  background-color: #15365c;
  color: #ffffff;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

/* Floating Menu - Visible by default on desktop */
.floating-menu {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

/* Menu items inside the floating menu */
.floating-menu .menu-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 50%;
  z-index: 1000;
  padding: 15px;
}

/* Menu item styling */
.floating-menu .menu-item {
  background-color: #56626e;
  color: white;
  width: 60px; /* Fixed width */
  height: 60px; /* Fixed height */
  margin-bottom: 10px;
  border-radius: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-menu .menu-item:hover {
  background-color: #1a3a5f;
  transform: scale(1.1);
}

.floating-menu .menu-item i {
  font-size: 18px;
}

/* Toggle Button */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: none; /* Initially hidden, only shows on mobile */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Active state for the toggle button (X shape) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hide menu items by default only on mobile */
@media (max-width: 768px) {
  .floating-menu {
    display: none; /* Hide menu by default on mobile */
  }

  .floating-menu.show {
    display: flex; /* Show menu when toggle button is active */
  }

  .menu-toggle {
    display: flex; /* Show toggle button on mobile */
  }
}

/* Sections */
.section {
  padding: 20px 20px;
  margin-bottom: 30px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 5px;
  background-color: white;
  display: block;
  margin: 10px auto 0;
}

p,
h4,
h5 {
  color: white;
}

/* Hero Section */
.hero {
  background-image: url("https://www.newgenapps.com/hubfs/Imported_Blog_Media/Website-Design-Background-Feb-09-2022-03-13-55-73-AM.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  height: 99vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .display-3 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero .sub-title {
  font-size: 1em;
  margin-bottom: 20px;
}
.portfolio-image-left {
  position: absolute;
  left: 10px;
  width: 100px; /* Adjust the width as needed */
  height: auto;
}

.hero .btn {
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero .btn:hover {
  background-color: white;
  color: #15365c;
}
.cert {
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}
.cert h4 {
  text-align: center;
  margin-top: 35px;
}
.cert p {
  text-align: justify;
  margin-top: 10px;
}
.cert-img {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 20px;
  color: white;
}
.cert-img:hover {
  color: white;
}
/* Projects Section */
.project-card {
  background-color: #0f2b4b;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 30px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.project-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .overlay {
  opacity: 1;
}

.overlay h6 {
  margin-bottom: 10px;
}

.overlay .btn {
  color: white;
  border: 1px solid white;
  padding: 5px 10px;
}

.overlay .btn:hover {
  background-color: white;
  color: #15365c;
}

/* Skills Section */
.skill-bar {
  margin-bottom: 20px;
}

.skill-bar h4 {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.progress {
  height: 8px;
  background-color: #264b75;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid white;
}

.progress-bar {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50px;
}
.txt {
  text-align: center;
  font-size: 0.8em;
  font-weight: 600;
}
.txt11 {
  text-align: center;
  font-size: 0.8em;
}
/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: #264b75;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #264b75;
  top: 0;
  left: 50%;
  margin-left: -5px;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 20px;
  background-color: #0f2b4b;
  border-radius: 5px;
  border: 1px solid white;
  color: white;
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 52%;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 3%;
}

.timeline-item .date {
  display: block;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 10px;
}

/* Industries Section */
.industries-section {
  padding: 30px 0;
}

.industries-section h2 {
  margin-bottom: 40px;
}

.industry-card {
  background-color: #0f2b4b;
  border-radius: 10px;
  border: 1px solid white;
  padding: 15px;
  text-align: center;
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 200px; /* Fixed height for uniform size */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.industry-icon {
  font-size: 1.5rem;
  color: #17a2b8;
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 0.9rem; /* Reduced font size from 1rem */
  color: white;
  line-height: 1.4; /* Reduced line-height from 1.6 */
  margin: 0; /* Ensure no extra margins */
  text-align: justify;
}
.footer-section {
  background-color: #15365c; /* Matches other sections' background color */
  color: white; /* White text to match the sections */
  padding: 20px 0; /* Padding for top and bottom */
}

.footer-section .footer-social a {
  margin: 0 15px; /* Spacing between social icons */
}

.footer-section .footer-social .social-icon {
  width: 40px; /* Adjust icon size */
  height: 40px;
  transition: transform 0.3s ease; /* Add smooth hover effect */
}

.footer-section .footer-social .social-icon:hover {
  transform: scale(1.1); /* Slightly enlarge icon on hover */
}

.footer-section p {
  margin-bottom: 15px;
}

.footer-section .container {
  max-width: 960px;
  margin: 0 auto;
}

.casestudy {
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.casestudy h2 {
  text-align: center;
  margin-top: 15px;
  font-size: 2rem;
  color: white;
  position: relative;
}

.casestudy h2::after {
  content: "";
  width: 60px;
  height: 5px;
  background: white;
  display: block;
  margin: 10px auto 0;
}

.casestudy h5,
.casestudy h6 {
  text-decoration: underline;
}

.portfolio-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  padding: 5px;
  transition: transform 0.2s;
}

.portfolio-image:hover {
  transform: scale(1.05);
}

.imgtxt {
  text-align: center;
  font-size: 0.9rem;
  margin-top: -10px;
}

.container {
  margin: 0 auto;
  padding: 20px;
}
.floating-back-arrow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #596a7e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-back-arrow a {
  color: white;
  font-size: 24px;
  text-decoration: none;
}

.floating-back-arrow:hover {
  background-color: #1a3a5f;
  transform: scale(1.1);
}

.floating-back-arrow i {
  font-size: 24px;
}

/* Media Queries */
@media (max-width: 768px) {
  .floating-menu {
    display: none; /* Hide menu by default on mobile */
  }

  .floating-menu.show {
    display: flex; /* Show menu when toggle button is active */
  }

  .menu-toggle {
    display: flex; /* Show toggle button on mobile */
  }

  .timeline-content {
    width: 90%;
    left: 5% !important;
  }
}

@media (max-width: 480px) {
  .floating-menu {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
  }

  .floating-menu .menu-item {
    padding: 8px;
    margin-bottom: 6px;
    font-size: 12px;
  }

  .floating-menu .menu-item i {
    font-size: 14px;
  }
}
