/* Custom CSS for TikBox Website */

/* CSS Variables */
:root {
    --color-bg: #16161D;
    --color-bg-secondary: #16161D;
    --color-bg-card: #252540;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b8b8d1;
    --color-border: #2d2d4a;
    --color-accent: #73e5a6;
    --color-primary: #9c27b0;
    --color-secondary: #e1bee7;
    --color-accent-light: #ba68c8;
    --color-gradient: linear-gradient(135deg, #8e24aa 0%, #9c27b0 100%);
    --color-gradient-hover: linear-gradient(135deg, #7b1fa2 0%, #8e24aa 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Pinar', 'Vazir', Tahoma, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    padding-top: 80px;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Vazir', Tahoma, sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--color-gradient-hover);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-gradient);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: var(--color-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-modern .fab {
    font-size: 1.2rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* Header Styles */
header {
    background: rgba(22, 22, 29, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(142, 36, 170, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(22, 22, 29, 0.7);
    backdrop-filter: blur(15px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.cart-link:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.cart-link i {
    font-size: 1.1rem;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-accent);
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-accent);
    cursor: pointer;
    margin-right: 1rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(142, 36, 170, 0.1);
    color: var(--color-accent-light);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    direction: ltr;
}

.hero-text {
    flex: 1;
    text-align: right;
    direction: rtl;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Prevent layout shift */
    min-height: 241px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Ensure aspect ratio is maintained */
    object-fit: cover;
    /* Add transition for smooth loading */
    transition: opacity 0.3s ease-in-out;
}

.hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 0 2rem 0;
}

.hero-form {
    display: flex;
    direction: rtl;
}

.hero-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px #ccc;
    border-radius: 0 8px 8px 0;
    background: rgba(37, 37, 64, 0.8);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Vazir', Tahoma, sans-serif;
}

.hero-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.hero-form input::placeholder {
    color: var(--color-text-secondary);
}

.hero-form button {
    border-radius: 8px 0 0 8px;
    border: none;
    padding: 15px 24px;
}

/* Hide number input spinner buttons - Force remove */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.hero-form input[type="number"]::-webkit-outer-spin-button,
.hero-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.hero-form input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Form validation styles */
.hero-form input:invalid {
    border-color: #ef4444;
}

.hero-form input:valid {
    border-color: #10b981;
}

/* Consultation Note */
.consultation-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: rgba(115, 229, 166, 0.1);
    border: 1px solid rgba(115, 229, 166, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-top: 10px;
}

.consultation-note i {
    color: var(--color-accent);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.consultation-note span {
    text-align: right;
    direction: rtl;
}

/* Modern Intro Section */
.modern-intro {
    padding: 6rem 0;
    background-color: #1a1a1a;
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Prevent layout shift */
    min-height: 412px;
}

.intro-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Maintain aspect ratio and prevent layout shift */
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.intro-text .section-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: right;
}

.intro-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    text-align: justify;
}

/* Full Width Image for Mobile */
@media (max-width: 768px) {
    .modern-intro .container {
        padding: 0;
    }

    .intro-content {
        padding: 0 15px;
    }

    .intro-image {
        margin: 0 -15px;
        width: calc(100% + 30px);
    }
}

/* Steps Section */
.steps {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.step-card {
    background-color: transparent;
    border-radius: 16px;
    padding: 2.5rem;
    width: 30%;
    min-width: 250px;
    border: 1px solid #262626;
    position: relative;
    overflow: hidden;
}

.step-card h3 {
    margin: 1rem 0;
    color: #ffffff;
    font-weight: 600;
}

.step-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.step-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    background-color: #333;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background-color: #1a1a1a;
}

.features-twocol-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.features-image-col img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.features-text-col .section-title {
    text-align: right;
    margin-bottom: 1.5rem;
}

.features-text-col .section-description-left {
    text-align: right;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.features-list-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list-vertical li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    text-align: right;
}

.features-list-vertical li i {
    color: var(--color-accent);
    font-size: 1.4rem;
}

/* Features Tabs */
.features-tabs-section {
    padding: 6rem 0;
    background-color: #1a1a1a;
}

.features-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazir', sans-serif;
    font-size: 1.1rem;
}

.tab-button.active {
    background: var(--color-gradient);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(142, 36, 170, 0.4);
}

.tab-pane {
    display: none;
    background-color: #222;
    border-radius: 16px;
    border: 1px solid #333;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane .tik3-content,
.tab-pane .features-twocol-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
}

.tab-pane .tik3-image img,
.tab-pane .features-image-col img {
    width: 100%;
    border-radius: 8px;
}

.tab-pane .features-list,
.tab-pane .features-list-vertical {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.tab-pane .features-list li,
.tab-pane .features-list-vertical li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tab-pane .features-list-vertical li i {
    color: var(--color-accent);
}

/* Customer Gallery */
.customer-gallery {
    padding: 4rem 0;
    background-color: #1a1a1a;
}

.customer-gallery .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.customer-logos-scroll {
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.customer-logos-scroll:active {
    cursor: grabbing;
}

.logos-container {
    display: flex;
    gap: 2rem;
    animation: logoScroll 20s linear infinite;
    will-change: transform;
}

.logos-container:hover {
    animation-play-state: paused;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--color-accent);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: brightness(1);
}

.logo-item a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Articles Section */
.articles {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #262626;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-gradient);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--color-accent);
}

.article-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #ffffff;
    transform: translateX(-5px);
}

.articles-cta {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-gradient);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--color-gradient-hover);
    transform: translateY(-2px);
}

.articles-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid #262626;
}

.articles-placeholder p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    padding: 1.5rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.customer-type {
    font-weight: bold;
    color: var(--color-accent);
}

.customer-count {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.testimonial-author {
    font-weight: bold;
    color: var(--color-text-primary);
    text-align: left;
}

/* Trust Stats */
.trusted-stats {
    padding: 3rem 0;
    background-color: var(--color-bg);
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-accent);
}

.stat-label {
    color: var(--color-text-secondary);
}

/* Support Section */
.support {
    padding: 4rem 0;
    background-color: var(--color-bg);
    text-align: center;
}

.support h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.support-questions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.question-card {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    width: 45%;
    min-width: 250px;
}

.question-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.question-card p {
    color: var(--color-text-secondary);
}

/* Site Footer - Clean Professional Design */
.site-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Vazir', sans-serif;
}

.footer-top {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #333;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

/* Company Info Section */
.company-info {
    max-width: 400px;
}

.company-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.3);
}

.brand-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8e24aa;
    margin: 0 0 0.5rem 0;
}

.brand-details p {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin: 0;
}

.company-description {
    margin-bottom: 2rem;
}

.company-description p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c0c0c0;
    margin: 0;
}

.company-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8e24aa;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
}

.contact-item div span {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.contact-item div a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item div a:hover {
    color: #8e24aa;
}

/* Footer Column Headers */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8e24aa;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: #8e24aa;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-col ul li a:hover {
    color: #8e24aa;
    padding-right: 0.5rem;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #8e24aa;
    transition: width 0.3s ease;
}

.footer-col ul li a:hover::before {
    width: 0.3rem;
}

/* Social Section */
.social-links {
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    background: #2a2a2a;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: #333;
    border-color: #8e24aa;
    transform: translateX(-3px);
}

.social-link i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1rem;
}

.social-link span {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-link.instagram i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link.telegram i {
    background: #0088cc;
    color: white;
}

.social-link.whatsapp i {
    background: #25d366;
    color: white;
}

.trust-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #333;
}

.trust-logo {
    width: 40px;
    height: auto;
    border-radius: 6px;
}

.trust-section span {
    font-size: 0.85rem;
    color: #c0c0c0;
}

/* Footer Bottom - تبدیل شده به copyright ساده */
.footer-bottom {
    padding: 1.5rem 0;
    /* background: #111; */
    /* border-top: 1px solid #333; */
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

/* حذف footer-meta و badge ها چون دیگر لازم نیست */

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    background: var(--color-gradient);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.contact-toggle:hover {
    background: var(--color-gradient-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(142, 36, 170, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4);
    }

    50% {
        box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4), 0 0 0 10px rgba(142, 36, 170, 0.1);
    }

    100% {
        box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4);
    }
}

.contact-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: rgba(37, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(142, 36, 170, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-menu.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.contact-menu .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-menu .contact-item:last-child {
    margin-bottom: 0;
}

.contact-menu .contact-item:hover {
    background: rgba(142, 36, 170, 0.2);
    color: #ffffff;
    transform: translateX(5px);
}

.contact-menu .contact-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.contact-phone i {
    color: #4CAF50;
}

.contact-whatsapp i {
    color: #25D366;
}

/* Message Popup */
.message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

.message-success {
    background: #10b981;
    color: white;
}

.message-error {
    background: #ef4444;
    color: white;
}

.message-info {
    background: #3b82f6;
    color: white;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

.message-text {
    flex: 1;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .intro-text .section-title {
        font-size: 2.2rem;
    }

    .intro-content {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .company-info {
        grid-column: 1 / -1;
        max-width: none;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .intro-image {
        order: -1;
    }

    .intro-text .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .intro-text p {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .features-twocol-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-image-col {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .features-text-col .section-title,
    .features-text-col .section-description-left {
        text-align: center;
    }

    .features-list-vertical li {
        justify-content: flex-start;
    }

    .tab-pane .tik3-content,
    .tab-pane .features-twocol-layout {
        grid-template-columns: 1fr;
    }

    .features-tab-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 991px) {
    nav {
        display: none;
        position: fixed;
        top: 0;
        right: -66.67%;
        width: 66.67vw;
        height: 100vh;
        background: var(--color-bg);
        z-index: 9999;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    nav.open {
        right: 0;
        display: block;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        height: 100%;
        margin-top: 60px;
        list-style: none;
    }

    nav ul li {
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        transition: all 0.3s ease;
        color: #ffffff !important;
    }

    nav ul li a:hover {
        color: var(--color-accent) !important;
        padding-right: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .header-content {
        position: relative;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .modern-intro {
        padding: 3rem 0;
    }

    .intro-content {
        gap: 2rem;
    }

    .intro-text .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .intro-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .intro-image {
        width: 100%;
        margin: 0 -15px;
    }

    .intro-image img {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

    .hero-content {
        flex-direction: column-reverse;
        direction: rtl;
    }

    .hero-text,
    .hero-image {
        width: 100%;
    }

    .hero-form {
        flex-direction: column;
    }

    .hero-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .hero-form button {
        border-radius: 5px;
    }

    .step-card {
        width: 100%;
    }

    .question-card {
        width: 100%;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-count {
        margin-top: 0.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .company-brand {
        justify-content: center;
    }

    .company-contact {
        align-items: center;
    }

    /* footer-bottom در responsive حذف شد */

    .floating-contact {
        bottom: 15px;
        left: 15px;
    }

    .contact-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .contact-menu {
        min-width: 180px;
        bottom: 65px;
    }

    .contact-menu .contact-item {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-item {
        width: 120px;
        height: 60px;
        padding: 0.8rem;
    }

    .logos-container {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modern-intro {
        padding: 2rem 0;
    }

    .intro-content {
        gap: 1.5rem;
    }

    .intro-text .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .intro-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .intro-image {
        width: 100%;
        margin: 0 -15px;
    }

    .intro-image img {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

    .btn-modern {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-top {
        padding: 2rem 0 1.5rem;
    }

    .contact-item {
        justify-content: center;
    }

    .social-link {
        justify-content: center;
    }

    .trust-section {
        justify-content: center;
    }

    .article-image {
        height: 150px;
    }

    .article-category {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Footer Styles - Full Width */
footer {
    background-color: #0a0a0f;
    color: var(--color-text-secondary);
    padding: 3rem 0 1rem;
    font-family: inherit;
    direction: rtl;
    width: calc(100% + 30px);
    margin: 0 -15px;
    max-width: none;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-logo img {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.footer-logo img:hover {
    filter: brightness(1);
}

.footer-address p,
.footer-contact p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact p i {
    color: var(--color-accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.work-hours {
    font-style: italic;
    color: var(--color-accent) !important;
    margin-top: 0.5rem;
}

.trust-badge {
    text-align: center;
    margin-top: 1rem;
}

.trust-badge img {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    max-height: 50px;
    width: auto;
}

.trust-badge img:hover {
    filter: brightness(1);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(37, 37, 64, 0.5);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--color-gradient);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

/* Footer Copyright */
.footer-copyright {
    border-top: 1px solid #333;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
    background-color: rgba(0, 0, 0, 0.3);
}

/* عناصر جدید فوتر */
.social-section {
    display: flex;
    flex-direction: column;
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter h4 {
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

.newsletter-form {
    display: flex;
    margin-top: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border-radius: 4px 0 0 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: var(--color-gradient);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--color-gradient-hover);
}

/* Responsive Footer - با حفظ ستون‌های کنار هم */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        font-size: 0.9rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 1.5rem;
        text-align: right;
    }

    .footer-section {
        flex: 1 1 170px;
        min-width: 170px;
        max-width: 250px;
    }

    .social-icons {
        flex-wrap: wrap;
    }
}

.trust-badge {
    margin-bottom: 1rem;
}