
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css);
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    border:none;
    text-decoration: none;
    list-style: none;
    text-transform: capitalize;
}

:root{
    --main-color: #224ada;
    --light-black: #6c6c6b;
    --light-color:#aad3f2;
    --light-bg:#f3f3f3;
    --white:#fff;
    --black:#292930;
    --box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

::-webkit-scrollbar{
    width: 1rem;
}

::-webkit-scrollbar-thumb{
    background: var(--black);
}

::-webkit-scrollbar-track{
    background: none;
}

section{
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.btn{
    display: inline-block;
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    color: var(--white);
    background: var(--main-color);
    border-radius: 5rem;
    transition: 0.2s linear;
    cursor: pointer;
    z-index: 0;
    position: relative;
    overflow: hidden;

}

.btn:hover{
    background: var(--white);
}

.btn::before{
    content: '';
    position: absolute;
    top:0;
    right:0;
    height: 100%;
    width: 0%;
    background-color: var(--black);
    z-index: -1;
    transition: 0.3s ease-out;
}

.btn:hover::before{
    width: 100%;
}

.heading{
    text-align: center;
    font-size: 2rem;
    padding-top: 2rem;
}

.heading span{
    padding: 0.5rem 1.5rem;
    background-color: var(--light-bg);
    color: var(--black);
    border-radius: 5rem;
    font-size: 1.8rem;
}

.heading h3{
    font-size: 3rem;
    margin-top: 1rem;
    color: var(--black);
}

.header{
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .flex .logo {
    font-size: 2rem;
    color: var(--black);
    font-weight: bold;
}

.header .flex .logo i{
    text-shadow: var(--box-shadow);
    color: var(--main-color);
    margin-right: .5rem;
}

.header .flex .navbar a{
    font-size: 1.8rem;
    color: var(--light-black);
    margin-left: 1rem;
}

.header .flex .navbar a:hover{
    color: var(--black);
}

#close-btn{
    position:absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 4rem;
    display: none;
}

#menu-btn{
    font-size: 3rem;
    color: var(--black);
    display: none;
}

/*Header section style ended */

/*Home section start */
.home{
    position: relative;
}
.home .flex{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.home .flex .content{
    flex: 1 1 40rem;
}
.home .flex .image{
    flex: 1 1 40rem;
}

.home .flex .image img{
    width: 100%;;
}

.home .flex .content span{
    font-size: 1.8rem;
    color: var(--black);
    background: var(--light-color);
    border-radius: 5rem;
    padding: .5rem 1.5rem;
}
.home .flex .content h1{
    font-size: 4.5rem;
    margin: 1rem 0;
    color: var(--black);
}

.home .flex .content h1 em{
    color: var(--main-color);
    text-shadow: var(--box-shadow);
}

.home .flex .content h3{
    color: var(--black);
    font-size: 1.8rem;
}

.home .flex .content p{
    color: var(--light-black);
    font-size: 1.4rem;
    margin: 1rem 0;
    line-height: 1.8rem;
}

.skill-container{
    position: relative;
}
.skill-container .polygon{
    clip-path: polygon(0% 0%, 100% 0%, 50% 6%);
    background-color: var(--main-color);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40rem;
}

.heading span{
    background: var(--black);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.heading h3{
    color: var(--light-black);
    margin-bottom: 3rem;
}

.skill-container .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, 35rem);
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
}

.skill-container .box-container .box {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem; 
    max-width: 300px;
    height: 350px;
    box-shadow: 0 8px 24px rgba(34, 74, 218, 0.15), 0 1.5px 6px rgba(34, 74, 218, 0.10), var(--box-shadow); 
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}
/* Overlay for h3 and p */
.skill-container .box-container .box-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--main-color);
    color: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 0 0 1rem 1rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 2;
}
.skill-container .box-container .box-overlay h3,
.skill-container .box-container .box-overlay p {
    color: var(--white);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.skill-container .box-container .box-overlay h3 {
    font-size: 2rem;
}
.skill-container .box-container .box-overlay p {
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.skill-container .box-container .box img {
    height: 200px;
    width: 200px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.skill-container .box-container .box img{
    transition: .2s linear;
}

.skill-container .box-container .box:hover img{
    transform: scale(1.1);
}

/*Home section end */

/*About section start */
.about .content p{
    color: var(--light-black);
    font-size: 1.4rem;
    line-height: 1.8rem;
    margin: 1rem 0;
    text-align: justify;

}
.about .row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.about .row .image{
    flex: 1 1 40rem;
}

.about .row .image img{
    width: 100%;
}

.about .row .content{
    flex: 1 1 40rem;
}

/*About section end */

/*Services section start */
.services{
    background-color: var(--light-color);
}

.services .heading>h3{
    color: var(--white);
}

.services .box-container{   
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .services .box-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    justify-items: center;
    }
    .services .box-container .box {
    max-width: 100%;
    height: 320px;
    padding: 1.2rem;
    }
    .services .box-container .box img {
    height: 120px;
    width: 120px;
    }
}

@media (max-width: 600px) {
    .services .box-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
  }
  .services .box-container .box {
    height: auto;
    padding: 1rem;
  }
  .services .box-container .box img {
    height: 90px;
    width: 90px;
  }
}
.services{
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.services .box-container .box {
    text-align: center;
    padding: 2rem;
    border-radius: 0 4rem 0 0;
    border: 2px dotted var(--main-color);
    max-width: 400px;
    height: 350px;
    box-shadow: 0 8px 24px rgba(34, 74, 218, 0.15), 0 1.5px 6px rgba(34, 74, 218, 0.10), var(--box-shadow); 
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.services .box-container .box img {
    height: 200px;
    width: 200px;
    margin-bottom: 1rem;
    object-fit: contain;
}
.services .box-container .box img{
    transition: .2s linear;
}

.services .box-container .box:hover img{
    transform: skewY(10deg);
}
.services .box-container .box h3{
    color: var(--black);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.services .box-container .box p{
    color: var(--light-black);
    font-size: 1.5rem;
    line-height: 1.8rem;
    margin-bottom: 0;
}
/*Services section end */
/* projects section start */

.projects .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.projects .box-container .box {
    text-align: center;
    padding: 2rem;
    border: 2px dotted var(--main-color);
    max-width: 400px;
    height: 350px;
    box-shadow: 0 8px 24px rgba(34, 74, 218, 0.15), 0 1.5px 6px rgba(34, 74, 218, 0.10), var(--box-shadow); 
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.projects .box-container .box img {
    height: 200px;
    width: 200px;
    margin-bottom: 1rem;
    object-fit: contain;
}
.projects .box-container .box img{
    transition: .2s linear;
}
.projects .box-container .box:hover img{
    transform: scale(1.1);
}
.projects .box-container .box h3{
    color: var(--black);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.projects .box-container .box p{
    color: var(--light-black);
    font-size: 1.5rem;
    line-height: 1.8rem;
    margin-bottom: 0;
}
.projects .box-container .box a{
    color: var(--main-color);
    font-size: 1.5rem;
    margin-top: 1rem;
    transition: .2s linear;
}
.projects .box-container .box:hover a{
    color: var(--black);
}
/*.projects section end */
/* Review section start */
.review{
    background: url('/images/review_cover.png');
    background-repeat: no-repeat;
    background-position: center;    
    background-size: cover;
}
.review-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  min-height: 320px;
}

@media (max-width: 700px) {
  .review-slider {
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
  }
  .review-item {
    min-width: 220px;
    max-width: 95vw;
    padding: 1rem;
  }
  .review-img {
    width: 60px;
    height: 60px;
  }
  .review-prev, .review-next {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

.review-item {
  display: none;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  min-width: 300px;
  max-width: 400px;
}
.review-item.active {
  display: flex;
}
.review-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--main-color);
}
.review-star {
  color: gold;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.review-comment {
  font-style: italic;
  color: var(--black);
  margin-bottom: 1rem;
  text-align: center;
  quotes: "“" "”" "‘" "’";
}
.review-comment:before {
  content: open-quote;
  font-size: 2rem;
  color: var(--main-color);
}
.review-comment:after {
  content: close-quote;
  font-size: 2rem;
  color: var(--main-color);
}
.review-author {
  font-weight: bold;
  color: var(--main-color);
  margin-top: 0.5rem;
}
.review-prev, .review-next {
  background: var(--main-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.review-prev:hover, .review-next:hover {
  background: var(--black);
}

/* Contact section side by side layout */
.contacts .box-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  align-items: center;
}
.contacts .mycontacts {
  flex: 1 1 320px;
  max-width: 400px;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contacts .mycontacts .box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--light-bg);
  border-radius: 0.7rem;
  padding: 1rem 1.2rem;
}
.contacts .mycontacts .box i {
  font-size: 2.2rem;
  color: var(--main-color);
  margin-top: 0.2rem;
}
.contacts .mycontacts .box h3 {
  font-size: 1.3rem;
  color: var(--main-color);
  margin-bottom: 0.2rem;
}
.contacts .mycontacts .box a {
  color: var(--black);
  font-size: 1.2rem;
  word-break: break-all;
}
.contacts .forms {
  flex: 2 1 400px;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  padding: 2rem 1.5rem;
}
.contacts .forms form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contacts .forms .input-row {
  display: flex;
  gap: 1rem;
}
.contacts .forms .input-row .inputBox {
  flex: 1 1 0;
}
@media (max-width: 600px) {
  .contacts .forms .input-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.contacts .forms .inputBox {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contacts .forms input,
.contacts .forms textarea {
  border: 1px solid var(--light-black);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  background: var(--light-bg);
  color: var(--black);
}
.contacts .forms textarea {
  resize: vertical;
  min-height: 80px;
}
.contacts .forms .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  transition: background 0.3s, color 0.3s;
}
.contacts .forms .btn:hover,
.contacts .forms .btn:focus {
  background: var(--main-color);
  color: var(--white);
}
.contacts .forms .btn:active {
  background: var(--black);
  color: var(--white);
  transition: background 0.1s;
}



.contacts .mycontacts {
  flex: 1 1 320px;
  max-width: 400px;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contacts .mycontacts .box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--light-bg);
  border-radius: 0.7rem;
  padding: 1rem 1.2rem;
}
.contacts .mycontacts .box i {
  font-size: 2.2rem;
  color: var(--main-color);
  margin-top: 0.2rem;
}
.contacts .mycontacts .box h3 {
  font-size: 1.3rem;
  color: var(--main-color);
  margin-bottom: 0.2rem;
}
.contacts .mycontacts .box a {
  color: var(--black);
  font-size: 1.2rem;
  word-break: break-all;
}
.contacts .forms {
  flex: 2 1 400px;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  padding: 2rem 1.5rem;
}
.contacts .forms form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contacts .forms .inputBox {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contacts .forms input,
.contacts .forms textarea {
  border: 1px solid var(--light-black);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  background: var(--light-bg);
  color: var(--black);
}
.contacts .forms textarea {
  resize: vertical;
  min-height: 80px;
}
.contacts .forms .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}
/* Contacts section end */
/*footer section start */

.footer {
  background: var(--main-color);
  color: var(--white);
  padding: 3rem 2rem 1.5rem 2rem;
}
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer .left {
  flex: 2 1 350px;
}
.footer .left h1 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer .left p {
  color: var(--light-bg);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.footer .social {
  display: flex;
  gap: 1.2rem;
}
.footer .social a {
  color: var(--main-color);
  background: var(--white);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s, color 0.2s;
}
.footer .social a:hover {
  background: var(--black);
  color: var(--white);
}
.footer .right {
  flex: 1 1 200px;
}
.footer .right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .right ul li {
  margin-bottom: 0.7rem;
}
.footer .right ul li a {
  color: var(--white);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer .right ul li a:hover {
  color: var(--light-color);
}
.footer .copyright {
  text-align: center;
  color: var(--light-bg);
  font-size: 1.1rem;
  margin-top: 2rem;
  letter-spacing: 0.5px;
}
@media (max-width: 700px) {
  .footer .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    justify-items: center;
  }
  .footer .left, .footer .right {
    width: 100%;
    flex: unset;
    font-size: 1.5rem;
  }
  .footer .right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .footer .right ul {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .footer .right ul li {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 900px) {
    html{
        font-size: 55%;
    }
  .contacts .box-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .contacts .mycontacts, .contacts .forms {
    max-width: 100%;
    padding: 1.2rem 1rem;
  }
}
@media(max-width: 768px){
        #menu-btn{
            display: inline-block;
        }
        #close-btn{
            display: inline-block;
        }
        .header .flex .navbar{
            position: fixed;
            top: 0;
            right: -120%;
            bottom: 0;
            background: var(--black);
            width: 35rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            box-shadow: 0 0 0 calc(100vw - 35rem) rgba(0,0,0,.7);
            gap: 2rem;
            transition: .2s linear;
        }

        .header .flex .navbar.active{
            right: 0;
        }

        .header .flex .navbar a{
            color: var(--white);
            font-size: 3rem;
        }
        .header .flex .navbar a:hover{
            color: var(--main-color);
        }
}

/*Media query end */