/* Start Varialbles */

/* End Variables */

/* Start Global Rules */
html {
    scroll-behavior: smooth;
}

i {
    font-size: 2em;
}

:root {
    --main-color: #10CAB7;
    --secondary-color: #2C4755;
    --section-padding: 60px;
    --section-background: #ddd;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: "Work Sans", sans-serif;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Small */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }
    }
  /* Medium */
  @media (min-width: 992px) {
    .container {
      width: 970px;
    }
  }
  /* Large */
  @media (min-width: 1200px) {
    .container {
      width: 1170px;
    }
  }
  /* End Global Rules */

/* Start Components */

.special-heading {
    font-weight: 800;
    font-size: 100px;
    color: #ebeced;
    text-align: center;
    margin: 0;
    letter-spacing: -3px;
}

.special-heading + p {
    font-size: 20px;
    text-align: center;
    margin: -30px 0 0;
    color: #575757;
}

@media (max-width: 767px) {
    .special-heading {
        font-size: 60px;
    }

    .special-heading + p {
        margin: -20px 0 0;
    }
}
/* End Components */

  /* Start Header */
.header {
    padding: 20px;
}

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

.header .logo {
    width: 60px;
}

.header .links {
    position:relative;
}

.header .links:hover .icon span:nth-child(2) {
    width: 100%;
}

.header .links .icon {
    width:30px;
    display:flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header .links .icon span {
    background-color: #333;
    margin-bottom: 5px;
    height: 2px;
}

.header .links .icon span:first-child {
    width: 100%;
}

.header .links .icon span:nth-child(2) {
    width: 60%;
    transition: 0.3s;
}

.header .links .icon span:last-child{
    width: 100%;
}

.header .links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f6f6f6;
    position: absolute;
    right: 0;
    min-width: 200px;
    top: calc(100% + 15px);
    display: none;
    z-index: 1;
}

.header .links ul::before {
    content: "";
    border: 10px solid transparent;
    border-bottom-color: #f6f6f6;
    position: absolute;
    right: 5px;
    top: -20px;
}

.header .links:hover ul {
    display: block;
}

.header .links ul li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: 0.3s; 
}

.header .links ul li a:hover {
    padding-left: 25px;
}

.header .links ul li:not(:last-child) a {
    border-bottom: 1px solid #ddd;
}
/* End Header */
/* Start Landing Section */

.landing {
    background-image: url(../images/me-widescreen.jpg);
    background-size: cover;
    height: calc(100vh - 64px);
    position: relative;
}

.landing .intro-text {
    position: absolute;
    left: 50%;
    top: 12%;
    text-align: center;
    transform: translate(-50%);
    max-width: 100%;
}

@media (max-width: 767px) {
    .landing {
        background-image: url(../images/me.jpg);
    }

    .landing .intro-text {
        top: 3%;
    }
    
}

.landing .intro-text h1 {
    margin: 0 !important;
    color: var(--main-color);
    font-size: 50px;
    font-weight: bold;
}

.landing .intro-text p {
    font-size: 19px;
    line-height: 1.8;
}

.contact-now {
    padding: 10px;
    width: fit-content;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: #087f73;
    border: 1px solid black;
    box-shadow: 0 0 5px 5px rgb(255 255 255 / 50%);
    border-radius: 5px;
}
/* End Landing Section */
/* Start Features */
.features {
    padding-top: var(--section-padding);
    padding-bottom:var(--section-padding);
    background-color: var(--section-background);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
  }

  .features .feat {
    padding: 20px;
    text-align: center;
  }

  .features .feat i {
    font-size: 50px;
    margin-bottom: 10px;
  }

  .features .feat h3 {
    font-weight: 800;
    margin: 30px 0;
  }

  .features .feat p {
    line-height: 1.8;
    color: #777;
    font-size: 17px;
  }
/* End Features */
/* Start Services */
.services {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.services .services-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 100px;
}

.services-img {
    width: 100%;
    height: auto;
  }
  

.services .services-content .srv {
    display:flex;
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .services .services-content .srv {
        flex-direction: column;
        text-align: center;
    }
}

.services .services-content .srv i {
    color: var(--main-color);
    flex-basis: 60px;
}

.services .services-content .srv .text {
    flex: 1;
}

.services .services-content .srv .text h3 {
    margin: 0 0 20px;
}

.services .services-content .srv .text p {
    /* color: #333; */
    line-height: 1.6;
    font-weight: 300;
}

.services .services-content > :last-child {
    display: flex;
    align-items: center;
} 

.services .services-content .image {
    align-self: center;
    text-align: center;
    position: relative;
}

.services .services-content .image::before {
    content: "";
    background-color: var(--secondary-color);
    width: 125px;
    height: calc(100% + 150px);
    top: -75px;
    position: absolute;
    right: calc(-125px / 2);
    z-index: -1;
}
.services .services-content .image div {
    background-image: linear-gradient(135deg, #10CAB7 0%, #0aaea0 50%, #087f73 100%);
    height: 600px;
    width: 260px;
    margin-left: 70px;
}
@media (max-width: 1199px) {
    .image-column {
        display: none;
    }
}
/* End Services */
/* Start Portfolio */
.portfolio {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    background-color: var(--section-background);
}

.portfolio .portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 80px;
}

.portfolio .portfolio-content .card {
    background-color: white;
}

.card-link {
    text-decoration: none;
    color: inherit; /* keeps text color normal */
}

.portfolio .portfolio-content .card .img1 {
    width: 100%;
    height: 250px;
    /* background-image: linear-gradient(135deg, #10CAB7 0%, #0aaea0 50%, #087f73 100%); */
    background-image: url(../images/login.png);
    background-position: center center; /* shift left from center */
    background-size: 180%;
    background-repeat: no-repeat;
}

.portfolio .portfolio-content .card .img2 {
    width: 100%;
    height: 250px;
    /* background-image: linear-gradient(135deg, #10CAB7 0%, #0aaea0 50%, #087f73 100%); */
    background-image: url(../images/cards.png);
    background-position: center center; /* shift left from center */
    background-size: 130%;
    background-repeat: no-repeat;
}

.portfolio .portfolio-content .card .img3 {
    width: 100%;
    height: 250px;
    /* background-image: linear-gradient(135deg, #10CAB7 0%, #0aaea0 50%, #087f73 100%); */
    background-image: url(../images/tiers.png);
    background-position: center center; /* shift left from center */
    background-size: 220%;
    background-repeat: no-repeat;
}


.portfolio .portfolio-content .card .info {
    padding: 20px;
}

.portfolio .portfolio-content .card .info h3 {
    color: blue;
    margin: 0;
}

.portfolio .portfolio-content .card .info p {
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0;
}
/* End Portfolio */
/* Start About */
.about {
    padding-top: var(--section-padding);
    padding-bottom: calc(var(--section-padding) + 60px);
}
.about .about-content {
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .about .about-content {
        flex-direction: column;
        text-align: center;
    }
.about .about-content .image {
        margin: 0 auto 100px;
    }

    .about .about-content .image::after {
        width: 20px;
    }
}

.about .about-content .image {
    position: relative;
    /* because of image dimentions */
    width: 250px;
    height: 375px;
}

.about .about-content .image::before {
    content: "";
    position: absolute;
    background-color: #e63946;
    width: 100px;
    height: calc(100% + 80px);
    top: -40px;
    left: -20px;
    z-index: -1;
}

.about .about-content .image::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 300px;
    border-left: 80px solid var(--main-color);
    border-bottom: 80px solid var(--main-color);
    z-index: -1;
    right: -150px;
    top: -40px;
} 

@media (max-width: 991px) {
    .about .about-content .image::after {
        border-bottom: 0px;
    }
}

.about .about-content .image .img {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #10CAB7 0%, #0aaea0 50%, #087f73 100%);
}

.about .about-content .text {
    flex-basis: calc(100% - 500px);
}

.about .about-content .text p:first-of-type {
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 50px;

}

.about .about-content .text hr {
    display: inline-block;
    width: 50%;
    border-color: var(--main-color);
}

.about .about-content .text p:last-of-type {
    line-height: 1.6;
    color: #777;
}

/* End About */
/* Start Contact */
.contact {
    padding-top: var(--section-padding);
    padding-bottom:var(--section-padding);
    background-color: var(--section-background);
}

.contact .info {
    padding-top: var(--section-padding);
    padding-bottom:var(--section-padding);
    text-align: center;
}

.contact .info .label {
    font-size: 40px;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.contact .info .link {
    display: block;
    font-size: 40px;
    color: var(--main-color);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 767px) {
    .contact .info .link {
        font-size: 18px;
    }

    .contact .info .social {
        flex-flow: row wrap;
    }

    .contact .info .social p {
        margin-top: 0px;
        margin-bottom: 20px;
    }

    .contact .info .social div {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-flow: row wrap;
        gap: 20px;
    }
}

.contact .info .social {
    display: flex;
    justify-content: center;
    font-size: 16px;
    margin-top: 20px;
}

.contact .info .social i {
    margin-left: 20px;
    color: var(--secondary-color);
}
/* End Contact */
/* Start Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;               
    padding: 30px 10px;
    font-size: 18px;
    text-align: center;
}

.footer span {
    color: var(--main-color);
    font-weight: bold;
}
/* End Footer */