@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    transition: all 0.5s linear;
    scroll-behavior: smooth;
}

html{
    overflow-y: scroll;
    scrollbar-color: #f9f871 #5e5e5e;
    scrollbar-width: thin;
    
}

body{
    background-color: #1e1e1e;
    color: #fefefe;
    overflow-x: hidden;

    
}

::selection{
    background-color: #F9F871;
    color: #7A96FF;
}

input::placeholder, textarea::placeholder{
    color: #9f9f9f;

}

.onhover_yellow:hover{
    color: #F9F871;
}

.onhover_blue:hover{
    color: #7A96FF;
}
/* Utility Classes */

.link_no_decoration{
    text-decoration: none;
    color: inherit;
}

.img_w100{
    width: 100px;
}

.w400{
    width: 400px;
}

.img_h400{
    height: 500px;
}

.h1 h1{
    font-size: 40px;
    font-weight: 700;
    color: #fefefe;
}

.mt_70{
    margin-top: 70px;
}

/* navigation + home page */

.homepg{
    background-image: url('./img/newbg.png');
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: 100% auto;

    height: 100vh;
    width: 100%;

    position: relative;

    overflow: hidden;
}

.burger{
    display: none;
}

.navbar-container{
    display: flex;
    text-align: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.5s;
    transition: top 0.5s ease;
    z-index: 3;
    top: 0;
}

.logo{
    margin-right: 25px;
    text-align: left;
}

.logo a img{
    width: 150px;
    height: auto;
    margin-top: 30px;
}

.navbar{
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    
    background-color: transparent;
    transition: background-color 0.5s linear;
    transition: top 0.5s ease;

    text-align: center;

    z-index: 3;
    position: fixed;
}

.navbar.scrolled{
    background-color: #1e1e1e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-items{
    flex: 1;
    margin-top: 25px;

    border: 2px solid transparent;
    border-radius: 50px;
    background: linear-gradient(#1e1e1e, #1e1e1e) padding-box,
                linear-gradient(to bottom, #F9F871, #7A96FF) border-box;
}

.li{
    width: 170px;
    list-style-type: none;
    display: inline-block;
    padding: 7px 37px;
    margin: 7px;
}

.navbar-items ul a{
    text-decoration: none;
    color: inherit;
}

.li:hover{
    background-color: #5a5a5a;
    transition: background-color 0.3s;
    border-radius: 25px;
}

.gradient-contactus {
    width: 170px;
    list-style-type: none;
    display: inline-block;
    padding: 10px 40px;
    margin: 7px;

    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: #fff;
    text-align: center;
    display: inline-block;

    background-color: #7A96FF; 
    transition: background-color 0.5s ease, color 0.5s ease; 
}

.gradient-contactus:hover {
    background-color: #F9F871; 
    color: #1e1e1e;
    border-radius: 25px;
}

/* home page content */

.content {
    width: 80%;
    position: absolute;
    top: 25%;          
    left: 85%;       
    transform: translateX(-80%); 
    color: #fafafa;

    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.c-box h1{
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.para{
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #d0d0d0;
}

.content_btn{
    display: flex;
    justify-content: center;
    align-items: center;
    appearance: none;
    box-shadow: none;
    background-color: #fafafa;
    color: #1e1e1e;
    border-radius: 10px;
    width: 300px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50px;
}

.content_btn:hover{
    background-color: #5a5a5a;
    color: #fafafa;
    transition: background-color 0.3s, color 0.3s;
}

/* about us page */

.background_text{
    position: absolute;
    left: 50%;
    width: 120%;          
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    text-align: center;
}

.background_text p {
    font-size: 50px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02); 
    margin: 0;
    line-height: 1.2;
    white-space: normal; 
}

.aboutus {
    position: relative;
    display: flex;
    justify-content: center;  
    min-height: 100vh;
    max-height: 100vh;        
    text-align: center; 
    overflow-y: hidden; 
    overflow-x: hidden;     
}

.aboutus::before{
    content: attr(data-bg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    text-align: center;
    font-size: 50px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03); /* faint background look */
    line-height: 1.3;
    white-space: pre-wrap; /* keep spaces */
    z-index: 0;
    pointer-events: none;
}

.aboutus_container {
    width: 60%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;   
    justify-content: center;  
    align-items: center;      
}

.aboutus_h1{
    margin-bottom: 50px;
}

.aboutus_content {
    display: flex;
    align-items: center; 
    justify-content: center; 
    gap: 120px;             
    text-align: left;      
}

.aboutus_content img {
    max-width: 500px;      
    height: auto;
}

.aboutus_content .para {
    flex: 1;               
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: #fefefe;
    margin-bottom: 60px;
}

/* projects page */
.projects {
    margin-top: -100px;
    position: relative;
    display: flex;
    flex-direction: column;  
    align-items: center; 
    min-height: 100vh;        
    text-align: center;  
    background-image: url('./img/Rectangle 10.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 0;     
}

.projects_h1 {
    margin-top: 70px;
    margin-bottom: 60px;  
}

.projects_container {
    display: flex;      
    flex-wrap: wrap;         
    justify-content: center;  
    gap: 30px;                
    max-width: 1500px;        
    width: 100%;
}

.project_card {
    background: #2a2a2a;      
    width: 400px;            
    text-align: left;
    border-radius: 10px;
}

.project_content{
    padding: 20px;
    min-height: 150px;
}

.project_img{
    position: relative;
    height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px 10px 0 0;
    cursor: pointer;

    background-color: rgba(0,0,0,0); 
    background-blend-mode: multiply; 
}

.project_img:hover{
    background-color: rgba(0,0,0,0.5);
    transition: background-color 0.5s;
}

.project_img img{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.project_img img:hover{
    transform: scale(1.3);
    transition: transform 0.5s;
}

.millio{
    background-image: url('./img/millio.png');
}

.poputvetra{
    background-image: url('./img/poputvetra.png');
}

.futureprojects{
    background-image: url('./img/futureprojects.png');
    background-size: contain;
    background-position: center;
}

/* contact us page */
.contactsus{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 50px;
}

.contact_h1{
    margin-bottom: 30px;
}

.contact_para{
    margin-bottom: 30px;
}

.contact_box {
    background: #4a4a4a;
    border-radius: 20px;
    width: 600px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(#1e1e1e, #1e1e1e) padding-box,
                linear-gradient(to bottom, #F9F871, #7A96FF) border-box;
}

.half_container {
    display: flex;
    gap: 20px; 
    margin-bottom: 20px;
}

.half_input {
    flex: 1;  
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #5a5a5a;
    color: #fff;
    font-size: 16px;
    height: 60px;
}

.full_input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #5a5a5a;
    color: #fefefe;
    font-size: 16px;
    margin-bottom: 20px;
    height: 60px;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #5a5a5a;
    color: #fefefe;
    font-size: 16px;
    margin-bottom: 20px;
    resize: none;
}

input[type="submit"] {
    background: #fefefe;
    color: #1e1e1e;
    border: none;
    border-radius: 25px;
    padding: 10px 60px;
    font-size: 16px;
    cursor: pointer;
    float: center;
}

input[type="submit"]:hover {
    background: #5a5a5a;
    color: #fefefe;
}

/* footer */
.footer {
    background-color: #1e1e1e; 
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, #F9F871, #7A96FF) 1; /* gradient line on top */
}

.footer_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer_logo img {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
}

.footer_socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: column;
    margin-top: 20px;
}

.footer_social_icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.footer_social_icon:hover {
    transform: scale(1.2);
    filter: invert(85%) sepia(92%) saturate(450%) hue-rotate(340deg) brightness(105%) contrast(95%);

}

.footer_text p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.additional_contact {
    margin-top: 15px;
    text-align: left;
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
}

.additional_contact strong {
    color: #F9F871; 
}

.footer_info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}


/* Responisveness */
@media only screen and (max-width: 1300px){
    .homepg{
        background-size: 140% auto;
    }
    .content{
        top: 20%;
        left: 75%;
    }
    .projects_container {              
        max-width: 1000px;        
        width: 100%; 
    }
    .projects {
        margin-top: 0;
        height: 110vh;       
    }
}

@media only screen and (max-width: 1100px){
    .homepg{
        background-size: 180% auto;
    }
    .aboutus{
        
        max-height: 70vh;
        min-height: 70vh;
    }
    .projects{
        height: 80vh;
    }
}

@media only screen and (max-width: 1000px){
    .homepg{
        background-size: 160% auto;
        height: auto;
    }
    
    .content{
        top: 17%;
        left: 75%;
    }

    .navbar{
        justify-content: flex-end;
        padding-right: 20px;
    }

    .navbar-items{
        position: fixed;
        background-color: #2a2a2a;
        padding-bottom: 50px;
        width: 205px;
        right: -350px;
        top: 0;
        text-align: center;
        z-index: 2;
        margin-top: 0;
        transition: right 1s ease-out;
    }

    .navbar-items.active{
        right: 0;
    }

    .navbar-items ul{
        padding-top: 30%;
        padding-right: 5px;
    }

    .navbar-items ul li{
        display: block;
        padding: 16px 0;
        margin-left: 15px;
    }

    .navbar-items ul li a{
        color: #d0d0d0;
        padding: 0 18px;
        font-size: 22px;
    }

    .navbar-items ul li a:hover{
        color: #F9F871;
        border: 2px solid #f9f871;
    }

    .burger{
        display: block;
        position: fixed !important;
        top: 15px !important;
        right: 30px !important;
        font-size: 35px;
        color: #F9F871;
        z-index: 2000; 
        cursor: pointer;
    }

    .burger:hover{
        color: #7A96FF;
    }
}

@media only screen and (max-width: 850px) {
    .projects_container {
        display: flex;             
        flex-direction: column !important;
        align-items: center;
        gap: 24px;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .project_card {
        width: 100%;
        max-width: 420px;
        margin: 0;
        box-sizing: border-box;
    }

    .project_img {
        height: 220px;
        background-position: center;
        background-size: cover;
    }

    .projects {
        height: 160vh;       
    }

    .aboutus{
        padding-top: 50px;
        padding-bottom: 30px;
        max-height: 120vh;
    }

    .aboutus_content {
        display: flex;
        flex-direction: column !important;
        align-items: center;
        gap: 20px;        
        text-align: center;
    }

    .aboutus_content img {
        width: 100%;
        max-width: 400px;              
        height: auto;
        margin-bottom: 20px;
    }

    .aboutus_content > div {
        width: 100%;
        max-width: 600px;      
    }

    .aboutus_content > div .content_btn {
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
}

@media only screen and (max-width: 650px) {

    .homepg{
        background-size: 210% auto;
    }

    .projects{
        height: 200vh;
    }
    
    .content{
        top: 17%;
        left: 75%;
    }

    .contact_box {
        width: 90%;
        max-width: 500px;
        padding: 15px;
        box-sizing: border-box;
    }

    .contact_box .half_container {
        display: flex;
        flex-wrap: wrap; 
        gap: 10px;
        width: 100%;
    }

    .contact_box .input-wrapper {
        flex: 1 1 50%; 
        display: flex;
    }

    .contact_box input.half_input,
    .contact_box input.full_input,
    .contact_box .input-wrapper input {
        flex: 1 1 100%;
        height: 60px;
        padding: 12px;
        box-sizing: border-box;
        border-radius: 10px;
        border: none;
        background: #5a5a5a;
        color: #fefefe;
        font-size: 16px;
    }

    .contact_box textarea {
        width: 100%;
        min-height: 120px;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: #5a5a5a;
        color: #fefefe;
        font-size: 16px;
        resize: none;
    }

    .contact_box input[type="submit"] {
        width: 100%;
        height: 50px;
        padding: 12px 0;
        border-radius: 25px;
        font-size: 18px;
        cursor: pointer;
        background: #fefefe;
        color: #1e1e1e;
        border: none;
    }

    .contact_box input[type="submit"]:hover {
        background: #5a5a5a;
        color: #fefefe;
    }
}

@media only screen and (max-width: 540px){
    .homepg{
        background-image: none;
        height: 100vh;
    }
    .aboutus{
        min-height: 130vh;
        max-height: 130vh;
    }
    .projects{
        height: 220vh;
    }
}

@media only screen and (max-width: 420px) {

    .homepg{
        background-image: none;
        height: 100vh;
    }
    
    .aboutus{
        min-height: 100vh;
        max-height: 100vh;
    }

    .projects{
        height: 180vh;
    }

    .contactsus{
        height: 110vh;
    }

    .h1 h1 {
        width: 300%;
        text-align: left;
    }

    .aboutus_content,
    .projects_container {
        gap: 15px;
    }
}

@media only screen and (max-width: 390px){
    .homepg{
        background-image: none;
        height: 100vh;
    }
    .aboutus{
        min-height: 150vh;
        max-height: 150vh;
    }
}

@media only screen and (max-width: 375px){
    .homepg{
        background-image: none;
        height: 100vh;
    }
    .aboutus{
        min-height: 150vh;
        max-height: 150vh;
    }
    .projects{
        height: 240vh;
    }
    .contactsus{
        height: 140vh;
    }
}

@media only screen and (max-width: 330px){

    .contact_box {
        width: 100%;
        max-width: 500px;
        padding: 15px;
        box-sizing: border-box;
    }

    .contact_box .half_container {
        display: flex;
        flex-wrap: wrap; 
        gap: 10px;
        width: 100%;
    }

    .contact_box .input-wrapper {
        flex: 1 1 100%; 
        display: flex;
    }

    .contact_box input.half_input,
    .contact_box input.full_input,
    .contact_box .input-wrapper input {
        flex: 1 1 50%;
        height: 60px;
        padding: 12px;
        box-sizing: border-box;
        border-radius: 10px;
        border: none;
        background: #5a5a5a;
        color: #fefefe;
        font-size: 16px;
    }

    .contact_box textarea {
        width: 100%;
        min-height: 120px;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: #5a5a5a;
        color: #fefefe;
        font-size: 16px;
        resize: none;
    }

    .contact_box input[type="submit"] {
        width: 100%;
        height: 50px;
        padding: 12px 0;
        border-radius: 25px;
        font-size: 18px;
        cursor: pointer;
        background: #fefefe;
        color: #1e1e1e;
        border: none;
    }

    .contact_box input[type="submit"]:hover {
        background: #5a5a5a;
        color: #fefefe;
    }
}
