/* about.css - استایل‌های مخصوص صفحه درباره ما */

:root {
    --primary-color: #ff9800;
    --secondary-color: #ff5722;
    --dark-color: #333;
    --gray-color: #666;
    --light-gray: #f5f5f5;
    --border-radius: 12px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    margin-left: 10px;
}

.breadcrumb-list a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list .active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-list .separator {
    color: #999;
    font-size: 12px;
}

/* About Hero */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/about-hero.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.about-hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.about-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Our Story */
.our-story {
    padding: 100px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.story-timeline {
    position: relative;
    padding-right: 30px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #ffcc80);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -36px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.3);
}

.timeline-year {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--gray-color);
    line-height: 1.6;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.story-image:hover img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Our Values */
.our-values {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card:hover::before {
    transform: translateX(0);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.value-icon.quality {
    background: linear-gradient(45deg, var(--primary-color), #ffb74d);
}

.value-icon.health {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
}

.value-icon.innovation {
    background: linear-gradient(45deg, #2196F3, #03A9F4);
}

.value-icon.responsibility {
    background: linear-gradient(45deg, #9C27B0, #E91E63);
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.value-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Production Process */
.production-process {
    padding: 100px 0;
    background-color: white;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    z-index: 1;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--border-radius);
    border-right: 4px solid var(--primary-color);
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Comments Section */
.comments-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.comment-form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.login-prompt {
    text-align: center;
    padding: 30px 20px;
}

.login-prompt i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.7;
}

.login-prompt p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-prompt a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.comment-form .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.comment-form h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin: 0;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-input span {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.stars {
    display: flex;
    gap: 5px;
    direction: ltr;
}

.stars i {
    font-size: 1.3rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.stars i.active,
.stars i:hover {
    color: #ffc107;
}

.stars i:hover ~ i {
    color: #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eaeaea;
    border-radius: var(--border-radius);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
}

.form-footer button {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-footer button i {
    font-size: 1rem;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-5px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ffb74d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.user-info h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.comment-rating {
    display: flex;
    gap: 3px;
    direction: ltr;
}

.comment-rating i {
    color: #ffc107;
    font-size: 1rem;
}

.comment-rating i.empty {
    color: #ddd;
}

.comment-content {
    margin-bottom: 15px;
}

.comment-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-color);
    word-wrap: break-word;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.comment-date i {
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.delete-comment {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.delete-comment:hover {
    opacity: 1;
    background-color: rgba(220, 53, 69, 0.1);
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
}

.no-comments i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-comments p {
    font-size: 1.2rem;
    color: var(--gray-color);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline i {
    transition: transform 0.3s ease;
}

.btn-outline:hover i {
    transform: rotate(180deg);
}

/* Achievements */
.achievements {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-title {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About CTA */
.about-cta {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('../images/cta-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive Design - موبایل و تبلت */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 70px 0;
    }

    .about-hero-title {
        font-size: 2.2rem;
    }

    .about-hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .story-timeline {
        padding-right: 20px;
    }

    .timeline-item::before {
        right: -26px;
        width: 14px;
        height: 14px;
    }

    .timeline-year {
        font-size: 0.9rem;
        padding: 4px 12px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .experience-badge {
        bottom: 20px;
        left: 20px;
        padding: 15px;
    }

    .experience-badge .years {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .value-card h3 {
        font-size: 1.2rem;
    }

    .process-step {
        margin-bottom: 30px;
    }

    .process-step:not(:last-child)::after {
        right: 25px;
        top: 55px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-left: 20px;
    }

    .step-content {
        padding: 20px;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    /* کامنت‌ها در موبایل */
    .comment-form-container {
        padding: 20px;
    }

    .comment-form .form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-input {
        width: 100%;
        justify-content: space-between;
    }

    .stars {
        flex-wrap: wrap;
    }

    .comment-item {
        padding: 20px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .user-info h4 {
        font-size: 1rem;
    }

    .comment-rating {
        margin-right: 52px;
    }

    .comment-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 15px 0;
    }

    .breadcrumb-list {
        font-size: 0.9rem;
    }

    .about-hero {
        padding: 50px 0;
    }

    .about-hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .our-story,
    .our-values,
    .production-process,
    .comments-section,
    .achievements,
    .about-cta {
        padding: 50px 0;
    }

    .story-lead {
        font-size: 1rem;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-bottom: 15px;
        margin-left: 0;
    }

    .process-step:not(:last-child)::after {
        right: 50%;
        transform: translateX(50%);
        top: 50px;
        height: 40px;
    }

    .step-content {
        width: 100%;
        border-right: none;
        border-top: 4px solid var(--primary-color);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 25px 15px;
    }

    /* کامنت‌ها در موبایل کوچک */
    .comment-form-container {
        padding: 15px;
    }

    .comment-form h3 {
        font-size: 1.1rem;
    }

    .rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .stars i {
        font-size: 1.2rem;
    }

    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .form-footer button {
        width: 100%;
    }

    .comment-item {
        padding: 15px;
    }

    .comment-user {
        width: 100%;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .user-info h4 {
        font-size: 0.95rem;
    }

    .user-info span {
        font-size: 0.8rem;
    }

    .comment-rating {
        margin-right: 47px;
    }

    .comment-content p {
        font-size: 0.95rem;
    }

    .comment-date {
        font-size: 0.8rem;
    }

    .delete-comment {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .load-more-container {
        margin-top: 30px;
    }

    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .achievement-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .login-prompt {
        padding: 20px 15px;
    }

    .login-prompt i {
        font-size: 2.5rem;
    }

    .login-prompt p {
        font-size: 1rem;
    }

    .no-comments {
        padding: 40px 15px;
    }

    .no-comments i {
        font-size: 3rem;
    }

    .no-comments p {
        font-size: 1rem;
    }

    .loading {
        padding: 30px;
        font-size: 1rem;
    }
}

/* رفع مشکل نمایش در موبایل‌های بسیار کوچک */
@media (max-width: 360px) {
    .about-hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-title::after {
        width: 60px;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-item::before {
        width: 12px;
        height: 12px;
        right: -22px;
    }

    .timeline-year {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    .experience-badge {
        bottom: 10px;
        left: 10px;
        padding: 10px;
    }

    .experience-badge .years {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 0.8rem;
    }

    .rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stars i {
        font-size: 1.1rem;
    }

    .comment-rating {
        margin-right: 0;
    }
}