/* متغیرهای CSS */
:root {
    --primary-color: #6a11cb;
    --primary-light: #8a3fdc;
    --primary-dark: #5411a0;
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #8a3fdc 100%);
    --secondary-color: #ff9800;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --bg-gradient: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(138, 63, 220, 0.05) 100%);
    --accent-1: #ff3e6c;
    --accent-2: #00bfa6;
    --accent-3: #ff9800;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* استایل‌های عمومی */
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* هدر */
.header {
    background-color: #8e44ad;
    color: white;
    padding: 1% 0;
    font-family: 'Vazir', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease; /* تغییر به all برای اعمال روی همه خصوصیات */
}

.header-scrolled {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: auto;
    padding: 0 2%;
}
.header .logo {
    height: 10%;
    max-height: 80px;
    padding-top: 0;
    padding: botton 0;
        
}
.header nav {
    flex-grow: 1;
    text-align: right;
    margin-right: 2%;
}
.header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.header nav ul li {
    margin-left: 30px; /* افزایش فاصله بین آیتم‌های منو */
}
.header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em; /* کوچکتر کردن سایز فونت */
    font-weight: bold; /* بولد کردن فونت */
    transition: all 0.3s ease;
}

/* اضافه کردن این استایل‌های جدید */
.header-scrolled nav ul li a {
    color: #4A148C !important; /* استفاده از !important برای اطمینان از اعمال رنگ */
    font-size: 1.1em;
    font-weight: bold;
}

.header-scrolled .logo {
    color: #4A148C !important;
}

/* باکس جستجو */
.search-box {
    position: relative;
    width: 200px;
    margin-left: 2%;
}
.search-box input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    padding-right: 35px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* استایل باکس جستجو در حالت اسکرول */
.header-scrolled .search-box input {
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-box button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0;
}
.search-box button img {
    width: 20px;
    height: 20px;
    padding: 0 0;
}


/* بخش هیرو */
.tm-hero {
    position: relative;
    min-height: 75vh;
    background: var(--primary-gradient);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding: 40px 0;
}

.tm-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tm-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.tm-hero-text {
    flex: 1;
    max-width: 550px;
    margin-left: 2rem;
    padding-top: 1rem; /* افزایش فاصله از بالا */
}

.tm-hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, white, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
   
}

.tm-hero-title.typing-effect::after {
    content: "|";
    animation: blink 1s infinite;
    position: absolute;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tm-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tm-hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.tm-hero-buttons {
    display: flex;
    gap: 1rem;
}

.tm-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    gap: 8px;
}

.tm-btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.tm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tm-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.tm-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.tm-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    margin-right: 2rem;
    height: 400px;
    padding-top: 2.5rem;
}

/* مکعب سه بعدی */
.tm-3d-cube-wrapper {
    position: relative;
    margin-top: 2.5rem; /* افزایش فاصله از بالا */
    transform: translateY(20px); /* پایین‌تر آوردن مکعب */
}

.tm-3d-cube-scene {
    width: 250px;
    height: 250px;
    perspective: 1000px;
    margin: 0 auto;
    position: relative;
}

.tm-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.tm-cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.5s;
}

.tm-cube-face i {
    font-size: 60px;
    margin-bottom: 20px;
}

.tm-cube-face span {
    font-size: 18px;
}

.tm-cube-front { transform: translateZ(125px); background: rgba(106, 17, 203, 0.4); }
.tm-cube-back { transform: rotateY(180deg) translateZ(125px); background: rgba(106, 17, 203, 0.4); }
.tm-cube-right { transform: rotateY(90deg) translateZ(125px); background: rgba(138, 63, 220, 0.4); }
.tm-cube-left { transform: rotateY(-90deg) translateZ(125px); background: rgba(138, 63, 220, 0.4); }
.tm-cube-top { transform: rotateX(90deg) translateZ(125px); background: rgba(106, 17, 203, 0.4); }
.tm-cube-bottom { transform: rotateX(-90deg) translateZ(125px); background: rgba(138, 63, 220, 0.4); }

/* المان‌های شناور */
.tm-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tm-floating-element {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: floatElement 3s infinite alternate ease-in-out;
}

.tm-floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.tm-floating-element:nth-child(2) { top: 60%; left: 15%; animation-delay: 0.5s; }
.tm-floating-element:nth-child(3) { top: 30%; left: 85%; animation-delay: 1s; }
.tm-floating-element:nth-child(4) { top: 70%; left: 80%; animation-delay: 1.5s; }
.tm-floating-element:nth-child(5) { top: 45%; left: 70%; animation-delay: 0.8s; }

.tm-floating-element i {
    font-size: 24px;
    margin-bottom: 5px;
}

.tm-floating-element span {
    font-size: 10px;
    font-weight: 600;
}

@keyframes floatElement {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, -20px); }
}

.tm-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.tm-wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* بخش تعریف مدیریت استعداد */
.tm-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tm-section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.tm-section-title .tm-icon {
    margin-left: 10px;
    vertical-align: middle;
}

.tm-section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.tm-definition {
    padding: 6rem 0;
    background-color: #ffffff;
}

.tm-definition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* افزایش فاصله بین کارت‌ها */
    margin-top: 3rem;
}

.tm-definition-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 370px; /* افزایش ارتفاع */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tm-definition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    z-index: -1;
}

.tm-definition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tm-card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.tm-card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.tm-card-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 700; /* بولد کردن عنوان */
}

.tm-card-text {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify; /* تراز کردن متن */
    font-weight: 500; /* کمی بولدتر کردن متن */
}

.tm-card-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.8rem;
    margin-top: auto;
    font-weight: 600; /* بولد کردن منبع */
}

.tm-card-source cite {
    font-style: italic;
}

/* بخش ضرورت و اهمیت مدیریت استعداد */
.tm-importance {
    padding: 6rem 0;
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.tm-diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    transform: skewY(-3deg);
    transform-origin: top left;
    z-index: 0;
}

.tm-importance .container {
    position: relative;
    z-index: 1;
}

.tm-importance-tabs {
    margin-top: 3rem;
}

.tm-importance-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tm-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: none;
    background-color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 120px;
    height: 100px;
    text-align: center;
}

.tm-tab-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
    transition: var(--transition);
}

.tm-tab-btn span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.tm-tab-btn:hover, .tm-tab-btn.active {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tm-tab-btn:hover i, .tm-tab-btn.active i,
.tm-tab-btn:hover span, .tm-tab-btn.active span {
    color: white;
}

.tm-importance-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 400px;
}

.tm-tab-content {
    display: none;
    padding: 0;
}

.tm-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tm-content-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--primary-gradient);
    color: white;
}

.tm-content-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-content-icon i {
    font-size: 28px;
}

.tm-content-title {
    font-size: 1.6rem;
    margin: 0;
}

.tm-content-body {
    padding: 2rem;
}

.tm-content-stat {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tm-stat-chart {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.tm-circular-chart {
    width: 100%;
    height: 100%;
}

.tm-circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.tm-circle {
    fill: none;
    stroke-width: 3.8;
    stroke: var(--primary-color);
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

.tm-percentage {
    fill: var(--primary-color);
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: bold;
}

.tm-stat-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.tm-content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.tm-content-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 600;
}

.tm-importance-summary {
    margin-top: 4rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tm-summary-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.tm-summary-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.tm-quote-source {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tm-quote-source cite {
    font-style: italic;
}

/* بخش روندهای پیش روی مدیریت استعداد */
.tm-trends {
    padding: 6rem 0;
    background-color: #ffffff;
    position: relative;
}

.tm-trends-carousel {
    position: relative;
    margin-top: 3rem;
}

.tm-trends-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tm-trend-slide {
    display: none;
}

.tm-trend-slide.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.tm-trend-card {
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

.tm-trend-visual {
    background: var(--primary-gradient);
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tm-trend-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tm-trend-icon i {
    font-size: 48px;
}

.tm-trend-title {
    font-size: 1.8rem;
    margin: 0;
}

.tm-trend-content {
    padding: 2.5rem;
}

.tm-trend-subtitle {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tm-trend-desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.tm-trend-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.tm-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    flex: 1;
}

.tm-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tm-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tm-trend-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

.tm-trend-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.tm-trend-prev, .tm-trend-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.tm-trend-prev:hover, .tm-trend-next:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tm-trend-dots {
    display: flex;
    gap: 0.5rem;
}

.tm-trend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.tm-trend-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* بخش فرآیند مدیریت استعداد */
.tm-process {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.tm-process-timeline {
    margin-top: 4rem;
    position: relative;
    padding-left: 50px;
}

.tm-process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #9b51e0);
}

.tm-timeline-item {
    position: relative;
    margin-bottom: 4rem;
    transition: var(--transition);
}

.tm-timeline-item:last-child {
    margin-bottom: 0;
}

.tm-timeline-dot {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
}

.tm-timeline-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.tm-timeline-content:hover {
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.15);
    transform: translateY(-5px);
}

.tm-timeline-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.tm-timeline-title i {
    font-size: 1.5rem;
}

.tm-timeline-text {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.tm-timeline-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tm-timeline-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tm-timeline-feature:hover {
    background: var(--primary-gradient);
    color: white;
}

.tm-timeline-feature i {
    color: var(--primary-color);
}

.tm-timeline-feature:hover i {
    color: white;
}

.tm-process-summary {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tm-summary-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-summary-icon i {
    font-size: 2rem;
    color: white;
}

.tm-summary-content {
    flex: 1;
}

.tm-summary-title {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.tm-summary-text {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.tm-source-citation {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* بخش مزایای همکاری با ما */
.tm-benefits {
    padding: 6rem 0;
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.tm-benefits-bg {
    background: var(--bg-gradient);
}

.tm-benefits .container {
    position: relative;
    z-index: 1;
}

.tm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tm-benefit-card {
    height: 350px;
    perspective: 1000px;
    position: relative;
}

.tm-benefit-front, .tm-benefit-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tm-benefit-front {
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: rotateY(0deg);
    text-align: center;
}

.tm-benefit-back {
    background: var(--primary-gradient);
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.tm-benefit-card:hover .tm-benefit-front {
    transform: rotateY(180deg);
}

.tm-benefit-card:hover .tm-benefit-back {
    transform: rotateY(0deg);
}

.tm-benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tm-benefit-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.tm-benefit-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tm-benefit-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

.tm-benefit-text {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
}

.tm-benefit-back .tm-benefit-title {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* بخش درخواست دریافت خدمات */
.tm-service-request {
    padding: 6rem 0;
    background-color: #ffffff;
}

.tm-service-request-content {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.tm-request-form-wrapper {
    flex: 2;
}

.tm-contact-info {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.tm-form-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-right: 4px solid var(--primary-color);
}

.tm-form-description p {
    margin: 0;
    line-height: 1.8;
}

.tm-request-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tm-form-row {
    display: flex;
    gap: 3rem; /* افزایش فاصله بین ستون‌ها */
    margin-bottom: 2rem;
}

.tm-form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.tm-form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tm-form-group input,
.tm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    text-align: right; /* راست چین کردن نوشته‌ها در فیلدها */
}

.tm-form-group input:focus,
.tm-form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.1);
    outline: none;
}

.tm-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px; /* افزایش اندازه دکمه */
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700; /* افزایش ضخامت فونت */
    font-size: 1.1rem; /* افزایش اندازه فونت */
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1.5rem;
}

.tm-submit-btn:hover {
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
    transform: translateY(-3px);
}

.tm-contact-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.tm-contact-desc {
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.9;
}

.tm-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tm-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.tm-contact-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.tm-contact-text p {
    margin: 0;
    opacity: 0.9;
}

/* انیمیشن‌های هگزاگون مزایا */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tm-hexagon-item:nth-child(1) .tm-hexagon {
    animation: pulse 3s infinite;
}

.tm-hexagon-item:nth-child(2) .tm-hexagon {
    animation: pulse 3s infinite;
    animation-delay: 0.5s;
}

.tm-hexagon-item:nth-child(3) .tm-hexagon {
    animation: pulse 3s infinite;
    animation-delay: 1s;
}

.tm-hexagon-item:nth-child(4) .tm-hexagon {
    animation: pulse 3s infinite;
    animation-delay: 1.5s;
}

.tm-hexagon-item:nth-child(5) .tm-hexagon {
    animation: pulse 3s infinite;
    animation-delay: 2s;
}

.tm-hexagon-item:nth-child(6) .tm-hexagon {
    animation: pulse 3s infinite;
    animation-delay: 2.5s;
}

/* بهبود ریسپانسیو بودن صفحه */
@media (max-width: 1200px) {
    .tm-hexagrid-container {
        max-width: 800px;
    }
    
    .tm-service-request-content {
        flex-direction: column;
    }
    
    .tm-contact-info {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .tm-timeline-wrapper {
        padding-left: 30px;
    }
    
    .tm-timeline-dot {
        left: -30px;
    }
    
    .tm-hexagon-item {
        width: 220px;
        height: 255px;
    }
}

@media (max-width: 768px) {
    .tm-hero-content {
        flex-direction: column;
        padding: 3rem 0;
    }
    
    .tm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tm-timeline-item {
        padding-right: 0 !important;
    }
    
    .tm-hexagrid-container {
        gap: 1rem;
    }
    
    .tm-hexagon-item {
        width: 200px;
        height: 230px;
        margin: 15px 10px;
    }
    
    .tm-hexagon-content {
        padding: 30px 15px;
    }
    
    .tm-benefit-icon {
        width: 60px;
        height: 60px;
    }
    
    .tm-benefit-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .tm-hexagon-item {
        width: 180px;
        height: 208px;
    }
    
    .tm-hexagon-content {
        padding: 25px 10px;
    }
    
    .tm-benefit-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .tm-benefit-icon i {
        font-size: 22px;
    }
    
    .tm-benefit-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* انیمیشن‌های تایم‌لاین مدیریت استعداد */
.tm-timeline-item.tm-timeline-item-hidden {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tm-timeline-item.tm-timeline-item-visible {
    opacity: 1;
    transform: translateX(0);
}

.tm-timeline-item:nth-child(even).tm-timeline-item-hidden {
    transform: translateX(-50px);
}

.tm-timeline-dot {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-timeline-item:hover .tm-timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(106, 17, 203, 0.15);
}

.tm-timeline-content {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-timeline-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tm-timeline-item:hover .tm-timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tm-timeline-item:hover .tm-timeline-title,
.tm-timeline-item:hover .tm-timeline-desc,
.tm-timeline-item:hover .tm-timeline-source cite {
    position: relative;
    z-index: 1;
}




@import url('https://fonts.googleapis.com/css2?family=Vazir&display=swap');

body {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    background: #f5f5f5;
}

footer {
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 100px 0 50px;
    bottom: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    align-items: center;
    z-index: 10;
    bottom: 0;
    padding:20px 0; /* فاصله از بالا و پایین */
    position: relative;
}

/* موج متحرک */
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700");

body {
  font-family: Lato, sans-serif;

}

a {
  color:#fff;
  text-decoration:none;
  
}
footer {
  width:100vw;
  position: relative;
  bottom:0px
  margin:0%
  height: 600px%;
}

.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
}



footer div {
  background-color: var(--col-deepblue);
  margin: -5px 0px 0px 0px;
  padding:0px;
  color: #fff;
  text-align:center;
}
svg {
  width:100%;
  overflow:visible;
}

.wave {
  animation: wave 3s linear;
  animation-iteration-count:infinite;
  fill: #8e44ad;
}
.drop {
  fill: #8e44ad;
  xfill: #f732c255;
  animation: drop 3.2s linear infinite normal;
  stroke: var(--col-deepblue);
  stroke-width:0.5;
  transform: translateY(25px) ;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.drop1 {
  
}
.drop2 {
  animation-delay: 3s;
  animation-duration:3s;
}
.drop3 {
  animation-delay: -2s;
  animation-duration:3.4s;
}
.drop4 {
  animation-delay: 1.7s;
}
.drop5 {
  animation-delay: 2.7s;
  animation-duration:3.1s;
}
.drop6 {
  animation-delay: -2.1s;
  animation-duration:3.2s;
}
.gooeff {
    filter: url(#goo);
}
#wave2 {
  animation-duration:5s;
  animation-direction: reverse;
  opacity: .6;
  fill: #8e44ad;
}
#wave3 {
  animation-duration: 7s;
  opacity:.3;
  fill: #8e44ad;
}
@keyframes drop {
  0% {
    transform: translateY(25px); 
  }
  30% {
    transform: translateY(-10px) scale(.1);
  }
  30.001% {
    transform: translateY(25px) scale(1); 
  }
  70% {
    transform: translateY(25px); 
  }
  100% { 
    transform: translateY(-10px) scale(.1);  
  }
}
@keyframes wave {
  to {transform: translateX(-100%);}
}


.contact-info, .message-box {
    width: 45%;
    text-align: right;
    
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    font-size: 20px;
    color: white;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.message-box form {
    display: flex;
    flex-direction: column;
    font-family: 'Vazir', sans-serif;
    font-size: 0.5rem;
    font-style: bold;
}

.message-box textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.3rem;
    font-style: bold;
}

.message-box input, .message-box textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-style: bold;
}

.message-box button {
    background: #FFD700;
    color: black;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-style: bold;
}

/* منوی کشویی در هدر */
.header nav ul li.dropdown {
    position: relative;
}

.header nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 10px;
}

.header nav ul li.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.header nav ul li.dropdown .dropdown-content a {
    color: #333;
    padding: 0.8rem 1.5rem;
    display: block;
    text-align: right;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.header nav ul li.dropdown .dropdown-content a:hover {
    background: #f5eef8;
    color: #8e44ad;
    padding-right: 2rem;
}

/* انیمیشن منوی کشویی */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فلش برای منوی کشویی */
.header nav ul li.dropdown > a::after {
    content: '▼';
    font-size: 0.8em;
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.header nav ul li.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* مثلث بالای منوی کشویی */
.header nav ul li.dropdown .dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* استایل منوی کشویی - اصلاح شده */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    cursor: pointer;
}

.dropdown-btn::after {
    content: '▼';
    font-size: 0.7em;
    margin-right: 5px;
    display: inline-block;
}

.dropdown-content {
    display: none; /* تغییر از visibility به display */
    position: absolute;
    top: calc(100% - 5px); /* کاهش فاصله از بالا */
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1000;
}

/* حذف مثلث بالای منو و اضافه کردن یک پد نامرئی */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* افزایش ناحیه hover */
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333 !important;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-align: right;
    border-radius: 5px;
    margin: 2px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content a:hover {
    background-color: #f5eef8;
    color: #8e44ad !important;
    padding-right: 20px;
}

/* اضافه کردن ناحیه پوشش دهنده برای جلوگیری از بسته شدن منو */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

