html{
    height: 100%;
}

body{
    background-color: rgb(0, 0, 0);
   
}

header{
    padding-top: 20px;
    background-color: rgb(0, 0, 0);
    height: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    
}

#logo{
    padding-bottom:7px;
    width: 260px;
    height: 200px;
}

#slogan{
    font-family: 'Times New Roman';
    font-size: 1.2rem;
    color: white;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 3px;
    padding-bottom: 10px;
    position:relative;
    text-decoration:underline;
    text-decoration-color:black;
}

nav {
    background-color: rgb(0, 0, 0);
    color: white;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 14px;
    position: sticky;
    top: 0;  /* Keeps the nav at the top of the page */
    z-index: 1000;  /* Ensures it stays above other content */
    width: 100%;  /* Ensures it spans across the page */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);  /* Optional: adds a slight shadow for better visibility */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    font-size: 1rem;
    position: relative;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);  /* Slightly visible grayish button background */
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.5;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);  /* Slightly darker on hover */
}

nav a:hover::after {
    width: 100%;
    height: 3px;
}

nav a:hover {
    color: white;  /* In case you want the text color to brighten on hover */
}

.upper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.upper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.upper img{
    border-radius: 10px 10px 10px 10px;
    width: 50%;
    height: auto;
    padding-top: 10px;
}

.lower{
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.lower img{
    border-radius: 10px 10px 10px 10px;
    width: 35%;
    height: auto;
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 12px 16px;
    font-size: 18px;
    background-color:black;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    cursor: pointer;
    display: none; 
    z-index: 1000;
    transition: opacity 0.3s ease;
  }
  
  #backToTop:hover {
    background-color: #555;
  }
  

.background-container{
padding-top: 150px;
padding: 2rem;
position: relative;
z-index: 1;
text-align: center;
padding-left: 100px;
padding-right: 100px;
padding-top: 40px;
padding-bottom: 25px;
color: white;
background-color: black;
}

.background-container::before{
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url(img/Pipe-Tech_circuit_logo.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
    background-attachment: fixed;
    background-position: center;
}

h1{
    font-size: 30px;
    text-decoration: underline;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

h2{
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

h3{
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

p{
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;   
}

a{
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

button{
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;

}

.background-container p{
    padding-left: 50px;
    padding-right: 50px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* responsive columns */
    gap: 20px;
    justify-content: center; /* center items horizontally */
    padding: 20px;
    max-width: 1200px; /* keeps layout from getting too wide */
    margin: 0 auto; /* center container on page */
    padding: 20px;
  }
  
.grid-container img {
  max-width: 100%;   /* never overflow the box */
  height: auto;      /* keep aspect ratio */
  display: block;    /* remove extra whitespace below image */
  max-height: 160px; /* adjust this to control how "short" they are */
  object-fit: contain; /* makes sure the full image is visible */
  margin: 0 auto;    /* centers image inside its box */
  border-radius: 10px 10px 10px 10px;
}

  .box {
    height:90%;
    background-color: black;
    border: 2px solid black;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
  }

.box h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

  .box p{
  font-size: 0.9rem;
  line-height: 1.4; /* tighter spacing */
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  }
  
.box #learnMore{
   margin-top: auto;
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  color: #fff;
}

.contact{
    font-size: 30px;
}

input{
    width: 300px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 100px;
    margin-bottom: 25px;
    color: white;
    background-color: black;
    border: 2px solid white;
    border-radius: 10px 10px 10px 10px;
    font-family: Arial, Helvetica, sans-serif;
}

textarea{
    width: 300px;
    padding-left: 5px;
    padding-right: 100px;
    padding-top: 5px;
    padding-bottom: 100px;
    margin-bottom: 25px;
    color: white;
    background-color: black;
    border: 2px solid white; 
    border-radius: 10px 10px 10px 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.team{
    font-size: 25px;
}


.career{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.career img{
    border-radius: 10px 10px 10px 10px;
    width: 35%;
    height: auto;
}

label{
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    padding-right: 5px;
}

.advantages-section {
    padding: 60px 20px;
    text-align: center;
    color: #1d1d1d;
  }
  
  .advantages-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
  }
  
  .divider hr {
    flex: 1;
    border: none;
    height: 1px;
  }
  
  .divider i {
    font-size: 20px;
    color: #333;
  }
  
  .advantages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .advantage {
    background-color: black;
    border-radius: 12px;
    padding: 20px;
    max-width: 250px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid white;
  }
  
  .advantage:hover {
    transform: translateY(-5px);
  }
  
  .advantage i {
    font-size: 40px;
    color: white;
    margin-bottom: 15px;
  }
  
  .advantage h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-decoration: none;
  }
  
  .advantage p {
    font-size: 0.9rem;
    color: white;
  }
  
.serviceImg{
max-width: 70%;
} 

footer{
background-color: rgb(0, 0, 0);
text-align: center;
}

.links{
    margin-top: 10px;
}

.links a{
    padding-left: 10px;
    padding-right: 10px;
}

.autodesk{
    border: solid 2px black;
    border-radius: 999px;
}

footer p{
    font-size: smaller;
    padding-top: 10px;
    padding-bottom: 45px;
}

/* ===============================
   ✅ Responsive Design Additions
   =============================== */

/* Let text and containers scale better */
html {
  font-size: 16px;
}

body, p, h1, h2, h3 {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Make images inside flex/grid layouts scale well */
.upper img,
.lower img,
.career img,
.serviceImg {
  max-width: 100%;
  height: auto;
}

/* Responsive grid layout */
.grid-container {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  /* Stack grid boxes in one column */
  .grid-container {
    grid-template-columns: 1fr;
  }

  /* Flex sections stack vertically */
  .upper,
  .lower,
  .career {
    flex-direction: column;
    text-align: center;
  }

  /* Padding adjustments for smaller screens */
  .background-container {
    padding: 1rem;
  }

  .background-container p {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  input,
  textarea {
    width: 100%;
    padding-right: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .advantage {
    max-width: 100%;
  }

  .advantage h3 {
    font-size: 1rem;
  }

  .advantage p {
    font-size: 0.8rem;
  }
}

/* ====== Mobile Hamburger Navigation ====== */
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: black;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
  }
}

.aboutImg{
  border-radius: 10px 10px 10px 10px;
    width: 25%;
    height: auto;
}

.aboutP{
  padding-top: 25px;
  padding-bottom: 25px;
}
