/* ===========================
   Fonts
=========================== */

@font-face {
    font-family: vazirmatn;
    src: url(/assets/fonts/persianFonts/Vazirmatn/Vazirmatn-Regular.woff2);
}

/* ===========================
   Reset
=========================== */
html {
    font-size: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: vazirmatn;
    background: #f5f5f5;
    color: #2f2f2f;
    line-height: 1.8;
}

/* ===========================
   Variables
=========================== */

:root {

    --gold: #D5A641;
    --dark: #2B2B2B;
    --gray: #666666;
    --lightGray: #f8f8f8;
    --white: #ffffff;

    --sectionWidth: 1400px;

}

/* header styles */
.headerWeb {
    border-radius: 20px;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background-color: rgba(212, 212, 212, 0.55);
    padding: 20px;
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    margin: auto;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

#logoLink {
    display: inline-flex;
}

/* Desktop navbar */
.compLogo {
    width: 10vw;
    margin-right: 20px;
    height: auto;
    display: inline;
}

.navbar {
    display: flex;
    align-items: center;
    direction: rtl;
    cursor: pointer;
    margin-right: 20px;
}

.navbarList {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbarList li {
    font-size: 1rem;
    font-family: vazirmatn;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.navbarList a {
    text-decoration: none;
    color: rgb(30, 30, 30);
    transition: all 0.3s ease;
}

.navbarList li:hover {
    font-size: 1.125rem;
}

.navbarList li:hover a {
    color: black;
    font-weight: bolder;
}

.navbarList a:focus {
    color: var(--gold);
}

/* Mobile hamburger button */
.hamburger {
    width: 25px;
    height: 18px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-right: 20px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger.active span:nth-child(2) {
    transform: scaleX(0);
    -webkit-transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px) translateX(-1px);
}

/* Mobile nav menu */
.nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 20px;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background-color: rgba(0, 0, 0, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav ul {
    list-style: none;
}

.nav li {
    margin-right: 35px;
    text-align: right;
    padding: 15px 0;
    direction: rtl;
    font-family: vazirmatn;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.nav a:focus {
    font-weight: bolder;
    font-size: 1.25rem;
    margin-top: 2px;
    margin-bottom: 2px;
}

.nav.active {
    max-height: 80vh;
}


/* ===========================
   Hero
=========================== */

.heroSection {

    width: 100%;
    height: 100vh;

    background-image: url("/assets/images/industries/general-industries.webp");

    background-size: cover;
    background-position: center;
    /* background-color: rgba(0, 0, 0, 0.15); */
    background-blend-mode: lighten;
    /* filter: saturate(90%); */

    display: flex;
    align-items: center;
    justify-content: center;
}

.heroOverlay {

    width: min(90%, 1000px);
    text-align: center;

    backdrop-filter: blur(30px);
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 25px;
    padding: 30px;

}

.heroContent h1 {
    color: white;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    margin-bottom: 30px;
    text-shadow: 0 0 20px black;
}

.heroContent p {

    color: rgb(255, 255, 255);
    font-size: 1.4rem;

    line-height: 2.2;

    max-width: 850px;

    margin: auto;

    font-weight: bold;
}

/* ===========================
   Main
=========================== */

main {

    width: min(92%, var(--sectionWidth));

    margin: 120px auto;

}

/* ===========================
   Industry Sections
=========================== */

.industrySection {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;

    margin-bottom: 140px;

}

.reverse {

    flex-direction: row-reverse;

}

/* ===========================
   Images
=========================== */

.industryImage {

    flex: 1;

}

.industryImage img {

    width: 100%;

    height: 520px;

    object-fit: cover;

    border-radius: 24px;

    display: block;

    transition: .45s ease;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);

}

.industryImage img:hover {

    transform: scale(1.03);

}

/* ===========================
   Text
=========================== */

.industryContent {

    flex: 1;

}

.industryContent h2 {

    color: var(--gold);

    font-size: 2.2rem;

    margin-bottom: 30px;

}

.industryContent p {

    color: var(--gray);

    font-size: 1.1rem;

    text-align: justify;

    line-height: 2.3;

}

footer {
    min-height: 20vh;
    background-color: rgb(226, 226, 226);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

footer img {
    display: inline-block;
    max-height: 10vh;
}

footer ul {
    list-style: none;
    text-align: center;
}

footer ul li {
    margin: 10px 5px;
    transition: all 0.3s ease;
}

footer ul li:hover {
    transform: scale(1.2)
}

footer ul li a {
    text-decoration: none;
    margin: 0 3px;
    color: black;
}

.footerContact {
    display: flex;
    align-items: center;
    direction: ltr;
    gap: 10px;
}

.footerContact img {
    width: 40px;
}

.footerContact h6 {
    font-size: 16px;
}

@media screen and (max-width:710px) {
    .navbar {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .compLogo {
        width: 25vw;
    }

    .heroContent h1 {
        font-size: 2.2rem;
    }

    .heroContent p {
        font-size: 1rem;
    }

    footer {
        flex-direction: column;
        height: fit-content;
        padding: 20px 0;
    }

    footer ul {
        margin: 40px 0;
    }
}

@media screen and (max-width:950px) {

    .industrySection,
    .industrySection,
    .reverse {
        flex-direction: column;
        gap: 20px;
    }

    main {
        padding: 20px;
    }

    .heroSection {
        background-image: url(/assets/images/industries/phone-general.webp);
    }

    .industryContent h2 {
        font-size: 26px;
    }
}