/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazir, Tahoma, Arial, sans-serif;
}

:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #42a5f5;
    --secondary: #ff9800;
    --accent: #00bcd4;
    --text: #263238;
    --text-light: #546e7a;
    --background: #f5f7fa;
    --surface: #ffffff;
    --error: #d32f2f;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --gradient: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    padding-bottom: 100px; /* فضای اضافی برای اینماد */
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2.2rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto;
    border-radius: 2px;
}

.slogan {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-secondary:hover {
    background: #f57c00;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.btn-whatsapp {
    background: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(21, 101, 192, 0.1);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(21, 101, 192, 0.15);
}

/* Header Styles */
header {
    background-color: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: contain;
    border: 3px solid rgba(21, 101, 192, 0.2);
}

.logo-icon {
    background: var(--gradient);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 4px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(21, 101, 192, 0.9)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

.hero-slogan {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    padding: 3rem 0;
}

.about-main {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid white;
    max-height: 350px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(21, 101, 192, 0.1);
    min-height: 200px;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(21, 101, 192, 0.1);
    background: rgba(21, 101, 192, 0.05);
}

.feature-icon {
    background: var(--gradient);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.feature h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.service-card {
    padding: 1.5rem 1.2rem;
    text-align: center;
    border-top: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}

.service-icon {
    font-size: 2.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.service-card h3 {
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Links Section */
.links {
    background-color: var(--surface);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.link-card {
    padding: 1.5rem 1.2rem;
    text-align: center;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.link-icon {
    width: 55px;
    height: 55px;
    background: rgba(21, 101, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.6rem;
    transition: all 0.3s;
}

.link-card:hover .link-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.link-card h3 {
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.link-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.link-url {
    display: block;
    color: var(--accent);
    font-family: monospace;
    background: rgba(0, 188, 212, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-top: 0.8rem;
    direction: ltr;
    text-align: center;
    font-size: 0.75rem;
    word-break: break-all;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: var(--secondary);
}

.contact-content {
    display: flex;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: background 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    background: var(--secondary);
    color: var(--primary-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-icon-img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}

/* فرم تماس */
.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: Vazir, sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
    font-size: 1.3rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-right: 8px;
}

/* آیکون‌های شبکه‌های اجتماعی در فوتر */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    position: relative;
}

.social-link:hover .social-icon-img {
    transform: scale(1.1);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.telegram { background: #0088cc !important; }
.instagram { 
    background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D) !important; 
}
.whatsapp { background: #25D366 !important; }

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdbdbd;
    font-size: 0.9rem;
}

/* Enamad Badge - موقعیت فیکس برای همه ویوها */
.enamad-badge {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2000;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.enamad-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.enamad-badge img {
    display: block;
    width: 100%;
    max-width: 110px;
    height: auto;
}

/* Responsive */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-slogan {
        font-size: 1.4rem;
    }
    
    .services-grid,
    .links-grid,
    .about-features,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-main {
        flex-direction: column;
    }
    
    .about-image {
        max-height: 300px;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-slogan {
        font-size: 1.3rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    /* تنظیمات اینماد برای تبلت */
    .enamad-badge {
        left: 15px;
        bottom: 15px;
        padding: 7px;
    }
    
    .enamad-badge img {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 85%;
        height: calc(100vh - 70px);
        background: var(--surface);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        padding: 1.5rem;
        border-radius: 20px 0 0 20px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 1rem 0;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        display: block;
        padding: 0.6rem 0;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .services-grid,
    .links-grid,
    .about-features,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* تنظیمات اینماد برای موبایل */
    .enamad-badge {
        left: 10px;
        bottom: 10px;
        padding: 6px;
    }
    
    .enamad-badge img {
        max-width: 90px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .about-features .feature {
        min-height: 180px;
        padding: 1rem;
    }
    
    /* تنظیمات نهایی اینماد برای موبایل کوچک */
    .enamad-badge {
        left: 8px;
        bottom: 8px;
        padding: 5px;
    }
    
    .enamad-badge img {
        max-width: 80px;
    }
}