@import url('https://fonts.googleapis.com/css2?family=Afacad:wght@600&family=Chela+One&family=Comfortaa&family=Kdam+Thmor+Pro&family=Nova+Square&family=Varela+Round&display=swap');
:root {
    --primary-light-blue: rgb(27, 148, 253);
    --primary-blue: #0094f8;
    --primary-grey: #222a30;
    --primary-black: rgb(0, 7, 39);
    --primary-dark-blue: rgb(0, 0, 94);
    
}

/* Base styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255)
}

body {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
}



/* Navbar styles */
.navbar-container {
    top: 0;
    width: 100vw;
    z-index: 291;
    height: 80px;
    overflow: hidden;
    position: fixed;
    transition: top 0.5s ease; /* Animation for sliding */

}

.nav-link-container {
    width: 60%;
}
.navbar {
    display: flex;
    background-color: transparent; /* Shade of blue grey */
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 290;
    pointer-events: none;
    font-family: nova square;
    vertical-align: center;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: top 0.5s ease; /* Animation for sliding */


}

.navbar-container {
    transition: top 0.5s ease; /* Animation for sliding */

}

.navbar a {
    float: right;
    display: block;
    color: var(--primary-light-blue);
    text-align: center;
    text-decoration: none;
    font-size: 25px;
    pointer-events:fill;
    margin-left: 7%;
    margin-right: 7%;
    padding: 18px;
    font-weight: 900;

}

.toggleButton {
    position: fixed;
    right: 10px;
    top: 10px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.947);
    color: white;
    border: none;
    padding: 5px 10px;
    transition: transform 0.3s ease; /* Animation for rotation */
}

.toggleButton.rotated {
    transform: rotate(180deg); /* Rotate the button 180 degrees */
}

.navbar a {
    transition: text-shadow 0.3s ease; /* Smooth transition for the shadow effect */
    /* Other styling for your text */
}

.navbar a:hover {
    text-shadow: -5px 5px 5px var(--primary-light-blue); /* Shadow effect on hover */
    color: white;
}


.navbar .logo {
    float: left;
    color: var(--primary-light-blue);
}

.navbar img {
    pointer-events:fill;
}



/* Body cover styles */
.body-cover::before {
    background-color: black;
    opacity: 0;
}

a:hover .body-cover {
    animation: changeBackground 2s infinite ease-in-out;
}

@keyframes changeBackground {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

/* Home page image styles */
.home-page-image-darkener {
    background-color: black;
    position: absolute;
    width: 100vw;
    height: 220vh;
    z-index: 5;
}

.home-page-image {
    height: 220vh;
    width: 100vw;
    background-image: url("../images/home-image.png");
    background-repeat: no-repeat;
    opacity: 20%;
    position: absolute;
    top: 0;
    z-index: 10;
    background-size:cover;
}




.home-page-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20vh; /* Adjust the height of the fade effect */
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.7) 75%, 
        rgba(255, 255, 255, 1) 100%
    ); /* Gradient that starts subtle and ramps up towards the end */
    z-index: 11;
}

.home-page-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30vh; /* Adjust the height of the fade effect */
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.6) 75%, 
        rgba(255, 255, 255, 1) 100%
    ); /* Gradient that starts subtle and ramps up towards the end */
    z-index: 11;
}

.home-page-image-darkener::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30vh; /* Adjust the height of the fade effect */
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.6) 75%, 
        rgba(255, 255, 255, 1) 100%
    ); /* Gradient that starts subtle and ramps up towards the end */
    z-index: 11;
}




/* Main layout styles */
main {
    position: relative; /* Changed from absolute to relative */
    width: 100vw;
    height: 100vh;
}

/* Shared centering styles */
.center-x {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.center-y {
    margin-top: 50%;
}

/* Icon styles */
.down-arrow {
    width: 20px;
    height: 20px;
}

.white-circle {
    background-color: white;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    margin-top: 10px
    
}

.bounce {
    animation-duration: 3s;
}



/* Scroll text styles */
.scroll-text {
    opacity: 0; /* Invisible state */
    transform: translateY(20px); /* Start below final position */
    transition: opacity 2s ease, transform 2s ease; /* Transition effects */
}

.scroll-text.visible {
    opacity: 1; /* Visible state */
    transform: translateY(0); /* Final position */
}

.first-text {
    font-size: calc(3vw + 10px);
    line-height: 50px;
    line-height: 3vw;
    display: inline-block;
    width: 45%;
    vertical-align:top;
    transition: all 1s;
    font-family: afacad;
    font-weight: 800;
}



.text1 {
    position: relative;
    padding-top: 100px;
    margin: 0;
    font-size: 5vw;
    z-index: 200;
}

.info-container {
    height: 100vh;
    width: 100vw;
}

.first-text-container {
    width: 100%;
    padding-bottom: 40px;
    padding-top: 40px;
    display: flex;
    justify-content: space-around;
    background-color:   rgb(176, 176, 176);
    border-top: 4px solid rgb(108, 108, 108);
    border-bottom: 4px solid rgb(108, 108, 108);
    align-items: flex-start;
    
}

.first-text {
    transition: all .5s;
    padding: 0px;
}

.first-text:hover {
    background-color: white;
}

.image-placeholder {
    width: 35vw;
    border: 4px solid rgb(140, 140, 140);
    box-shadow: -5px 5px 20px rgb(66, 66, 66);
    height: auto;
    display: inline-block;
    margin-left: 30px;
}

.right {
    float: right;
}


iframe {
    width: 100%;
    height: 80%;
    border: none;
}


.black-circle {
    background-color: black;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    
}

.white {
    color: white;
}

.bottom {
    margin-top: 30vh;
}

.contact-text {
    text-align: center;
    font-family: afacad;
    font-weight: 800;
}

.align {
    text-align: center;
}


.contact-button-text {
    text-align: center;
}

.contact-icon {
    position: fixed;
    top: 93%;
    left: 2%;
    border-radius: 100%;
    color: var(--primary-blue);
    z-index: 150;
    animation-duration: 20s;
}

a {
    color: inherit;
}

footer {
    height: 4vw;
    background-color: var(--primary-blue);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.footer-arrow {
    margin-top: 40%;
    transform: rotate(180deg);
}

.footer-text {
    margin: 0;
}

.footer-text2 {
margin: 0;
position: relative;
bottom: 0vw;
text-align: center; /* Center text horizontally */
display: flex;
justify-content: center; /* Center content horizontally */
align-items: center; /* Center content vertically */
color: white;
}

#scroll-target-top {
    display: block;
    position: relative;
    top: 0;
}


  


.square {
    width: 17vw;
    height: 40px;
    position: absolute;
    transition: .5s;
    left: 0;
    z-index: 10;
    background-color: black;
    border: 2px solid rgb(37, 37, 37);
    transform: translate(0, -2px)
    }

    .placeholder {
        display: flex;
        width: 17vw;
        height: 42px;
        background-color: #004a8a3e;
        justify-content: center;
        margin-bottom: 50px;
        z-index: 90;
      }

 button {
    margin: 0px;
    padding: 0;
    font-size: 1.5vw;
    background-color: transparent;
    color: black;
    border: none;
    cursor: pointer;
        }
.container-projects {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 0vw;
    padding-top: 3vw;
}

.project-image {
    transition: all 1s;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-size: cover; /* Cover will ensure the entire div is filled */

}

.image1 {
    background-color: var(--primary-grey);
}

.image2 {
    background-color: var(--primary-blue);
}

.image3 {
    background-color: var(--primary-black);
}

.box1 {
    display: inline-block;
    z-index: 120;
}

.box2-container,
.box3-container,
.box4-container,
.box5-container,
.box6-container {
    position: absolute;
    width: 100vw;
    display: flex;
    justify-content: space-around;
}





.box2 {
    opacity: 0;
}

.box3 {
    opacity: 0;
}

.project-container {
    display: flex;
    justify-content: space-around;
    width: 100vw;
}

.box1, .box2, .box3, .box4, .box5, .box6 {
    transition: all 2s;
    opacity: 0;


}

.box1 {
    opacity: 2;
}

.project-text {
    width: 25vw;
    text-align: center;
    font-size: 1.8vw;
    color: white;
}

img {
    background-repeat: repeat;
}

.project-image:hover {
    transform: scale(1.10);
}

.project-image-container {
    overflow: hidden;
    width: 10vw;
    height: 10vw;
    border: 4px solid rgb(193, 193, 193);

}


.contact-text {
    border-radius: 50px;
    padding: 3%;
    transition: all 1s;
    margin-top: 0;
    font-size: 1.2vw;
}

.contact-text:hover {
    background-color: white;
}

.custom-text {
    margin-top: 4.5vw;
    margin-bottom: 1vw;
    font-size: 3.5vw;
}

.margin-bottom {
    margin-bottom: 10vw;
}

.main-keystone-logo {
    padding-top: 50px;
    font-size: 2vw;
    z-index: 200;
    position: relative;
    width: calc(20vw + 200px);
}

.product-button-container {
    display: flex;
    margin-top: 50px;
    justify-content: center;
}

.product-button {
    font-size: 6vw;
    width: 35vw;
    height: 10vw;
    background-color: var(--primary-blue);
    color: var(--primary-black);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 5px solid var(--primary-grey);
    font-family: kdam thmor pro;
    font-weight: 900;
    transition: all 1s;
    box-shadow: 0 0px 0px var(--primary-light-blue);
}

.product-button:hover {
    background-color: var(--primary-black);
    color: var(--primary-blue);
    border: 5px solid var(--primary-grey);
    transform: translate(20px, -20px);
    box-shadow: -20px 10px 10px var(--primary-blue);
}

a {
    text-decoration: none;
}

.more-info {    
    margin-top: 20%;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* semi-transparent black */
    display: none;
    z-index: 300; /* Ensure it's above other content but below the logo */
    opacity: 0;
    transition: opacity .5s ease; 
}



.hover-item:hover{
    z-index: 310;
}


.hover-item {
    position: relative;
    z-index: 200; /* Above the overlay */
}

.product-button-container {
    position: relative;
    z-index: 200;
}

a {
    z-index: 200;
}


/* ---- reset ---- */ body{ margin:0; font:normal 75% Arial, Helvetica, sans-serif; } canvas{ display: block; } /* ---- particles.js container ---- */ #particles-js{ position:absolute; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.947); background-image: url(""); background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; } /* ---- stats.js ---- */ .count-particles{ background: #000022; position: absolute; top: 48px; left: 0; width: 80px; color: #13E8E9; font-size: .8em; text-align: left; text-indent: 4px; line-height: 14px; padding-bottom: 2px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; } .js-count-particles{ font-size: 1.1em; } #stats, .count-particles{ margin-top: 5px; margin-left: 5px; } #stats{ border-radius: 3px 3px 0 0; overflow: hidden; } .count-particles{ border-radius: 0 0 3px 3px; }

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
    transition: all .5s;
}



textarea:focus {
    background-color: var(--primary-black);
    border: 5px solid var(--primary-grey);
    transform: translate(5px, -5px);
    box-shadow: -5px 5px 5px var(--primary-blue);
}


.form-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10vw;
    margin-top: 0;
    padding: 20px;
    box-shadow: 5px 5px 5px black;
    position: relative;
}

.focused {
    transform: translate(10px, -10px);
    position: relative;
    box-shadow: 15px 15px 15px black;

}

.form-container-label {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    align-items: center;
}

.full-width {
    grid-column: 1 / -1; /* Spans the full width */
}


#message {
    height: 10vw;
}

#particles-js {
    height: 100vh;
}



#canvas {
    position: fixed;
    background: transparent;
    color: transparent;
    z-index: 0;

}

textarea {
    grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
    transition: all .5s;
    outline: none;
    background-color:rgb(214, 214, 214) ;
    border: 3px solid #222a3087;
}

textarea {
    grid-column: 1 / 3;
    background-color:rgb(214, 214, 214) ;
    border: 3px solid #222a3087;
}


input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    background-color: rgb(174, 186, 197);
    border: 5px solid var(--primary-blue);
    transform: translate(5px, -5px);
    box-shadow: -5px 5px 5px rgb(71, 71, 71);
}



.submit-button {
    margin-top: 10px;
    grid-column: 1 / -1;
    border: none;
}

.form-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10vw;
    margin-top: 20%;
    padding: 20px;
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.834);
    background-color: rgb(176, 176, 176);
    z-index: 100;

}

.form-container-label {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    align-items: center;
}

.full-width {
    grid-column: 1 / -1; /* Spans the full width */
}









.submit-button {
    margin-top: 10px;
    grid-column: 1 / 2;
    padding: 10px 20px;
    background-color: var(--primary-grey); /* Primary button color */
    color: white; /* Text color */
        border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to indicate it's clickable */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    font-size: 16px; /* Adjust as needed */
    font-weight: bold; /* Makes text bold */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
    width: 80%
}

.submit-button:hover, .submit-button:focus {
    background-color: var(--primary-light-blue); /* Lighter shade on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Larger shadow on hover */
    transform: translateY(-2px); /* Slightly raise the button */
}

.submit-button:active {
    transform: translateY(1px); /* Pushes the button down when clicked */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Smaller shadow when clicked */
}

#targetDiv {
position: relative;
}

.form-container {
    transition: transform 1s, box-shadow 1s, border .3s;
    border: 0px solid black;
    border: 4px solid rgb(108, 108, 108);

}

.focused {
    transform: translate(10px, -10px);
    position: relative;
    box-shadow: -15px 15px 15px rgb(50, 50, 50);
    

}

.first-text.active .hidden-text {
    max-height: 500px;
    opacity: 1;
  }

  .first-text.active .arrow-image {
    transform: rotate(-270deg);
  
  }

  .hidden-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    bottom: 0;
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
  }
.preview-text {
display: inline;
}

hr {
    padding: 0;
    margin: 0;
    margin-top: 10px;
    background-color: var(--grey);
    border-color: var(--grey);
  }
  .arrow-image {
    position: absolute;
    bottom: 5px;
    left: calc(50% - 1.5vw);
    transition: transform 0.3s ease-in-out;
   width: 1.5vw;
   height: 1.5vw;
   transform: rotate(-90deg);
  }

.first-text {
    font-size: calc(2vw + 20px);
    padding: 20px;
    padding-bottom: 30px;
    transition: all 1s, opacity 3s, font-size .5s, border .4s;
    margin: 0;
}

.first-text:hover {
    padding: 20px;
    padding-bottom: 30px;

}

  .first-text.active .arrow-image {
    transform: rotate(-270deg);
  
  }




footer {
    background-color: rgb(17, 17, 17);
}


.form-container.less-margin {
    margin-top: 10%;
}

.custom-fabrication {
    position: relative;
    font-family: kdam thmor pro;
    font-weight: 800;
    font-size: 4vw;
    padding-top: 5vw;
    color: rgb(54, 137, 255);
    z-index: 100;
}

.showButton {
    color: rgb(99, 164, 255);
}

.showButton2 {
    color: rgb(99, 164, 255);
}

.showButton3 {
    color: rgb(99, 164, 255);
}

.showButton4 {
    color: rgb(99, 164, 255);
}

.showButton5 {
    color: rgb(99, 164, 255);
}

.showButton6 {
    color: rgb(99, 164, 255);
}

.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas2 {
    position: fixed;
    display: block;
    z-index: 500;
    background: transparent;
    pointer-events: none; /* Add this line */
   bottom: 0;
   right: 0;
   left: 0;
   top: 0;
  
}

.about-line {
    display: inline-block;
    height: 30vw;
    border:3px solid rgb(61, 61, 61);
}

.project-text {
    font-family: afacad;
    font-weight: 800;
}

.my-text {
    text-decoration: underline;
}

.custom-page-image {
    background-image: url("../images/steel-background.png") !important;

}

.logo-image {
    width: 100px;
    height: auto;
    display: block;
}

.about-link {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps the text color unchanged, if any */
    display: inline-block; /* Keeps the link inline with other elements */
    border: none; /* Removes any border */
    width: 30%;
}










.black-cat-placeholder {
    position: absolute;
    width: 100%;
    display:inline;
    z-index: 100;
    margin-left: 30px;
    transform: scale(.99);
    transition: transform 2s;

}




.custom-fabrication {
    transition: all 1s;
}



.showButton,
.showButton2,
.showButton3,
.showButton4,
.showButton5,
.showButton6 {
    font-family: kdam thmor pro;
    font-weight: 900;
    font-size: 20px;
}

.first-text {
    border-radius: 30px;
}

.main-keystone-logo {
    width: 40vw;
    padding-top: 100px;
}

/**PROJECTS NEW FORMAT**/


.project-image-container {
    height: 20vw;
    width: 20vw
}



.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 4 columns of equal width */
    grid-template-rows: auto auto; /* Creates 2 rows */
    gap: 10px; /* Optional: Adjusts the gap between grid items */
    margin-top: 0;
  }

  .small-font {
    font-size: 17px;
  }
  .project-image-container {
    margin-right: auto;
    margin-left: auto;
  }

.box6-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 4 columns of equal width */
    grid-template-rows: auto auto; /* Creates 2 rows */
    gap: 10px; /* Optional: Adjusts the gap between grid items */
}

.box2-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 4 columns of equal width */
    grid-template-rows: auto auto; /* Creates 2 rows */
    gap: 10px; /* Optional: Adjusts the gap between grid items */
}

.box3-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates 4 columns of equal width */
    grid-template-rows: auto auto; /* Creates 2 rows */
    gap: 10px; /* Optional: Adjusts the gap between grid items */
}

.box6-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates 4 columns of equal width */
    grid-template-rows: auto auto; /* Creates 2 rows */
    gap: 10px; /* Optional: Adjusts the gap between grid items */
   

}



