/* --- JetBrainsMono- Font Family --- */
/* Regular */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./../fonts/JetBrains_Mono/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Medium */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./../fonts/JetBrains_Mono/JetBrainsMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/* SemiBold */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./../fonts/JetBrains_Mono/JetBrainsMono-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/* --- Cairo Font Family --- */
/* Regular */
@font-face {
    font-family: 'Cairo';
    src: url('./../fonts/Cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'Cairo';
    src: url('./../Fonts/Cairo/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Cairo';
    src: url('./../Fonts/Cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

/* Color Palette - Typography */
:root {
    /*  Color Palette */
    --Brightyellow: #FDCE15;
    --Bronze-gold: #A38740;
    --Dark-blue: #1F2A3A;
    --Warm-cream: #F8F6F2;
    --Dark-gray: #333;

    /*  Typography */
    --En-font: 'JetBrains Mono', sans-serif;
    --Ar-font: 'Cairo', sans-serif;
    --textsize-large: clamp(2.5rem, 5vw, 2rem);
    --textsize-medium: clamp(1.5rem, 4vw, 1.5rem);
    --textsize-regular: 1.125rem;
    --textsize-small: 1rem;
    --textsize-tiny: 0.875rem;
    --border-radius: 3px;    
    --main-font: var(--En-font);

    /* Dimensions */
    --side: clamp(2rem, 10vw, 10%);
}

/* Heading Text */
h1{font-size: clamp(2.5rem, 8vw, 4.5rem);}
h2{font-size: clamp(1.5rem, 6vw, 3.5rem);}
h3{font-size: clamp(1.5rem, 4vw, 2.25rem);}
h4{font-size: clamp(1.25rem, 3vw, 1.75rem);}
h5{font-size: clamp(1rem, 2.5vw, 1.25rem);}
h6{font-size: clamp(0.875rem, 2vw, 1rem);}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}
h4, h5, h6 {
    line-height: 1.6;
}

html[lang="ar"] {
    --main-font: var(--Ar-font);
}

/* General setting */
* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--Warm-cream);
    font-family: var(--main-font);
    line-height: 1.6; 
}

section {
    padding-bottom: 2rem;
    padding-top: 5rem;
    padding-left: var(--side);
    padding-right: var(--side);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    background-color: transparent;
}

.flip-rtl {
    transform: scaleX(-1);
}

/* Componants */
/* Arrow Tag */
.arrow-tag {
    background-color: var(--Brightyellow);
    border-radius: var(--border-radius);
}
.arrow-left {
    transform: scaleX(-1);
}

/* social Componant */
.social-componant {
    display: flex;
    align-items: center;
}

.social-componant-v1 {
    gap: 0.75rem;
}

.social-componant-v2 {
    gap: 2rem;
}

.social-link {
    color: var(--Dark-blue);
    font-size: var(--textsize-tiny);
}

/* Subscribeform - lang button  */
.button-y {
    background-color: var(--Brightyellow);
    color: var(--Dark-blue);
    border: none;
    padding: 0.25rem 0.5rem;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-size: var(--textsize-small);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
}

/* Subscribe Form */
.subscribe-form {
    background-color: var(--Warm-cream);
    padding: 0.6rem;
    border-radius: var(--border-radius);
}

.subscribe-form input {
    border: none;
    padding: 0 20px;
    flex-grow: 1;
    border-radius: 3px;
    outline: none;
}

/* Lang Button */
.lang-button-active {
    background-color: var(--Dark-blue);
    color: var(--Warm-cream);
}

.lang-button:hover {
    background: rgba(0, 0, 0, 0.1);
    color : var(--Dark-gray);
}

/* Buttons */
.button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: clamp(var(--textsize-tiny), 1vw, var(--textsize-small));
    cursor: pointer;
    transition: all 0.5s;
    border: none;
    padding: 0.4rem 0.3rem 0.4rem 0.7rem;
    border-radius: var(--border-radius);
    width: fit-content;
}

.button:hover {
    transform: perspective(1000px) translateZ(50px);
}

html[lang="ar"] .button {
    padding: 0.4rem 0.7rem 0.4rem 0.3rem;
}

.button-primary-yellow {
    font-weight: 600;
    background-color: var(--Brightyellow);
}

.button-primary-light {
    font-weight: 600;
    background-color: var(--Warm-cream);
}

/* Button Secondary */
.button-Secondary {
    background-color: var(--Dark-blue);
    color: var(--Warm-cream);
    padding: 0.6rem 0.6rem;
    gap: 3rem;
}

.btn-s-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.4rem;
    btn-text {
        font-size: var(--textsize-tiny);
        color: var(--Brightyellow);
    }
}

/* header */
.topbar, .navbar{
    padding: 0.3rem var(--side);
}

/* Topbar */
.topbar {
    padding: 0 var(--side);
    background: var(--Brightyellow);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar-rightside {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation */
.navbar, .nav-list {
    background-color: var(--Dark-blue);
    display: flex;
    text-align: center;
    align-items: center;
    gap: clamp(1rem, 1vw, 2rem);
}

.navbar {
    justify-content: space-between;
    align-items: center;
    align-content: center;
    gap: 1rem;
    top: 0;
}

.img-logo{
    height: 3.5rem; 
}

.nav-item {
    color: var(--Warm-cream);
    font-size: var(--textsize-tiny);
    font-weight: 400;
}

.nav-item :hover {
    color: var(--Brightyellow);
}

/* on scroll  */
#navigation { 
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Hamburger Menu */
.ham-menu {
    display: none;
}

@media (max-width: 870px) {
    .topbar-rightside {
        flex-direction: column;
        gap: 0;
    }

    .ham-menu {
        display: block;  
    }

    .nav-list {
        position: fixed;
        display: flex;
        flex-direction: column;
        height: auto;
        background-color: var(--Brightyellow);
        padding: 1rem;
        border-radius: 0.5rem;
        right: -100%;
        transition: 0.5s ease-in-out;
        z-index: 1000;
        top: 7.9rem;
    }
    html[lang="ar"] .nav-list {
        right: auto;
        left: -100%;
    }
    html[lang="ar"] .nav-list.active {
        left: 0%;
    }

    .nav-bottom {
        top: 4.3rem;
    }

    .nav-item a{
        color: var(--Dark-blue);
        font-size: var(--textsize-small);
    }

    .nav-item a:hover {
        color: var(--Warm-cream);
    }

    .nav-list.active{ 
        right: 0%;}
}

/* Footer */
#footer {
    background-color: #171717;
    color: var(--Warm-cream);
    padding: 4rem var(--side);
}

.img-logo-ar {
    width: 10rem;
    height: auto;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--Dark-gray);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

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

.footer-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo-container, .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    justify-content: space-between;
    gap: clamp(1rem, 9vw, 5rem);
}

.footer-links-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links ul{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: var(--textsize-tiny);
}

.footer-links ul li a:hover {
    color: var(--Brightyellow);
}

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

.bottom-links {
    display: flex;
    gap: 2rem;
}

@media screen and (max-width: 800px) {
    .footer-body {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-links-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }    
}

/* Hero section v1 - v2 */
.hero-v1-v2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 2rem;
    height: 100%;
    position: relative; 
    min-height: 75vh;
    margin-bottom: 2rem;
}

.hero-v1 {
    align-items: flex-start;
}

.hero-v2 {
    align-items: center;
}

.hero-v1-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1000;
}

.hero-v1::before {
    mask-image: linear-gradient(to right, transparent, var(--Dark-blue));
    background-image: url('./../images/hero/hero-bg.jpg');
}

.hero-v2::before {
    filter: brightness(150%) blur(0.3rem) contrast(50%);
    background-image: url('./../images/hero/insulation-options-for-steel-buildings.jpg');
}

html[lang="ar"] .hero-v1::before {
    mask-image: linear-gradient(to right, transparent, var(--Dark-blue));
    transform: scaleX(-1);
}

.hero-highlight, .hero-description-v2 {
    color: var(--Brightyellow);
    text-shadow: 2px 2px 4px var(--Dark-blue);
}
.hero-highlight-v2, .hero-title-v1 {
    color: var(--Dark-blue);
    text-align: center 
}

.hero-description-v1 {
    color: var(--Dark-blue);
    font-size: var(--textsize-small);
    font-weight: 600;
    max-width: 55%;
}

.Buttons-container-v1 {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Cards (product - project) */
.card, .product-details, .product-section, .projects-section{
    display: flex;
    flex-direction: column;
}

.product-section, .projects-section {
    padding: 3% clamp(10%, 2vw, 18%);
    gap: 3rem;
}
.card {
    background-color: #e9e8e8;
    border-radius: 2rem;
    padding: 1.5rem;
    gap: 1rem;
}

.card-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.product-details {
    justify-items: start;
}
.card-img {
    aspect-ratio: 4/3;
    border-radius: 2rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product{
    padding-top: 0.1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed gray;
    font-size: var(--textsize-tiny);
}

@media screen and (max-width: 800px) {
    .card-container {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 500px) {
    .card-container {
    grid-template-columns: 1fr;
    }
}

/* Projects Section */
.featured-project {
    background-color: #e9e8e8;
    border-radius: 2rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 3rem;
}

.featured-img {
    aspect-ratio: 4/3;
    border-radius: 2rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media screen and (max-width: 500px) {
    .featured-project {
    grid-template-columns: 1fr;
    }
}

/* Logos section */
.logo-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  overflow: hidden;
}

.logo-component-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.logo-scroll-wrapper {
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  gap: clamp(2rem, 7vw, 5rem);
  animation: scroll 50s infinite linear;
  width: max-content;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.product-logo {
  height: clamp(0.5rem, 4vw, 3.5rem);
  width: auto;
  opacity: 0.6;
  filter: grayscale(30%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.product-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 500px) {
  .logo-scroll-wrapper {
    width: 100%;
    mask-image: none;
    overflow: visible;
  }
  .logo-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    animation: none;
    width: 100%;
  }
  .product-logo {
    justify-self: center;
  }

  .D-product-logo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
    .logos-icons {
        animation: none;
        overflow-x: auto;
    }
}

/* Contact Us Section */
.contact_us_section {
    color: var(--Dark-blue);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    padding-bottom: 5rem;
}
.contact-section-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.Section-tag {
    font-weight: 600;
    font-size: var(--textsize-regular);
}

.social-media-v2-container {
    padding-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 1vw, 6rem);
    row-gap: clamp(1.5rem, 1vw, 2rem);
}

.contact-section-right {
    display: flex;
    flex-direction: column;
    gap: 9rem;
}

.contact-form-card {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 1.5rem);
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 1vw, 2.5rem);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 1.5rem);
}

.contact-form input, .contact-form select, .contact-form textarea, .submit-btn {
    padding: 0.9rem;
    border: 1px solid var(--Dark-blue);
    border-radius: var(--border-radius);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.submit-btn {
    background: var(--Dark-blue);
    color: var(--Brightyellow);
    padding: clamp(0.8rem, 1vw, 2rem);
    cursor: pointer;
}

@media (max-width: 800px) {
    .contact_us_section {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    .social-media-v2-container {
        grid-template-columns: 1fr;
    }
}

/* About Us Section */
.about-us {
    color: var(--Dark-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-heading {
    font-weight: 600;
}

.about-description {
    width: 85%;
    text-align: justify;
}

.about-img {
    box-shadow: -1.5rem -1.5rem  var(--Brightyellow);
    border-radius: var(--border-radius);
}

@media (max-width: 800px) {
    .about-us {
        flex-direction: column;
        gap: 3rem;
    }
    .about-img {
        box-shadow: -1rem -1rem  var(--Brightyellow);
        width: 70%;
    }
}

/* Discover Projects Section */

.d-projects-content, .d-projects-head, .d-projects-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.d-projects-content {
    gap: 1rem;
    margin-bottom: 3rem;
}
.d-projects-description {
    font-size: var(--textsize-regular);
}

.d-projects-imgs {
    display: flex;
    position: relative;
    height: 30rem;
    vertical-align: middle;
    float: right;
    gap: 0.5rem;
    justify-content: center;
    padding-bottom: -4rem;
    padding-top: -10rem;
}

.d-projects-imgs img {
    width: 16%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

.d-projects-imgs img:hover {
  opacity: 1;
}

.button-overlay {
    position: absolute;
    bottom: 1rem;
    left: 3rem;
}

@media (max-width: 800px) {
    .d-projects-imgs {
        height: 20rem;
    }
    .d-projects-imgs img {
        width: 25%;
    }
}

/* stats-section */
.stats-section {
    padding-top: 2rem;
}
.stats-list {
    background-color: var(--Dark-blue); 
    color: var(--Warm-cream);
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    padding: 1rem clamp(1rem, 1vw, 8rem);
    text-align: center;
}

.stat-item p {
    font-size: clamp(var(--textsize-tiny), 1vw, var(--textsize-small));
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

@media (max-width: 800px) {
    .stats-list {
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem;
    }
}