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

html {
    font-size: 16px;
}

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

body {
    text-align: center;
    background: #f5f5f5;
}

main {
    direction: rtl;
    font-family: sans-serif;
}

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

/* Information part of the site styles */

.contactInfoSection {
    font-family: sans-serif;
    margin-top: 20vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: default;
    direction: ltr;
}

.contactInfoSection div {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.contactInfoSection div:hover {
    transform: scale(1.08);
}

.contactInfoSection h1 {
    font-family: vazirmatn;
    font-size: 1.5rem;
    margin-bottom: 30px;
    direction: rtl;
}

.contactInfoSection img {
    width: 50px;
}

.contactInfoSection a {
    font-size: 1.5rem;
    text-decoration: none;
    color: black;
    transition: all 0.3s;
}

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

    .hamburger {
        display: flex;
    }

    .compLogo {
        width: 25vw;
    }

    body {
        padding: 0 10px;
    }

    .contactInfoSection a {
        font-size: 1.2rem;
    }
}