header {
    background-color: rgba(55, 65, 81, 0.9);
    padding: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.logo {
height: 100px;
  width: 175px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title a {
    color: white;
    font-size: 40px;
    text-align: center;
    margin: 0;
    text-decoration: none;
}


.title {
    text-decoration: none;
    color: white;
}

.right {
    display: flex;
    align-items: center;
    padding-right: 70px;
}

.left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 20px;
}

body {
     margin: 0;
    padding: 0;
}

.hero {
    position: relative;
}

.machine2 {
    width: 100%;
    height: 530px;
    object-fit: cover;
    box-sizing: border-box;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
     filter: blur(2px);
      filter: brightness(60%);
}

.hero-text {
     position: absolute;
     top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);

    opacity: 0;
    transition: opacity 1s ease;
}

.hero-text.show {
    opacity: 1;
}

.hero-h1 {
    color: white;
    font-size: 50px;
    font-weight: bold;
}

.imgtext {
    color: white;
    font-size: 25px;
    font-weight: bold;
}

.mainp {
    font-size: 25px;
    align-items: center;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 25px;
    padding-left: 200px;
    padding-right: 200px;
    background-color: #d3d3d3;
}

.h2index {
    padding-top: 50px;
    padding-left: 25px;
    padding-right: 40px;
    font-size: 35px;

}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
}


.index-card {
    background-color: #f5f5f5;
    padding: 25px;
    border-left: 5px solid #C00000;
}


.services div h3 {
    font-size: 23px;
    padding-left: 13px;
}

.services div p {
    font-size: 18px;
    padding-left: 13px;
    padding-right: 13px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.show {
    opacity: 1;
    transform: translateY(0)
}

.footer-main {
    background-color: #374151;
      padding: 15px;
}

.footer-content {
    flex-direction: column;
    color: white;
}

.footer-bottom {
    background-color: black;
    color: white;
    text-align: center;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.iframe {
    border-top: 40px solid #374151;
}

.who,
.why  {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 57.5px;
    padding-top: 100px;
    padding-left: 57.5px;
    padding-right: 57.5px;
    padding-bottom: 100px;

}

.who-text,
.why-text,
.what-text {
    background-color: #d3d3d3;
    padding: 15px;
    text-align: center;

    width: 100%;
    max-width: 500px;
    height: auto;
    box-sizing: border-box;
}

.who-text h2, .why-text h2, .what-text h2 {
     border-bottom: 3px solid #C00000;
    display: inline-block;
    padding-bottom: 5px;
    font-size: 30px;
}

.who-text p, .why-text p, .what-text p {
    font-size: 20px;
}

.img-container {
    position: relative;
    width: fit-content;
}

.img-back {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background-color: #C00000;
    z-index: 1;
}
.who img, .why img, .what img{
    width: 400px;
    height: auto;
    display: block;
    z-index: 2;
    position: relative;
}

.why img {
    filter: blur(.2px) brightness(75%);
}

.what img {
    filter: brightness(85%);
}

.what {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 57.5px;
    padding-top: 100xp;
    padding-left: 57.5px;
    padding-right: 57.5px;
    padding-bottom: 100px;
}


.who, .why, .what {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


.who.show, .why.show, .what.show {
    opacity: 1;
    transform: translateX(0);
}

.hero-about img {
    width: 100%;
    height: auto;
    filter: blur(2px)  brightness(70%)
}

.hero-about {
    position: relative;
}

.hero-about-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    opacity: 0;
    transition: opacity 1s ease;
}

.hero-about-text.show {
    opacity: 1;
}

.hero-about-text h2 {
    color: white;
    font-size: 55px;
    
}

#capabilities {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.capabilitiesls {
    padding-bottom: 60px;
    padding-top: 60px;
    display: flex;
    align-items: center;
    gap: 2px;
}


.capabilitiesls li a {
    text-decoration: none;
    color: black;
    font-size: 25px;
}

.capabilitiesls li  {
   list-style: none;
   padding: 15px;
   font-size: 20px;
   transition: 0.3s;
   border-left: solid 20px #C00000;
}

.capabilitiesls li:hover {
    transform: scale(1.05);
}

.capabilitiesls ul {
    margin-left: 0;
}

.ca-p {
    flex: 1;
    text-align: center;
    font-size: 30px;
    padding: 70px;
    border-bottom: ridge 10px #C00000;
}


#design h1 {
    font-size: 32px;
}


 #design li {
    font-size: 22px;
    padding-top: 22px;
    gap: 20px;
    align-items: center;
}

#fabrication ul {
    text-align: left;
}

#fabrication li {
    font-size: 22px;
      padding-top: 22px;
}

#fabrication h1 {
    font-size: 32px;
}


.href-capabilites {
    cursor: pointer;
}

.contact-text {
    align-items: center;
    text-align: center;
    background: linear-gradient(  135deg,
    #4a4a4a,
    #7a7a7a,
    #b0b0b0,
    #6a6a6a,
    #3f3f3f) ;
    margin: 0;
    padding: 20px;

     opacity: 0;
    transition: opacity 1s ease;
}

.contact-text.show {
    opacity: 1;
}

.contact-text h1 {
    font-size: 50px;
}

#fabrication {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px;
    border-left: solid 40px #d3d3d3 ;

     transform: translatex(-70px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#fabrication.show {
    opacity: 1;
    transform: translateX(0)
}

.fabrication-ca {
    flex: 1;
}

.fabrication-img {
    flex: 2;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 40px;
}

.img-box {
    width: 300px;
    height: 300px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.img-box img:hover {
    transform: scale(1.2);
}

.fabrication-ca ul {
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
}





#design {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px;
    border-left: solid 40px #d3d3d3 ;

     transform: translatex(-70px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#design.show {
    opacity: 1;
    transform: translateX(0)
}

.design-ca {
    flex: 1;
}

.design-img img {
    width: auto;
    height: auto;
    max-width: 400px;
    
}

.design-img img:hover {
     transform: scale(1.15);
}

.design-img {
    flex: 2;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 40px;
    padding-right: 10px;
}


form {
   display: flex;
   flex-direction: column;
   gap: 15px;
   padding: 30px;
   max-width: 400px;
   margin: 0 auto;
   border: 3px solid #C00000;
   border-radius: 5px;
   
}

.form-contact {
    padding: 40px;
    text-decoration: none;
}

.name {
    width: 220px;
    height: 35px;
}

.email {
    height: 35px;
}

.message {
    height: 100px;
}

.file-button {
    width: 100px;
    height: 40px;
    cursor: pointer;
    border: solid 2px black;
    border-radius: 5px;
    color: black;
    text-align: center;
    align-content: center;
    font-size: 18px;
}

.send {
  align-items: center;
  align-self: center;
  background-color: black;
  border: 2px solid #d3d3d3;
  border-radius: 8px;
  box-sizing: border-box;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  width: 90px;
  padding: 0 25px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  

}

.send:after {
  background-color: #d3d3d3;
  border-radius: 8px;
  content: "";
  display: block;
  height: 48px;
  left: 0;
  width: 100%;
  position: absolute;
  top: -2px;
  transform: translate(8px, 8px);
  transition: transform .2s ease-out;
  z-index: -1;
}

.send:hover:after {
  transform: translate(0, 0);
}

.send:active {
  background-color: #ffdeda;
  outline: 0;
}

.send:hover {
  outline: 0;
}

@media (min-width: 768px) {
  .send {
    padding: 0 40px;
  }
}

.name-label {
    font-size: 18px;
}

.email-label {
    font-size: 18px;
}

.message-label {
    font-size: 18px;
}

.name, .message, .email {
    border: solid 2px black;
    border-radius: 5px;
}

input {
    font-size: 15px;
}

textarea {
    font-size: 15px;
}


.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.dropdown-menu li a:hover {
    background-color: #C00000;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-left: solid 5px #C00000;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Hero section */
.hero-capabilities {
    text-align: center;
    margin-bottom: 75px;
    color: black;
    background-color: #d3d3d3;
    
     opacity: 0;
    transition: opacity 1s ease;

}

.hero-capabilities.show {
    opacity: 1;
}

.hero-capabilities h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-capabilities p {
    max-width: 800px;
    margin: auto;
    font-size: 1.2rem;
    line-height: 1.6;
    padding-bottom: 40px;
}

.hero-capabilities h1 {
    margin-top: 0;
    padding-top: 40px;
    font-size: 40px;
}

#capabilities {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.machine-ca {
    max-width: 700px;
    text-align: center;
}

.machine-ca h3 {
    margin-bottom: 25px;
    font-size: 32px;
}

.machine-ca li {
    font-size: 22px;
}

.machine-ca ul {
    list-style-position: inside;
    padding: 0;
    line-height: 1.8;
}

.featured-machine {
    flex: 1;
}

.featured-machine img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Equipment cards */
#equipment {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#equipment.show {
    opacity: 1;
    transform: translateY(0)
}

#equipment h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 25px;
}

.equipment-card {
    background-color: #f5f5f5;
    padding: 25px;
    border-left: 5px solid #C00000;
}

.equipment-card p {
    font-size: 17px;
}

.equipment-card h4 {
    margin-top: 0;
    font-size: 18px;
}

.gallery {
     transform: translatex(-70px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.gallery.show {
    opacity: 1;
    transform: translateX(0)
}

/* Gallery */
.gallery h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;

}

.img-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
}

.img-capabilities img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.hero-machining {
    background-color: #d3d3d3;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;

     opacity: 0;
    transition: opacity 1s ease;
}

.hero-machining.show {
    opacity: 1;
}

.hero-machining h1 {
    margin: 0;
    font-size: 3rem;
}

.services-list {
    display: flex;
    margin-bottom: 75px;
     justify-content: center;
     text-align: center;
}

.services-list ul {
    line-height: 1.8;
    font-size: 22px;
    list-style-type: none;
}

.gallery-services {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 100px;
}

.img-box {
    width: 250px;
    height: 250px;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box img {
    max-width: 100%;
    max-height: 100%;
}

.menu-toggle {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}



/* TABLETS */
@media (min-width: 768px) and (max-width: 1200px) {

    .title a {
        font-size: 40px;
    }

    .logo {
        width: 130px;
        height: 75px;
    }

    .nav a {
        font-size: 20px;
    }

    .img-capabilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;

       #fabrication {
        flex-direction: column;
    }

    .fabrication-ca {
        width: 100%;
        text-align: center;
    }

    .fabrication-img {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }

    .img-box {
        width: 250px;
        height: 250px;
    }


}

}

/* PHONES */
@media (max-width: 767px) {
    
       #fabrication {
        flex-direction: column;
    }

    .fabrication-ca {
        width: 100%;
        text-align: center;
    }

    .fabrication-img {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }

    .img-box {
        width: 250px;
        height: 250px;
    }

    header {
        height: auto;
        padding: 15px;
        flex-wrap: wrap;
    }

    .left {
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .logo {
        width: 90px;
        height: 55px;
    }

    .title {
        flex: 1;
        min-width: 0;
    }

    .title a {
        font-size: 25px;
        line-height: 1.2;
        display: block;
        white-space: normal;
    }

    .menu-toggle {
        display: block;
    }

    .right {
        display: none;
        width: 100%;
        padding-right: 0;
        margin-top: 15px;
    }

    .right.active {
        display: block;
    }

    .nav {
        flex-direction: column;
        gap: 0;
    }

    .nav a {
        display: block;
        padding: 12px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
    }

    .mainp {
       font-size: 25px;
    align-items: center;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 25px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: #d3d3d3;

    }

    .img-capabilities {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 25px;
}

  #design {
        flex-direction: column;
    }

    .design-ca {
        width: 100%;
    }

    .design-img {
        width: 100%;
        justify-content: center;
    }
    
}


