:root {
    --prmcolor: green;
    --secolor: #15b9d9;
    --fonty: "Poppins", sans-serif;


}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    margin-top: 100px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.outer {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: gainsboro;
}

.main {
    height: auto;
    width: 100%;
    max-width: 1600px;
    background-color: whitesmoke;
   
}
.middle{
    height: 350px;
    width:100%;
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),url(./img/Mech-Eng-Hero.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
}

.middle h1{
   color: white;
    font-family:sans-serif;
    font-size: 60px;
}

/* ==================== at 200px to 300px================== */
@media(min-width:200px) and (max-width:300px){
    .middle{
        height: 150px;
        width:100%;
       background-repeat: no-repeat;
        background-size: cover;
        display: flex;
       justify-content: center;
        align-items: center;
        margin-top: 50px;
    }
    
    .middle h1{
       color: white;
        font-family: var(--fonty);
        font-size: 16px;
    }
}
 
/* ==================== at 300px to 400px================== */
@media(min-width:301px) and (max-width:400px){
    .middle{
        height: 200px;
        width:100%;
       background-repeat: no-repeat;
        background-size: cover;
        display: flex;
       justify-content: center;
        align-items: center;
        margin-top: 50px;
    }
    
    .middle h1{
       color: white;
        font-family: var(--fonty);
        font-size: 24px;
    }
}

/* ==================== at 400px to 500px================== */
@media(min-width:401px) and (max-width:500px){
    .middle{
        height: 200px;
        width:100%;
      background-repeat: no-repeat;
        background-size: cover;
        display: flex;
       justify-content: center;
        align-items: center;
        margin-top: 50px;
    }
    
    .middle h1{
       color: white;
        font-family: var(--fonty);
        font-size: 30px;
    }
}

/* ==================== at 500px to 600px================== */
@media(min-width:501px) and (max-width:600px){
    .middle{
        height: 250px;
        width:100%;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
       justify-content: center;
        align-items: center;
        margin-top: 50px;
    }
    
    .middle h1{
       color: white;
        font-family: var(--fonty);
        font-size: 35px;
    }
}

/* ==================== at 600px to 768px================== */
@media(min-width:601px) and (max-width:768px){
    .middle{
        height: 260px;
        width:100%;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 55px;
    }
    
    .middle h1{
       color: white;
        font-family: var(--fonty);
        font-size: 42px;
    }
}

/* ==================== at 768px to 900px================== */
@media(min-width:769px) and (max-width:900px){
    .middle{
        height: 280px;
        width:100%;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 55px;
    }
    
    .middle h1{
       color: white;
        font-family: var(--fonty);
        font-size: 48px;
    }
}
 
/* ==================== at 900px to 1200px================== */
@media(min-width:900px) and (max-width:1200px){
    .middle{
        height: 290px;
        width:100%;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
       justify-content: center;
        align-items: center;
        margin-top: 55px;
    }
    
    .middle h1{
       color: white;
        font-family: var(--fonty);
        font-size: 54px;
    }
}
.complete-running{
    height: 100px;
    width: 100%;
    /* background-color: yellow; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:20px;
    margin-bottom: 10px;
}

#comp{
    height: 50px;
    width: 150px;
    background-color:rgb(45, 144, 184);
    border:5px outset rgb(45, 144, 184);
    margin-right: 10px
}
#comp a{
    display: block;
    text-decoration: none;
    font-family: var(--fonty);
    font-size: 20px;
    color: white;
    font-weight: 600;
}
#comp:hover{
    background-color: #226a79;
}

#run{
    height: 50px;
    width: 150px;
    background-color:rgb(45, 144, 184);
    margin-left: 10px;
    border:5px outset rgb(45, 144, 184);
}
#run:hover{
    background-color: #226a79;
}
#run a{
    display: block;
    text-decoration: none;
    font-family: var(--fonty);
    font-size: 20px;
    color: white;
    font-weight: 600;

}

/* ============================ */
@media(min-width:201px) and (max-width:300px){
    .complete-running{
        height: 100px;
        width: 100%;
        /* background-color: yellow; */
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
    }

    #comp{
        height:40px;
        width: 100px;
        background-color:rgb(45, 144, 184);
        border:5px outset rgb(45, 144, 184);
        margin-right: 10px
    }
    #comp a{
        display: block;
        text-decoration: none;
        font-family: var(--fonty);
        font-size: 14px;
        color: white;
        font-weight: 600;
    }
    #comp:hover{
        background-color: #226a79;
    }
    
    #run{
        height: 40px;
        width: 100px;
        background-color:rgb(45, 144, 184);
        margin-left: 10px;
        border:5px outset rgb(45, 144, 184);
    }
    #run:hover{
        background-color: #226a79;
    }
    #run a{
        display: block;
        text-decoration: none;
        font-family: var(--fonty);
        font-size: 14px;
        color: white;
        font-weight: 600;
    
    }
    
   
}

@media(min-width:301px) and (max-width:400px){
    .complete-running{
        height: 100px;
        width: 100%;
        /* background-color: yellow; */
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
    }

    #comp{
        height: 45px;
        width: 130px;
        background-color:rgb(45, 144, 184);
        border:5px outset rgb(45, 144, 184);
        margin-right: 10px
    }
    #comp a{
        display: block;
        text-decoration: none;
        font-family: var(--fonty);
        font-size: 18px;
        color: white;
        font-weight: 600;
    }
    #comp:hover{
        background-color: #226a79;
    }
    
    #run{
        height: 45px;
        width: 130px;
        background-color:rgb(45, 144, 184);
        margin-left: 10px;
        border:5px outset rgb(45, 144, 184);
    }
    #run:hover{
        background-color: #226a79;
    }
    #run a{
        display: block;
        text-decoration: none;
        font-family: var(--fonty);
        font-size: 18px;
        color: white;
        font-weight: 600;
    
    }
    
   
}

@media(min-width:401px) and (max-width:768px){
    .complete-running{
        height: 100px;
        width: 100%;
        /* background-color: yellow; */
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
    }
    
   
}

.projects{
    height: 400px;
    width: 80%;
    display: flex;
    margin: auto;
    margin-bottom: 40px;
    /* background-color: aquamarine; */
    
}

.left-div{
    height: 100%;
    width: 50%;
    /* background-color: greenyellow; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.project-left{
    height: 100%;
    width: 85%;
    background-color:white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

.project-left {
    transition: transform 0.3s ease; /* Smooth transition for the transform property */
}

.project-left:hover {
    transform: scale(1.05); /* Scale the div to 105% on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Optional: add a shadow for better effect */
}


.image{
    margin-top: 10px;
    height: 80%;
    width: 95%;
}

.image img{
    height: 100%;
    width: 100%;
}

.pic-name{
    height: 15%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pic-name h2{
    font-family: var(--fonty);
    font-size: 18px;
    
}
.right-div{
    height: 100%;
    width: 50%;
    /* background-color: rgb(47, 99, 255); */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.project-right{
    height: 100%;
    width: 85%;
    background-color:white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
   
}

.project-right {
    transition: transform 0.3s ease; /* Smooth transition for the transform property */
}

.project-right:hover {
    transform: scale(1.05); /* Scale the div to 105% on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Optional: add a shadow for better effect */
}

/* at ==========200px to 300px================== */
@media(min-width:200px) and (max-width:300px){

    .projects{
        height:auto;
        width: 85%;
        display: flex;
        margin: auto;
        margin-bottom: 30px;
        flex-direction: column;
    }
    
    .left-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-left{
        height: 95%;
        width: 100%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
    }

    .right-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 30px;
    }
    
    .project-right{
        height: 95%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
       
    }

    .image img{
        height: 100%;
        width: 100%;
    }
    
    .pic-name h2{
        margin-top: 5px;
       font-size: 12px;
       margin-bottom: 5px;
        
    }

}

/* at ==========300px to 400px================== */
@media(min-width:301px) and (max-width:400px){

    .projects{
        height: auto;
        width: 85%;
        display: flex;
        margin: auto;
        margin-bottom: 30px;
        flex-direction: column;
        /* background-color: yellow; */
    }
    
    .left-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-left{
        height: 95%;
        width: 100%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        
    }

    .right-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background-color: red;
        margin-top: 30px;
       
    }
    
    .project-right{
        height: 95%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
       
    }

    .image img{
       height: 100%;
        width: 100%;
    }
    
    .pic-name h2{
        margin-top: 10px;
       font-size: 13px;
       margin-bottom: 10px;
        
    }

}

/* at ==========400px to 500px================== */
@media(min-width:401px) and (max-width:500px){

    .projects{
        height: auto;
        width: 85%;
        display: flex;
        margin: auto;
        margin-bottom: 30px;
        flex-direction: column;
        /* background-color: yellow; */
    }
    
    .left-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-left{
        height: 95%;
        width: 100%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        
    }

    .right-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background-color: red;
        margin-top: 30px;
       
    }
    
    .project-right{
        height: 95%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
       
    }

    .image img{
       height: 100%;
        width: 100%;
    }
    
    .pic-name h2{
        margin-top: 10px;
       font-size: 14px;
       margin-bottom: 10px;
        
    }

}

/* at ==========500px to 600px================== */
@media(min-width:501px) and (max-width:600px){

    .projects{
        height: auto;
        width: 85%;
        display: flex;
        margin: auto;
        margin-bottom: 35px;
        flex-direction: column;
        /* background-color: yellow; */
    }
    
    .left-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-left{
        height: 95%;
        width: 100%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        
    }

    .right-div{
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background-color: red;
        margin-top: 35px;
       
    }
    
    .project-right{
        height: 95%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
       
    }

    .image img{
       height: 100%;
        width: 100%;
    }
    
    .pic-name h2{
        margin-top: 10px;
       font-size: 16px;
       margin-bottom: 10px;
        
    }

}

/* at ==========601px to 768px================== */
@media(min-width:601px) and (max-width:768px){

    .projects{
        height: 250px;
        width: 95%;
        display: flex;
        margin: auto;
        margin-bottom: 30px;
        /* background-color: aquamarine; */
        
    }
    
    .left-div{
        height: 100%;
        width: 50%;
        /* background-color: greenyellow; */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-left{
        height: 95%;
        width: 85%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
    }

    .right-div{
        height: 100%;
        width: 50%;
        /* background-color: rgb(47, 99, 255); */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-right{
        height: 95%;
        width: 85%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
       
    }

    .image img{
        height: 100%;
        width: 100%;
    }
    
    .pic-name h2{
       font-size: 14px;
    }

}

/* at ==========768px to 900px================== */
@media(min-width:768px) and (max-width:900px){

    .projects{
        height: 300px;
        width: 95%;
        display: flex;
        margin: auto;
        margin-bottom: 30px;
        /* background-color: aquamarine; */
        
    }
    
    .left-div{
        height: 100%;
        width: 50%;
        /* background-color: greenyellow; */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-left{
        height: 95%;
        width: 85%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
    }

    .right-div{
        height: 100%;
        width: 50%;
        /* background-color: rgb(47, 99, 255); */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-right{
        height: 95%;
        width: 85%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
       
    }

    .image img{
        height: 100%;
        width: 100%;
    }
    
    .pic-name h2{
       font-size:16px;
       
        
    }

}

/* at ==========900px to 1200px================== */
@media(min-width:901px) and (max-width:1200px){

    .projects{
        height: 350px;
        width: 95%;
        display: flex;
        margin: auto;
        margin-bottom: 30px;
        /* background-color: aquamarine; */
        
    }
    
    .left-div{
        height: 100%;
        width: 50%;
        /* background-color: greenyellow; */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-left{
        height: 95%;
        width: 90%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
    }

    .right-div{
        height: 100%;
        width: 50%;
        /* background-color: rgb(47, 99, 255); */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .project-right{
        height: 95%;
        width: 90%;
        background-color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
       
    }

    .image img{
        height: 100%;
        width: 100%;
    }
    
    .pic-name h2{
       font-size:18px;
       
        
    }

}