@font-face {
    font-family: "iranyekanwebmedium";
    src: url('../fonts/iranyekanwebmedium.woff');
}

@font-face {
    font-family: "iranyekanwebbold";
    src: url('../fonts/iranyekanwebbold.woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "iranyekanwebmedium";
    transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
    --accent: #1E6F5C;
    --accent-dark: #0f5a49;
    --accent-light: #289672;
    --accent-gradient: linear-gradient(135deg, #0f5a49 0%, #1E6F5C 50%, #289672 100%);
}

/* ========== تم لایت (پیش‌فرض) با رنگ سبز جدید ========== */
body.light {
    --bg-gradient-start: #f9fafb;
    --bg-gradient-end: #f0f2f5;
    --bg-header: rgba(255, 255, 255, 0.7);
    --border-header: rgba(255, 255, 255, 0.2);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(255, 255, 255, 0.3);
    --icon-bg: rgba(30, 111, 92, 0.1);
    --border-light: #e2e8f0;
    --btn-secondary-bg: #e2e8f0;
    --btn-secondary-hover: #cbd5e1;
    --btn-secondary-text: #1e293b;
    --nav-link-color: #475569;
    --nav-link-hover: #1e293b;
    --stat-card-bg: rgba(255, 255, 255, 0.4);
    --accent: #1E6F5C;
    --accent-dark: #0f5a49;
    --accent-light: rgba(30, 111, 92, 0.1);
    --accent-gradient: linear-gradient(135deg, #0f5a49 0%, #1E6F5C 50%, #289672 100%);
    --link-color: #1E6F5C;
}

/* ========== تم دارک با رنگ سبز جدید ========== */
body.dark {
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #020617;
    --bg-header: rgba(15, 23, 42, 0.7);
    --border-header: rgba(255, 255, 255, 0.05);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --icon-bg: rgba(40, 150, 114, 0.15);
    --border-light: #1e293b;
    --btn-secondary-bg: #334155;
    --btn-secondary-hover: #475569;
    --btn-secondary-text: #f1f5f9;
    --nav-link-color: #cbd5e1;
    --nav-link-hover: #ffffff;
    --stat-card-bg: rgba(255, 255, 255, 0.05);
    --accent: #289672;
    --accent-dark: #1E6F5C;
    --accent-light: rgba(40, 150, 114, 0.15);
    --accent-gradient: linear-gradient(135deg, #0f5a49 0%, #1E6F5C 50%, #289672 100%);
    --link-color: #289672;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
}

/* ========== انیمیشن‌ها ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatMedium {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes countPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn-down {
    animation: fadeInDown 0.6s ease-out;
}

.float-slow {
    animation: floatSlow 4s ease-in-out infinite;
}

.float-medium {
    animation: floatMedium 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 1s infinite;
}

.count-number {
    animation: countPop 0.4s ease-out;
    display: inline-block;
}

html {
    scroll-behavior: smooth;
}

/* ========== تعریف متغیرهای ریشه ========== */
:root {
    --accent: #1E6F5C;
    --accent-dark: #0f5a49;
    --accent-light: #289672;
    --accent-gradient: linear-gradient(135deg, #0f5a49 0%, #1E6F5C 50%, #289672 100%);
}

/* ========== تم لایت (پیش‌فرض) ========== */
body.light {
    --bg-gradient-start: #f9fafb;
    --bg-gradient-end: #f0f2f5;
    --bg-header: rgba(255, 255, 255, 0.7);
    --border-header: rgba(255, 255, 255, 0.2);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(255, 255, 255, 0.3);
    --border-light: #e2e8f0;
    --btn-secondary-bg: #e2e8f0;
    --btn-secondary-hover: #cbd5e1;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --nav-link-color: #475569;
    --nav-link-hover: #1E6F5C;
}

/* ========== تم دارک (کامل و اصلاح شده) ========== */
body.dark {
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #020617;
    --bg-header: rgba(15, 23, 42, 0.85);
    --border-header: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --border-light: #334155;
    --btn-secondary-bg: #334155;
    --btn-secondary-hover: #475569;
    --bg-primary: #0f172a;
    --bg-secondary: #111827;
    --nav-link-color: #cbd5e1;
    --nav-link-hover: #289672;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* ========== هدر ========== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1280px;
    height: 65px;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-header);
    border-radius: 60px;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 0 30px;
    transition: all 0.3s ease;
}

/* ========== لوگو ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    color: white;
    font-size: 14px;
}

.logo-text {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 800;
}

.logo-text span {
    color: var(--accent);
}

/* ========== منوی دسکتاپ ========== */
.desktop-menu {
    display: flex;
    gap: 28px;
    height: 25px;
    align-items: center;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    height: 25px;
    color: var(--nav-link-color);
    transition: color 0.3s;
    position: relative;
    padding-bottom: 6px;
}

.nav-link:hover {
    color: var(--nav-link-hover);
}

.nav-underline {
    transition: width 0.4s ease;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    margin-top: 6px;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

/* ========== دکمه تغییر تم ========== */
.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--btn-secondary-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-primary);
    font-size: 16px;
}

.theme-btn:hover {
    transform: rotate(15deg) scale(1.05);
    background: var(--accent);
    color: white;
}

/* ========== دکمه درخواست همکاری ========== */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 550;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.desktop-actions {
    display: flex;
    gap: 12px;
}

/* ========== دکمه همبرگری ========== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ========== منوی موبایل ========== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--card-border);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-primary);
    font-size: 18px;
}

.mobile-nav-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.mobile-nav-link {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 14px 0;
    padding-right: 16px;
    transition: all 0.3s;
    border-radius: 16px;
}

.mobile-nav-link:hover {
    color: var(--accent);
    background: var(--accent-light);
    padding-right: 24px;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.mobile-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "iranyekanwebmedium";
    gap: 10px;
    padding: 12px;
    border-radius: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.mobile-theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px;
    border-radius: 30px;
    background: var(--accent);
    color: white;
    transition: all 0.3s;
}

.mobile-btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-spacer {
    height: 100px;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 1024px) {

    .desktop-menu,
    .desktop-actions {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .header {
        padding: 0 20px;
        height: 65px;
        top: 10px;
    }

    .header-spacer {
        height: 85px;
    }
}

/* ========== صفحه درباره ما ========== */
.about-hero {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto 50px;
    text-align: center;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.about-hero h1 span {
    color: var(--accent);
}

.about-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* بخش ماموریت و چشم‌انداز */
.mission-vision {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mission-card,
.vision-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 40px 35px;
    text-align: center;
    transition: all 0.3s;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.mission-icon,
.vision-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mission-icon i,
.vision-icon i {
    font-size: 38px;
    color: var(--accent);
}

.mission-card h3,
.vision-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

.mission-card p,
.vision-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* آمار پیشرفت */
.about-stats {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-about {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-about:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-about h3 {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-about p {
    font-size: 14px;
    color: var(--text-muted);
}

/* داستان PixCore */
.story-section {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.story-content {
    flex: 1.2;
}

.story-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.story-content h2 span {
    color: var(--accent);
}

.story-content p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.story-image {
    flex: 0.8;
    text-align: center;
}

.story-image i {
    font-size: 180px;
    color: var(--accent);
    opacity: 0.7;
}

/* تیم ما */
.team-section {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto 80px;
    text-align: center;
}

.team-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.team-title span {
    color: var(--accent);
}

.team-subtitle {
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.team-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team-avatar i {
    font-size: 55px;
    color: white;
}

.team-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s;
}

.team-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* ارزش‌های ما */
.values-section {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto 80px;
    text-align: center;
}

.values-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.values-title span {
    color: var(--accent);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.value-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px 20px;
    transition: all 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.value-icon {
    font-size: 45px;
    margin-bottom: 15px;
    display: block;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 1024px) {

    .desktop-menu,
    .desktop-actions {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .header {
        padding: 0 20px;
        height: 65px;
    }

    .about-hero h1 {
        font-size: 28px;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== فوتر ========== */
.footer {
    margin-top: 60px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--card-border);
    padding: 50px 0 30px;
}

.footer-container {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 40px;
    }
}

/* برند فوتر */
.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: right;
    }
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-logo-name {
    color: var(--text-primary);
}

.footer-logo-highlight {
    color: var(--accent);
}

.footer-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 24px;
}

/* لینک‌ها */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-links {
        text-align: right;
    }
}

.footer-links-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    text-decoration: none;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.footer-links-column ul li a:hover {
    color: var(--accent);
    padding-right: 5px;
}

/* شبکه‌های اجتماعی */
.footer-social {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-social {
        text-align: left;
    }
}

.footer-social h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.social-icons-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-icons-footer {
        justify-content: flex-start;
    }
}

.social-icon-footer {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon-footer:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* خط جداساز */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 35px 0 25px;
}

/* کپی‌رایت */
.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.copyright-name {
    color: var(--accent);
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .footer-logo {
        font-size: 24px;
    }
}