/* 
Star GPS Theme - Professional GPS Tracking System
Version: 2.0
Author: Star GPS Team
*/

/* ==================== CUSTOM PROPERTIES ==================== */
:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #00b894;
    --dark-color: #121212;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #00a085;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* ==================== HEADER STYLES ==================== */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-menu li a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-menu li a:hover::after {
    width: 100%;
}

/* ==================== MAIN CONTENT ==================== */
.site-main {
    margin-top: 70px;
    min-height: calc(100vh - 200px);
}

/* ==================== FOOTER STYLES ==================== */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: white;
    padding-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}


/* ==================== MODERN MENU STYLES ==================== */
.modern-menu-container {
    position: fixed;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    z-index: 1000;
    display: none;
}

.modern-menu {
    margin: 0;
    display: flex;
    width: 320px;
    font-size: 1em;
    padding: 0 28px;
    position: relative;
    align-items: center;
    justify-content: center;
    background-color: #1d1d27;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modern-menu__item {
    all: unset;
    flex-grow: 1;
    z-index: 100;
    display: flex;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    align-items: center;
    will-change: transform;
    justify-content: center;
    padding: 0.55em 0 0.85em;
    transition: transform 0.7s;
}

.modern-menu__item::before {
    content: "";
    z-index: -1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: absolute;
    transform: scale(0);
    transition: background-color 0.7s, transform 0.7s;
}

.modern-menu__item.active {
    transform: translate3d(0, -8px, 0);
}

.modern-menu__item.active::before {
    transform: scale(1);
    background-color: var(--bgColorItem);
}

.modern-icon {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: transparent;
    stroke-width: 1pt;
    stroke-miterlimit: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
}

.modern-menu__item.active .modern-icon {
    animation: strok 1.5s reverse;
}

@keyframes strok {
    100% {
        stroke-dashoffset: 400;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    
    .modern-menu-container {
        display: block !important;
    }
    
    .site-main {
        padding-bottom: 100px;
    }
}

@media (min-width: 769px) {
    .modern-menu-container {
        display: none !important;
    }
    
    .desktop-menu {
        display: flex !important;
    }
}

/* Adjust main content for mobile menu */
@media (max-width: 768px) {
    .site-main {
        margin-bottom: 100px;
    }
}

/* ==================== فونت فارسی وزیرمتن ==================== */
:root {
    --font-primary: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
}

body {
    font-family: var(--font-primary) !important;
}

/* برای عناوین مختلف */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary) !important;
    font-weight: 700;
}

/* برای دکمه‌ها */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-primary) !important;
}

/* برای فرم‌ها */
input, textarea, select {
    font-family: var(--font-primary) !important;
}

/* برای منوها */
.nav-menu, .mobile-menu, .nav-link, .menu-link {
    font-family: var(--font-primary) !important;
}