@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* =========================
Global
========================= */

{
font-family: 'Vazirmatn', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
scroll-padding-top: 6rem;
}


:root {
--main-color: #172b4d;
--main-dark: #0d1b32;
--body-color: #ffffff;
--container-color: #f3f5f8;
--box-color: #eef1f5;
--heading-color: #14213d;
--text-color: #4b5563;
--border-color: #d9dee7;
--white: #ffffff;
}

html {
direction: rtl;
}

body {
color: var(--text-color);
background: var(--body-color);
direction: rtl;
text-align: right;
overflow-x: hidden;
}

html::-webkit-scrollbar {
width: 9px;
background: #e5e7eb;
}

html::-webkit-scrollbar-thumb {
background: var(--main-color);
border-radius: 10px;
}

img {
width: 100%;
display: block;
}

section {
padding: 5rem 0;
}

a {
text-decoration: none;
}

li {
list-style: none;
}

button,
input,
textarea {
font-family: inherit;
}

.container {
max-width: 1100px;
margin: auto;
width: 90%;
}


/* =========================
Top Info
========================= */

.top-info {
background: var(--main-dark);
color: var(--white);
padding: 8px 0;
}

.top-info-content {
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
}

.top-info-item {
display: flex;
align-items: center;
gap: 7px;
color: var(--white);
font-size: 0.82rem;
}

.top-info-item i {
font-size: 1.1rem;
}

.top-info-item:hover {
color: #cbd5e1;
}


/* =========================
Header
========================= */

header {
position: sticky;
top: 0;
right: 0;
width: 100%;
z-index: 100;
background: rgba(255,255,255,0.96);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
}

.nav {
min-height: 75px;
display: flex;
align-items: center;
justify-content: space-between;
}

.logo {
display: flex;
align-items: center;
gap: 10px;
color: var(--main-color);
font-size: 1.2rem;
font-weight: 800;
}

.logo img {
width: 45px;
height: 45px;
object-fit: contain;
}

.navbar {
display: flex;
align-items: center;
column-gap: 0.7rem;
}

.nav-link {
display: block;
font-size: 0.92rem;
font-weight: 500;
padding: 9px 13px;
border-radius: 7px;
color: var(--heading-color);
}

.nav-link:hover {
color: var(--white);
background: var(--main-color);
transition: 0.3s;
}


/* =========================
Mobile Menu
========================= */

.menu-icon {
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
row-gap: 5px;
cursor: pointer;
z-index: 200;
}

.menu-icon div {
display: block;
background: var(--main-color);
height: 2px;
width: 25px;
transition: 0.3s;
}

.move .line1 {
transform: rotate(-45deg) translate(-5px,5px);
}

.move .line2 {
opacity: 0;
}

.move .line3 {
transform: rotate(45deg) translate(-5px,-5px);
}


/* =========================
Home
========================= */

.home {
min-height: 650px;
display: flex;
align-items: center;
justify-content: center;
padding-top: 4rem;
}

.home-content {
max-width: 850px;
width: 100%;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.home-img {
width: 180px;
height: 180px;
border-radius: 50%;
background: var(--container-color);
overflow: hidden;
margin-bottom: 2rem;

/* تغییر 1: خط سرمه‌ای دور لوگو */
border: 6px solid var(--main-color);

}

.home-img img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}

.home-text {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.home-text h3 {
position: relative;
display: flex;
align-items: center;
column-gap: 0.5rem;

/* تغییر 2: بزرگ‌تر شدن نوشته گروه پرشین اپوکسی */
font-size: 2rem;

font-weight: 800;
color: var(--main-color);
margin-bottom: 1rem;
}

.home-text h3::before,
.home-text h3::after {
content: '';
position: absolute;
top: 50%;
width: 22px;
height: 2px;
background: var(--main-color);
}

.home-text h3::before {
right: -30px;
}

.home-text h3::after {
left: -30px;
}

.home-text h1 {
color: var(--heading-color);
font-size: 3rem;
line-height: 1.8;
font-weight: 800;
}

.home-text p {
max-width: 750px;
font-size: 0.95rem;
line-height: 2.1rem;
margin: 1rem 0 1.5rem;
}

.color {
color: var(--main-color);
}


/* =========================
Social
========================= */

.social {
display: flex;
align-items: center;
column-gap: 0.7rem;
direction: ltr;
}

.social a {
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
color: var(--main-color);
background: var(--container-color);
border-radius: 50%;
border: 1px solid var(--border-color);
}

.social i {
font-size: 1.35rem;
}

.social a:hover {
color: var(--white);
background: var(--main-color);
transition: 0.3s;
}


/* =========================
Headings
========================= */

.heading {
position: relative;
font-size: 2.6rem;
color: var(--heading-color);
text-align: center;
margin-bottom: 3rem;
font-weight: 800;
}

.heading::after {
content: '';
display: block;
width: 55px;
height: 4px;
background: var(--main-color);
margin: 12px auto 0;
border-radius: 10px;
}


/* =========================
About
========================= */

.about {
background: var(--white);
}

.about-content {
display: grid;
place-items: center;
}

.about-data span {
font-size: 0.95rem;
font-weight: 600;
color: var(--main-color);
}

.about-data h2 {
font-size: 2rem;
line-height: 2.8rem;
font-weight: 800;
color: var(--heading-color);
margin: 1rem 0;
}

.btn {
font-size: 0.95rem;
display: inline-flex;
align-items: center;
column-gap: 0.5rem;
color: var(--white);
background: var(--main-color);
padding: 12px 18px;
border-radius: 6px;
margin-top: 1rem;
}

.btn:hover {
background: var(--main-dark);
transition: 0.3s;
}

.about-text p {
font-size: 0.92rem;
line-height: 2.1rem;
text-align: center;
margin-bottom: 1.3rem;
}


/* =========================
Services
========================= */

.services {
background: var(--container-color);
}

.services-content {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.3rem;
}

.services-box {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 30px 20px;
background: var(--white);
border: 1px solid var(--border-color);
border-radius: 10px;
transition: 0.3s;
}

.services-box:hover {
transform: translateY(-7px);
box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}


/* تغییر 3: استایل تصاویر خدمات */

.service-img {
width: 100%;
height: 170px;
object-fit: cover;
object-position: center;
border-radius: 8px;
margin-bottom: 1rem;
transition: 0.4s;
}

.services-box:hover .service-img {
transform: scale(1.03);
}


.services-box h2 {
font-size: 1.05rem;
font-weight: 700;
margin: 1rem 0 0.7rem;
color: var(--heading-color);
}

.services-box p {
font-size: 0.83rem;
line-height: 1.9rem;
}


/* =========================
Portfolio
========================= */

.portfolio-content {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}

.portfolio-box {
position: relative;
width: 100%;
height: 310px;
border-radius: 12px;
overflow: hidden;
display: block;
}

.portfolio-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transition: 0.5s;
}

.portfolio-overlay {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(13, 27, 50, 0.85);
opacity: 0;
transition: 0.4s;
}

.portfolio-overlay h2 {
color: var(--white);
font-size: 1.35rem;
font-weight: 700;
margin-bottom: 12px;
}

.portfolio-overlay span {
display: flex;
align-items: center;
gap: 5px;
color: #e2e8f0;
font-size: 0.85rem;
}

.portfolio-box:hover .portfolio-overlay {
opacity: 1;
}

.portfolio-box:hover .portfolio-img {
transform: scale(1.05);
}


/* =========================
Projects
========================= */

.projects {
background: var(--container-color);
}

.projects-content {
display: grid;
grid-template-columns: repeat(1, 220px);
justify-content: center;
gap: 1.5rem;
}

.project-box {
padding: 30px 10px;
background: var(--white);
border: 1px solid var(--border-color);
border-radius: 10px;
text-align: center;
}

.project-box h2 {
font-size: 2rem;
color: var(--main-color);
margin-bottom: 0.5rem;
}

.project-box span {
font-size: 0.9rem;
}


/* =========================
FAQ
========================= */

.faq {
max-width: 850px;
}

.faq-content {
display: flex;
flex-direction: column;
gap: 12px;
}

.faq-item {
background: var(--white);
border: 1px solid var(--border-color);
border-radius: 9px;
overflow: hidden;
}

.faq-question {
width: 100%;
border: none;
outline: none;
background: transparent;
padding: 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
cursor: pointer;
color: var(--heading-color);
font-size: 0.95rem;
font-weight: 600;
text-align: right;
}

.faq-question i {
min-width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--container-color);
color: var(--main-color);
font-size: 1.2rem;
transition: 0.3s;
}

.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.35s ease;
}

.faq-answer p {
padding: 0 20px 20px;
font-size: 0.87rem;
line-height: 2rem;
color: var(--text-color);
}

.faq-item.active .faq-question i {
transform: rotate(45deg);
color: var(--white);
background: var(--main-color);
}


/* =========================
Contact
========================= */

.contact {
background: var(--container-color);
}

.contact-content {
display: grid;
grid-template-columns: 0.8fr 1.2fr;
gap: 3rem;
align-items: start;
}

.contact-info {
display: flex;
flex-direction: column;
gap: 12px;
}

.contact-info-box {
display: flex;
align-items: center;
gap: 15px;
background: var(--white);
border: 1px solid var(--border-color);
padding: 17px;
border-radius: 8px;
color: var(--heading-color);
}

.contact-info-box > i {
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: var(--white);
background: var(--main-color);
font-size: 1.3rem;
}

.contact-info-box div {
display: flex;
flex-direction: column;
gap: 3px;
}

.contact-info-box span {
font-size: 0.75rem;
color: #6b7280;
}

.contact-info-box strong {
font-size: 0.88rem;
}

.contact-form {
width: 100%;
display: grid;
row-gap: 1rem;
}

.contact-form input,
.contact-form textarea {
border: 1px solid var(--border-color);
outline: none;
font-size: 0.9rem;
padding: 15px;
color: var(--heading-color);
background: var(--white);
border-radius: 7px;
direction: rtl;
text-align: right;
}

.contact-form input:focus,
.contact-form textarea:focus {
border-color: var(--main-color);
}

.contact-form textarea {
resize: vertical;
}

.contact-form .send-btn {
width: 145px;
font-size: 0.95rem;
font-weight: 600;
padding: 12px;
background: var(--main-color);
color: var(--white);
cursor: pointer;
text-align: center;
border: none;
}

.contact-form .send-btn:hover {
background: var(--main-dark);
}


/* =========================
Footer
========================= */

.footer {
background: var(--main-dark);
color: var(--white);
padding: 50px 0 25px;
text-align: center;
}

.footer-logo {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.footer-logo img {
width: 70px;
height: 70px;
object-fit: contain;
}

.footer-logo h2 {
font-size: 1.25rem;
}


/* Social */

.footer-social {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin: 25px 0;
}

.footer-social a {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--white);
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.15);
transition: 0.3s;
}

.footer-social a:hover {
background: var(--white);
color: var(--main-dark);
transform: translateY(-4px);
}

.footer-social i {
font-size: 1.35rem;
}


/* تغییر 4: تصاویر روبیکا و بله */

.social-image-link {
padding: 0;
overflow: hidden;
}

.social-image {
width: 100%;
height: 100%;
object-fit: contain;
padding: 11px;
display: block;
transition: 0.3s;
}

.social-image-link:hover .social-image {
content: url("../img/bro.png");
}


/* برای بله */

.social-image-link:nth-of-type(4):hover .social-image {
contegn: center;
}

.project-box h2 {
font-size: 2rem;
color: var(--main-color);
margin-bottom: 0.5rem;
}

.project-box span {
font-size: 0.9rem;
}


/* =========================
FAQ
========================= */

.faq {
max-width: 850px;
}

.faq-content {
display: flex;
flex-direction: column;
gap: 12px;
}

.faq-item {
background: var(--white);
border: 1px solid var(--border-color);
border-radius: 9px;
overflow: hidden;
}

.faq-question {
width: 100%;
border: none;
outline: none;
background: transparent;
padding: 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
cursor: pointer;
color: var(--heading-color);
font-size: 0.95rem;
font-weight: 600;
text-align: right;
}

.faq-question i {
min-width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--container-color);
color: var(--main-color);
font-size: 1.2rem;
transition: 0.3s;
}

.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.35s ease;
}

.faq-answer p {
padding: 0 20px 20px;
font-size: 0.87rem;
line-height: 2rem;
color: var(--text-color);
}

.faq-item.active .faq-question i {
transform: rotate(45deg);
color: var(--white);
background: var(--main-color);
}


/* =========================
Contact
========================= */

.contact {
background: var(--container-color);
}

.contact-content {
display: grid;
grid-template-columns: 0.8fr 1.2fr;
gap: 3rem;
align-items: start;
}

.contact-info {
display: flex;
flex-direction: column;
gap: 12px;
}

.contact-info-box {
display: flex;
align-items: center;
gap: 15px;
background: var(--white);
border: 1px solid var(--border-color);
padding: 17px;
border-radius: 8px;
color: var(--heading-color);
}

.contact-info-box > i {
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: var(--white);
background: var(--main-color);
font-size: 1.3rem;
}

.contact-info-box div {
display: flex;
flex-direction: column;
gap: 3px;
}

.contact-info-box span {
font-size: 0.75rem;
color: #6b7280;
}

.contact-info-box strong {
font-size: 0.88rem;
}

.contact-form {
width: 100%;
display: grid;
row-gap: 1rem;
}

.contact-form input,
.contact-form textarea {
border: 1px solid var(--border-color);
outline: none;
font-size: 0.9rem;
padding: 15px;
color: var(--heading-color);
background: var(--white);
border-radius: 7px;
direction: rtl;
text-align: right;
}

.contact-form input:focus,
.contact-form textarea:focus {
border-color: var(--main-color);
}

.contact-form textarea {
resize: vertical;
}

.contact-form .send-btn {
width: 145px;
font-size: 0.95rem;
font-weight: 600;
padding: 12px;
background: var(--main-color);
color: var(--white);
cursor: pointer;
text-align: center;
border: none;
}

.contact-form .send-btn:hover {
background: var(--main-dark);
}


/* =========================
Footer
========================= */

.footer {
background: var(--main-dark);
color: var(--white);
padding: 50px 0 25px;
text-align: center;
}

.footer-logo {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.footer-logo img {
width: 70px;
height: 70px;
object-fit: contain;
}

.footer-logo h2 {
font-size: 1.25rem;
}


/* Social */

.footer-social {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin: 25px 0;
}

.footer-social a {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--white);
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.15);
transition: 0.3s;
}

.footer-social a:hover {
background: var(--white);
color: var(--main-dark);
transform: translateY(-4px);
}

.footer-social i {
font-size: 1.35rem;
}


/* تغییر 4: تصاویر روبیکا و بله */

.social-image-link {
padding: 0;
overflow: hidden;
}

.social-image {
width: 100%;
height: 100%;
object-fit: contain;
padding: 11px;
display: block;
transition: 0.3s;
}

.social-image-link:hover .social-image {
content: url("../img/bro.png");
}


/* برای بله */

.social-image-link:nth-of-type(4):hover .social-image {
content: url("../img/bba.png");
}


/* Address */

.footer-address {
max-width: 650px;
margin: 0 auto 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
color: #cbd5e1;
}

.footer-address i {
color: var(--white);
font-size: 1.2rem;
}

.footer-address p {
font-size: 0.85rem;
line-height: 1.8rem;
}

.footer-phone {
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
margin-bottom: 25px;
}

.footer-phone i {
font-size: 1.1rem;
}

.footer-phone a {
color: var(--white);
direction: ltr;
}

.footer-links {
display: flex;
align-items: center;
justify-content: center;
gap: 1.5rem;
flex-wrap: wrap;
padding-top: 20px;
border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
font-size: 0.85rem;
color: #cbd5e1;
}

.footer-links a:hover {
color: var(--white);
}

.copyright {
font-size: 0.78rem;
color: #94a3b8;
margin-top: 25px;
}


/* =========================
Scroll Top
========================= */

.scroll-top {
position: fixed;
bottom: -100px;
left: 20px;
z-index: 99;
transition: 0.3s;
}

.scroll-top i {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
color: var(--white);
background: var(--main-color);
border-radius: 6px;
}

.scroll-top i:hover {
background: var(--main-dark);
}

.scrool-active {
bottom: 25px;
}


/* =========================
Responsive
========================= */

@media(max-width:900px) {

.navbar {
    column-gap: 0;
}

.nav-link {
    padding: 8px;
    font-size: 0.84rem;
}

.services-content {
    grid-template-columns: repeat(2,1fr);
}

.contact-content {
    grid-template-columns: 1fr;
}

}


@media(max-width:775px) {

section {
    padding: 4rem 0;
}

.top-info-content {
    gap: 1rem;
}

.top-info-item span {
    display: none;
}

.top-info-item i {
    font-size: 1.2rem;
}

.menu-icon {
    display: flex;
}

.navbar {
    position: absolute;
    top: 75px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 75px);
    background: var(--white);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    transition: 0.4s;
}

.open-menu {
    right: 0;
}

.nav-link {
    display: block;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.home {
    min-height: 570px;
}


/* اندازه عنوان در موبایل */

.home-text h3 {
    font-size: 1.55rem;
}

.home-text h1 {
    font-size: 2.2rem;
}

.about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.portfolio-box {
    height: 260px;
}


/* تصویر خدمات در موبایل */

.service-img {
    height: 180px;
}

}


@media(max-width:550px) {

.container {
    width: 92%;
}

.top-info-content {
    justify-content: space-around;
}

.logo span {
    font-size: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

.home {
    min-height: 520px;
    padding-top: 3rem;
}

.home-img {
    width: 140px;
    height: 140px;
}

.home-text h3 {
    font-size: 1.35rem;
}

.home-text h1 {
    font-size: 1.7rem;
    line-height: 1.9;
}

.home-text p {
    font-size: 0.82rem;
    line-height: 1.9rem;
}

.heading {
    font-size: 2rem;
}

.services-content {
    grid-template-columns: 1fr;
}

.service-img {
    height: 190px;
}

.portfolio-content {
    grid-template-columns: 1fr;
}

.portfolio-box {
    height: 230px;
}

.projects-content {
    grid-template-columns: repeat(2, 1fr);
}

.faq-question {
    padding: 16px;
    font-size: 0.85rem;
}

.faq-answer p {
    font-size: 0.8rem;
}

.footer-address {
    align-items: flex-start;
}

.footer-address p {
    font-size: 0.78rem;
}

}


@media(max-width:380px) {

.projects-content {
    grid-template-columns: 1fr;
}

.footer-social {
    gap: 8px;
}

.footer-social a {
    width: 43px;
    height: 43px;
}

}