﻿
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #1a252f;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --font-primary: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Vazir', Arial, sans-serif;
    --transition-speed: 0.4s;
    --section-padding: 6rem 0;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2'), url('fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: black;
    background-color: #f9f9f9;
    overflow-x: hidden;

}
a {
    text-decoration: none !important;
}
/* Particles.js Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease;
    color: white;
}

    .preloader.fade-out {
        opacity: 0;
    }

.loader {
    width: 100px;
    height: 100px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;

}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    background-color: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

    header.scrolled {
        background-color: rgba(26, 37, 47, 0.98);
    }

/* استایل‌های نوبار بهبود یافته */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding-top:15px;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: color var(--transition-speed) ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 0;
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background-color: red;
            transition: width var(--transition-speed) ease;
        }

        .nav-links a:hover::after {
            width: 100%;
            left: 0;
        }

        .nav-links a:hover {
            color: white;
        }

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
}

/* رسپانسیو برای نوبار */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.4s ease;
        gap: 0;
    }

        .nav-links.active {
            right: 0;
            top:62px;
        }

        .nav-links li {
            margin: 1rem 0;
            width: 100%;
            text-align: center;
        }

        .nav-links a {
            padding: 1rem;
            width: 100%;
            justify-content: center;
        }

    .hamburger {
        display: block;
    }
}
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: black;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: black;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.8;
    color: black;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        color:black;
    }

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

    .btn-secondary:hover {
        background-color: white;
        color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 500px;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: #3498db;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

    .social-link:hover {
        color: #0d278b;
        transform: translateY(-3px);
    }

/* About Section */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.btn-more{
    text-align:center;
    margin-top:25px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease;
}

    .about-img:hover {
        transform: scale(1.03);
    }

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align:justify
}

.skills {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1.5s ease;
}

/* Experience Section */
.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
    direction: ltr;
}

    .timeline::before {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--accent-color);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1px;
    }

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 60px; /* افزایش فاصله بین آیتم‌ها */
}

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    text-align: right;
}

.timeline-date {
    position: absolute;
    width: 120px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    border-radius: 20px;
    font-weight: 600;
    top: 10px;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -170px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -170px;
}

.timeline-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-circle {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-circle {
    left: -10px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.timeline-description {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .timeline::before {
        left: 20px; /* تغییر موقعیت خط تایم لاین */
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        margin-bottom: 50px; /* افزایش فاصله بین آیتم‌ها */
    }

        .timeline-item:nth-child(even) {
            left: 0;
        }

    .timeline-content {
        padding-top: 40px; /* فضای بیشتر برای تاریخ */
    }

    .timeline-date {
        width: auto;
        min-width: 120px;
        top: -15px;
        left: 50px !important;
        right: auto !important;
        transform: none;
        padding: 6px 12px;
    }

    .timeline-circle {
        left: 10px !important;
        right: auto !important;
        top: 15px;
    }
}

@media (max-width: 576px) {
    .experience-container {
        padding: 0 1rem;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-date {
        left: 40px !important;
        font-size: 0.9rem;
    }

    .timeline-circle {
        left: 5px !important;
        width: 16px;
        height: 16px;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }
}

/* Projects Section */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease;
}

    .project-card:hover {
        transform: translateY(-10px);
    }

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #555;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

    .project-link:hover {
        color: var(--secondary-color);
    }

/* Testimonials Section */
.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.testimonial-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
}

    .testimonial-quote::before {
        content: '"';
        font-size: 4rem;
        color: rgba(52, 152, 219, 0.1);
        position: absolute;
        top: -20px;
        left: -10px;
        font-family: Georgia, serif;
    }

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.author-position {
    color: #777;
    font-size: 0.9rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

    .slider-dot.active {
        background-color: var(--accent-color);
    }

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

    .contact-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 3px;
        background-color: var(--accent-color);
    }

.contact-details {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-left: 1rem;
    margin-top: 0.3rem;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-value {
    color: #555;
    word-break: break-all;
    direction:ltr;
}

    .contact-value a {
        color: var(--accent-color);
        text-decoration: none;
        transition: color var(--transition-speed) ease;
    }

        .contact-value a:hover {
            color: var(--secondary-color);
            text-decoration: underline;
        }

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent-color);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
}

    .submit-btn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

    .footer-logo img {
        height: 40px;
        margin-left: 10px;
    }

.footer-about {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

    .footer-social-link:hover {
        background-color: var(--accent-color);
        transform: translateY(-3px);
    }

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background-color: var(--accent-color);
    }

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.8rem;
}

    .footer-link a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: color var(--transition-speed) ease;
        display: flex;
        align-items: center;
    }

        .footer-link a:hover {
            color: var(--accent-color);
            padding-right: 5px;
        }

    .footer-link i {
        margin-left: 5px;
        font-size: 0.8rem;
    }

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

    .newsletter-input:focus {
        outline: none;
    }

.newsletter-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

    .newsletter-btn:hover {
        background-color: var(--secondary-color);
    }

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: var(--secondary-color);
        transform: translateY(-5px);
    }

/* Canvas Animation */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Responsive Styles */


@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 50px;
        margin-bottom: 0.5rem;
    }

    .newsletter-btn {
        border-radius: 50px;
        padding: 0.8rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.zoom-in {
    animation: zoomIn 1s ease forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }


/* فونت GG */
@font-face {
    font-family: 'GG';
    src: url('https://cdn.gg/fonts/GG-Regular.woff2') format('woff2'), url('https://cdn.gg/fonts/GG-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GG';
    src: url('https://cdn.gg/fonts/GG-Bold.woff2') format('woff2'), url('https://cdn.gg/fonts/GG-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* استایل‌های پایه GG */
.gg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر GG */
.gg-news-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 3rem 0;
    margin-bottom: 2.5rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gg-header-content {
    text-align: right;
}

.gg-main-title {
    font-family: 'GG', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: bold;
}

    .gg-main-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        right: 0;
        width: 80px;
        height: 4px;
        background-color: #f59e0b;
        border-radius: 2px;
    }

.gg-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

    .gg-breadcrumb a {
        color: #e2e8f0;
        text-decoration: none;
        transition: color 0.3s;
    }

        .gg-breadcrumb a:hover {
            color: #f59e0b;
        }

.gg-divider {
    color: #94a3b8;
}

.gg-current {
    color: #f59e0b;
    font-weight: bold;
}

/* شبکه کارت‌های خبر GG */
.gg-blog-grid {
    padding: 2rem 0;
}

.gg-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.gg-col-lg-4, .gg-col-md-6, .gg-col-sm-6, .gg-col-12 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .gg-col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .gg-col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .gg-col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.gg-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* کارت خبر GG */
.gg-blog-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

    .gg-blog-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

.gg-blog-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gg-img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gg-blog-item:hover .gg-img-fluid {
    transform: scale(1.05);
}

.gg-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gg-blog-item:hover .gg-overlay {
    opacity: 1;
}

.gg-icon-add, .gg-icon-play {
    font-size: 1.25rem;
}

.gg-overlay a {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .gg-overlay a:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.gg-blog-content {
    padding: 1.25rem;
}

.gg-blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

    .gg-blog-title a {
        color: #1e293b;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .gg-blog-title a:hover {
            color: #3b82f6;
        }

.gg-cta {
    margin-top: 1rem;
}

.gg-read-more {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

    .gg-read-more:hover {
        color: #1d4ed8;
    }

/* دکمه GG بیشتر */
.gg-pagination {
    margin-top: 3rem;
}

.gg-text-center {
    text-align: center;
}

.gg-load-more {
    display: inline-block;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

    .gg-load-more:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 8px rgba(59, 130, 246, 0.4);
    }

/* فاصله‌ها */
.gg-ptb-100 {
    padding: 100px 0;
}

/* رسپانسیو GG */
@media (max-width: 768px) {
    .gg-main-title {
        font-size: 2rem;
    }

    .gg-blog-img {
        height: 180px;
    }

    .gg-ptb-100 {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .gg-main-title {
        font-size: 1.8rem;
    }

    .gg-blog-img {
        height: 160px;
    }

    .gg-col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



.nav-links a.active {
    color: var(--accent-color);
}

    .nav-links a.active::after {
        width: 100%;
    }


/* استایل بخش پلتفرم‌ها */
.platforms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.platform-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease;
}

    .platform-card:hover {
        transform: translateY(-10px);
    }

.platform-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.platform-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.platform-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.platform-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

    .platform-link:hover {
        color: var(--secondary-color);
    }


/* استایل‌های اختصاصی برای بخش مقالات */
.custom-articles {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #1a252f;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-articles .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

    .custom-articles .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        width: 80px;
        height: 4px;
        background-color: var(--accent-color);
        border-radius: 2px;
    }

.custom-articles .article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 30px;
    border: none;
}

    .custom-articles .article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

.custom-articles .article-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

    .custom-articles .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.custom-articles .article-card:hover .article-image img {
    transform: scale(1.05);
}

.custom-articles .article-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.custom-articles .article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.custom-articles .article-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: 600;
}

    .custom-articles .article-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .custom-articles .article-title a:hover {
            color: var(--accent-color);
            text-decoration: none;
        }

.custom-articles .article-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.custom-articles .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #777;
}

    .custom-articles .article-meta div {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .custom-articles .article-meta i {
        color: var(--accent-color);
    }

.custom-articles .read-more {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    text-align: center;
    border: none;
}

    .custom-articles .read-more:hover {
        background-color: var(--primary-color);
        transform: translateY(-3px);
        color: white;
    }

/* رسپانسیو */
@media (max-width: 1200px) {
    .custom-articles .article-content {
        padding: 1.2rem;
    }
}

@media (max-width: 991px) {
    .custom-articles .article-card {
        margin-bottom: 20px;
    }

    .custom-articles .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .custom-articles .article-image {
        height: 200px;
    }

    .custom-articles .section-title {
        font-size: 1.6rem;
    }

    .custom-articles .article-content {
        padding: 1rem;
    }
}


.blogdetail-main {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 150px!important;
}

.blogdetail-featuredimg img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blogdetail-meta {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    color: #6c757d;
}

    .blogdetail-meta li {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .blogdetail-meta i {
        color: #4e73df;
    }

.blogdetail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2e4a7e;
}

.blogdetail-summary {
    font-size: 18px;
    color: #4a4a4a;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fc;
    border-right: 4px solid #4e73df;
    border-radius: 5px;
}

.blogdetail-fulltext {
    font-size: 16px;
    text-align: justify;
}

    .blogdetail-fulltext p {
        margin-bottom: 20px;
    }

.blogdetail-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2e4a7e;
}

.blogdetail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blogdetail-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

    .blogdetail-tag:hover {
        background-color: #4e73df;
        color: #fff;
        cursor: default;
    }

.blogdetail-sidebar {
    position: sticky;
    top: 20px;
}

.blogdetail-sidebartitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4e73df;
    color: #2e4a7e;
}

.blogdetail-recentpost {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

    .blogdetail-recentpost:hover {
        transform: translateY(-5px);
    }

.blogdetail-recentpostlink {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px;
    background: #fff;
}

.blogdetail-recentpostimg {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.blogdetail-recentposttitle {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #2e4a7e;
    transition: color 0.3s;
}

.blogdetail-recentpost:hover .blogdetail-recentposttitle {
    color: #4e73df;
}

.blogdetail-contactbtn {
    display: block;
    background-color: #4e73df;
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 30px;
}

    .blogdetail-contactbtn:hover {
        background-color: #2e4a7e;
        color: white;
    }

hr {
    border-top: 1px solid #e3e6f0;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .blogdetail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blogdetail-title {
        font-size: 24px;
    }

    .blogdetail-sidebar {
        margin-top: 40px;
    }
}
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero.jpeg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

    .contact-hero h1 {
        font-size: 2.5rem;
        padding-top:100px
    }
