/*Fonts*/

@font-face {
    src: url("../fonts/Vazirmatn-Regular.woff2");
    font-family: vazir;
}


/* Reset و تنظیمات پایه */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: 'Vazirmatn', sans-serif;*/
    font-family: vazir;
}

:root {
    --primary: #ec8714;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark-bg: #1c1b1b;
    --light-secondary: #f1f5f9;
    --dark: #212529;
    --success: #4bb543;
    --warning: #ffcc00;
    --danger: #dc3545;
    --gray: #6c757d;
    --text-light: #64748b;
    --border: #e2e8f0;
    --text: #ffffff;
/*            --text: #334155;*/
    --light-gray: #e9ecef;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #ec8714 0%, #9c5a0d 100%);
    --gradient-light: linear-gradient(135deg, #4895ef 0%, #4361ee 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent), #34d399);
    --gradient-gold: linear-gradient(135deg, var(--secondary), #fbbf24);
}

::selection{
    color: white;
    background: var(--primary);
}

body {
    background: var(--dark-bg);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}


section{
    background-color: var(--dark-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* استایل‌های هدر */
header {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    /*width: 80px;
    height: 50px;*/
    background: transparent; /*var(--gradient)*/
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
/*            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);*/
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(5deg);
/*    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);*/
}

.logo img {
    width: 100px;
    height: 50px;
    font-size: 1.8rem;
    color: white;
    margin-bottom: -8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h2 {
    color: var(--primary);
    font-weight: 700;
}

.logo p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ناوبری اصلی */
.main-nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover:after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-right: 2rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-accent {
    background: var(--gradient-accent);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* منوی همبرگر */
.hamburger-menu {
    position: absolute;
    left: 5%;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* منوی موبایل */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--dark-bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.4s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
/*            z-index: 999999;*/
/*            border-bottom: 1px solid var(--light-gray);*/
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mobile-nav-logo h2 {
    font-size: 1.2rem;
    color: var(--primary);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    flex-grow: 1;
}

.mobile-nav-menu li {
    margin-bottom: 1rem;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: var(--light);
    font-size: 1.1rem;
    display: block;
    padding: 0.7rem 0;
/*            border-bottom: 1px solid var(--light-gray);*/
    transition: color 0.3s;
}

.mobile-nav-menu a:hover {
    color: var(--primary);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-auth-buttons .btn {
    width: 100%;
    justify-content: center;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* استایل‌های بخش هیرو */
.hero {
    /*background: var(--gradient);*/
    color: white;
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    height: 38rem;
}

.hero:before {
    content: '';
    position: absolute;
    background-image: url("../images/backgrund-page-1.jpg");
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    /*background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,261.3C672,256,768,224,864,213.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');*/
    background-size: cover;
    /*background-position: center;*/
}

.hero:after {
    content: '';
    position: absolute;
    background-color: rgba(0,0,0,0.6);
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-light {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

/* استایل‌های بخش ویژگی‌ها */
.features {
    padding: 6rem 0;
/*            background-color: white;*/
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 1.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    bottom: -10px;
    right: 20%;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--dark);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    /*background: var(--gradient);*/
    transform: scale(1.1) rotate(20deg);
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

/*.feature-card:hover .feature-icon i {*/
/*    color: white;*/
/*}*/

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* استایل‌های بخش خدمات */
.services {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 220px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.service-image:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,261.3C672,256,768,224,864,213.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

/* استایل‌های بخش اتوماسیون */
.automation {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.automation-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.automation-text {
    flex: 1;
}

.automation-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.automation-text p {
    color: var(--gray);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.automation-visual {
    flex: 1;
    background: var(--gradient);
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /*box-shadow: 0 15px 40px rgba(67, 97, 238, 0.2);*/
    position: relative;
    overflow: hidden;
}

.automation-visual:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,261.3C672,256,768,224,864,213.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.step-content {
    color: white;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* استایل‌های بخش پروژه‌ها */
.projects {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 220px;
/*            background: var(--gradient-light);*/
    position: relative;
    overflow: hidden;
    background-size: cover;
    object-fit: cover;
}

#img1{
    background-image: url("../images/cnc-fanok.jpg");
}
#img2{
    background-image: url("../images/driver-upsAll.jpg");
}
#img3{
    background-image: url("../images/programing.jpg");
}

.project-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

/*.project-card:hover .project-overlay {*/
/*    opacity: 1;*/
/*}*/

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 1.8rem;
}

.project-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* استایل‌های بخش تماس */
.contact {
    padding: 6rem 0;
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 0.3;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0;
    color: var(--gray);
}

/* استایل‌های فوتر */
footer {
    background-color: var(--dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-col p {
    color: #adb5bd;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: white;
    transform: translateX(-8px);
    transition: 0.3s;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
}

.newsletter-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}


/* Location Section */
.location {
    padding: 8rem 2rem 6rem;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 5px;
    background: var(--gradient);
    border-radius: 5px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    /*display: grid;*/
    /*grid-template-columns: 1fr;*/
    gap: 4rem;
    /*align-items: start;*/
}

.location-info {
    padding: 2rem;
}

.location-card {
    background: var(--dark);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
/*    border: 1px solid var(--border);*/
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
}

.location-icon {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.location-title h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 0.5rem;
    margin-right: 4rem;
}

.location-title p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 4rem;
}

.location-details {
    margin-bottom: 2rem;
}

.location-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.location-item:hover {
/*    background: var(--light);*/
    box-shadow: var(--shadow);
    transform: scale(1.01);
}

.location-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.location-item-content h4 {
    color: var(--light);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.location-item-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.location-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
    position: relative;
}

#location-map {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 100;
    max-width: 300px;
}

.map-overlay h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.map-overlay p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.map-overlay .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.map-control-btn:hover {
    background: var(--dark);
    color: white;
    transform: scale(1.1);
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
    flex-direction: column;
    gap: 1rem;
}

.map-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-secondary);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* رسپانسیو */
@media (max-width: 1200px) {
    .automation-content, .contact-container {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .automation-content, .contact-container {
        flex-direction: column;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    /* نمایش منوی همبرگر در صفحه‌های کوچک */
    .hamburger-menu {
        display: flex;
    }

    .main-nav .nav-menu,
    .main-nav .auth-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero:before {
        background-image: url("../images/backgrund-page-2.jpg");
    }
    .location-item-content p{
        font-size: 0.7rem;
    }
    .header-container {
        padding: 1rem 0;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .features-grid, .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .feature-card, .service-card, .project-card {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .mobile-nav {
        width: 85%;
    }
}