html{
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    position: relative;
    background-color: #121212; /* Dark background */
    color: #eee; /* Light text color */
}
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay */
    z-index: 1;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 5%;
    padding: 50px 20px;
    text-align: left;
    position: relative;
}
.navbar-nav .nav-link {
    color: #fff;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 700;
}
.navbar-nav .nav-link:hover {
    background-color: #51d63d;
    color: #111;
}
.navbar-nav .nav-item {
    margin-right: 20px;
}
h1 {
    font-size: 6em;
    color: transparent;
    text-shadow: 0 0 0px #fff, 0 0 0px #fff, 0 0 2px #fff, 0 0 100px #9be1b2;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    animation: animateText 5s infinite;
    -webkit-background-clip: text;
    background-clip: text;
}
@keyframes animateText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
h2 {
    font-size: 5em;
    color: #50c852;
    text-shadow: 2px 2px 5px rgba(80, 200, 120, 0.5);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1;
    animation: glowText 2s alternate infinite;
}
p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 50px;
}
.gear-animation {
    position: absolute;
    top: 20%;
    margin-left: 70%;
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 2px solid #51d63d;
    box-shadow: 0 0 10px rgba(80, 200, 120, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, right 0.3s;
}
@keyframes glowText {
    0% {
        text-shadow: 2px 2px 5px rgba(80, 200, 120, 0.5);
    }
    100% {
        text-shadow: 2px 2px 20px rgba(80, 200, 120, 0.8);
    }
}
@keyframes glow {
    0% {
        box-shadow: 0 0 10px #50C878;
    }
    100% {
        box-shadow: 0 0 20px #50C878, 0 0 40px #50C878;
    }
}
@keyframes particles {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}
/* Responsive Styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 5em;
    }
    h2 {
        font-size: 4em;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 4em;
    }
    h2 {
        font-size: 3em;
    }
    .container {
        padding: 40px 15px;
    }
    .gear-animation {
        right: -120px;
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2.5em;
    }
    .gear-animation {
        right: -100px;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
    .btn-custom {
        padding: 10px 20px;
        font-size: 1em;
    }
    .gear-animation {
        position: relative;
        margin: 20px auto;
        top: 0;
        right: 0;
        width: 75px;
        height: 75px;
    }
    .services {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .service {
        flex: 1 1 calc(50% - 20px); /* Adjusted to take 50% of the container minus margin */
        margin: 10px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    .btn-custom {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    p {
        font-size: 0.9em;
    }
    .gear-animation {
        width: 65px;
        height: 65px;
    }
    #services .container{
        padding: 0% ;
        margin-left: 0%;
    }
    #services .container h2{
        padding-left: 5%;
    }
    
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: none;
}

.service {
    flex: 1 1 350px;
    width: 350px;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: transform 0.5s, background-color 0.5s;
}

/* Pseudo-element for background image and opacity */
.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6; /* Opacity for the background image only */
    z-index: -1; /* Keep background behind content */
  }

  .service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1; 
  }

  .service.rapid-prototyping::before {
    background-image: url('RapidPrototypping.jpg'); 
    background-repeat: no-repeat;
  }

  .service.prod::before {
    background-image: url('rb.jpg');
    background-repeat: no-repeat;
  }
  
  .service.m3d::before {
    background-image: url('m3.jpg');
    background-repeat: no-repeat;
  }

  .service.decor::before {
    background-image: url('Decor.jpg');
    background-repeat: no-repeat;
  }
/* Hover effect: Increase background opacity and add glowing effect */
.service:hover::before {
    opacity: 1; /* Full opacity on hover */
  }
  
.service:hover {
    transform: translateY(-10px);
    background-color: #333333bf;
    transition: box-shadow 0.5s ease; /* Smooth transition for the glow effect */
}

.service h3 {
    font-size: 1.5em;
    font-weight: bolder;
    margin-bottom: 10px;
    color: #50C878;
}

.service p{
    color: #ffffff;
}

.btn-custom {
    background-color: #51d63d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}
.btn-custom:hover {
    background-color: #51d63d;
}


.contact-icons {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.contact-icons img {
    width: 60px;
    margin: 10px;
}
footer {
    padding: 20px 0;
    background-color: #181818;
}
.footer-contact p, .footer-links p, .footer-social a {
    margin: 5px 0;
}
.footer-contact i, .footer-social i {
    text-align: left;
    margin-right: 10px;
}
.footer-social a {
    font-size: 1.2em;
}
.footer-social a:hover {
    color: #50C878;
}
@media (max-width: 768px) {
    .footer-links{
        text-align: left;
        margin-bottom: 20px;
        margin-left: -4%;
    }
    .footer-contact{
        text-align: left;
        margin-bottom: 20px;
        margin-left: 8%;
    }
    .footer-social{
        margin-left: -20%;
        margin-bottom: 15px;
    }
    #fs{
        margin-left: 27%;
    }
    #fs2{
        margin-left: -3%;
    }
    #fs3{
        text-align: left;
    }
    h5{
        text-align: left;
        align-items: left;
        margin-left: 10%;
    }
    .footchng{
        text-align: left;
        padding-left: 13%;
    }
}

/* Materials Offered Style */
.mainHead{
    text-align: left;
}
.an{
    background-color: black !important;
    padding-top: 0% !important;
    padding-bottom: 0% !important;
}
h4{
    color: #50c852;
    font-weight: bolder;
    margin-top: -10%;
}
.an div{
    max-height: 200px;
    min-height: 200px;
    overflow-x: hidden;
    overflow-y: hidden;
}
.bd{
    background-color: #000000b0;
    border: 1px solid #50c852;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

@media (max-width: 400px){
    .mainList{
        font-size: 1rem;
    }
    .mainHead{
        font-size: 0.9rem;
    }
}

@media (max-width: 576px){
    .mainList{
        font-size: 1.2rem;
    }
    .mainHead{
        font-size: 1rem;
    }
}

@media (max-width: 768px){
    .mainList{
        font-size: 1.3rem;
    }
    .mainHead{
        font-size: 1.1rem;
    }
}


/* Why Choose Us */
.sig img{
    height: 15vh;
    width: 15vh;
}
.sit{
    border: 1px solid #50c852;
}
.sit h3{
    margin-top: 5%;
    color: #eee;
}
