
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

:root{
    --header-height:3.5rem;
    --first-color: hsl(18, 95%, 55%);
    --second-color: hsl(42, 98%, 52%);
    --first-gradient: linear-gradient(90deg,
                      hsl(18%, 95%, 55%),
                      hsl(18%, 98%, 64%));
    --title-color: hsl(255, 12%, 12%);
    --text-color: hsl(255, 12%, 24%);
    --text-color-light: hsl(255, 4%, 70%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(0, 0%, 100%);
    --white-color: hsl(0, 0%, 100%);
    --black-color: hsl(255, 20%, 10%);
    --gray-border: hsl(255, 6%, 90%);
    --black-border: hsl(255, 10%, 20%);


    --body-font: "Montserrat", sans-serif;
    --big-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .833rem;
    
    
    --font-regular:400;
     --font-medium:500;
      --font-semi-bold:600;
       --font-bold:700;
    
    --z-tooltip:10;

    --z-fixed:100;
}
@media screen and (min-width: 1150px){
    :root{
        --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    }
}
 *{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
 }
 html{
    scroll-behavior: smooth;
 }
 body{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
 }

 h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
 }
 a{
    text-decoration: none;
 }
 img{
    display: block;
    min-width: 100%;
    height: auto; 
}
.container{
    max-width: 1120px;
    margin-inline: 1.5rem;

}
.grid{
    display: grid;
    gap: 1.5rem;
}
.section{
    padding-block: 5rem 1rem;
}
.section__title,
.section__subtitle {
    text-align: center;
}
.section__subtitle{
    display: block;
    font-size: 2rem;
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    margin-bottom: .5rem;
    font-family: 'releway';
}
.main{
    overflow: hidden;
}
/*--header and nav*/
.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: background-color .4s;
}
.logo img{
    width: 50px;      /* Logo size */
    height: 70px;      /* keeps ratio */
    object-fit: contain;
}
.nav{
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    

}
.nav__logo{
   display: flex;
   align-items: center;
  gap: 1px;
}
.nav__logo span{
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}
.nav__logo h3{
    color: orange;
}
.nav__logo i{
    color: var(--first-color);
    font-size: 1.5rem;
}
.nav__toggle,
.nav__close{
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
    transition: color .4s;
}


/*--navigation for mobile devices*/
@media  screen and (max-width:1150px) {
    .nav__menu{
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--black-color);
        width: 80%;
        height: 100%;
        padding: 7.5rem 3.5rem 0;
        border-left: 2px solid var(--black-border);
        transition: right .4s;
    }
    .section__subtitle{
        font-weight: 2.5rem;
    }
}
.nav__list{
    display: flex;
    flex-direction:column;
    row-gap: 4rem;
    list-style: none;
}
.nav__link{
    color: var(--text-color-light);
    font-weight: var(--font-semi-bold);
    transition: color .4s;

}
.nav__link:hover{
    color: var(--first-color);

}
.nav__close{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}
.show-menu{
    right: 0;
}
/*bg header*/
.bg-header{
background-color: var(--body-color);
box-shadow: 0 4px 16px hsla(255, 90%, 8%, .1);
}
.bg-header .nav__logo span,
.bg-header .nav__toggle{
    color: var(--title-color);

}
/*active link*/
.active-link{
    color: var(--first-color);
}
/*home*/
.home{
    position: relative;
    background-color: var(--black-color);

}
.home__container{
    position: relative;
    row-gap: 3rem;
    padding-block: 2.5rem 6rem;
}
.home__content{
    row-gap: 2.5rem;
}
.home__data{
    text-align: center;
}
.home__title{
    color: var(--white-color);
    font-size: var(--big-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}
.home__description{
    margin-bottom: 2.5rem;
    color: var(--text-color-light);
}
.home__buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.home__info{
    display: flex;
    justify-content: center;
    column-gap: 4.5rem;

}
.home__info-title{
    color: var(--second-color);
    font-size: var(--big-font-size);
    font-weight: var(--font-bold);
    margin-bottom: .5rem;
}
.home__info-description{
    font-size: var(--small-font-size);
    color: var(--white-color);

}
.home__images{
    position: relative;
    justify-self: center;
}
.home__img-1{
    width: 250px;
    margin-left: 3.5rem;
}
.home__img-2{
    width: 100px;
    border: 5px solid var(--black-color);
    position: absolute;
    left: 0;
    bottom: -3.5rem;
}

/*button*/
.button{
    display: inline-flex;
    background: var(--first-color);
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    padding: 1rem 2rem;
    transition: box-shadow .4s;

}
.button:hover{
    box-shadow: 0 8px 32px hsla(18, 95%, 55%, 3);
    color: var(--white-color);
}
.button__link{
    display: flex;
    align-items: center;
    column-gap: .25rem;
    color: var(--first-color);
}
.button__link span{
    font-weight: var(--font-semi-bold);

}
.button__link i{
    font-size: 1.5rem;
    transition: transform .4s;
}
.button__link:hover i{
transform: translateX(.25rem);
}
/*about*/
.about__container{
    row-gap: 8rem;
}
.about__data{
    text-align: center;

}
.about__description{
    margin-bottom: 2rem;
}
.about__list{
    text-align: initial;
    grid-template-columns: repeat(2, 130px);
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;

}
.about__list-item{
    display: flex;
    column-gap: .5rem;
    color: var(--title-color);
    list-style: none;
}
.about__list-item i{
    font-size: 1.25rem;
    color: var(--first-color);
}
.about__images{
    position: relative;
    justify-self: center;
}
.about__img-1{
    width: 200px;
    border: 5px solid var(--body-color);
    position: absolute;
    top: -5rem;
    left: 6rem;

}
.about__img-2{
    width: 150px;
    margin-right: 2.5rem;

}
/*--services*/

.wrapper{
    font-family: 'releway';
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #fafafa;

}
.wrapper h1{
    font-size: 3rem;
    margin: 25px 0;
    text-align: center;
    font-weight: 600;
    color: var(--first-color);
}
.wrapper p{
    font-size: 20px;
}
.content-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 1000px;
    margin-top: 30px;
}
.card{
    min-height: 220px;
    width: 320px;
    padding: 30px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--white-color);
    margin: 10px 4px;
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.2);
}
.card i{
    margin: 20px;
    color: var(--first-color);
    font-size: 25px;
     font-weight: var(--font-semi-bold);
}
.card h2{
    margin-bottom: 12px;
    font-weight: 400;
    text-align: center;
}
.card p{
    color: #6c757d;
    text-align: center;
}
.card:hover{
    box-shadow: 0 8px 32px hsla(18, 95%, 55%, 3);
    color: var(--white-color);
}
@media(max-width: 991px){
    .wrapper{
        padding: 25px;
    }
    .wrapper h1{
        font-size: 2.5em;
        font-weight: 600;

    }
    .content-box{
        flex-direction: column;
        width: 100%;

    }
    .card{
        min-width: 300px;
        margin: 10px auto;
    }
    .wrapper p{
    text-align: center;
}
}
/*projects*/
.projects{
    width: 100%;
    padding: 60px 5%;
    background: #f8f8f8;
}

.section-title{
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--first-color);
    font-family: 'Releway';
}

.project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.project-card{
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
   
}

.project-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.project-info{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: .5s ease;
}

.project-info h3{
    color: #fff;
    margin-bottom: 10px;
}

.view-btn{
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

/* Hover Effects */
.project-card:hover img{
    transform: scale(1.1);
}

.project-card:hover .project-info{
    opacity: 1;
}

/*--contact--*/
.contact__container{
    row-gap: 3rem;
    padding-block: 1.5rem 3rem;
}
.contact__img{
    width: 320px;
    justify-self: center;
}
.contact__data{
    grid-template-columns: 230px;
    justify-content: center;
    row-gap: 1.5rem;
}
.contact__card{
    background-color: var(--container-color);
    border: 2px solid var(--gray-border);
    padding: 1.5rem 2rem;
    text-align: center;
    transition: border-color .4s;
}
.contact__card:hover{
    border-color: var(--first-color);
}
.contact__icon{
    width: 48px;
    height: 48px;
    background-color: var(--black-color);
    color: var(--white-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}
.contact__title{
    font-size: var(--h2-font-size);
    margin-bottom: .5rem;
}
.contact__info{
font-style: normal;

}
.contact__info a{
    color: #000;
}
.contact__social{
display: flex;
justify-content: center;
column-gap: 1rem;
}
.contact__social-link{
    font-size: 1.5rem;
    color: var(--first-color);
    transition: transform .4s;
    border-radius: 50%;
}
.contact__social-link:hover{
    transform: translateY(-.25rem);
    box-shadow: 0 8px 32px hsla(18, 95%, 55%, 3);
    
}
/*footer*/
.footer{
    width: 100%;
    background: #111;
    color: #fff;
    padding: 60px 5% 30px;
    font-family: Arial, sans-serif;
}

.footer-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Logo Section */
.footer-logo{
    text-align: center;
}

.footer-logo img{
     width: 150px;      /* Logo size */
    height: 60px;      /* keeps ratio */
          /* keeps ratio */
    object-fit: contain;
    
}

.footer-logo h3{
    font-size: 24px;
    font-weight: 700;
    color: orange;
}

.footer-logo h3 span{
    color: #ff4d4d; /* Highlight color */
}

.footer-logo p{
    margin-top: 8px;
    opacity: .8;
}

/* Footer Links */
.footer-links h3,
.footer-contact h4{
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.footer-links ul,
.footer-contact ul{
    list-style: none;
}

.footer-links ul li,
.footer-contact ul li{
    margin: 8px 0;
    opacity: .8;
}

.footer-links a{
    display: flex;
    color: #fff;
    text-decoration: none;
    transition: .3s ease;
}
.social{
    display: flex;
    column-gap: 1rem;
    
}
.footer-links i{
    
    font-size: 1.5rem;
    color: var(--first-color);
    transition: transform .4s;
    border-radius: 50%;
    
}
.footer-links i:hover{
     transform: translateY(-.25rem);
    box-shadow: 0 8px 32px hsla(18, 95%, 55%, 3);
    
}

.footer-links a:hover{
    color: #ff4d4d;
}

/* Footer Bottom */
.footer-bottom{
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    opacity: .7;
}

/* Responsive */
@media (max-width: 768px){
    .footer-logo{
        text-align: center;
    }

    .footer-container{
        text-align: center;
    }
     .footer-links{
        text-align: center;
        justify-items: center;
    }
}
/*scroll bar*/
::-webkit-scrollbar{
    width: .6rem;
    background-color: hsl(255, 5%, 75%);
}
::-webkit-scrollbar-thumb{    
    background-color: hsl(255, 5%, 65%);
}

::-webkit-scrollbar-thumb:hover{    
    background-color: hsl(255, 5%, 55%);
}

/*scrollup*/
.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--body-color);
    box-shadow: 0 4px 16px hsla(255, 90%, 8%, .15);
    color: var(--title-color);
    display: inline-flex;
    padding: 6px;
    font-size: 1.25rem;
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}
.scrollup:hover{
    transform: translateY(-.5rem);
}
/*show scroll*/
.show-scroll{
    bottom: 3rem;

}
/*small divice*/
@media screen and (max-width: 340px){
    .container{
        margin-inline: 1rem;
    }
    .section-title{
        font-size: 1.25rem;
    }
    .home__title{
        font-size: 1.75rem;
    }
    .home__buttons{
        flex-direction: column;
    }
    .home__img-1{
        width: 200px;
        margin-left: 1.5rem;
    }
    .about__list{
        grid-template-columns: repeat(1, 200px);
    }
    .about__img-2{
        width: 150px;
        left: 4rem;
    }
    .about__img-2{
        width: 2px;
        margin-right: 0;
    }
    
}

/*medium divice*/
@media screen and (min-width:540px) {
    .home__container,
    .about__container,
    .contact__container{
        grid-template-columns: 360px;
        justify-content: center;
    }
    
}
@media  screen and (min-width:768px) {
    .nav__menu{
        width: 50%;
    }
    .contact__data{
        grid-template-columns: repeat(2, 240px);
    }
    
}
/*large*/
@media screen and (min-width:1400px) {
    .container{
     margin-inline: auto;
    }
    .section{
        padding-block: 7rem 2rem;

    }
    .nav{
        height: calc(var(--header-height) + 2rem);
      
    }
    .nav__toggle,
    .nav__close{
        display: none;
    }
    .nav__menu{
        width: initial;
        
    }
    .nav__list{
        flex-direction: row;
        align-items: center;
        column-gap: 4rem;

    }
    .bg-header .nav__link{
     color: var(--text-color);

    }
    .bg-header .active-link,
    .bg-header .nav__link:hover{
        color: var(--first-color);
    }
    .bg-header .button,
    .bg-header .button:hover{
        color: var(--white-color);
    }
    .home__container{
        grid-template-columns: 475px 550px;
        column-gap: 6rem;
        align-items: flex-start;
        padding-top: 5.5rem;
    }
    .home__content{
        row-gap: 4.5rem;
    }
    .home__data{
        text-align: initial;
    }
    .home__description{
        margin-bottom: 3rem;
    }
    .home__buttons{
        justify-content: initial;
        column-gap: 3rem;
    }
    .home__info{
        justify-content: initial;
        column-gap: 5.5rem;
    }
    .home__info-description{
        font-size: var(--normal-font-size);

    }
    .home__img-1{
        width: 550px;
        margin-left: 0;

    }
    .home__img-2{
        width: 350px;
        border-width: 10px;
        left: -7rem;
        bottom: -8rem;
    }
    .about__container{
        grid-template-columns: repeat(2, 480px);
        column-gap: 9rem;
        padding-block: 9rem 2rem;
    }
    .about__images{
        order: -1;
    }
    .about__img-1{
        width: 10px;
        height: 400px;
        border-width: 5px;
        top: -9rem;
        left: 5rem;
    }
    .about__img-2{
        width: 470px;
    }
    .about__data,
    .about__data :is(.section-title, .section__subtitle){
       text-align: initial;
    }
    .about__list{
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 3.5rem;
    }
    .contact :is(.section-title, .section__subtitle){
        text-align: initial;
    }

    .contact__container{
        grid-template-columns: 530px 515px;
        justify-content: initial;
        align-items: flex-start;
        column-gap: 3.5rem;
        padding-block: 3.5rem 4rem;
    }
    .contact__img{
        width: 530px;

    }
    .contact__data{
        gap: 2rem;
    }
    .contact__card{
        border-width: 3px;
    }
    .contact__title{
        font-size: var(--h3-font-size);
    }
    
    
}
@media screen and (min-width:1150px) {
    .container{
     margin-inline: auto;
    }
    .section{
        padding-block: 7rem 2rem;

    }
    .nav{
        height: calc(var(--header-height) + 2rem);
      
    }
    .nav__toggle,
    .nav__close{
        display: none;
    }
    .nav__menu{
        width: initial;
        
    }
    .nav__list{
        flex-direction: row;
        align-items: center;
        column-gap: 4rem;

    }
    .bg-header .nav__link{
     color: var(--text-color);

    }
    .bg-header .active-link,
    .bg-header .nav__link:hover{
        color: var(--first-color);
    }
    .bg-header .button,
    .bg-header .button:hover{
        color: var(--white-color);
    }
    .home__container{
        grid-template-columns: 475px 550px;
        column-gap: 6rem;
        align-items: flex-start;
        padding-top: 5.5rem;
    }
    .home__content{
        row-gap: 4.5rem;
    }
    .home__data{
        text-align: initial;
    }
    .home__description{
        margin-bottom: 3rem;
    }
    .home__buttons{
        justify-content: initial;
        column-gap: 3rem;
    }
    .home__info{
        justify-content: initial;
        column-gap: 5.5rem;
    }
    .home__info-description{
        font-size: var(--normal-font-size);

    }
    .home__img-1{
        width: 550px;
        margin-left: 0;

    }
    .home__img-2{
        width: 350px;
        border-width: 10px;
        left: -7rem;
        bottom: -8rem;
    }
    .about__container{
        grid-template-columns: repeat(2, 480px);
        column-gap: 9rem;
        padding-block: 9rem 2rem;
    }
    .about__images{
        order: -1;
    }
    .about__img-1{
        width: 10px;
        height: 400px;
        border-width: 5px;
        top: -9rem;
        left: 5rem;
    }
    .about__img-2{
        width: 470px;
    }
    .about__data,
    .about__data :is(.section-title, .section__subtitle){
       text-align: initial;
    }
    .about__list{
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 3.5rem;
    }
    .contact :is(.section-title, .section__subtitle){
        text-align: initial;
    }

    .contact__container{
        grid-template-columns: 530px 515px;
        justify-content: initial;
        align-items: flex-start;
        column-gap: 3.5rem;
        padding-block: 3.5rem 4rem;
    }
    .contact__img{
        width: 530px;

    }
    .contact__data{
        gap: 2rem;
    }
    .contact__card{
        border-width: 3px;
    }
    .contact__title{
        font-size: var(--h3-font-size);
    }
    
    
}