html[lang="ar"] {
    direction: rtl;
    text-align: right;
}
    /* Apply only when <html lang="ar"> */
    html[lang="ar"] h1,
    html[lang="ar"] h2,
    html[lang="ar"] h3,
    html[lang="ar"] h4,
    html[lang="ar"] h5,
    html[lang="ar"] h6,
    html[lang="ar"] p,
    html[lang="ar"] a,
    html[lang="ar"] span,
    html[lang="ar"] li {
        font-family: 'MyArabicFontRegular', sans-serif;
    }

    html[lang="ar"] .nav-link {
        font-weight: normal;
    }
/*@font-face {
    font-family: 'MyArabicFontRegular';
    src: url('/fonts/aligarh-arabic/aligarharabicfreepersonaluse-regular-webfont.woff2') format('woff2'), url('/fonts/aligarh-arabic/aligarharabicfreepersonaluse-regular-webfont.woff') format('woff'), url('/fonts/aligarh-arabic/AligarhArabicFREEPERSONALUSE-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/
@font-face {
    font-family: 'MyArabicFontRegular';
    src: url('/fonts/Boutros/BoutrosNewsH1-Bold.ttf');
}
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
: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%);*/
    --black-color: hsl(203, 38%, 44%);
    --gray-border: hsl(255, 6%, 90%);
    --black-border: hsl(255, 10%, 20%);
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --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: .813rem;
    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@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;
  }
}

/*=============== BASE ===============*/
* {
  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);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.services ul li {
    margin-bottom: 5px;
}

.SuccessfulProjects {
    background-color: var(--white-color);
}
.project-card {
    background: #f9f9f9;
    border-radius: 12px;
    border-color: var(--black-color);
    border: 2px solid;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .project-card h3 {
        margin-bottom: 10px;
        font-size: 1.1rem;
        color: #2a4d8f;
    }

.project-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.project-card .progress span {
    font-weight: bold;
    color: green;
    font-family: Arial;
}

/* Sister Companies Section */
.sister-companies {
    padding: 60px 20px;
    background: #f9fafc;
    text-align: center;
}

    .sister-companies .section-title {
        font-size: 2rem;
        margin-bottom: 10px;
        color: #222;
        font-weight: 700;
    }

    .sister-companies .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
        color: #666;
    }

/* Grid Layout */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Company Card */
.company-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

    .company-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

/* Header (Logo + Info) */
.company-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.company-logo {
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 5px;
    flex-shrink: 0;
    border: 3px solid;
    border-color: var(--black-color);
    height: 100px;
}

.company-info {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.company-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--black-color);
    margin-bottom: 3px;
}

.company-tel {
    font-size: 0.7rem;
    color: #777;
    margin-top: 4px;
}

.company-tel a {
    font-family: Arial !important;
    direction: ltr;
}

/* Description */
.company-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}



.iso-certifications {
    padding: 30px;
    border-radius: 12px;
    background: #f9fafc;
}

    .iso-certifications h3 {
        font-size: 1.5rem;
        color: #333;
    }

    .iso-certifications p {
        color: #555;
        font-size: 1rem;
    }

.iso-cert-logos .iso-logo {
    height: 250px;
    width: auto;
    transition: transform 0.3s ease;
}

    .iso-cert-logos .iso-logo:hover {
        transform: scale(1.1);
    }

.iso-cert-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.iso-logo {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: solid 2px;
    border-radius: 5px;
    border-color: var(--black-color);
}

    .iso-logo:hover {
        transform: scale(1.05);
    }

/* Overlay */
.iso-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.9);
}

.iso-overlay-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}

.iso-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 10px; /* tighter spacing */
    max-width: 300px; /* overall block size */
    margin: auto;
}

.social-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px; /* smaller padding */
    border-radius: 50%; /* perfect circle */
    background: #f1f1f1; /* light background */
    font-size: 16px; /* smaller icon */
    width: 36px; /* fixed size for consistency */
    height: 36px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

    .social-item:hover {
        background: #0077b5;
        color: #fff;
        transform: scale(1.1);
    }


.nav-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 11px;
}

    .nav-lang .lang-link {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: var(--text-color);
        text-decoration: none;
        transition: color 0.3s;
    }

        .nav-lang .lang-link:hover {
            color: var(--first-color); /* match theme */
        }

.flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}



.gallery-section {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
}

.gallery-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

/* Overlay navigation arrows */
.overlay-prev, .overlay-next {
    cursor: pointer;
    position: fixed; 
    top: 50%; 
    transform: translateY(-50%);
    font-size: 50px;
    font-weight: bold;
    color: white;
    padding: 10px;
    user-select: none;
    border-radius: 50%;
    z-index: 1001; 
}

.overlay-prev {
    left: 20px; 
}

.overlay-next {
    right: 20px; 
}

    .overlay-prev:hover, .overlay-next:hover {
        background: rgba(255,0,0,0.6);
    }


/* Client logo styling */
.client-logo {
    width: 200px; 
    height: 100px; 
    object-fit: contain; 
    border: 2px solid #e5e7eb; 
    border-radius: 12px; 
    padding: 8px; 
    background: white; 
    transition: all 0.3s ease;
    cursor: grab;
}

    /* Hover effect */
    .client-logo:hover {
        border-color: #3b82f6; /* blue border on hover */
        transform: scale(1.05);
    }
/* Overlay background */
.overlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#overlayContent {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100%; 
    width: 100%;
}

/* Video container */
.overlay-content {
    position: relative;
    background: #000;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    /* Make the video responsive */
    .overlay-content video,
    .overlay-content iframe {
        max-width: 100%;
        max-height: 100%;
        border-radius: 10px;
    }

/* Close button fixed to page corner */
.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 2001; /* higher than overlay */
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 5px 12px;
    line-height: 1;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: rgba(255,0,0,0.8);
        color: #fff;
    }

/* end of overlay */

.projects-img-wrapper {
    position: relative;
    display: inline-block;
}

.projects-img {
    display: block;
    width: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* size of the icon */
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 70px; /* circle size */
    height: 70px; /* circle size */
    cursor: pointer;
}


.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

.fw-bold {
    font-weight: bold;
}

.border {
    border: 1px solid white;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.5rem;
}

.pt-5 {
    padding-top: 1.5rem;
}

.projects-container img {
    min-height: 240px;
}

.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: var(--h1-font-size);
  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;
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  /*background-color: transparent;*/
  background-color: var(--white-color);
  z-index: var(--z-fixed);
  transition: background-color 0.4s;
}

.nav {
    position: relative;
    /*height: var(--header-height);*/
    padding-top: 3px;
    padding-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo{
  display: flex;
  align-items: center;
  column-gap: .25rem;
}

    .nav-logo img {
        height: 70px;
    }

    .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;
}

.nav-toggle,
.nav-close{
  font-size: 1.5rem;
  color: var(--title-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;
  }
}

.nav-list{
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.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 */
.scroll-header{
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, .1);
}

.scroll-header .nav-logo span,
.scroll-header .nav-toggle{
  color: var(--title-color);
}

/* Active link */
.active-link{
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
    position: relative;
    background-color: var(--black-color);
    background-image: url('/assets/img/vintage-speckles.png');
}

.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: 0.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;
  border-radius: .15rem;
}

.home-img-2{
  width: 150px;
  border: 5px solid var(--black-color);
  position: absolute;
  left: 0;
  bottom: -3.5rem;
  border-radius: .15rem;
}

.home-lines{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}
/*=============== BUTTON ===============*/
.button{
  display: inline-flex;
  /*background: var(--first-gradient);*/
  background: var(--black-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: .25rem;
  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);
  margin-bottom: 10px;
}

.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;
  border-radius: .15rem;
}

/*=============== SERVICES ===============*/
.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;
  border-radius: .25rem;
  transition: border-color .4s;
}

.services-card p{
  font-weight: var(--font-regular);
}

.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: 0.5rem;
}

.services-shape{
  position: absolute;
  width: 100%;
  height: 245px;
  background-color: var(--black-color);
  bottom: 0;
  left: 0;
}

/* Swiper class */
.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 ===============*/
.projects{
  background-color: var(--black-color);
}

.projects .section-title{
  color: var(--white-color);
}

.projects-container{
  padding-block: 1.5rem 3rem;
}

.projects-card{
  background-color: var(--container-color);
  border: 2px solid transparent;
  background-clip: content-box;
  transition: border-color .4s;
}

.projects-card:hover{
  border-color: var(--first-color);
}

.projects-data{
  padding: 1.5rem 1rem 3rem;
}

.projects-title{
  font-size: var(--h2-font-size);
  margin-block: .5rem;
  color: var(--black-color);
}

.projects-date{
  display: block;
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

/*=============== CONTACT ===============*/
.contact {
    background-color: var(--black-color);
}
.contact .section-title {
    color: var(--white-color);
}
.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: 40px;
  height: 40px;
  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: 0.5rem;
}

.contact-info{
  font-style: normal;
}
.contact-info .ok a {
  color: var(--first-color);
  font-size: 1rem;
}
.contact-social{
  display: flex;
  justify-content: center;
  column-gap: 1rem;  
}

.contact-social-link{
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform .4s;
}

.contact-social-link:hover{
  transform: translateY(-.25rem);
}
/*=============== FOOTER ===============*/
.footer{
  /*background-color: var(--black-color);*/
  color: var(--text-color-light);
  padding-block: 3.5rem 2rem;
}

.footer-container{
  row-gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--black-border);
}

.footer-logo{
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
}

.footer-logo span{
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

.footer-logo i{
  color: var(--first-color);
  font-size: 1.5rem;
}

.footer-logo img {
    width: 100px;
}

.footer-description {
    margin-bottom: 1rem;
}

.footer-email,
.footer-info{
  font-style: normal;
}

.footer-content{
  grid-template-columns: repeat(2, max-content);
  gap: 4rem 1rem;
}

.footer-title{
  font-size: var(--h3-font-size);
  color: var(--black-color);
  margin-bottom: 1rem;
}

.footer-links,
.footer-list{
  display: grid;
  row-gap: .5rem;
}

.footer-link{
  color: var(--text-color-light);
  transition: color .4s;
}

.footer-link:hover{
  color: var(--first-color);
}

.footer-social{
  display: flex;
  column-gap: 1rem;
}

.footer-social{
  display: flex;
  column-gap: 1rem;
}

.footer-social-link{
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform .4s;
}

.footer-social-link:hover{
  transform: translateY(-.25rem);
}

.footer-copy{
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 4rem;
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: 0.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;
  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;
  border-radius: .15rem;
}

.scrollup:hover{
  transform: translateY(-.5rem);
  color: var(--first-color);
}
/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* 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;
  }

  .footer-content{
    grid-template-columns: repeat(1, max-content);
  }
}
/* For medium devices */
@media screen and (min-width: 540px){
  .home-container,
  .about-container,
  .services-container,
  .projects-container,
  .contact-container{
    grid-template-columns: 360px;
    justify-content: center;
  }

  .footer-content{
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 768px) {
  .nav-menu{
    width: 50%;
  }

  .projects-container{
    grid-template-columns: repeat(2, 330px);
  }

  .contact-data{
    grid-template-columns: repeat(2, 240px);
  }

  .footer-container{
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
}

/* For large devices */
@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: 2rem;
  }

  .scroll-header .nav-link{
    color: var(--text-color);
  }

  .scroll-header .active-link,
  .scroll-header .nav-link:hover{
    color: var(--first-color);
  }

  .scroll-header .button,
  .scroll-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: 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: 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;
  }

  .services-container{
    grid-template-columns: initial;
    row-gap: 5rem;
    padding-bottom: 4.5rem;
  }

  .services-data{
    display: grid;
    grid-template-columns: 415px 370px max-content;
    justify-content: space-between;
    align-items: center;
  }

  .services-card :is(.section-title, .section-subtitle),
  .services-description{
    text-align: initial;
  }

  .services-data .section-title{
    margin-bottom: 0;
  }

  .services-swiper{
    max-width: 1100px;
  }

  .services-card{
    width: 348px;
    border-width: 3px;
    padding: 3.5rem 2rem 6rem;
  }

  .services-shape{
    height: 330px;
  }

  .swiper-button-next,
  .swiper-button-prev{
    bottom: 0rem;
  }

  .projects-container{
    grid-template-columns: repeat(3, 350px);
    column-gap: 2rem;
    padding-block: 5rem 4rem;
  }

  .projects-card{
    border-width: 3px;
  }

  .projects-data{
    padding: 2rem 1.5rem 4rem;
  }

  .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);
  }

  .footer{
    padding-block: 4.5rem;
  }

  .footer-container{
    padding-bottom: 6rem;
  }

  .footer-content{
    column-gap: 7rem;
  }

  .footer-description{
    margin-block: 1.5rem;
  }

  .footer-title{
    margin-bottom: 1.5rem;
  }

  .footer-links,
  .footer-list{
    row-gap: 1rem;
  }

  .scrollup{
    right: 3rem;
  }
}