/* 
Design Steps :-
1- Header part :
   - logo, Icon, Links.
2- Landing Section Part:-
   - landing image, intro text, paragraph 
3- Features Part:-
   - 3feature include : icon, h3, and Paragraph
4- Services Section Part :-
   - Special Heading
   - three columns two of them each one contain 2 serv each serv contain icon , h3 and p
   - the third column contain image with before shape 
5- portfolio Section Part :-
   -Special Heading
   - 3 card each card has image, h3, and p
6- About Section Part :-
   - Special Heading 
   - image with before, and after shape
   - 2 paragraphs with hr separate between them
*/

/* Start of Custom Variables */
:root {
    /* main Page material & customized value  */
    --main-color : #10cab7;
    --secondary-color : #2c4755;
    --section-padding :  60px;
    --back-ground-section : #f6f6f6;
    --main-p-color : #777;
    --main-p-line-height : 1.8;
    --transition-duration : 0.3s;
}
/* End of Custom Variables */

/* Start of Components */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(305px , 1fr));
    gap: 30px;
}

.special-heading {
    color: #ebeced;
    font-size: 100px;
    letter-spacing: -3px;
    font-weight: 800;
    margin: 0;
    text-align: center;
}

.special-heading + p {
    margin: -15px 0 0;
    font-size: 20px;
    text-align: center;
    color: var(--main-p-color);
}

@media (max-width: 767px) {
    .special-heading {
        font-size: 60px;
    }
    .special-heading + p {
        margin: -8px 0 0;
    }
    
}

.link-and-lable {
    font-weight: 800;
    font-size: 35px;
    letter-spacing: -2px;
}
/* End of Components */

/* Start Gloabl Rules */
html {
    scroll-behavior: smooth;
}

*{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: "Work Sans", sans-serif;
}

.container {
    margin: 0 auto 0 auto;
    padding: 0 15px 0 15px;
}

/* Small Screens */
@media (min-width: 768px) {
    .container {
        width : 750px
    }
}

/* Medium Screens */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
    
}

/* Large Screens */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
    
}
/* End Gloabl Rules */

/* Start of 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 {
    display: flex;
    width: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header .links .icon span {
    background-color: #333;
    height: 2px;
    margin-bottom: 5px;
}

.header .links .icon span:first-child {
    width: 100%;
}

.header .links .icon span:nth-child(2) {
    width: 60%;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--transition-duration);
}

.header .links .icon span:last-child {
    width: 100%;
}

.header .links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #ddd;
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 200px;
    display: none;
    z-index: 1;
}

.header .links:hover ul {
    display: block;
}

.header .links ul li a:hover {
    padding-left: 25px;
}

.header .links ul::before {
    content: "";
    position: absolute;
    border: 10px solid;
    border-color: transparent transparent #ddd transparent;
    top: -20px;
    right: 5px;
}

.header .links ul li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: var(--transition-duration);
    -webkit-transition: var(--transition-duration);
    -moz-transition: var(--transition-duration);
    -ms-transition: var(--transition-duration);
    -o-transition: var(--transition-duration);
}

.header .links ul li:not(:last-child) a {
    border-bottom: 1px solid #eee;
}
/* End of Header */

/* Start of Landing Section */
.landing {
    position: relative;
    height: calc(100vh - 64px);
    background-image: url(../Images/landing-image.jpeg);
    background-size: cover;
}

.landing .intro-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 345px;
    max-height: 100%;
    text-align: center;
    transform: translate(-50% , -50%);
    -webkit-transform: translate(-50% , -50%);
    -moz-transform: translate(-50% , -50%);
    -ms-transform: translate(-50% , -50%);
    -o-transform: translate(-50% , -50%);
}

.landing .intro-text h1 {
    margin: 0;
    font-size: 50px;
    font-weight: bold;
    color: var(--main-color) ;
}

.landing .intro-text p {
    line-height: var(--main-p-line-height);
    font-size: 19px;
}
/* End of Landing Section */

/* Start of features Section */
.features {
    padding: var(--section-padding) 0;
    background-color: var(--back-ground-section);
}

.features .feat {
    padding: 30px 0;
    text-align: center;
}

.features .feat i {
    color: var(--main-color);
}

.features .feat h3 {
    margin: 30px 0;
    font-weight: 800;
}

.features .feat p {
    line-height: var(--main-p-line-height);
    color: var(--main-p-color);
    font-size: 17px;
}
/* End of features Section */

/* Start of Services Section */
.services {
    padding: var(--section-padding) 0;
}

.services .services-content {
    margin-top: 100px;
}

.services .services-content .col {
    justify-content: space-between;
    display: grid;
}

.services .services-content .serv {
    display: flex;
    margin-bottom: 40px;
    justify-content: space-around;
}

@media (max-width:767px) {
    .services .services-content .serv {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.services .serv i {
    color: var(--main-color);
    flex-basis: 60px;
}

.services .serv .text {
    flex: 1;
}

.services .serv .text h3 {
    margin: 0 0 20px;
}

.services .serv .text p {
    color: #444;
    font-weight: 300;
    line-height: var(--main-p-line-height);
}

.services .serv .image  {
    position: relative;
}

.services .serv .image img {
    width: 260px;
    height: 340px;
    filter: grayscale(1);
    -webkit-filter: grayscale(1);
}

.services .serv .image::before {
    content: "";
    position: absolute;
    top: -50px;
    background-color: var(--secondary-color);
    width: 90px;
    height: calc(100% + 100px);
    right: -35px;
    z-index: -1;
}

@media (max-width: 1199px) {
    .image-column {
        display: none;
    }
    
}
/* End of Services Section */

/* Start of Portfolio Section */
.portfolio {
    padding: var(--section-padding) 0;
    background-color: var(--back-ground-section);
}

.portfolio .portfolio-content {
    margin-top: 80px;
}

.portfolio .portfolio-content .card {
    background-color: white;
}

.portfolio .portfolio-content .card img {
    max-width: 100%;
}

.portfolio .card .info {
    padding: 20px;
}

.portfolio .card .info h3 {
    margin: 0;
}

.portfolio .card .info p {
    margin-bottom: 0;
    color:var(--main-p-color) ;
    line-height: var(--main-p-line-height);
}
/* End of Portfolio Section */

/* Start About Section */
.about {
    padding: var(--section-padding) 0 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;
        align-items: center;
    }
    .about .image {
        margin: 0 auto 60px;
    }
    
}

.about .about-content .image {
    position: relative;
    width: 250px;
    height: 375px;
}

.about .about-content .image img {
    width: 100%;
    height: 100%;
}

.about .about-content .image::before {
    content: "";
    position: absolute;
    width: 100px;
    height: calc(100% + 80px);
    background-color: #ebeced;
    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) {
    .image::before {
        display: none;
    }
    .image::after {
        display: none;
    }
}

.about .about-content .text {
    flex-basis: calc(100% - 500px);
}

.about .about-content .text p:first-of-type {
    font-weight: bold;
    line-height: var(--main-p-line-height);
    margin-bottom: 50px;
}

.about .about-content .text hr {
    width: 50%;
    display: inline-block;
    border-color: var(--main-color);
}

.about .about-content .text p:last-of-type {
    line-height: var(--main-p-line-height);
    color: var(--main-p-color);
}
/* End About Section */

/* Start of Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background-color: var(--back-ground-section);
}

.contact .info {
    padding: var(--section-padding) 0;
    text-align: center;
}

.contact .info .lable {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact .info .link {
    display: block;
    color: var(--main-color);
    text-decoration: none;
}

@media (max-width: 767px) {
    .contact .info .lable, 
    .contact .info .link {
        font-size: 25px;
    }
    
}

.contact .info .social {
    display: flex;
    justify-content: center;
    font-size: 20px;
    margin-top: 20px;
}

.contact .info .social i {
    margin-left: 10px;
    color: var(--secondary-color);
    font-size: 20px;
}
/* End of Contact Section */

/* Start of footer section */

.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 25px 10px;
    text-align: center;
    font-size: 18px;
}

.footer span {
    font-weight: bold;
    color: var(--main-color);
}
/* End of footer section */