/* Global */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&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');

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

:root{
    --header-height: 3.5rem;

    /* Colors */
    /** Color mode HSL(hue, saturation, lightness) **/
    --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(225, 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%);

    /* Font and typography */
    /** .5rem = 8px | 1rem = 16px ... **/
    --body-font: "Cairo", sans-serif;
    --big-font-size: 2.25rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    /* Font weight */
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* z index */
    --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;
    }
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

img {
    display: block;
    max-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-title {
    font-size: 2.7rem;
    font-weight: var(--font-bold);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    display: block;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--second-color);
    margin-bottom: .5rem;
}

.main {
    overflow: hidden;
}

/*-- Button --*/
.button {
    display: inline-flex;
    background: var(--first-gradient);
    color: var(--white-color) !important;
    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) !important;
}

.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);
}

/* Header Nav */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: background-color .4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    column-gap: .25rem;
}

.nav-logo span {
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

.nav-logo i {
    color: var(--first-color);
    font-size: 1.5rem;
}

header nav a img {
	width: 55px;
}

.nav-toggle,
.nav-close {
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
    transition: color .4s;
}

/** Header Nav Resposive **/
@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;
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
    row-gap: 4rem;
}

.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 **/
.show-menu {
    right: 0;
}

/** Change Background 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);
}


/* Hero */
.home {
    position: relative;
    background-color: var(--black-color);
    height: 54rem;
}

.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: 150px;
    border: 5px solid var(--black-color);
    position: absolute;
    left: 0;
    bottom: -3.5rem;
}

.home-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

/* About Section */
.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);
}

.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: 250px;
    margin-right: 2.5rem;
}

/* Services Section */
.services {
    position: relative;
}

.services-container {
    position: relative;
    row-gap: 3rem;
}

.services-data {
    text-align: center;
}

.services-description {
    margin-bottom: 2rem;
}

.services-card {
    width: 260px;
    background-color: var(--container-color);
    border: 2px solid var(--gray-border);
    padding: 2rem 1rem 3.5rem;
    transition: border-color .4s;
}

.services-card:hover {
    border-color: var(--first-color);
}

.services-icon {
    width: 70px;
    height: 70px;
    background-color: var(--black-color);
    color: var(--white-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.services-title {
    font-size: var(--h2-font-size);
    margin-bottom: .5rem;
}

.services-shape {
    position: absolute;
    width: 100%;
    height: 245px;
    background-color: var(--black-color);
    bottom: 0;
    left: 0;
}

/* Services Swiper Class Custimzation */
.swiper {
    margin-inline: initial;
    padding-bottom: 4rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
}

.swiper-button-prev,
.swiper-button-next {
    top: initial;
    bottom: 0;
    width: 32px;
    height: 32px;
    background-color: var(--container-color);
    box-shadow: 0 2px 8px hsla(255, 8%, 4%, .1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--title-color);
}

.swiper-button-prev {
    left: calc(50% - 3rem);
}

.swiper-button-next {
    right: calc(50% - 3rem);
}

/* Projects Section */
.projects {
    background-color: var(--container-color);
}

.projects-container {
    row-gap: 3rem;
}

.projects-data {
    text-align: center;
    margin-bottom: 2rem;
}

.projects-description {
    margin-bottom: 2rem;
}

.projects-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.projects-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 250px;
}

.projects-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.projects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
                hsla(0, 0%, 0%, 0.2) 0%, 
                hsla(0, 0%, 0%, 0.7) 95%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background-color .4s;
}

.projects-card:hover .projects-img {
    transform: scale(1.1);
}

.projects-card:hover .projects-overlay {
    background-color: hsla(18, 95%, 50%, 0.7);
}

.projects-title {
    color: var(--white-color);
    font-size: var(--h2-font-size);
    margin-bottom: .25rem;
}

.projects-description {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.projects-button {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: var(--white-color);
    color: var(--first-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    transition: background-color .4s;
}

.projects-button:hover {
    background-color: var(--black-color);
    color: var(--white-color);
}

/* Banner Section */
.banner {
    position: relative;
    background: url('../images/banner.jpg') no-repeat center center/cover;
    padding-block: 5rem;
    text-align: center;
    color: var(--white-color);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.banner-container {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    color: white;
}

.banner-description {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
    color: rgb(204, 204, 204);
}

/* Blog Section */
.blog {
    background-color: var(--container-color);
}

.blog-container {
    row-gap: 3rem;
}

.blog-data {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-description {
    margin-bottom: 2rem;
}

.blog-content {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--body-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px hsla(255, 8%, 4%, .1);
    transition: transform .4s;
}

.blog-card:hover {
    transform: translateY(-.5rem);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-details {
    padding: 1.5rem;
}

.blog-date {
    display: block;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: .75rem;
}

.blog-title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.blog-description {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--black-color);
    color: var(--white-color);
}

.contact-container {
    row-gap: 3rem;
}

.contact-data {
    text-align: center;
}

.contact-description {
    margin-bottom: 2rem;
    color: rgb(204, 204, 204);
}

.contact-info {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    column-gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--first-color);
}

.contact-item-title {
    font-size: var(--h3-font-size);
    margin-bottom: .25rem;
    color: white;
}

.contact-item-data {
    color: var(--text-color-light);
}

.contact-form {
    display: grid;
    row-gap: 1.5rem;
}

.contact-form-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-form-input {
    width: 100%;
    padding: 1rem;
    background-color: var(--black-color);
    border: 2px solid var(--black-border);
    color: var(--white-color);
    border-radius: .5rem;
}

.contact-form-input::placeholder {
    color: var(--text-color-light);
}

.contact-form-textarea {
    height: 150px;
    resize: none;
}

/* Footer */
.footer {
    background-color: var(--black-color);
    color: var(--white-color);
    padding-block: 4rem 0;
}

.footer-container {
    row-gap: 3rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-description {
    margin-block: 1.5rem;
}

.footer-social {
    display: flex;
    column-gap: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background-color: var(--black-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--white-color);
    transition: background-color .4s;
}

.footer-social-link:hover {
    background-color: var(--first-color);
}

.footer-title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    display: grid;
    row-gap: 1rem;
}

.footer-link {
    color: var(--text-color-light);
    transition: color .4s;
}

.footer-link:hover {
    color: var(--first-color);
}

.footer-newsletter {
    display: flex;
    margin-top: 1.5rem;
}

.footer-input {
    width: 100%;
    padding: 1rem;
    background-color: var(--black-border);
    border: none;
    color: var(--white-color);
    border-radius: .5rem 0 0 .5rem;
}

.footer-button {
    background-color: var(--first-color);
    color: var(--white-color);
    border-radius: 0 .5rem .5rem 0;
    padding: 0 1.5rem;
    font-size: 1.25rem;
}

.footer-bottom {
    background-color: var(--black-border);
    padding-block: 1.5rem;
    margin-top: 4rem;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
}

.footer-terms {
    display: flex;
    column-gap: 1.5rem;
}

.footer-terms-link {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

footer .nav-logo img {
	width: 55px;
}

/* Responsive */
/** for small devices **/
@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-1 {
        width: 150px;
        left: 4rem;
    }

    .about-img-2 {
        width: 200px;
        margin-right: 0;
    }
}

/** for medium devices **/
@media screen and (min-width: 540px) {
    .home-container,
    .about-container {
        justify-content: center;
        grid-template-columns: 352px 352px;
        gap: 20px;
        align-items: center;
    }
}


@media screen and (min-width: 768px) {
    .nav-menu {
        width: 50%;
    }

    .projects-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .home {
        height: 57rem;
    }
}

/* 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%);
}

/* Scroll Up*/
.scrollup {
    position: fixed;
    left: 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 up */
.show-scroll {
    bottom: 3rem;
}

/* Active Link */ 
.active-link {
    color: var(--first-color);
}

/** for large devices **/
@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto;
    }

    .section {
        padding-block: 6rem 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: 1.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;
    }

    .home-lines {
        object-position: center;
    }

    .about-container {
        grid-template-columns: repeat(2, 480px);
        column-gap: 9rem;
        padding-block: 9rem 2rem;
    }

    .about-images {
        order: -1;
    }

    .about-img-1 {
        width: 370px;
        border-width: 10px;
        top: -9rem;
        left: 11rem;
    }

    .about-img-2  {
        width: 450px;
    }

    .about-data,
    .about-data :is(.section-title, .section-subtitle) {
        text-align: initial;
    }

    .about-list {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 3.5rem;
    }

    .services-swiper {
        max-width: 1100px;
    }

    .services-card {
        width: 348px;
        border-width: 3px;
        padding: 3.5rem 2rem 6rem;
    }

    .services-shape {
        height: 330px;
    }

    .projects-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .blog-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 500px 600px;
        align-items: center;
    }
    
    .contact-data,
    .contact-data :is(.section-title, .section-subtitle) {
        text-align: initial;
    }
    
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Text Responsive */
@media (max-width: 1150px) {
    .home-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 21px;
    }

    .banner-title {
        font-size: 23px;
    }
}

/* Home Heights */
@media (max-width: 1150px) {
    .home {
        height: 44rem;
    }

    .home-img-1 {
        width: 360px;
        margin-left: 3.5rem;
    }

    .home-img-2 {
        width: 180px;
        left: 36px;
    }
}

@media (max-width: 593px) {
    .home {
        height: 38rem;
    }

    .home-swiper .swiper-slide {
        padding-block: 0rem 6rem !important;
        padding-top: 0px !important;
    }
    
    .home-info {
        display: none;
    }

    .home-buttons {
        display: none;
    }

    .home-img-1 {
        width: 100%;
        margin-left: 3.5rem;
    }

    .home-img-2 {
        width: 100px;
        left: 36px;
        bottom: 0.5rem;
        display: none;
    }

    .home-container.container.grid {
        padding-top: 0px !important;
    }

    .services-card {
        width: 360px;
    }
}