/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a237e;
    --accent-gold: #ffc107;
    --light-gold: #fff8e1;
    --light-gray: #f8f9fa;
    --dark-gray: #2d3748;
    --text-dark: #1a202c;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
    font-weight: 400;
    padding-top: 70px; /* For fixed menu */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--accent-gold);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-divider {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.4rem;
    margin-left: 3px;
}

.nav-logo .logo-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600; /* Changed to bold */
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.nav-menu a:not(.nav-resume):hover {
    color: var(--primary-blue); /* Changed for better contrast */
    transform: translateY(-1px);
}

.nav-menu a:not(.nav-resume)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue); /* Changed for better contrast */
    transition: var(--transition);
}

.nav-menu a:not(.nav-resume):hover::after {
    width: 100%;
}

.nav-resume {
    background: #f1f0e7 !important;
    color: var(--text-dark) !important; /* Changed for better contrast */
    padding: 6px 16px;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    text-decoration: none !important;
}

.nav-resume::after {
    display: none !important;
}

.nav-resume:hover {
    background: #ff6f00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
    text-decoration: none !important;
}

.download-icon {
    animation: downloadBounce 2s infinite;
    font-weight: bold;
    font-size: 0.8rem;
}

@keyframes downloadBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px);
    }
    60% {
        transform: translateY(-1px);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #64b5f6;
    margin: 3px 0;
    transition: var(--transition);
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #303f9f 100%);
    color: var(--white);
    padding: 50px 0 20px; /* Increased bottom padding slightly */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.gold-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: goldGlow 2s ease-in-out infinite alternate;
    z-index: 2;
    pointer-events: none;
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
        border-color: #ffc107;
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.9), 0 0 35px rgba(255, 193, 7, 0.5);
        border-color: #ffecb3;
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8), 0 0 30px rgba(255, 193, 7, 0.4);
        border-color: #ffd54f;
    }
}

.name-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.name-title .highlight {
    color: var(--accent-gold);
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 12px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

.job-title {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.guarantee-badge {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 50%, #fff9c4 100%);
    border: 2px solid #ffd54f;
    border-radius: 12px;
    padding: 15px 25px;
    margin-top: 20px;
    display: inline-block;
    animation: guaranteeGlow 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.guarantee-text {
    color: #5d4037;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
}

@keyframes guaranteeGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
        border-color: #ffd54f;
    }
    50% {
        box-shadow: 0 6px 20px rgba(184, 134, 11, 0.3), 0 0 25px rgba(255, 215, 0, 0.2);
        border-color: #ffecb3;
    }
}

/* Section Styles */
section {
    padding: 20px 0; /* Standard padding for all sections */
}

section:nth-child(even) {
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px; /* Reduced title bottom margin */
    color: var(--primary-blue);
    position: relative;
    font-weight: 600;
    padding-bottom: 15px; /* Reduced title bottom padding */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    left: 10%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 20%,
        var(--accent-gold) 80%,
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

#technologies .section-title::after,
#mentorship .section-title::after,
#ai-solutions .section-title::after {
    display: none;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 20px; /* Reverted space after about content */
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px; /* Reduced text bottom margin */
    text-align: justify;
    font-weight: 400;
}

/* Statistics Section */
.stats-section {
    margin: 30px 0; /* Reduced margin */
}

/* Statistics Section */
.stats-section {
    margin: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stat-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Journey Section */
#journey {
    padding-top: 30px; /* Reduced top padding for section */
    padding-bottom: 30px; /* Reduced bottom padding for section */
}

.journey-content {
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 0px; /* Reduced space after journey content */
}

.journey-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px; /* Reduced text bottom margin */
    text-align: justify;
    font-weight: 400;
}

.journey-milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px; /* Reduced top margin */
}

.milestone {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition);
}

.milestone:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.milestone-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 10px;
}

.milestone-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.milestone-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Projects Section */
#projects {
    padding-top: 30px; /* Reduced top padding for section */
}

.projects-content {
    max-width: 1000px;
    margin: 0 auto;
}

.projects-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px; /* Reduced intro bottom margin */
    text-align: justify;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px; /* Reduced top margin */
}

.project-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-dark); /* Changed for better contrast */
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background: var(--light-gold);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600; /* Changed to bolder for better prominence */
}

/* Business Collaboration Section */
#business-collaboration {
    padding-top: 30px; /* Reduced top padding for section */
}

.collaboration-content {
    max-width: 1000px;
    margin: 0 auto;
}

.collaboration-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px; /* Reduced text bottom margin */
    text-align: justify;
    font-weight: 400;
}

.collaboration-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px; /* Reduced top margin */
}

.collaboration-type-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-gold);
    transition: var(--transition);
    text-align: center;
}

.collaboration-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.collaboration-type-card h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.collaboration-benefits {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
    border-top: 5px solid var(--accent-gold);
}

.collaboration-benefits h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.collaboration-benefits ul {
    list-style: none;
    padding: 0;
}

.collaboration-benefits li {
    padding: 12px 5px;
    padding-right: 35px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
    border-radius: 8px;
}

.collaboration-benefits li:last-child {
    border-bottom: none;
}

.collaboration-benefits li:hover {
    background-color: var(--light-gold);
    transform: translateX(-5px);
}

.collaboration-benefits li::before {
    content: '»';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Work Process Section */
#work-process {
    background: var(--white);
    padding-top: 30px; /* Reduced top padding for section */
    padding-bottom: 30px; /* Reduced bottom padding for section */
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 30px auto; /* Reduced margin */
    padding: 15px 0; /* Reduced padding */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    width: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
    background: var(--light-gray);
    padding: 20px 30px;
    border-radius: 12px;
    margin-right: 60px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Technologies Section */
/* Technologies Section */
.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.tech-category {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-gold);
}

.tech-category h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-item {
    background: var(--light-gold);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mentorship Section */
.mentorship-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mentorship-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px; /* Reduced empty space */
    text-align: justify;
}

.mentorship-image {
    text-align: center;
    margin-bottom: 30px;
}

.mentorship-photo {
    width: 100%;
    max-width: 800px;
    height: 269px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--accent-gold);
}

/* Contact Section */


#contact {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffd54f 100%);
    padding-top: 30px;
    padding-bottom: 50px;
    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" fill="%23000000" opacity="0.08"><text x="15" y="25" font-family="monospace" font-size="10">&lt;contact&gt;</text><text x="70" y="45" font-family="monospace" font-size="7">&lt;form&gt;</text><text x="25" y="65" font-family="monospace" font-size="3.5">&lt;input&gt;</text><text x="65" y="80" font-family="monospace" font-size="3">&lt;button&gt;</text><text x="10" y="50" font-family="monospace" font-size="3.2">submit</text><text x="80" y="30" font-family="monospace" font-size="2.8">email</text></svg>');
    background-size: 200px 200px;
    pointer-events: none;
}

.contact-info {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.2rem;
}

.response-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin: 15px 0 30px 0; /* Reduced bottom margin to 5px */

    text-shadow: 0px 1px #ffe79a;
}

.contact-details {
    padding: 0 35px 35px 35px;
    margin-top: 5px;
}

.contact-item {
    margin: 12px 0;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.social-links {
    display: inline-flex; /* Make the flex container itself inline to be affected by parent's text-align */
    justify-content: flex-end; /* Align items within the flex container to the right */
    gap: 10px; /* Slightly reduce gap for smaller icons */
    margin-top: 20px; /* Adjust margin */
    margin-bottom: 15px; /* Add some bottom margin */
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Smaller button size */
    height: 36px; /* Smaller button size */
    background: #3a475a; /* Slightly lighter dark gray for distinction */
    color: var(--white); /* Default icon color is white */
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #3a475a; /* Border matches new background */
}

.social-link:hover {
    background: #ffc107; /* Background changes to a darker gold on hover */
    color: var(--white); /* Icon color remains white on hover */
    border: 1px solid #fff; /* Border changes to a darker gold on hover */
    transform: translateY(-2px);
}

.social-link svg {
    width: 16px; /* Even smaller icon size */
    height: 16px; /* Even smaller icon size */
}

/* Contact Form */
.contact-form {
    margin-top: 15px; /* Reduced top margin to 15px */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    opacity: 0; /* Start hidden */
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease, display 0.4s ease; /* Add display to transition */
    display: none; /* Hide by default, not just opacity */
}

.form-messages.show {
    opacity: 1;
    transform: translateY(0);
    display: block; /* Show when .show class is present */
}

.form-messages.success {
    background-color: #e6ffed; /* Light green */
    color: #2f855a; /* Darker green */
    border: 1px solid #48bb78;
}

.form-messages.error {
    background-color: #fff5f5; /* Light red */
    color: #e53e3e; /* Darker red */
    border: 1px solid #f56565;
}

.contact-form input.input-error,
.contact-form textarea.input-error {
    border-color: #e53e3e !important; /* Red border for error fields */
    box-shadow: 0 0 0 1px #e53e3e;
}


.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-with-icon {
    position: relative;
}

.form-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
}

.input-with-icon.full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffdf80;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fee69f; /* رنگ زرد */
    outline: none; /* حذف outline پیشفرض */
}


.contact-form input {
    padding-right: 40px; /* Space for icon */
}

.contact-form textarea {
    margin-bottom: 5px;
}

.submit-btn {

    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 10px 50px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #ffe38c;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
    height: 50px;
    align-items: center;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;

}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
    cursor: pointer;
    font-weight: bold;
}

/* Form Loading Overlay */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Read More Button */
.read-more-btn-container {
    text-align: left;
    margin: 30px 0 20px 0;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    border: 1px solid var(--primary-blue);
    opacity: 0.8;
}

.read-more-btn:hover {
    background: #e3f2fd;
    color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
    opacity: 1;
    border-color: #1565c0;
}

.arrow {
    transition: var(--transition);
}

.read-more-btn:hover .arrow {
    transform: translateX(-3px);
}

.section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 15px 0; /* Reduced margin */
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(26, 35, 126, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(26, 35, 126, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.scroll-to-top:hover {
    opacity: 1;
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Change scroll-to-top icon color when overlapping footer */
.scroll-to-top.footer-overlap {
    color: var(--accent-gold); /* Change to a color visible on dark footer */
    background: rgba(255, 193, 7, 0.1); /* Subtle background change */
    border-color: rgba(255, 193, 7, 0.3);
}

/* Footer Styles */
.main-footer {
    background: #18202d;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: normal !important;
    border-bottom: 1px solid #5e5239;
    padding-bottom: 10px;
    padding-right: 5px;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.contact-info-footer {
    text-align: right; /* Ensure all content within this div is right-aligned */
}

.contact-info-footer p {
    margin: 8px 0;
}

.contact-info-footer a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #569e4d;
    color: #fdfdfd;
    border-radius: 5px;
    padding: 8px 12px; /* Reduced padding for smaller size */
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    text-decoration: none;
    font-weight: bold; /* Changed to not bold */
    font-size: 0.85rem; /* Reduced font size */
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.floating-contact-btn:hover {
    background: #ffc107; /* Even darker on hover */
    color: var(--text-dark); /* Changed for better contrast */
    transform: translateY(-3px) scale(1.05);
}

/* Hide floating contact button when contact section is in view */
.floating-contact-btn.hide-floating-contact {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.95); /* Add a subtle animation */
}

.footer-site-link {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-site-link:hover {
    opacity: 1;
    color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 1024px) { /* Adjust breakpoint for larger tablets */
    .stats-grid,
    .journey-milestones {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on tablets */
        gap: 20px; /* Adjust gap */
    }
}

@media (max-width: 768px) { /* Keep existing mobile adjustments */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--white);
        width: 80%;
        height: 100vh;
        flex-direction: column;
        padding-top: 50px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
}

/* Live Stats Section */
#live-stats {
    background: var(--light-gray);
}

#live-stats .section-title::after {
    display: none;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.live-stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

.live-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.live-stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* FAQ Section */
#faq {
    background: var(--white);
    padding-top: 15px; /* Reduced top padding for section */
}

.faq-accordion {
    max-width: 800px;
    margin: 15px auto 0; /* Reduced top margin */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--light-gray);
}

.faq-answer p {
    padding: 0 20px 20px;
    line-height: 1.8;
}

/* Testimonials Section */
#testimonials {
    background: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 2rem;
    color: var(--primary-blue);
}

.author-details .author-name {
    font-weight: 600;
    color: var(--primary-blue);
}

.testimonial-text p {
    font-style: italic;
    position: relative;
    padding-right: 25px;
}

.testimonial-text p::before {
    content: '“';
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.8;
}

/* Styles for about.php page */
.feature-image-section {
    text-align: center;
    margin-bottom: 20px; /* Reduced space */
}

.feature-image {
    max-width: 100%;
    height: 350px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers the area without distortion */
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-gold);
}

.page-header {
    text-align: center;
    margin-bottom: 20px; /* Reduced space */
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--primary-blue);
    font-weight: 700;
}

.toc {
    background: var(--light-gray);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-gold);
    margin-top: 20px;
    display: inline-block; /* To center it if it's not full width */
    text-align: right; /* Align TOC title to the right */
}

.toc h2 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.05rem;
}

.toc a:hover {
    color: var(--accent-gold);
    transform: translateX(-3px);
}

.author-section {
    background: var(--white); /* Or keep it consistent with section:nth-child(even) */
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-gold);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within the section */
    text-align: center;
}

.author-section h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.author-info {
    max-width: 800px; /* Limit width for readability */
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.author-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.social-links-author {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links-author a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-links-author a:hover {
    color: #ff8f00;
    transform: translateY(-1px);
}

.content-section {
    background: var(--white); /* Default background for content sections */
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    text-align: justify; /* Justify text for better readability */
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center; /* Center section titles */
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Ensure sections alternate background if needed, or keep consistent */
/* If you want alternating backgrounds for content sections, you might need to adjust the main structure or add classes */
/* For now, keeping them white and relying on the main section background */

/* Adjustments for specific elements within sections */
.author-section .content-section { /* Inherit styles but ensure specific author styles apply */
    background: none; /* Remove background if author section is already styled */
    box-shadow: none; /* Remove shadow if author section is already styled */
    padding: 0;
    margin-bottom: 0;
}

/* Ensure the main container handles spacing */
main.container {
    padding-top: 0px; /* Removed padding above the main content */
    padding-bottom: 20px; /* Add some padding below the main content */
}

/* Adjustments for the TOC link to contact section */


/* Responsive adjustments for about page elements */
@media (max-width: 768px) {
    .feature-image {
        height: 250px;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .toc {
        padding: 15px;
    }
    .toc h2 {
        font-size: 1.2rem;
    }
    .toc a {
        font-size: 1rem;
    }
    .author-section, .content-section {
        padding: 30px;
    }
    .author-photo {
        width: 100px;
        height: 100px;
    }
    .author-info p, .content-section p {
        font-size: 1rem;
    }
}


/* About Page Styles - تمام کلاس‌ها با پیشوند about- */
.about-page-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.about-page-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
    margin-top: 30px;
}

.about-page-main-title {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.3;
}

.about-page-subtitle {
    font-size: 1.3rem;
    color: #163056;
    font-weight: 400;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Introduction Section with TOC */
.about-intro-section {
    margin-bottom: 10px;
    background: transparent !important;

}

.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
    align-items: start;
}

.about-main-text {
    background: var(--white);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    order: 1;
}

.about-section-heading {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-blue);
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.about-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    left: 10%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 20%,
        var(--accent-gold) 80%,
        transparent 100%
    );
    border-radius: 2px;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-align: justify;
}

/* TOC Sidebar */
.about-toc-sidebar {
    position: sticky;
    top: 100px;
    order: 2;
}

.about-toc-container {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-profile-image {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.about-profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.about-profile-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.about-toc-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: var(--primary-blue);
    font-weight: 600;
    text-align: center;
}

.about-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-toc-list li {
    margin-bottom: 6px;
}

.about-toc-link {
    display: block;
    padding: 10px 14px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    border-right: 3px solid transparent;
}

.about-toc-link:hover {
    background: var(--light-gold);
    color: var(--primary-blue);
    border-right-color: var(--accent-gold);
    transform: translateX(-3px);
}

/* Skills Grid - 4 items in one row */
.about-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.about-skill-item {
    padding: 15px 10px;
    background: var(--light-gray);
    border-radius: 12px;
    border-bottom: 4px solid var(--accent-gold);
    text-align: center;
    transition: var(--transition);
    justify-content: space-between;
    min-height: 180px;
}

.about-skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-skill-item h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.about-skill-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* Philosophy Grid - 4 items in one row */
.about-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.about-philosophy-item {
    padding: 25px 20px;
    background: var(--light-gold);
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid var(--accent-gold);
    transition: var(--transition);
    justify-content: space-between;
    min-height: 180px;
}

.about-philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-philosophy-item h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.about-philosophy-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* بقیه استایل‌ها بدون تغییر */
.about-content-section {
    margin-bottom: 10px;
    background: transparent !important;
}

.about-section-inner {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.about-section-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 5px;
    color: var(--text-dark);
    text-align: right;
}

/* Timeline */
.about-timeline {
    margin-top: 40px;
}

.about-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.about-timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.about-timeline-year {
    background: var(--light-gold);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    margin-left: 30px;
    flex-shrink: 0;
    min-width: 90px;
    text-align: center;
}

.about-timeline-content h4 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-timeline-content p {
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Achievements List */
.about-achievements-list {
    margin-top: 30px;
    padding-right: 20px;
}

.about-achievement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1px;
    padding: 5px 0;
}

.about-achievement-icon {
    color: var(--accent-gold);
    margin-left: 15px;
    font-size: 1.2rem;
    margin-top: 0px;
    flex-shrink: 0;
}

.about-achievement-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Education Items */
.about-education-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.about-education-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.about-education-item h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-education-institute {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Collaboration Steps */
.about-collaboration-steps {
    margin: 40px 0;
}

.about-step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.about-step-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-step-number {
    background: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 25px;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.about-step-content h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-step-content p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.about-collaboration-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.about-inline-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.about-inline-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-skills-grid,
    .about-philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .about-intro-content {
        grid-template-columns: 1fr 260px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-toc-sidebar {
        position: static;
        order: -1;
    }
    
    .about-main-text {
        order: 2;
        padding: 20px;
    }
    
    .about-page-main-title {
        font-size: 2.2rem;
    }
    
    .about-section-inner {
        padding: 40px 30px;
    }
    
    .about-timeline-item {
        flex-direction: column;
    }
    
    .about-timeline-year {
        margin-left: 0;
        margin-bottom: 20px;
        align-self: flex-start;
    }
    
    .about-step-item {
        flex-direction: column;
    }
    
    .about-step-number {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .about-skills-grid,
    .about-philosophy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-page-main-title {
        font-size: 2rem;
    }
    
    .about-section-inner {
        padding: 30px 25px;
    }
    
    .about-main-text {
        padding: 25px;
    }
    
    .about-toc-container {
        padding: 20px;
    }
    
    .about-profile-image {
        width: 80px;
        height: 80px;
    }
}


/* Breadcrumb Styles - هماهنگ با طراحی سایت شما */
.breadcrumb {
    background: var(--light-gray);
    padding: 15px 0;
    
    border-bottom: 1px solid #f3f6fa;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0px;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 5px;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 8px;
    border-radius: 6px;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
    background: var(--light-gold);
    transform: translateY(-1px);
}

.breadcrumb span {
    color: var(--text-light);
    padding: 5px 8px;
    font-size: 0.85rem;
}

/* نسخه جمع و جور برای صفحات داخلی */
.breadcrumb-compact {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: none;
}

.breadcrumb-compact ol {
    font-size: 0.9rem;
    gap: 8px;
}

/* نسخه برای صفحات درباره من و تماس */
.breadcrumb-page {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 5px 0;
}





/* Projects Page Styles - Complete Version */
.projects-page-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.projects-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.projects-page-subtitle {
    font-size: 1.3rem;
    color: #163056;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-intro-section {
    margin-bottom: 5px;
    background: transparent !important;
}

.projects-section-inner {
    padding: 5px;
    border-radius: 15px;
}

.projects-intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
}

/* Projects Filter - Updated */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.projects-filter-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.projects-filter-btn:hover,
.projects-filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Projects Grid - Updated */
.projects-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.projects-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent-gold);
    transition: var(--transition);
    overflow: hidden;
}

.projects-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.projects-item-inner {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-item-title {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.projects-item-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

/* Technology Tags - CORRECTED (Center Aligned for project boxes) */
.projects-item-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center; /* وسط چین برای باکس پروژه */
    text-align: center;
}

.projects-tech-tag {
    background: var(--light-gold);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Projects Item Meta - CORRECTED (Role Right Aligned) */
.projects-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.projects-item-role {
    background: var(--light-gold);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto; /* نقش در سمت راست */
}

.projects-item-year {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 10px;
}

/* Projects Summary - Updated (8 stats, 4 per row) */
.projects-summary-section {
    margin-top: 60px;
}

.projects-summary-content {
    text-align: center;
}

.projects-summary-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-weight: 600;
}

.projects-summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-summary-stat {
    background: var(--white);
    padding: 30px 15px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.projects-summary-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.projects-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1;
}

.projects-stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

/* Tech Summary Styles - UPDATED (No background for tech tags) */
.projects-tech-summary {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.tech-summary-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.tech-summary-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-summary-tag {
    color: var(--primary-blue);
    padding: 10px 18px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #90caf9;
}

.tech-summary-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-summary-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .projects-summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .projects-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-section-inner {
        padding: 30px 25px;
    }
    
    .projects-filter {
        padding: 15px;
        gap: 8px;
    }
    
    .projects-filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .projects-item-inner {
        padding: 25px;
    }
    
    .projects-summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .projects-summary-stat {
        padding: 25px 12px;
        min-height: 120px;
    }
    
    .projects-stat-number {
        font-size: 2.2rem;
    }
    
    .projects-stat-label {
        font-size: 0.9rem;
    }
    
    .projects-item-tech {
        gap: 6px;
    }
    
    .projects-tech-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .tech-summary-tags {
        gap: 8px;
    }
    
    .tech-summary-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .projects-page-header {
        margin-bottom: 30px;
    }
    
    .projects-section-inner {
        padding: 25px 20px;
    }
    
    .projects-item-inner {
        padding: 20px;
    }
    
    .projects-summary-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .projects-summary-stat {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .projects-stat-number {
        font-size: 2rem;
    }
    
    .projects-stat-label {
        font-size: 0.85rem;
    }
    
    .projects-summary-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .tech-summary-title {
        font-size: 1.3rem;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-filter-btn {
        width: 100%;
        max-width: 200px;
    }
}
/* Projects FAQ Styles */
.projects-faq-section {
    margin-top: 60px;
    padding: 50px 0;
    background: var(--light-gray);
}

.projects-faq-inner {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.projects-faq-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.projects-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.projects-faq-item {
    border-bottom: 1px solid #e2e8f0;
    background: var(--white);
}

.projects-faq-item:last-child {
    border-bottom: none;
}

.projects-faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px 25px;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.projects-faq-question:hover {
    background: var(--light-gray);
}

.projects-faq-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.projects-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--light-gray);
}

.projects-faq-answer.open {
    max-height: 500px;
}

.projects-faq-answer-content {
    padding: 0 25px 25px;
}

.projects-faq-answer p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: justify;
}

.projects-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Projects CTA Styles */
.projects-cta-section {
    margin-top: 60px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #283593 100%);
    color: var(--white);
    text-align: center;
}

.projects-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.projects-cta-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.projects-cta-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.6;
}

.projects-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.projects-cta-button {
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--accent-gold);
}

.projects-cta-button:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.projects-cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.projects-cta-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Responsive for FAQ & CTA */
@media (max-width: 768px) {
    .projects-faq-inner {
        padding: 30px 25px;
    }
    
    .projects-faq-title {
        font-size: 1.7rem;
    }
    
    .projects-faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .projects-cta-section {
        padding: 50px 0;
    }
    
    .projects-cta-title {
        font-size: 1.8rem;
    }
    
    .projects-cta-description {
        font-size: 1.1rem;
    }
    
    .projects-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .projects-faq-inner {
        padding: 25px 20px;
    }
    
    .projects-faq-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .projects-faq-question {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .projects-cta-title {
        font-size: 1.6rem;
    }
    
    .projects-cta-description {
        font-size: 1rem;
    }
}







/* Consulting Page Styles - Complete & Final Version - FIXED */
.consulting-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #283593 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.consulting-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" fill="%23ffffff" opacity="0.07"><text x="12" y="22" font-family="monospace" font-size="3.5">&lt;div&gt;</text><text x="72" y="32" font-family="monospace" font-size="3">&lt;/&gt;</text><text x="28" y="52" font-family="monospace" font-size="3">&lt;span&gt;</text><text x="68" y="68" font-family="monospace" font-size="3.2">&lt;p&gt;</text><text x="45" y="82" font-family="monospace" font-size="2.8">&lt;a&gt;</text><text x="78" y="18" font-family="monospace" font-size="3">&lt;img&gt;</text><text x="18" y="42" font-family="monospace" font-size="2.6">&lt;ul&gt;</text><text x="58" y="48" font-family="monospace" font-size="2.8">&lt;li&gt;</text><text x="35" y="65" font-family="monospace" font-size="3.5">function</text><text x="62" y="85" font-family="monospace" font-size="3">return</text><text x="8" y="75" font-family="monospace" font-size="2.8">const</text></svg>');
    background-size: 200px 200px;
}

.consulting-hero-content {
    position: relative;
    z-index: 2;
}

.consulting-hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.consulting-hero-title .consulting-highlight {
    color: var(--accent-gold);
    position: relative;
}

.consulting-hero-title .consulting-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.consulting-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Consulting Stats Container - FIXED */
.consulting-stats-container {
    margin-bottom: 40px;
}

.consulting-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* افزایش سایز */
    gap: 20px; /* افزایش فاصله */
    max-width: 800px; /* افزایش عرض */
    margin: 0 auto;
}

.consulting-stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px 15px; /* افزایش پدینگ */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: auto; /* حذف ارتفاع ثابت */
    min-height: 100px; /* حداقل ارتفاع */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consulting-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consulting-stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.consulting-stat-box:hover::before {
    opacity: 1;
}

.consulting-stat-icon {
    font-size: 2.2rem; /* افزایش سایز آیکون */
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.consulting-stat-content {
    position: relative;
    z-index: 2;
}

.consulting-stat-number {
    display: block;
    font-size: 2.2rem; /* افزایش سایز عدد */
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.consulting-stat-label {
    font-size: 1rem; /* افزایش سایز متن */
    font-weight: 600;
    opacity: 0.9;
    display: block;
    line-height: 1.3;
}

/* Consulting CTA Buttons */
.consulting-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.consulting-cta-primary {
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
    height: 48px;
    display: flex;
    align-items: center;
}

.consulting-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.consulting-cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: 48px;
    display: flex;
    align-items: center;
}

.consulting-cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: width 0.3s ease;
    z-index: -1;
}

.consulting-cta-secondary:hover {
    color: var(--primary-blue);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

.consulting-cta-secondary:hover::before {
    width: 100%;
}

.consulting-phone-icon {
    margin-left: 6px;
}

/* کلاس جدید برای عکس پروفایل - FIXED */
.consulting-profile-image {
    width: 80px; /* کاهش سایز */
    height: 80px; /* کاهش سایز */
    border-radius: 50%;
    border: 2px solid var(--accent-gold); /* بوردر نازکتر */
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* بقیه استایل‌ها دقیقاً مثل قبلی باقی می‌مونن */
.consulting-problems {
    padding: 80px 0;
    background: var(--light-gray);
}

.consulting-problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.consulting-problem-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-right: 2px solid #e74c3c;
    transition: all 0.3s ease;
}

.consulting-problem-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.consulting-problem-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0.6;
    filter: grayscale(0.5);
}

.consulting-problem-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.consulting-problem-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Consulting Services Section */
.consulting-services {
    padding: 80px 0;
}

.consulting-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.consulting-service-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent-gold);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.consulting-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03) 0%, rgba(255, 193, 7, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consulting-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.consulting-service-card:hover::before {
    opacity: 1;
}

.consulting-service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.consulting-service-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.consulting-stat-item {
    background: var(--light-gold);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.consulting-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consulting-service-features li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    color: var(--text-dark);
}

.consulting-feature-bullet {
    color: var(--accent-gold);
    margin-left: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Consulting Process Section - UPDATED */
.consulting-process {
    padding: 80px 0;
    background: var(--light-gray);
}

.consulting-process-steps {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
}

.consulting-process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.consulting-step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 25px;
    flex-shrink: 0;
}

.consulting-step-circle {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #283593 100%);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
    position: relative;
    z-index: 2;
}

.consulting-step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-blue), #e3f2fd);
    margin-top: 8px;
    border-radius: 1px;
}

.consulting-process-step:last-child .consulting-step-connector {
    display: none;
}

.consulting-step-content {
    background: var(--white);
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-grow: 1;
    border-right: 3px solid var(--accent-gold);
}

.consulting-step-content h3 {
    color: var(--primary-blue);
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.consulting-step-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Consulting Cases Section - UPDATED */
.consulting-cases {
    padding: 80px 0;
}

.consulting-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.consulting-case-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent-gold);
    text-align: center;
    transition: all 0.3s ease;
}

.consulting-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.consulting-case-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.consulting-case-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

.consulting-case-result {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.consulting-result-badge {
    background: var(--light-gold);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Consulting SEO Content Section - UPDATED */
.consulting-seo-content {
    padding: 80px 0;
    background: var(--light-gray);
}

.consulting-seo-inner {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.consulting-seo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.consulting-seo-text h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.consulting-seo-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.consulting-seo-benefits {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.consulting-seo-benefits li {
    padding: 12px 0;
    padding-right: 40px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.consulting-seo-benefits li:last-child {
    border-bottom: none;
}

.consulting-seo-benefits li::before {
    content: '→';
    position: absolute;
    right: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.consulting-seo-benefits li:hover::before {
    transform: translateY(-50%) translateX(-5px);
}

.consulting-seo-stats {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #283593 100%);
    padding: 30px;
    border-radius: 12px;
    color: var(--white);
}

.consulting-seo-stats h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
}

.consulting-seo-stat-item {
    text-align: center;
    margin-bottom: 25px;
}

.consulting-seo-stat-item:last-child {
    margin-bottom: 0;
}

.consulting-seo-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.consulting-seo-stat-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.consulting-cta-box {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffd54f 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.consulting-cta-box h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.consulting-cta-box p {
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Consulting FAQ Section */
.consulting-faq {
    padding: 80px 0;
}

.consulting-faq-accordion {
    max-width: 900px;
    margin: 50px auto 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.consulting-faq-item {
    border-bottom: 1px solid #e2e8f0;
    background: var(--white);
}

.consulting-faq-item:last-child {
    border-bottom: none;
}

.consulting-faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px 25px;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.consulting-faq-question:hover {
    background: var(--light-gray);
}

.consulting-faq-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.consulting-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--light-gray);
}

.consulting-faq-answer.open {
    max-height: 500px;
}

.consulting-faq-answer-content {
    padding: 0 25px 25px;
}

.consulting-faq-answer p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: justify;
}

.consulting-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Consulting Section Title */
.consulting-section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
    position: relative;
    font-weight: 600;
    padding-bottom: 15px;
}

.consulting-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    left: 10%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 20%,
        var(--accent-gold) 80%,
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Responsive Design for Consulting Page */
@media (max-width: 1024px) {
    .consulting-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .consulting-hero {
        padding: 30px 0;
    }
    
    .consulting-hero-title {
        font-size: 2.2rem;
    }
    
    .consulting-hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
        flex-direction: column;
        gap: 10px;
    }
    
    .consulting-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .consulting-stat-box {
        padding: 20px 15px;
        min-height: 90px;
    }
    
    .consulting-stat-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .consulting-stat-number {
        font-size: 1.8rem;
    }
    
    .consulting-stat-label {
        font-size: 0.9rem;
    }
    
    .consulting-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .consulting-cta-primary,
    .consulting-cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 25px;
        justify-content: center;
    }
    
    .consulting-profile-image {
        width: 70px;
        height: 70px;
    }
    
    /* بقیه مدیا کوئری‌ها مثل قبل */
}

@media (max-width: 480px) {
    .consulting-hero-title {
        font-size: 1.8rem;
    }
    
    .consulting-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .consulting-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .consulting-stat-box {
        padding: 20px 15px;
        min-height: 85px;
    }
    
    .consulting-stat-number {
        font-size: 1.5rem;
    }
    
    .consulting-stat-icon {
        font-size: 1.5rem;
    }
    
    .consulting-profile-image {
        width: 60px;
        height: 60px;
    }
}

.keywords-cloud {
    text-align: center;
    padding: 2rem 0;
    background: #f8f9fa;
    border-radius: 20px;
    margin: 2rem 0;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.keyword-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.keyword-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
}

.section-title-small {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}