/* APPLY TO ALL */
body,
html {
  /* Remove default margin and padding */
  margin: 0;
  padding: 0;
  /* Set font style */
  font-family: "Yu Gothic UI Semibold", sans-serif;
  font-size: 18px;
  text-align: center;
  /* Enable smooth scrolling */
  scroll-behavior: smooth;
}

.uppercase {
   /* Uppercase */
  text-transform: uppercase;
}

/* NAVIGATION */
.logo-img {
    width: 10rem;
}
.navbar {
  /* Flexbox for layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Background and text color */
  background-color: black;
  color: white;
  /* Padding for spacing */
  padding: 10px 20px;
  height: 2rem;
  /* Fixed position for staying on top */
  position: fixed;
  width: 100%;
  /* Ensure navbar stays above other elements */
  z-index: 3;
}
 .title {
     font-size: 22px;
 }

.navbar a {
  /* White text color and no underline */
  color: white;
  text-decoration: none;
}

.nav-links {
  /* Remove default list styles */
  list-style: none;
  /* Flexbox for layout */
  display: flex;
  /* Right padding */
  padding-right: 4rem;
  /* Uppercase */
  text-transform: uppercase;
}

.nav-links li {
  /* Spacing between items */
  padding: 0 15px;
}

li a:hover {
  /* Color change on hover */
  color: #f58a07;
}

.burger {
  /* Initially hidden */
  display: none;
}

.burger div {
  /* Burger lines styling */
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  /* Smooth transition for animations */
  transition: all 0.3s ease;
}

.nav-links.nav-active {
  /* Show navigation on active state */
  transform: translateX(0%);
  opacity: 1;
}

/* Animation for navigation links */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.burger.toggle .line1 {
  /* Rotate first line for toggle effect */
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
  /* Hide middle line */
  opacity: 0;
}

.burger.toggle .line3 {
  /* Rotate third line for toggle effect */
  transform: rotate(45deg) translate(-5px, -6px);
}

/* HERO BANNER */
.hero-image {
  /* Background image with gradient overlay */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/hero-background.jpg");
  /* Set height */
  height: 75vh;
  /* Center and cover the image */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Position for absolute elements */
  position: relative;
}

.hero-text {
  /* Position text at the bottom center */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  /* Text and background color */
  color: #fff1ce;
  width: 100%;
  background-color: #003a9e67;
}

.hero-text h1 {
  /* Padding for text */
  padding-left: 15rem;
  padding-right: 15rem;
}

/* INTRO */
.intro-section {
  /* Padding and margin */
  padding: 40px 20px;
  margin: 2rem auto 0rem;
  /* Background and shadow */
  background-color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  /* Maximum width */
  max-width: 80%;
}

.intro-section h2 {
  /* Heading color and margin */
  color: black;
  margin-bottom: 20px;
}

.intro-section p {
  /* Text color, size, and line height */
  color: black;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* SERVICES */
.service-section {
  /* Padding and background color */
  padding: 62px;
  background-color: #ffffff;
  
}
 .service-section p {
     font-size: 1.2rem
 }
.timeline {
  /* Relative positioning and left border */
  position: relative;
  margin: 20px 0;
}

.timeline-event {
  /* Relative positioning and spacing */
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.timeline-event p {
  /* Margin, padding, background, and shadow */
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.red {
    font-size:14px;
}

.disclaimer {
    font-size:1rem!important;
    text-align: left;
}
/* EXPERIENCE */
.outer-container {
  /* Full width and column layout */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  /* Full width and height, flex layout */
  width: 100%;
  height: 25rem; /* Adjust the height as needed */
  display: flex;
  position: relative;
  margin-top: 5px;
  margin-bottom: 5px;
}

.photo {
  /* Flex child, cover background */
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.photo::before {
  /* Overlay on photos */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
  z-index: 1;
}
/* Experience Photos 
There are 3 photos for each section. The middle photo will be used when shrunk to mo*/
.material1 {
  background-image: url("../images/Material_1.jpg");
}
.material2 {
  background-image: url("../images/Material_2.jpg");
}
.material3 {
  background-image: url("../images/Material_3.jpg");
}
.optic1 {
  background-image: url("../images/Optical_1.jpg");
  background-position: right;
}
.optic2 {
  background-image: url("../images/Optical_2.jpg");
}
.optic3 {
  background-image: url("../images/Optical_3.jpg");
}
.instrument1 {
  background-image: url("../images/Instrumentation_1.jpg");
}
.instrument2 {
  background-image: url("../images/Instrumentation_2.jpg");
}
.instrument3 {
  background-image: url("../images/Instrumentation_3.jpg");
}
.energy1 {
  background-image: url("../images/Energy_1.jpg");
}
.energy2 {
  background-image: url("../images/Energy_2.jpg");
}
.energy3 {
  background-image: url("../images/Energy_3.jpg");
}
.medical1 {
  background-image: url("../images/Medical_1.jpg");
}
.medical2 {
  background-image: url("../images/Medical_2.jpg");
}
.medical3 {
  background-image: url("../images/Medical_3.jpg");
}
.semiconductor1 {
  background-image: url("../images/Semi_1.jpg");
}
.semiconductor2 {
  background-image: url("../images/Semi_2.jpg");
}
.semiconductor3 {
  background-image: url("../images/Semi_3.jpg");
}
.embed1 {
  background-image: url("../images/Embed_1.jpg");
}
.embed2 {
  background-image: url("../images/Embed_2.jpg");
}
.embed3 {
  background-image: url("../images/Embed_3.jpg");
}
.trans1 {
  background-image: url("../images/Trans_1.jpg");
}
.trans2 {
  background-image: url("../images/Trans_2.jpg");
}
.trans3 {
  background-image: url("../images/Trans_3.jpg");
}

.center-content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  color: white;
  z-index: 2; /* Ensure the text is above the overlay */
}
.center-content h1 {
  margin: 0;
  padding: 0;
  font-size: 2em;
}
.center-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.center-content ul li {
  margin: 10px 0;
  font-size: 1.2em;
}
/* RESOURCES */

  .contact-logo {
    text-align: center; /* Center the logo */
    margin-bottom: 20px; /* Add some space below the logo */
  }

  .contact-logo img {
    height: 10rem; /* Adjust the height as needed */
    margin-left: 13px;
  }
/* Styles for the resources section */
.resources-section {
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

/* List styling for the resources list */
.resources-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

/* List item styling within the resources list */
.resources-list li {
  margin-bottom: 10px;
  margin-left: 0;
}

/* Link styling within the resources list */
.resources-list li a {
  color: #0077cc;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* Hover effect for links in the resources list */
.resources-list li a:hover {
  color: #f58a07;
}

/* CONTACT */

/* Full background styling for the contact section */
.full-background {
  width: 100%;
  margin-top: -2rem;
}

/* Main contact section styling */
.contact-section {
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

/* Form group styling */
.form-group {
  margin-bottom: 20px;
}

/* Label styling in the form group */
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Input and textarea styling in the form group */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Textarea specific styling in the form group */
.form-group textarea {
  resize: vertical; /* Allow vertical resizing */
}

/* Submit button styling */
.form-button {
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover effect for the submit button */
.form-button:hover {
  background-color: #f58a07;
}

/* Professional background section styling */
.professional-background-section {
  display: flex;
  flex-direction: column; /* Change to column layout */
  align-items: center;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

/* Profile image styling */
.profile-image {
  margin-bottom: 20px; /* Add some space below the image */
}

.profile-img {
  border-radius: 50%;
  height: 15rem;
}

/* Profile information styling */
.profile-info {
  text-align: center; /* Center the text */
  max-width: 800px;
}


/* FOOTER */

/* Footer styling */
footer {
  text-align: center;
  padding: 3px;
  background-color: rgb(0, 0, 0);
  color: white;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: -2rem;
}

/* SVG icon styling within the footer */
footer svg {
  height: 1em;
  width: 1em;
  vertical-align: middle;
  fill: white;
  margin-left: 5px;
}

/* LinkedIn icon styling */
.fa-linkedin {
  background: #ffffff;
  color: rgb(0, 0, 0);
  padding: 3px;
  border-radius: 5px;
}

/* Link styling within the footer */
footer a {
  text-decoration: none;
  color: white;
}

.footer-logo {
    text-align: center; /* Center the logo */
    margin-top: 20px; /* Add some space above the logo */
}

.footer-logo img {
    height: 6rem; /* Adjust the height as needed */
    width: auto; /* Maintain aspect ratio */
}

/* MOBILE */

/* Media query for screens with a max width of 768px */
@media screen and (max-width: 768px) {
  /* NAVIGATION */
  .nav-links {
    right: 0px;
    top: 4vh;
    background-color: #333;
    display: flex;
    position: fixed;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    top: 36px;
    height: 100%;
  }

  .navbar {
    width: 100%;
  }

  .nav-links li {
    opacity: 0;
    padding: 15px 0;
  }

  .burger {
    display: block;
    padding-right: 3rem;
  }

  /* HERO BANNER */
  .hero-text {
    background-color: none;
  }

  .hero-text h1 {
    padding:4rem;
    padding-top:1000rem;
  }

  .hero-image {
    background-image: linear-gradient(rgba(0, 58, 158, 0.40), rgba(0, 58, 158, 0.40)),
  }

  /* EXPERIENCE */

  .photo {
    display: none; /* Hide all photos by default on mobile */
  }
  .middle-photo {
    /* Show only the middle photo on mobile */
    display: block; /* Display block for full width */
    flex: 1;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  /* CONTACT */
  .professional-background-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-image {
    margin-bottom: 20px;
  }

  .profile-info {
    margin-left: 0;
  }

}
.professional-background-section {
  display: flex;
  flex-direction: row; /* Change to row layout */
  justify-content: space-between;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Adjust width as needed */
  text-align: left;
}

.left-column, .right-column {
  width: 48%; /* Adjust width as needed */
}
.left-column {
    text-align:center;
}

.profile-title {
  margin-top: 20px;
}

.profile-title h2 {
  /*display: flex;*/
  align-items: center;
}

.profile-title .fa-linkedin {
  margin-left: 10px;
}

/* Adjustments for mobile view */
@media screen and (max-width: 768px) {
  .professional-background-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left-column, .right-column {
    width: 100%;
  }

  .profile-title {
    margin-top: 20px;
  }

  .profile-title h2 {
    justify-content: center;
  }
}
