html {
  scroll-behavior: smooth;
  
}
html {
  /* reserve scrollbar gutter to avoid layout shifts */
  scrollbar-gutter: stable;
}
/* Reset margin and ensure full height for body */
body {
  margin: 0;
  height: 100vh;
  background-color: black;
  /*background-color: #223251;*/
}

/* The gradient box container */
.gradient-box {
  width: 100%;
  height: 100vh;
  position: relative;
  background: linear-gradient(to top right, black, #223251);
  background-color: #223251;
}

/* Navbar: now centered within the gradient box */
.navbar {
  /* Remove absolute positioning, top, and z-index */
  width: 80%; /* or 100%, or any width you prefer */
  max-width: 1200px; /* optional: keep it from stretching too wide */
  margin: 0 auto; /* centers horizontally */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: white;
  box-sizing: border-box;
}

/* Logo */
.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 100px;
  margin-right: 15px;
}

/* Navbar links */
.navbar .links {
  display: flex;
  gap: 20px;
}

.navbar .links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar .links a:hover {
  color: #a62929;
}

/* Button in navbar */
.navbar .button-container {
  display: flex;
}

.navbar .button-container button {
  padding: 12px 20px;
  background-color: transparent;
  border: 2px solid #a62929;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .button-container button:hover {
  background-color: #a62929;
  color: white;
}

/* Centered content over the gradient */
.center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
}

.center-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.center-content p {
  font-size: 1.2em;
  line-height: 1.5;
  white-space: pre-line;
}

/* Particle canvas */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}

/* Ensure the canvas covers the entire second section */
.second-section {
  position: relative; /* Establish a stacking context */
  width: 100%;
  height: auto;
  overflow: hidden; /* Prevent overflow */
}

.second-section::before {
  content: ""; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background: url('background2.jpg') center center / cover no-repeat;
background-color: rgba(9, 15, 22, 0.70); /* Dark blue with 50% opacity */
background-blend-mode: overlay;
			  
  z-index: -2; /* Ensure it's below the content */
  pointer-events: none; /* Prevent interaction with the background */
}

.wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Limit the height to the third section */
  z-index: -1; /* Behind all content */
  pointer-events: none; /* Prevent interactions */
}

/* Example 'float' keyframes for the .card elements */
@keyframes float {
  0% {
    transform: translateX(-200px) rotate(0deg); /* off-screen to the left */
  }
  100% {
    transform: translateX(calc(100vw + 400px)) rotate(360deg);
  }
}

/* The .card class styling */
.card {
  position: absolute;
  width: 100px;
  height: 150px;
  background-color: white/*#d6a0a0*/;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(156, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  animation: float 10s infinite linear;
  z-index: -1;
}
/* Container for the about section */
#about-container {
  width: 80%;
  margin: 0 auto;
  text-align: left; /* Aligns text to the left */
}

/* Each row containing image(s) and text */
.about-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  color: #c0c0c0;
  background-color: #00000047;
  border-radius: 20px;
}

/* Text content styling */
.text-content {
  flex: 1.6;
  padding-right: 20px;
  box-sizing: border-box;
  text-align: left;  /* If you want the text strictly left-aligned */
}

.text-content h1 {
  margin: 0 0 10px 0;
}

.text-content hr {
  border: 0;
  height: 2px;
  background: #950000;
  margin-bottom: 20px;
  width: 60%;
}

.text-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

/* Image containers */
.image-container {
  flex: 1;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

/* For the second row where two smaller images sit side by side */
.small-images {
  display: flex;
  flex-direction: column;
  justify-content: center; /* adjust as you see fit */
  gap: 10px;              /* spacing between the two images */
}

/* Example size for the smaller images */
.small-images img {
  height: auto;
  max-height: 500px;
}

.scroll-down-button {
  position: absolute;
  bottom: 20px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
  line-height: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-down-button:hover {
  background-color: white;
  color: black;
}

.third-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  color: black; /* Text is now black */
  padding: 20px;
  box-sizing: border-box;
}

.third-section .content {
  max-width: 800px;
  width: 70%;
  
}
.third-section-wrapper {
  position: relative;
  height: auto;
  overflow: hidden;
  /*background: url("background3.png") right top / auto 100% no-repeat*/
}
.third-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.third-section .subtext {
  font-size: 1.3rem;
  color: #5a5a5a; /* Dark gray for lighter text */
  line-height: 1.6;
}

.job-listing {
  margin-top: 40px;
}

.job-category {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: left;
  margin-bottom: 10px;
  color: black;
}

.job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255); /* Subtle black border */
}

.job-title {
  font-size: 1rem;
  text-align: left;
  margin: 0;
  color: black;
  text-decoration: none
}

.job-status {
  font-size: 1rem;
  text-align: right;
  margin: 0;
  color: black; /* Black for main text */
}
.fourth-section {
  background-color: black; /* Black background */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.footer-image {
  max-width: 180px; /* Smaller image size */
  height: auto;
}

.inner-section {
  width: 80%; /* Restricts width to 80% of the parent container */
  border-top: 2px solid white; /* White top border */
  display: flex;
  justify-content: space-between; /* Push content to edges */
  align-items: center; /* Vertically centers the content */
  padding: 20px 0; /* Padding for the inner section */
  box-sizing: border-box;
  position: relative; /* Ensure proper stacking context for content */
}

.footer-content {
  width: 100%;
  display: flex;
  justify-content: space-between; /* Pushes items to the edges */
  align-items: center; /* Vertically centers the content */
  color: white;
}

.left-content p {
  display: inline; /* Make text inline */
  margin-right: 10px; /* Add spacing between inline text */
}

.right-content a {
  color: white; /* Makes the icon white */
  font-size: 24px; /* Adjusts icon size */
  text-decoration: none;
  transition: color 0.3s ease;
}

.right-content a:hover {
  color: #0077b5; /* LinkedIn blue color on hover */
}
/* Adjust text color for better contrast */
.third-section .content h1,
.third-section .content p,
.job-category,
.job-title,
.job-status {
  color: #ffffff; /* White text for contrast */
}

/* Ensure canvas covers the job section */
.job-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Send behind the content */
  pointer-events: none; /* Prevent interactions */
}



/* MOBILE RESPONSIVE STYLES */
@media only screen and (max-width: 768px) {
  /* Navbar: Stack items vertically and center them */
  .navbar {
    align-items: center;
    text-align: center;
    padding: 10px 0;
	width: 100%
  }
  .navbar .logo img {
    height: 60px; /* slightly smaller logo */
  }
  .navbar .button-container {
    margin-top: 10px;
  }
  .navbar .button-container button {
    font-size: 14px;
    padding: 10px 16px;
  }
  /* Make center content wider */
  .center-content {
    width: 90%;
  }
  /* Centered content: scale down headings and paragraphs */
  .center-content h1 {
    font-size: 1.8em;
    padding: 0 20px;
  }
  .center-content p {
    font-size: 0.9em;
    padding: 0 20px;
  }

  /* About Section: Stack image and text in a column */
  .about-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }
  /* Make text and image containers full width */
  .text-content,
  .image-container {
    width: 100%;
    padding: 10px 0;
  }
  .text-content {
    text-align: center;
    padding-right: 0;
  }
  /* Ensure images resize appropriately */
  .image-container img {
    width: 55%;
    height: auto;
  }
  .image-container {
	flex-direction: row;  
  }

  /* Job Listing Section: adjust content width */
  .third-section .content {
    width: 90%;
  }

  /* Scroll Down Button: resize and reposition */
  .scroll-down-button {
    display: none;
    bottom: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
  }

  /* Fourth Section: adjust inner sections for tighter spacing */
  .inner-section {
    width: 95%;
    padding: 10px 0;
  }

  /* About Container: reduce overall width for smaller screens */
  #about-container {
    width: 95%;
  }
  
  /* Set images to 75% width */
  .image-container img,
  .small-images img {
    height: auto;
  }
  /* About Section: Stack items in a column */
  .about-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  /* For the first About row, change order so text appears before image */
  #about-container .about-row:first-child .text-content {
    order: 1;
  }
  #about-container .about-row:first-child .image-container {
    order: 2;
  }
}

