﻿/* ========================================
   MAZORYA GROUP - MAIN STYLESHEET
   Fully Responsive | RTL Support | Optimized
   ======================================== */

/* ===== RESET & BASE ===== */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: var(--font--content);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  color: var(--color--content-color);
  background-color: var(--color--neutral-light);
  min-height: 100%;
  font-family: var(--font--content);
  font-size: 15px;
  line-height: 24px;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  vertical-align: baseline;
  display: inline-block;
}

audio:not([controls]) {
  height: 0;
  display: none;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

mark {
  color: #000;
  background: #ff0;
}

small {
  font-size: 80%;
}

sub,
sup {
  vertical-align: baseline;
  font-size: 75%;
  line-height: 0;
  position: relative;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
}

svg:not(:root) {
  overflow: hidden;
}

hr {
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/* ===== VARIABLES ===== */
:root {
  /* Fonts */
  --font--content: "Lato", Helvetica, sans-serif;
  --font--title: "Montserrat", sans-serif;
  --font--fa: "Vazirmatn", "IRANSans", "Tahoma", sans-serif;

  /* Colors */
  --color--white: #ffffff;
  --color--content-color: #2e2e3a;
  --color--title-color: #1f1f2e;
  --color--primary-color: #ff6b6b;
  --color--secondary-color: #4ecdc4;
  --color--neutral-light: #f7f7f7;
  --color--black: #000000;
  --color--transparent: transparent;
  --color--white-smoke-color: whitesmoke;
}

/* ===== TYPOGRAPHY ===== */
body {
  background-color: var(--color--white);
  font-family: var(--font--content);
  color: var(--color--content-color);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font--title);
  color: var(--color--title-color);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 56px;
}

h2 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 46px;
}

h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 40px;
}

h4 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 34px;
}

h5 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 30px;
}

h6 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 25px;
}

p {
  font-family: var(--font--content);
  color: var(--color--content-color);
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 30px;
}

li {
  font-family: var(--font--content);
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: inline-block;
  border-radius: 30px;
}

blockquote {
  background-color: var(--color--title-color);
  font-family: var(--font--content);
  color: var(--color--white);
  text-align: center;
  background-position: 50% 25%;
  background-repeat: no-repeat;
  background-size: auto;
  border-left: 5px #e2e2e2;
  border-radius: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 150px 85px 65px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

/* ===== PERSIAN & ARABIC FONTS (RTL) ===== */
html[lang="fa"] body,
html[lang="fa"] p,
html[lang="fa"] a,
html[lang="fa"] span,
html[lang="fa"] li,
html[lang="fa"] .nav-link,
html[lang="fa"] .footer-link,
html[lang="fa"] .service-content,
html[lang="fa"] .project-title,
html[lang="fa"] .blog-title {
  font-family: var(--font--fa);
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] h5,
html[lang="fa"] h6,
html[lang="fa"] .section-title,
html[lang="fa"] .hero-title,
html[lang="fa"] .banner-title,
html[lang="fa"] .feature-card-title {
  font-family: var(--font--fa);
  font-weight: 700;
}

html[lang="ar"] body,
html[lang="ar"] p,
html[lang="ar"] a,
html[lang="ar"] span,
html[lang="ar"] li {
  font-family: var(--font--fa);
}

/* ===== RTL DIRECTION SUPPORT ===== */
body[dir="rtl"],
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .nav-menu,
html[dir="rtl"] .nav-menu {
  direction: rtl;
}

body[dir="rtl"] .nav-link-wrap,
html[dir="rtl"] .nav-link-wrap {
  flex-direction: row-reverse;
}

body[dir="rtl"] .footer-grid,
html[dir="rtl"] .footer-grid {
  direction: rtl;
}

body[dir="rtl"] .feature-area,
html[dir="rtl"] .feature-area {
  direction: rtl;
}

body[dir="rtl"] .count-item-wrap,
html[dir="rtl"] .count-item-wrap {
  flex-direction: row-reverse;
}

body[dir="rtl"] .contact-link-wrap,
html[dir="rtl"] .contact-link-wrap {
  flex-direction: row-reverse;
}

body[dir="rtl"] .about-intro-point-wrap,
html[dir="rtl"] .about-intro-point-wrap {
  flex-direction: row-reverse;
}

body[dir="rtl"] .article-right-card,
html[dir="rtl"] .article-right-card {
  flex-direction: row-reverse;
}

body[dir="rtl"] .lang-dropdown,
html[dir="rtl"] .lang-dropdown {
  margin-left: 10px;
  margin-right: 0;
}

body[dir="rtl"] .lang-menu,
html[dir="rtl"] .lang-menu {
  left: auto;
  right: 0;
}

body[dir="rtl"] .footer-form .footer-form-button,
html[dir="rtl"] .footer-form .footer-form-button {
  right: auto;
  left: 5%;
}

body[dir="rtl"] .project-arrow-icon-wrap,
html[dir="rtl"] .project-arrow-icon-wrap {
  right: auto;
  left: 40px;
}

body[dir="rtl"] .footer-link .footer-link-line,
html[dir="rtl"] .footer-link .footer-link-line {
  margin-left: 8px;
  margin-right: 0;
}

/* ===== CONTAINERS ===== */
.w-layout-blockcontainer,
.container-regular {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.w-layout-grid {
  grid-row-gap: 16px;
  grid-column-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.container-regular {
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.container-large {
  max-width: 1720px;
  padding-left: 20px;
  padding-right: 20px;
}

.align-center {
  text-align: center;
}

/* ===== BUTTONS ===== */
.primary-button {
  border: 1px solid var(--color--title-color);
  background-color: var(--color--title-color);
  font-family: var(--font--content);
  color: var(--color--white);
  text-align: center;
  border-radius: 40px;
  min-width: 175px;
  padding: 14px 35px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.primary-button:hover {
  border-color: var(--color--primary-color);
  background-color: var(--color--primary-color);
  color: var(--color--title-color);
}

.secondary-button {
  border: 1px solid var(--color--title-color);
  background-color: var(--color--white);
  font-family: var(--font--content);
  color: var(--color--title-color);
  text-align: center;
  border-radius: 40px;
  min-width: 175px;
  padding: 14px 35px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.secondary-button:hover {
  background-color: var(--color--title-color);
  color: var(--color--white);
}

.secondary-button.lite-color-hover:hover {
  border-color: var(--color--primary-color);
  background-color: var(--color--primary-color);
  color: var(--color--title-color);
}

.cta-button {
  border: 1px solid var(--color--white);
  background-color: var(--color--white);
  font-family: var(--font--content);
  color: var(--color--title-color);
  text-align: center;
  border-radius: 40px;
  min-width: 175px;
  padding: 14px 35px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.cta-button:hover {
  border-color: var(--color--title-color);
  background-color: var(--color--title-color);
  color: var(--color--white);
}

.nav-button {
  border: 1px solid var(--color--title-color);
  background-color: var(--color--title-color);
  font-family: var(--font--content);
  color: var(--color--white);
  text-align: center;
  border-radius: 40px;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.nav-button:hover {
  border-color: var(--color--primary-color);
  background-color: var(--color--primary-color);
  color: var(--color--title-color);
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: transparent;
  padding-top: 10px;
  padding-bottom: 10px;
}

.navigation-container {
  justify-content: space-between;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.nav-brand-link {
  padding-left: 0;
}

.nav-menu {
  justify-content: space-between;
  align-items: center;
  width: auto;
  display: flex;
}

.nav-link-wrap {
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  display: flex;
  align-items: center;
}

.nav-link {
  background-color: var(--color--white);
  font-family: var(--font--content);
  color: var(--color--content-color);
  border-radius: 30px;
  margin-bottom: 5px;
  padding: 10px 15px;
  font-size: 20px;
  font-weight: 400;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.w--current {
  background-color: var(--color--primary-color);
  color: var(--color--title-color);
}

.nav-button-wrap {
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.lang-btn {
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-family: var(--font--content);
  border: 1px solid var(--color--title-color);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background-color: var(--color--primary-color);
  border-color: var(--color--primary-color);
  color: var(--color--title-color);
}

.flag-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  margin-top: 5px;
}

.lang-menu a {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-menu a:hover {
  background-color: var(--color--primary-color);
  color: var(--color--title-color);
}

.lang-menu.show {
  display: flex;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #2a2a40, var(--color--title-color));
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 10%;
  top: 20px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.35), transparent 70%);
  top: -200px;
  left: -200px;
  filter: blur(80px);
  animation: glowMove 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes glowMove {
  to {
    transform: translate(300px, 200px);
  }
}

.hero-maze {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: mazeShift 40s linear infinite;
  z-index: 2;
}

@keyframes mazeShift {
  to {
    background-position: 500px 500px;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  color: #fff;
}

.hero-title {
  font-family: var(--font--title);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: 24px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(60px);
  animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 18px;
  line-height: 30px;
  opacity: 0;
  color: #c0c0c0;
  transform: translateY(40px);
  animation: subtitleReveal 1s ease forwards;
  animation-delay: 0.4s;
}

@keyframes subtitleReveal {
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.hero-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--color--primary-color), var(--color--secondary-color));
  color: #fff;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.85);
  animation: btnReveal 0.6s ease forwards;
  animation-delay: 0.8s;
}

@keyframes btnReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-character {
  position: absolute;
  right: 10%;
  bottom: 8%;
  width: 850px;
  z-index: 3;
  opacity: 0;
  transform: translateY(80px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-character img {
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-20px);
  }
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTIONS ===== */
.section-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 46px;
}

.text-white {
  color: var(--color--white);
}

.text-dark {
  color: var(--color--title-color);
}

/* ===== FEATURE SECTION - 3 کارت کنار هم ===== */

.feature-section {
  padding: 50px 0;
}

.feature-area {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: nowrap; /* مهم: جلوگیری از رفتن به خط بعد */
}

.feature-card {
  background: #f5f5f5;
  border-radius: 20px;
  padding: 40px 40px;
  position: relative;
  flex: 1; /* هر کارت به اندازه مساوی عرض بگیرد */
  min-width: 0; /* جلوگیری از سرریز شدن */
  transition: all 0.3s ease;
}

.feature-icon-wrap {
  margin-bottom: 20px;
}

.feature-icon-wrap img {
  width: 60px;
  height: 60px;
}

.feature-card-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.feature-card-content {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.feature-pattern-wrap {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0.3;
}
/* ===== COUNT SECTION ===== */
.count-section {
  padding: 80px 0;
  padding-bottom: 100px;
}

.count-grid {
  display: grid;
  grid-column-gap: 60px;
  grid-row-gap: 50px;
  grid-template-columns: 0.7fr 1fr;
  align-items: center;
}

.count-title-wrap {
  margin-bottom: 20px;
}

.count-title-wrap .section-title {
  font-size: 42px;
  line-height: 1.2;
}

.count-content {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.count-area {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.count-wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.count-item-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 200px;
}

.count-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 50%;
}

.count-icon-wrap img {
  width: 40px;
  height: auto;
}

.count-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  color: #1f1f2e;
}

.count-text {
  font-size: 14px;
  color: #666;
  margin: 5px 0 0;
}

.count-button-wrap {
  margin-top: 30px;
}

.count-button-wrap .primary-button {
  padding: 12px 28px;
  font-size: 15px;
}

/* ===== RESPONSIVE ===== */

/* تبلت */
@media (max-width: 991px) {
  .count-section {
    padding: 60px 0 80px;
  }
  
  .count-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .count-title-wrap .section-title {
    font-size: 36px;
    text-align: center;
  }
  
  .count-content {
    text-align: center;
  }
  
  .count-button-wrap {
    text-align: center;
  }
  
  .count-area {
    gap: 30px;
  }
  
  .count-wrap {
    justify-content: center;
    gap: 40px;
  }
  
  .count-item-wrap {
    min-width: 220px;
    justify-content: center;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .count-section {
    padding: 50px 0 60px;
  }
  
  .count-grid {
    gap: 40px;
  }
  
  .count-title-wrap .section-title {
    font-size: 30px;
  }
  
  .count-content {
    font-size: 15px;
  }
  
  .count-area {
    gap: 25px;
  }
  
  .count-wrap {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .count-item-wrap {
    flex-direction: column;
    text-align: center;
    min-width: auto;
    width: 100%;
    gap: 12px;
  }
  
  .count-icon-wrap {
    width: 80px;
    height: 80px;
  }
  
  .count-icon-wrap img {
    width: 45px;
  }
  
  .count-title {
    font-size: 32px;
  }
  
  .count-text {
    font-size: 14px;
  }
  
  .count-button-wrap {
    margin-top: 25px;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .count-section {
    padding: 40px 0 50px;
  }
  
  .count-title-wrap .section-title {
    font-size: 26px;
  }
  
  .count-content {
    font-size: 14px;
  }
  
  .count-icon-wrap {
    width: 70px;
    height: 70px;
  }
  
  .count-icon-wrap img {
    width: 38px;
  }
  
  .count-title {
    font-size: 28px;
  }
  
  .count-text {
    font-size: 13px;
  }
  
  .count-button-wrap .primary-button {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* RTL Support */
html[dir="rtl"] .count-item-wrap {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  html[dir="rtl"] .count-item-wrap {
    flex-direction: column;
  }
}
/* ===== PROJECTS SECTION - کارت‌های هم اندازه ===== */
.project-section {
  padding-top: 100px;
  padding-bottom: 60px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
}

/* کارت پروژه */
.project-card-wrap {
  display: flex;
  flex-direction: column;
  height: 80%; /* پر کردن ارتفاع کامل */
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

/* محفظه تصویر - ارتفاع ثابت */
.project-image-area {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  height: 320px; /* ارتفاع ثابت برای همه تصاویر */
}

.project-image-wrap {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* تصویر را برش می‌زند تا کل فضا پر شود */
  transition: transform 0.5s ease;
}

.project-image:hover {
  transform: scale(1.05);
}

/* overlay روی تصویر */
.project-overlay-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image-area:hover .project-overlay-wrap {
  opacity: 1;
}

.project-arrow-icon-wrap {
  background: var(--color--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px;
}

.project-arrow-icon-wrap img {
  width: 20px;
  height: 20px;
}

/* عنوان پروژه */
.project-title-wrap {
  padding: 5px 15px 55px;
  flex: 1; /* باعث می‌شود فضای باقیمانده را پر کند */
}

.project-title {
  font-family: var(--font--title);
  color: var(--color--title-color);
  font-size: 20px;
  font-weight: 700;
  line-height: 2.3;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
  margin: 0;
}

.project-title:hover {
  color: var(--color--primary-color);
}

/* دکمه View Projects */
.project-button-wrap {
  margin-top: 30px;
  margin-bottom: 80px;
  text-align: left;
}


/* ===== SERVICES SECTION ===== */
.service-section {
  padding-top: 50px;
  padding-bottom: 120px;
}

.service-card {
  background-color: var(--color--white-smoke-color);
  border-radius: 30px;
  margin-bottom: 30px;
  padding: 50px 60px 50px 40px;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.service-card:hover {
  background-color: rgb(31, 31, 46);
}

.service-card:hover .service-title {
  color: #ffffff;
}

.service-card:hover .service-content {
  color: #e0e0e0;
}

.service-card:hover .service-icon-wrap {
  background-color: var(--color--primary-color);
}

.service-card:hover .service-icon {
  filter: brightness(0) invert(1);
  transform: scale(1.05);
}

.service-title-wrap {
  grid-column-gap: 25px;
  grid-row-gap: 25px;
  align-items: center;
  margin-bottom: 25px;
  display: flex;
}

.service-icon-wrap {
  background-color: #e3e3e3;
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  min-width: 80px;
  min-height: 80px;
  display: flex;
  transition: all 0.4s ease-in-out;
}

.service-icon {
  transition: all 0.4s ease-in-out;
}

.service-title {
  font-family: var(--font--title);
  color: var(--color--title-color);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
}

.service-content {
  color: var(--color--title-color);
  margin-bottom: 0;
  transition: all 0.4s ease-in-out;
}

/* ===== BLOG SECTION ===== */
.article-section {
  padding-top: 150px;
  padding-bottom: 110px;
}

.article-grid {
  grid-column-gap: 40px;
  grid-row-gap: 40px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 0.95fr;
}

.article-left-card {
  background-color: #f5f5f5;
  border-radius: 15px;
  padding: 50px 40px;
}

.article-large-image-wrap {
  border-radius: 15px;
  display: flex;
  overflow: hidden;
}

.article-large-image {
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}

.article-large-image:hover {
  transform: scale(1.05);
}

.article-title {
  font-family: var(--font--title);
  color: var(--color--title-color);
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.article-title:hover {
  color: var(--color--primary-color);
  text-decoration: underline;
}

.article-right-card {
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  border-bottom: 1px solid #e0e0e0;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  display: flex;
}

.article-small-image-wrap {
  border-radius: 10px;
  min-width: 180px;
  max-width: 180px;
  min-height: 150px;
  display: flex;
  overflow: hidden;
}

.article-small-image {
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}

.article-small-image:hover {
  transform: scale(1.05);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding-top: 150px;
  padding-bottom: 110px;
}

.faq-section.home-page {
  background-color: var(--color--title-color);
  padding-bottom: 150px;
}

.faq-area {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.faq-whole-wrap {
  grid-column-gap: 45px;
  grid-row-gap: 45px;
  flex-flow: column;
  margin-top: 80px;
  display: flex;
}

.faq-wrap {
  border-bottom: 1px solid #dadada;
  width: 100%;
  display: block;
  cursor: pointer;
}

.faq-question-wrap {
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 45px;
  display: flex;
}

.faq-question {
  font-family: var(--font--title);
  white-space: pre-wrap;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.faq-answer-wrap {
  background-color: transparent;
  width: 100%;
  display: none;
  position: static;
  overflow: hidden;
  transform: translate(0, -25px);
}

.faq-content {
  max-width: 760px;
  margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding-top: 100px;
  padding-bottom: 150px;
}

.contact-grid {
  grid-column-gap: 70px;
  grid-row-gap: 70px;
  grid-template-rows: auto;
  grid-template-columns: 0.6fr 1fr;
}

.contact-link-area {
  grid-column-gap: 40px;
  grid-row-gap: 40px;
  flex-flow: column;
  max-width: 350px;
  margin-top: 35px;
  display: flex;
}

.contact-link-wrap {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  background-color: var(--color--white-smoke-color);
  border-radius: 90px;
  align-items: center;
  padding: 35px 50px;
  display: flex;
}

.contact-icon-wrap {
  background-color: var(--color--white);
  border: 1px solid #e2e2e2;
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  min-width: 70px;
  max-width: 70px;
  min-height: 70px;
  max-height: 70px;
  display: flex;
}

.contact-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;
}

.contact-link {
  font-family: var(--font--content);
  color: var(--color--content-color);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--color--primary-color);
}

.contact-form-block {
  background-color: #f5f5f5;
  border-radius: 30px;
  margin-bottom: 0;
  padding: 40px;
}

.contact-form-wrap {
  grid-column-gap: 40px;
  grid-row-gap: 40px;
  display: flex;
}

.contact-field-wrap {
  flex: 1;
}

.contact-field-label {
  font-family: var(--font--title);
  color: var(--color--title-color);
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.contact-text-field {
  background-color: var(--color--white);
  font-family: var(--font--content);
  color: var(--color--title-color);
  border: 1px solid #d4d4d4;
  border-radius: 15px;
  height: 60px;
  margin-bottom: 40px;
  padding: 15px 20px;
  font-size: 20px;
  font-weight: 400;
  width: 100%;
}

.contact-text-field:focus {
  border-color: var(--color--title-color);
  outline: none;
}

.contact-text-field::placeholder {
  color: #b1b1b1;
}

.contact-text-field.message-text-field {
  height: 200px;
  resize: vertical;
}

.contact-button-wrap {
  flex-flow: column;
  margin-top: 45px;
  display: flex;
}

.contact-success,
.success-message {
  background-color: #dcfce7;
  color: #166534;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
}

.contact-error,
.error-message {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
}


/* ===== CTA SECTION ===== */
.cta-section {
  padding-bottom: 85px;
}

.cta-image-wrap {
  justify-content: center;
  align-items: center;
  height: 450px;
  display: flex;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
}

.cta-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.cta-bg-wrap {
  background-color: rgba(28, 28, 28, 0.6);
  border-radius: 30px;
  position: absolute;
  inset: 0;
}

.cta-title-area {
  z-index: 1;
  position: absolute;
  text-align: center;
  padding: 0 20px;
}

.cta-title-wrap {
  text-align: center;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.cta-button-wrap {
  margin-top: 30px;
}

/* ===== VALUE SECTION ===== */
.value-section {
  background-color: var(--color--title-color);
  padding-top: 150px;
  padding-bottom: 150px;
}

.value-grid {
  grid-column-gap: 80px;
  grid-row-gap: 80px;
  grid-template-columns: 1fr 1fr 1fr;
}

.value-card-wrap {
  text-align: center;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.value-card-title {
  color: var(--color--white);
  margin-top: 15px;
  font-size: 26px;
}

.value-card-content {
  color: var(--color--white);
  margin-bottom: 0;
}

.value-icon {
  filter: invert(1);
  width: 60px;
  height: 60px;
}

/* ===== CLIENT SECTION ===== */
.client-section {
  padding-top: 150px;
}

.client-text-wrap {
  text-align: center;
  max-width: 800px;
  margin-bottom: 100px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ABOUT PAGE ===== */
.about-intro-section {
  padding-top: 150px;
  padding-bottom: 150px;
}

.about-intro-top-grid,
.about-intro-bottom-grid {
  grid-column-gap: 60px;
  grid-row-gap: 60px;
  grid-template-rows: auto;
  grid-template-columns: 0.83fr 1fr;
  align-items: center;
}

.about-intro-subtitle {
  border: 1px solid var(--color--title-color);
  background-color: var(--color--title-color);
  font-family: var(--font--title);
  color: var(--color--white);
  border-radius: 15px;
  padding: 16px 35px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  display: inline-block;
}

.about-intro-title {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 32px;
}

.about-intro-point-area {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  flex-flow: column;
  margin-top: 25px;
  display: flex;
}

.about-intro-point-wrap {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  align-items: center;
  display: flex;
}

.about-intro-icon-wrap {
  background-color: var(--color--title-color);
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  min-width: 25px;
  max-width: 25px;
  min-height: 25px;
  max-height: 25px;
  display: flex;
}

.about-intro-image {
  border-radius: 15px;
  width: 100%;
}

/* ===== HISTORY SECTION ===== */
.history-section {
  padding-top: 150px;
  padding-bottom: 150px;
}

.history-card-area {
  grid-column-gap: 60px;
  grid-row-gap: 60px;
  flex-flow: column;
  align-items: center;
  margin-top: 90px;
  display: flex;
  position: relative;
}

.history-card-wrap {
  grid-column-gap: 120px;
  grid-row-gap: 120px;
  justify-content: space-between;
  align-self: stretch;
  align-items: center;
  display: flex;
}

.history-left-wrap {
  background-color: var(--color--white-smoke-color);
  border-radius: 15px;
  min-width: 43%;
  max-width: 43%;
  padding: 40px 40px 30px;
}

.history-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}

.history-right-wrap {
  flex: 1;
  min-width: 43%;
  max-width: 43%;
}

/* ========================================
   BLOG SECTION - مقالات اخیر
   ======================================== */

.article-section {
  padding: 80px 0;
}

.article-title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.article-title-wrap {
  flex: 1;
}

.article-title-wrap h2 {
  margin: 0;
}

/* گرید اصلی - 2 ستون */
.blog-grid-container {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 40px;
}

/* کارت اصلی (بزرگ) */
.blog-main-card {
  background: #f9f9f9;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-main-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-main-image-link {
  display: block;
  overflow: hidden;
  height: 280px;
}

.blog-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-main-card:hover .blog-main-image {
  transform: scale(1.05);
}

.blog-main-content {
  padding: 25px;
}

.blog-main-title {
  font-size: 22px;
  margin-bottom: 15px;
}

.blog-main-title a {
  color: #1f1f2e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-main-title a:hover {
  color: #ff6b6b;
}

.blog-main-excerpt {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-read-more {
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.blog-read-more:hover {
  gap: 10px;
}

/* لیست کارت‌های کوچک (سمت راست) */
.blog-side-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.blog-side-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e5e5;
}

.blog-side-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-side-image-link {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  overflow: hidden;
  border-radius: 12px;
}

.blog-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-side-image-link:hover .blog-side-image {
  transform: scale(1.05);
}

.blog-side-content {
  flex: 1;
}

.blog-side-title {
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
}

.blog-side-title a {
  color: #1f1f2e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-side-title a:hover {
  color: #ff6b6b;
}

/* ===== RTL SUPPORT ===== */
html[dir="rtl"] .article-title-area {
  flex-direction: row-reverse;
}

html[dir="rtl"] .blog-read-more:hover {
  gap: 10px;
  padding-right: 5px;
}

html[dir="rtl"] .blog-side-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .blog-side-content {
  text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-main-image-link {
    height: 350px;
  }
  
  .blog-side-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .blog-side-item {
    flex-direction: column;
    text-align: center;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .blog-side-image-link {
    width: 100%;
    height: 180px;
  }
  
  html[dir="rtl"] .blog-side-item {
    flex-direction: column;
  }
  
  html[dir="rtl"] .blog-side-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .article-section {
    padding: 60px 0;
  }
  
  .article-title-area {
    flex-direction: column;
    text-align: center;
  }
  
  .blog-main-image-link {
    height: 250px;
  }
  
  .blog-main-title {
    font-size: 20px;
  }
  
  .blog-side-list {
    grid-template-columns: 1fr;
  }
  
  .blog-side-image-link {
    height: 200px;
  }
}
/* ========================================
   PRELOADER (لودر خفن با لوگو)
   ======================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* لودر دایره‌ای چندگانه */
.loader-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(1) {
  border-top-color: #ff6b6b;
  border-left-color: #ff6b6b;
  animation-duration: 1s;
}

.loader-ring:nth-child(2) {
  border-right-color: #4ecdc4;
  border-bottom-color: #4ecdc4;
  width: 85%;
  height: 85%;
  top: 7.5%;
  left: 7.5%;
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  border-top-color: #ffd93d;
  border-right-color: #ffd93d;
  width: 65%;
  height: 65%;
  top: 17.5%;
  left: 17.5%;
  animation-duration: 2s;
}

/* لوگو در مرکز (از فایل واقعی) */
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background: url('/assets/img/1.png') center/contain no-repeat;
  animation: logoGlow 1.5s ease-in-out infinite;
  border-radius: 50%;
}

/* افکت درخشش دور لوگو */
.loader-logo::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(255,107,107,0.3), transparent);
  border-radius: 50%;
  animation: logoPulse 1.5s ease-in-out infinite;
  z-index: -1;
}

/* نام برند */
.loader-brand {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
  opacity: 0.8;
}

.loader-brand span {
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ffd93d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* متن متحرک (MAZORYA) */
.loader-text {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 300;
  text-transform: uppercase;
}

.loader-text span {
  display: inline-block;
  animation: textWave 0.8s ease infinite;
}

.loader-text span:nth-child(1) { animation-delay: 0s; }
.loader-text span:nth-child(2) { animation-delay: 0.07s; }
.loader-text span:nth-child(3) { animation-delay: 0.14s; }
.loader-text span:nth-child(4) { animation-delay: 0.21s; }
.loader-text span:nth-child(5) { animation-delay: 0.28s; }
.loader-text span:nth-child(6) { animation-delay: 0.35s; }
.loader-text span:nth-child(7) { animation-delay: 0.42s; }

/* نوار پیشرفت */
.loader-progress {
  position: absolute;
  bottom: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
}

.progress-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ffd93d);
  border-radius: 3px;
  animation: progressAnim 2s ease forwards;
}

.progress-text {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  margin-top: 8px;
}

/* انیمیشن‌ها */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255,107,107,0.5));
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255,107,107,0.8));
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes logoPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

@keyframes textWave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes progressAnim {
  0% { width: 0%; }
  30% { width: 35%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ===== موبایل ===== */
@media (max-width: 768px) {
  .loader-wrapper {
    width: 110px;
    height: 110px;
  }
  
  .loader-logo {
    width: 45px;
    height: 45px;
  }
  
  .loader-brand {
    font-size: 14px;
    bottom: -50px;
  }
  
  .loader-text {
    font-size: 10px;
    bottom: -80px;
  }
  
  .loader-progress {
    width: 180px;
    bottom: -110px;
  }
}

@media (max-width: 480px) {
  .loader-wrapper {
    width: 90px;
    height: 90px;
  }
  
  .loader-logo {
    width: 38px;
    height: 38px;
  }
  
  .loader-brand {
    font-size: 12px;
    bottom: -45px;
  }
  
  .loader-text {
    font-size: 9px;
    bottom: -70px;
  }
  
  .loader-progress {
    width: 150px;
    bottom: -95px;
  }
}
/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media screen and (max-width: 768px) {
  .container-regular {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .hero-character {
    width: 400px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 50px;
  }
  h2 {
    font-size: 40px;
  }
  h3 {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .nav-menu {
    background-color: var(--color--content-color);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .nav-link {
    color: var(--color--white);
    background-color: transparent;
    display: block;
    text-align: center;
  }
  
  .nav-link:hover,
  .nav-link.w--current {
    background-color: transparent;
    color: var(--color--primary-color);
  }
  
  .nav-link-wrap {
    flex-direction: column;
  }
  
  .nav-button-wrap {
    justify-content: center;
    margin-top: 20px;
  }
  
  .hero-character {
    display: none;
  }
  
  .feature-area {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card {
    max-width: 500px;
    width: 100%;
  }
  
  .count-grid {
    grid-template-columns: 1fr;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-intro-top-grid,
  .about-intro-bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .blog-details-section .blog-title {
    font-size: 36px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 44px;
  }
  h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  p {
    font-size: 18px;
  }
  
  .hero {
    padding: 0 5%;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-btn {
    padding: 12px 28px;
    font-size: 16px;
  }
  
  .primary-button,
  .secondary-button,
  .cta-button {
    padding: 12px 25px;
    font-size: 16px;
    min-width: 150px;
  }
  
  .footer-top-wrap {
    flex-direction: column;
  }
  
  .footer-form {
    flex-direction: column;
  }
  
  .footer-text-field {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .footer-form-button {
    margin-left: 0;
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .copyright-wrap {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-image-wrap {
    height: 350px;
  }
  
  .project-card-wrap {
    margin-bottom: 50px;
  }
  
  .service-card {
    padding: 30px 25px;
  }
  
  .blog-details-section .blog-title {
    font-size: 28px;
  }
  
  .blog-details-section .blog-image-main .blog-image {
    height: 250px;
  }
  
  .contact-link-wrap {
    padding: 20px 25px;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  .history-card-wrap {
    flex-direction: column;
    text-align: center;
  }
  
  .history-left-wrap,
  .history-right-wrap {
    min-width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 30px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  p {
    font-size: 16px;
  }
  
  .container-regular {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-btn {
    margin-top: 25px;
    padding: 10px 20px;
  }
  
  .primary-button,
  .secondary-button,
  .cta-button,
  .nav-button {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 130px;
  }
  
  .feature-card {
    padding: 30px 20px;
  }
  
  .feature-card-title {
    font-size: 24px;
  }
  
  .count-title {
    font-size: 30px;
  }
  
  .count-item-wrap {
    min-width: 100%;
  }
  
  .project-title {
    font-size: 20px;
  }
  
  .service-title {
    font-size: 20px;
  }
  
  .contact-form-block {
    padding: 20px;
  }
  
  .contact-field-label {
    font-size: 18px;
  }
  
  .contact-text-field {
    font-size: 16px;
    height: 50px;
  }
  
  .blog-details-section .blog-title {
    font-size: 24px;
  }
  
  .blog-details-section .blog-image-main .blog-image {
    height: 200px;
  }
  
  .blog-details-section .blog-content .blog-section-title {
    font-size: 22px;
  }
  
  .article-right-card {
    flex-direction: column;
  }
  
  .article-small-image-wrap {
    min-width: 100%;
    max-width: 100%;
  }
  
  .lang-btn span {
    display: none;
  }
  
  .lang-btn {
    padding: 5px 8px;
  }
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .primary-button,
  .secondary-button {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 110px;
  }
}

/* ===== MOBILE MENU BUTTON ===== */
.menu-button {
  display: none;
  background-color: var(--color--title-color);
  color: var(--color--white);
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  border: none;
}

.menu-button:hover {
  background-color: var(--color--primary-color);
}

@media screen and (max-width: 768px) {
  .menu-button {
    display: block;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer-section,
  .cta-section,
  .menu-button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}
/* ========================================
   HEADER - لوگو چپ | منو وسط | دکمه‌ها راست
   ======================================== */

   /* ===== PROFILE DROPDOWN IN HEADER ===== */
/* ========================================
   TIMELINE - GRAPHICAL PROGRESS
   ======================================== */

   /* ===== TIMELINE - MULTIPLE PROJECTS ===== */

.projects-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-timeline-card {
  background: #fff;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.project-timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-timeline-header {
  margin-bottom: 20px;
}

.project-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.project-timeline-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f1f2e;
  margin: 0;
}

.project-progress-badge {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.project-timeline-dates {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  background: #f8f9fa;
  padding: 12px 18px;
  border-radius: 16px;
}

.date-item {
  display: flex;
  gap: 6px;
  font-size: 13px;
}

.date-label {
  color: #6c757d;
}

.date-value {
  font-weight: 600;
  color: #1f1f2e;
}

.date-value.overdue {
  color: #dc3545;
}

/* نقاط عطف در هر پروژه */
.project-timeline-card .timeline-progress-container {
  margin: 20px 0;
}

.project-timeline-card .timeline-progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.project-timeline-card .timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.project-timeline-card .timeline-milestones-container {
  margin-top: 25px;
  overflow-x: auto;
}

.project-timeline-card .milestones-timeline {
  display: flex;
  justify-content: space-between;
  min-width: 500px;
}

.project-timeline-card .timeline-milestone-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.project-timeline-card .milestone-connector {
  position: absolute;
  top: 20px;
  left: 50%;
  right: -50%;
  height: 3px;
  background: #e9ecef;
  z-index: 0;
}

.project-timeline-card .timeline-milestone-item:last-child .milestone-connector {
  display: none;
}

.project-timeline-card .timeline-milestone-item.completed .milestone-connector {
  background: linear-gradient(90deg, #28a745, #28a745);
}

.project-timeline-card .timeline-milestone-item.active .milestone-connector {
  background: linear-gradient(90deg, #28a745, #ff6b6b);
}

.project-timeline-card .milestone-node {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.project-timeline-card .milestone-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.project-timeline-card .timeline-milestone-item.completed .milestone-icon {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}

.project-timeline-card .timeline-milestone-item.active .milestone-icon {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
  animation: pulse 1.5s infinite;
}

.project-timeline-card .milestone-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-timeline-card .milestone-status {
  font-size: 10px;
  font-weight: 500;
}

.project-timeline-card .timeline-milestone-item.completed .milestone-status {
  color: #28a745;
}

.project-timeline-card .timeline-milestone-item.active .milestone-status {
  color: #ff6b6b;
}

/* Responsive */
@media (max-width: 768px) {
  .project-timeline-card {
    padding: 18px;
  }
  
  .project-title-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .project-timeline-dates {
    flex-direction: column;
    gap: 8px;
  }
  
  .milestones-timeline {
    flex-direction: column;
    gap: 20px;
  }
  
  .milestone-connector {
    display: none;
  }
  
  .timeline-milestone-item {
    display: flex;
    gap: 15px;
    align-items: center;
    text-align: left;
  }
  
  .milestone-node {
    margin-bottom: 0;
  }
}
.timeline-header {
  margin-bottom: 30px;
}

.timeline-stats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.timeline-stat {
  flex: 1;
  background: linear-gradient(135deg, #f8f9fa, #fff);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.timeline-stat .stat-label {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 8px;
}

.timeline-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f2e;
}

/* Progress Bar */
.timeline-progress-container {
  position: relative;
  margin: 60px 0 80px;
  padding: 0 20px;
}

.timeline-progress-bar {
  height: 12px;
  background: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ffd93d);
  border-radius: 20px;
  position: relative;
  transition: width 0.5s ease;
}

.progress-tooltip {
  position: absolute;
  right: 0;
  top: -30px;
  background: #ff6b6b;
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transform: translateX(50%);
  white-space: nowrap;
}

/* Milestones */
.timeline-milestones {
  position: relative;
  margin-top: -8px;
  height: 80px;
}

.milestone {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  min-width: 100px;
}

.milestone-dot {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 3px solid #dee2e6;
  border-radius: 50%;
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.milestone.completed .milestone-dot {
  background: #28a745;
  border-color: #28a745;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone.active .milestone-dot {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255,107,107,0.3);
  animation: pulse 1.5s infinite;
}

.milestone-check {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.milestone-content {
  margin-top: 8px;
}

.milestone-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 4px;
}

.milestone-date {
  display: block;
  font-size: 10px;
  color: #adb5bd;
}

.milestone.completed .milestone-label,
.milestone.active .milestone-label {
  color: #ff6b6b;
}

/* Current Phase Card */
.current-phase-info {
  margin: 30px 0;
}

.phase-card {
  display: flex;
  gap: 20px;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.phase-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b20, #4ecdc420);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
}

.phase-details {
  flex: 1;
}

.phase-details h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1f1f2e;
}

.phase-details p {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 15px;
}

.phase-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.phase-progress span:first-child {
  font-size: 12px;
  color: #6c757d;
}

.phase-progress-bar {
  flex: 1;
  height: 6px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.phase-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.phase-percent {
  font-size: 12px;
  font-weight: 600;
  color: #ff6b6b;
}

/* Progress Update */
.progress-update {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 25px;
  margin-top: 30px;
}

.progress-slider-container {
  margin-top: 20px;
}

.progress-slider-container input {
  width: 100%;
  margin: 15px 0;
  height: 6px;
  -webkit-appearance: none;
  background: #e9ecef;
  border-radius: 10px;
  outline: none;
}

.progress-slider-container input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #ff6b6b;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-value {
  text-align: center;
  margin: 10px 0;
}

.btn-update-progress {
  width: 100%;
  padding: 12px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-update-progress:hover {
  background: #e85959;
  transform: translateY(-2px);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,107,107,0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255,107,107,0);
  }
}

/* RTL */
html[dir="rtl"] .milestone {
  transform: translateX(50%);
}

html[dir="rtl"] .progress-tooltip {
  right: auto;
  left: 0;
  transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-stats {
    flex-direction: column;
  }
  
  .timeline-milestones {
    display: none;
  }
  
  .phase-card {
    flex-direction: column;
    text-align: center;
  }
  
  .phase-icon {
    margin: 0 auto;
  }
  
  .phase-progress {
    justify-content: center;
  }
}
/* ===== TIMELINE WITH DATES ===== */

.project-info-card {
  background: linear-gradient(135deg, #f8f9fa, #fff);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.project-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.project-info-header h2 {
  font-size: 22px;
  margin: 0;
}

.project-dates {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.date-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.date-label {
  color: #6c757d;
}

.date-value {
  font-weight: 600;
  color: #1f1f2e;
}

.date-value.overdue {
  color: #dc3545;
}

/* Milestones Timeline */
.timeline-milestones-container {
  margin: 40px 0;
  padding: 20px 0;
  overflow-x: auto;
}

.milestones-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-width: 600px;
  padding: 20px 0;
}

.timeline-milestone-item {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 120px;
}

.milestone-connector {
  position: absolute;
  top: 20px;
  left: 50%;
  right: -50%;
  height: 3px;
  background: #e9ecef;
  z-index: 0;
}

.timeline-milestone-item:last-child .milestone-connector {
  display: none;
}

.timeline-milestone-item.completed .milestone-connector {
  background: linear-gradient(90deg, #28a745, #28a745);
}

.timeline-milestone-item.active .milestone-connector {
  background: linear-gradient(90deg, #28a745, #ff6b6b);
}

.milestone-node {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.milestone-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.timeline-milestone-item.completed .milestone-icon {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}

.timeline-milestone-item.active .milestone-icon {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
  animation: pulse 1.5s infinite;
}

.milestone-info {
  text-align: center;
}

.milestone-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.milestone-date {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 5px;
}

.milestone-status {
  font-size: 11px;
  font-weight: 500;
}

.timeline-milestone-item.completed .milestone-status {
  color: #28a745;
}

.timeline-milestone-item.active .milestone-status {
  color: #ff6b6b;
}

/* Responsive */
@media (max-width: 768px) {
  .project-dates {
    flex-direction: column;
    gap: 10px;
  }
  
  .milestones-timeline {
    flex-direction: column;
    gap: 25px;
  }
  
  .milestone-connector {
    display: none;
  }
  
  .timeline-milestone-item {
    text-align: left;
    display: flex;
    gap: 15px;
    align-items: center;
  }
  
  .milestone-node {
    margin-bottom: 0;
  }
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.profile-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-btn span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  min-width: 200px;
  margin-top: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.profile-menu.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-menu a,
.profile-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: #f5f5f5;
}

.profile-menu .divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

.logout-item {
  color: #dc3545 !important;
}

.logout-item:hover {
  background: #fee2e2 !important;
}

/* Mobile Profile Button */
.profile-btn-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f0f0;
  border-radius: 50px;
  padding: 6px 16px 6px 6px;
  text-decoration: none;
}

.profile-btn-mobile .profile-avatar-small {
  width: 30px;
  height: 30px;
}

.profile-btn-mobile span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* RTL */
html[dir="rtl"] .profile-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .profile-btn {
  flex-direction: row-reverse;
}

html[dir="rtl"] .profile-btn-mobile {
  flex-direction: row-reverse;
}
.site-header {
  background: #ffffff;
  padding: 15px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* ===== بخش 1: لوگو (چپ) ===== */
.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo img:hover {
  transform: scale(1.02);
}

/* ===== بخش 2: منوی اصلی (وسط) ===== */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.header-menu li a {
  color: #1f1f2e;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 40px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.header-menu li a:hover {
  background: #ff6b6b;
  color: #fff;
}

/* ===== بخش 3: دکمه‌ها (راست) ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-btn {
  background: #1f1f2e;
  color: white;
  padding: 8px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.header-btn:hover {
  background: #ff6b6b;
  color: #fff;
  transform: translateY(-2px);
}

/* منوی زبان */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1px solid #1f1f2e;
  padding: 8px 14px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  min-width: 130px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 1001;
  overflow: hidden;
}

.lang-menu.show {
  display: flex;
  flex-direction: column;
}

.lang-menu a {
  padding: 10px 16px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-menu a:hover {
  background: #ff6b6b;
  color: #fff;
}

/* ===== دکمه همبرگر (موبایل) ===== */
.header-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  z-index: 1001;
}

.header-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1f1f2e;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.header-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== RTL SUPPORT (برای فارسی و عربی) ===== */
html[dir="rtl"] .header-container {
  flex-direction: row;
}

html[dir="rtl"] .lang-menu {
  left: auto;
  right: 0;
}
/* ===== دکمه‌های موبایل (در منوی کشویی) ===== */
.header-actions-mobile {
  display: none;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  width: 100%;
}

@media (max-width: 768px) {
  .header-actions-mobile {
    display: flex;
  }
  
  .header-actions {
    display: none;
  }
}

/* RTL برای موبایل */
html[dir="rtl"] .header-actions-mobile {
  direction: rtl;
}

html[dir="rtl"] .header-mobile-toggle span {
  background: #1f1f2e;
}

/* ===== RESPONSIVE (موبایل و تبلت) ===== */
@media (max-width: 991px) {
  .header-container {
    padding: 0 15px;
  }
  
  .header-logo img {
    height: 45px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 0;
    position: fixed;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  }
  
  /* دکمه همبرگر نمایش داده شود */
  .header-mobile-toggle {
    display: block;
  }
  
  /* منوی اصلی مخفی و کشویی */
  .header-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 30px;
    box-shadow: 2px 0 30px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .header-nav.active {
    left: 0;
  }
  
  /* منو در حالت RTL */
  html[dir="rtl"] .header-nav {
    left: auto;
    right: -100%;
  }
  
  html[dir="rtl"] .header-nav.active {
    left: auto;
    right: 0;
  }
  
  /* لینک‌های منو در موبایل */
  .header-menu {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .header-menu li a {
    display: block;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    white-space: normal;
  }
  
  /* دکمه‌ها در منوی موبایل */
  .header-actions {
    margin-top: 30px;
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .lang-btn,
  .header-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  /* منوی زبان در موبایل */
  .lang-menu {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }
  
  .lang-dropdown {
    width: 100%;
  }
  
  .lang-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== موبایل کوچک (تا 480px) ===== */
@media (max-width: 480px) {
  .header-logo img {
    height: 40px;
  }
  
  .header-nav {
    width: 85%;
    max-width: 280px;
  }
  
  .header-menu li a {
    font-size: 15px;
    padding: 10px 12px;
  }
  
  .lang-btn,
  .header-btn {
    font-size: 13px;
    padding: 10px;
  }
}
/* ===== تنظیمات اضافی برای موبایل ===== */

@media (max-width: 768px) {
  /* دکمه‌ها در منوی موبایل */
  .header-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
  
  .header-actions-mobile .lang-dropdown {
    width: 100%;
  }
  
  .header-actions-mobile .lang-btn {
    width: 100%;
    justify-content: center;
    background: transparent;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 14px;
  }
  
  .header-actions-mobile .lang-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    border-radius: 12px;
  }
  
  .header-actions-mobile .lang-menu a {
    padding: 12px 16px;
    text-align: center;
  }
  
  .header-actions-mobile .header-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    background: #1f1f2e;
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
  }
  
  .header-actions-mobile .header-btn:hover {
    background: #ff6b6b;
  }
  
  /* مخفی کردن دکمه‌های دسکتاپ در موبایل */
  .header-actions {
    display: none;
  }
}

/* RTL برای موبایل */
html[dir="rtl"] .header-actions-mobile .lang-btn {
  flex-direction: row-reverse;
}
/* ===== استایل آیکون‌های زبان ===== */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #1f1f2e;
  padding: 8px 14px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-icon {
  width: 16px;
  height: 16px;
  stroke: #1f1f2e;
}

.lang-arrow {
  width: 12px;
  height: 12px;
  stroke: #1f1f2e;
  transition: transform 0.3s ease;
}

.lang-btn:hover .lang-icon,
.lang-btn:hover .lang-arrow {
  stroke: #fff;
}

.lang-btn:hover {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

/* چرخش فلش وقتی منو باز است */
.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

/* RTL */
html[dir="rtl"] .lang-btn {
  flex-direction: row-reverse;
}
/* ========================================
   FOOTER STYLES - 3 ROWS
   ======================================== */

.footer {
  background: #ffffff;
  padding: 60px 0 30px;
  border-top: 1px solid #e5e5e5;
}

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

/* ===== ردیف 1 ===== */
.footer-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 50px;
}

.footer-logo-box {
  flex: 1;
}

.footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 15px;
}

.footer-logo-box p {
  color: #666;
  font-size: 14px;
  max-width: 350px;
}

.footer-form-box {
  flex: 1;
  min-width: 350px;
}

.footer-form-box h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1f1f2e;
}

.footer-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-form input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 14px;
  background: #f5f5f5;
}

.footer-form input:focus {
  outline: none;
  border-color: #ff6b6b;
}

.footer-form button {
  background: #1f1f2e;
  color: white;
  border: none;
  padding: 7px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 400;
}

.footer-form button:hover {
  background: #ff6b6b;
}

/* ===== ردیف 2 ===== */
.footer-row-2 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e5e5e5;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-col h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1f1f2e;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 2px;
}

.footer-col ul li a {
  color: #666;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ff6b6b;
}

/* ===== ردیف 3 ===== */
.footer-row-3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #ff6b6b;
  transform: translateY(-3px);
}

.footer-social a img {
  width: 16px;
  opacity: 0.6;
}

.footer-social a:hover img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.footer-copyright {
  color: #999;
  font-size: 12px;
  margin: 0;
}

/* ===== پیام‌ها ===== */
.footer-success {
  background: #4caf50;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 13px;
}

.footer-error {
  background: #f44336;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 13px;
}

/* ===== RTL ===== */
html[dir="rtl"] .footer-row-1 {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-logo-box {
  text-align: right;
}

html[dir="rtl"] .footer-form-box {
  text-align: left;
}

html[dir="rtl"] .footer-form {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-form input {
  text-align: right;
}

html[dir="rtl"] .footer-row-2 {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-col {
  text-align: right;
}

html[dir="rtl"] .footer-row-3 {
  flex-direction: row-reverse;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-row-1 {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo-box {
    text-align: center;
  }
  
  .footer-logo-box p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-form-box {
    width: 100%;
    min-width: auto;
    text-align: center;
  }
  
  .footer-form {
    flex-direction: column;
  }
  
  .footer-form input,
  .footer-form button {
    width: 100%;
  }
  
  .footer-row-2 {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-col {
    text-align: center;
  }
  
  .footer-row-3 {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  /* RTL Responsive */
  html[dir="rtl"] .footer-row-1 {
    flex-direction: column;
  }
  
  html[dir="rtl"] .footer-logo-box {
    text-align: center;
  }
  
  html[dir="rtl"] .footer-form-box {
    text-align: center;
  }
  
  html[dir="rtl"] .footer-form {
    flex-direction: column;
  }
  
  html[dir="rtl"] .footer-row-2 {
    flex-direction: column;
  }
  
  html[dir="rtl"] .footer-col {
    text-align: center;
  }
  
  html[dir="rtl"] .footer-row-3 {
    flex-direction: column;
  }
}
/* ========================================
   RTL FOOTER STYLES
   ======================================== */

/* ردیف 1: لوگو به راست، فرم به چپ */
.rtl-row1 {
  flex-direction: row-reverse !important;
}

.rtl-logo {
  order: 2;
  text-align: right !important;
}

.rtl-form-box {
  order: 1;
  text-align: right !important;
}

.rtl-form {
  flex-direction: row !important;
}

/* ردیف 2: تماس به راست، services به چپ */
.rtl-row2 {
  flex-direction: row-reverse !important;
}

.rtl-contact {
  order: 3;
  text-align: right !important;
}

.rtl-pages {
  order: 2;
  text-align: right !important;
}

.rtl-services {
  order: 1;
  text-align: right !important;
}

/* ردیف 3: سوشال به چپ، کپی‌رایت به راست */
.rtl-row3 {
  flex-direction: row-reverse !important;
}

.rtl-social {
  order: 2;
  justify-content: flex-end !important;
}

.rtl-copyright {
  order: 1;
  text-align: right !important;
}

/* ===== RESPONSIVE RTL ===== */
@media (max-width: 768px) {
  .rtl-row1 {
    flex-direction: column !important;
  }
  
  .rtl-logo,
  .rtl-form-box {
    order: unset;
    text-align: center !important;
  }
  
  .rtl-row2 {
    flex-direction: column !important;
  }
  
  .rtl-contact,
  .rtl-pages,
  .rtl-services {
    text-align: center !important;
  }
  
  .rtl-row3 {
    flex-direction: column !important;
  }
  
  .rtl-social,
  .rtl-copyright {
    text-align: center !important;
    justify-content: center !important;
  }
}
/* ========================================
   SERVICES SECTION (بخش خدمات)
   ======================================== */

.service-post-section {
  background-color: var(--color--title-color);
  padding: 100px 0 70px;
}

.service-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 70px;
}

.service-post-title-wrap {
  max-width: 650px;
}

.service-post-title-wrap h2 {
  color: #fff;
  margin: 0;
}

.service-post-card-area {
  margin-top: 20px;
}

.service-post-collection-item {
  padding: 0 15px;
  margin-bottom: 30px;
}

.service-post-card {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 40px 40px 45px;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.service-post-card:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-5px);
}

.service-post-card:hover .service-card-title {
  color: var(--color--title-color);
}

.service-post-card:hover .service-card-content {
  color: #666;
}

.service-post-card:hover .service-post-icon-wrap {
  background-color: var(--color--primary-color);
}

.service-post-card:hover .service-post-icon {
  filter: brightness(0) invert(1);
}

.service-top-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-post-icon-wrap {
  background-color: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-post-icon {
  width: 35px;
  height: auto;
  transition: all 0.3s ease;
}

.service-card-title-wrap {
  flex: 1;
}

.service-card-title {
  font-family: var(--font--title);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.service-card-title:hover {
  color: var(--color--primary-color);
}

.service-card-title-line-wrap {
  width: 0;
  height: 2px;
  background-color: var(--color--primary-color);
  margin-top: 8px;
  transition: width 0.3s ease;
}

.service-post-card:hover .service-card-title-line-wrap {
  width: 50px;
}

.service-card-content {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

/* دکمه View More */
.secondary-button.lite-color-hover {
  display: inline-block;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  padding: 12px 30px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.secondary-button.lite-color-hover:hover {
  background: var(--color--primary-color);
  border-color: var(--color--primary-color);
  color: var(--color--title-color);
}

/* ===== RTL Support برای Services ===== */
html[dir="rtl"] .service-title-area {
  flex-direction: row-reverse;
}

html[dir="rtl"] .service-top-wrap {
  flex-direction: row-reverse;
}

html[dir="rtl"] .service-card-title-line-wrap {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .service-post-card:hover .service-card-title-line-wrap {
  width: 50px;
}
/* اطمینان از اینکه هر کارت 50% عرض داشته باشد */
.service-post-collection-item {
  width: 50%;
  float: left;
  padding: 0 15px;
  margin-bottom: 30px;
}

/* پاک کردن float بعد از هر ردیف */
.w-row:after {
  content: "";
  display: table;
  clear: both;
}

/* RTL Support */
html[dir="rtl"] .service-post-collection-item {
  float: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .service-post-section {
    padding: 80px 0 50px;
  }
  
  .service-title-area {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .service-post-title-wrap {
    max-width: 100%;
  }
  
  .service-post-collection-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .service-post-section {
    padding: 60px 0 40px;
  }
  
  .service-title-area {
    margin-bottom: 40px;
  }
  
  .service-post-card {
    padding: 30px 25px;
  }
  
  .service-top-wrap {
    flex-direction: column;
    text-align: center;
  }
  
  .service-card-title-wrap {
    text-align: center;
  }
  
  .service-card-title-line-wrap {
    margin-left: auto;
    margin-right: auto;
  }
  
  .service-post-icon-wrap {
    width: 60px;
    height: 60px;
  }
  
  .service-post-icon {
    width: 30px;
  }
  
  .service-card-title {
    font-size: 20px;
  }
  
  .service-card-content {
    font-size: 14px;
    text-align: center;
  }
  
  .secondary-button.lite-color-hover {
    padding: 10px 25px;
    font-size: 14px;
  }
  
  html[dir="rtl"] .service-title-area {
    align-items: center;
  }
  
  html[dir="rtl"] .service-top-wrap {
    flex-direction: column;
  }
}
/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* کلاس‌های آماده برای اسکرول */
.animate-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-ready.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* تاخیرهای متفاوت برای کارت‌ها */
.feature-card.animate-ready.animate-in {
  transition-delay: 0.1s;
}

.service-post-card.animate-ready.animate-in {
  transition-delay: 0.15s;
}

.project-card-wrap.animate-ready.animate-in {
  transition-delay: 0.2s;
}

.blog-main-card.animate-ready.animate-in {
  transition-delay: 0.1s;
}

/* Hero Character Float */
.hero-character {
  animation: float 6s ease-in-out infinite;
}

/* CTA Button Pulse */
.cta-button {
  animation: pulse 2s ease-in-out infinite;
}

.cta-button:hover {
  animation: none;
}
/* ========================================
   ABOUT US PAGE - COMPLETE STYLES
   ======================================== */

/* ===== Banner Section ===== */
.banner-section {
  padding: 100px 0 60px;
}

.banner-title-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.banner-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.banner-image-wrap {
  margin-top: 50px;
  margin-bottom: 60px;
}

.banner-image {
  width: 100%;
  border-radius: 20px;
  height: auto;
}

/* ===== Count Cards (آمارها) ===== */
.count-card-area {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0 60px;
}

.count-card-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5f5f5;
  padding: 25px 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.count-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.count-icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.count-icon-wrap img {
  width: 35px;
}

.count-title {
  font-size: 32px;
  margin: 0;
  color: #1f1f2e;
}

.count-text {
  font-size: 14px;
  color: #666;
  margin: 5px 0 0;
}

/* ===== Mission & Vision Section ===== */
.about-intro-section {
  padding: 80px 0;
}

.about-intro-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about-intro-top-grid,
.about-intro-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-image-wrap {
  overflow: hidden;
  border-radius: 20px;
}

.about-intro-image {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-intro-image:hover {
  transform: scale(1.03);
}

.about-intro-subtitle {
  display: inline-block;
  background: #1f1f2e;
  color: #fff;
  padding: 8px 25px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-intro-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-intro-point-area {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-intro-point-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-intro-icon-wrap {
  width: 28px;
  height: 28px;
  background: #ff6b6b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-intro-icon-wrap img {
  width: 14px;
}

/* ===== Values Section (6 کارت) ===== */
.value-section {
  background: #1f1f2e;
  padding: 100px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.value-content-wrap {
  margin-top: 20px;
}

.value-grid-wrap {
  margin-top: 60px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-card-wrap {
  text-align: center;
  background: rgba(255,255,255,0.08);
  padding: 40px 25px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.value-card-wrap:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.12);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.value-card-title {
  color: #fff;
  font-size: 22px;
  margin-bottom: 15px;
}

.value-card-content {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== History Section (تاریخچه) ===== */
.history-section {
  padding: 100px 0;
}

.history-card-area {
  position: relative;
  margin-top: 60px;
}

.history-card-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.history-left-wrap,
.history-right-wrap {
  flex: 1;
  background: #f5f5f5;
  padding: 30px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.history-left-wrap:hover,
.history-right-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.history-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #1f1f2e;
}

.history-left-wrap p,
.history-right-wrap p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.history-right-wrap .section-title {
  font-size: 36px;
  margin: 0;
  color: #ff6b6b;
}

.history-title-wrap {
  text-align: right;
}

/* خط عمودی وسط */
.history-line-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.history-step-wrap {
  width: 45px;
  height: 45px;
  background: #fff;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ff6b6b;
  background: #fff;
  z-index: 2;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 0 0 80px;
}

.cta-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
}

.cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.cta-title-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.cta-title-wrap {
  max-width: 600px;
  padding: 0 20px;
}

.cta-button-wrap {
  margin-top: 25px;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: #1f1f2e;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #ff6b6b;
  color: #fff;
  transform: translateY(-3px);
}

/* ===== RTL Support ===== */
html[dir="rtl"] .about-intro-point-wrap {
  flex-direction: row-reverse;
}

html[dir="rtl"] .history-title-wrap {
  text-align: left;
}

html[dir="rtl"] .history-card-wrap {
  flex-direction: row-reverse;
}

html[dir="rtl"] .history-line-wrap {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about-intro-top-grid,
  .about-intro-bottom-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .history-card-wrap {
    flex-direction: column;
    text-align: center;
  }
  
  .history-line-wrap {
    display: none;
  }
  
  .history-right-wrap .section-title {
    text-align: center;
  }
  
  .count-card-area {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .banner-section {
    padding: 60px 0 40px;
  }
  
  .banner-title {
    font-size: 32px;
  }
  
  .count-card-wrap {
    min-width: calc(50% - 15px);
  }
  
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  .about-intro-title {
    font-size: 24px;
  }
  
  .cta-image-wrap {
    height: 300px;
  }
  
  .cta-title-wrap h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .count-card-wrap {
    min-width: 100%;
  }
  
  .count-card-wrap {
    justify-content: center;
  }
}
/* ========================================
   SERVICES PAGE
   ======================================== */

/* Banner */
.services-banner {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

/* Services Grid */
.services-section {
  padding: 60px 0 100px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* کارت خدمات */
.service-card-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.service-card-inner {
  padding: 35px 30px;
  cursor: pointer;
}

.service-card-icon {
  width: 70px;
  height: 70px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card-item:hover .service-card-icon {
  background: #ff6b6b;
}

.service-card-icon img {
  width: 35px;
  transition: all 0.3s ease;
}

.service-card-item:hover .service-card-icon img {
  filter: brightness(0) invert(1);
}

.service-card-title {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card-title a {
  color: #1f1f2e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-card-title a:hover,
.service-card-item:hover .service-card-title a {
  color: #ff6b6b;
}

.service-card-description {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card-link {
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.service-card-link:hover {
  gap: 10px;
}

/* No services */
.no-services {
  text-align: center;
  padding: 60px;
  grid-column: span 2;
}

/* ===== RTL Support ===== */
html[dir="rtl"] .service-card-link {
  flex-direction: row-reverse;
}

html[dir="rtl"] .service-card-link:hover {
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .services-banner {
    padding: 100px 0 40px;
  }
}

@media (max-width: 768px) {
  .services-banner {
    padding: 80px 0 30px;
  }
  
  .service-card-inner {
    padding: 25px 20px;
  }
  
  .service-card-title {
    font-size: 20px;
  }
  
  .service-card-description {
    font-size: 14px;
  }
}
/* ========================================
   SERVICE DETAILS PAGE
   ======================================== */

.service-details-section {
  padding: 120px 0 60px;
}

.service-details-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-details-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #1f1f2e;
}

/* Images */
.service-details-image-main,
.service-details-image-secondary {
  margin: 30px 0;
  border-radius: 20px;
  overflow: hidden;
}

.service-details-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.service-details-image:hover {
  transform: scale(1.02);
}

/* Description */
.service-details-description {
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
}

.service-details-description p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}

/* Content Blocks */
.service-details-content {
  max-width: 900px;
  margin: 50px auto 0;
}

.service-details-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.service-details-block:last-child {
  border-bottom: none;
}

.service-details-block-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1f1f2e;
}

.service-details-block-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}

/* ===== RTL Support ===== */
html[dir="rtl"] .service-details-block-title {
  text-align: right;
}

html[dir="rtl"] .service-details-description p {
  text-align: right;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .service-details-section {
    padding: 100px 0 50px;
  }
  
  .service-details-title {
    font-size: 36px;
  }
  
  .service-details-description p {
    font-size: 16px;
  }
  
  .service-details-block-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .service-details-section {
    padding: 80px 0 40px;
  }
  
  .service-details-title {
    font-size: 28px;
  }
  
  .service-details-description {
    margin: 20px auto;
  }
  
  .service-details-description p {
    font-size: 15px;
  }
  
  .service-details-block-title {
    font-size: 22px;
  }
  
  .service-details-block-content p {
    font-size: 14px;
  }
}
/* ===== SERVICE DETAILS ANIMATIONS ===== */

/* انیمیشن ورود تصاویر */
@keyframes imageReveal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* انیمیشن برای بخش‌ها */
@keyframes blockFadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* کلاس‌های کاربردی */
.service-details-image-main {
  animation: imageReveal 0.7s ease 0.2s forwards;
  opacity: 0;
}

.service-details-block {
  animation: blockFadeUp 0.5s ease forwards;
  opacity: 0;
}

/* تاخیرهای متفاوت برای هر بخش */
.service-details-block:nth-child(1) { animation-delay: 0.1s; }
.service-details-block:nth-child(2) { animation-delay: 0.2s; }
.service-details-block:nth-child(3) { animation-delay: 0.3s; }
.service-details-block:nth-child(4) { animation-delay: 0.4s; }
.service-details-block:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   PROJECTS PAGE
   ======================================== */

.projects-banner {
  padding: 180px 0 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

/* Projects Grid */
.projects-list-section {
  padding: 60px 0 100px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

/* Project Card */
.project-collection-item {
  width: 100%;
}

.project-card-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.project-card-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.project-image-area {
  position: relative;
  overflow: hidden;
  height: 350px;
}

.project-image-wrap {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-wrap:hover .project-image {
  transform: scale(1.05);
}

.project-overlay-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image-area:hover .project-overlay-wrap {
  opacity: 1;
}

.project-arrow-icon-wrap {
  background: #ff6b6b;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px;
}

.project-arrow-icon-wrap img {
  width: 20px;
  height: 20px;
}

.project-title-wrap {
  padding: 20px 20px 25px;
  text-align: center;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f2e;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.project-title:hover {
  color: #ff6b6b;
}

/* No Projects */
.no-projects {
  text-align: center;
  padding: 60px;
  grid-column: span 2;
}

.no-projects p {
  color: #999;
  font-size: 16px;
}

/* RTL */
html[dir="rtl"] .project-overlay-wrap {
  right: auto;
  left: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-banner {
    padding: 100px 0 40px;
  }
  
  .projects-list-section {
    padding: 40px 0 80px;
  }
  
  .projects-row {
    gap: 25px;
  }
  
  .project-image-area {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .projects-banner {
    padding: 80px 0 30px;
  }
  
  .projects-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .project-image-area {
    height: 240px;
  }
  
  .project-title {
    font-size: 16px;
  }
  
  .project-title-wrap {
    padding: 15px 15px 20px;
  }
}

@media (max-width: 768px) {
  .project-image-area {
    height: 220px;
  }
}
/* ========================================
   PROJECT DETAILS PAGE
   ======================================== */

.project-details-section {
  padding: 120px 0 60px;
}

.project-details-header {
  text-align: center;
  margin-bottom: 40px;
}

.project-details-title {
  font-size: 42px;
  font-weight: 700;
  color: #1f1f2e;
  margin-bottom: 20px;
}

/* Images */
.project-details-image-main,
.project-details-image-secondary {
  margin: 30px 0;
  border-radius: 16px;
  overflow: hidden;
}

.project-details-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.project-details-image:hover {
  transform: scale(1.02);
}

/* Description */
.project-details-description {
  max-width: 1200px;
  margin: 30px auto;
  text-align: center;
}

.project-details-description p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}

/* Content Blocks */
.project-details-content {
  max-width: 1200px;
  margin: 50px auto 0;
}

.project-details-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.project-details-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-details-block-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1f1f2e;
}

.project-details-block-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}

/* RTL */
html[dir="rtl"] .project-details-block-title {
  text-align: right;
}

html[dir="rtl"] .project-details-description p {
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .project-details-section {
    padding: 80px 0 40px;
  }
  
  .project-details-title {
    font-size: 32px;
  }
  
  .project-details-description p {
    font-size: 16px;
  }
  
  .project-details-block-title {
    font-size: 22px;
  }
  
  .project-details-block-content p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .project-details-title {
    font-size: 28px;
  }
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page-section {
  padding: 240px 0 150px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* ===== Contact Info Side ===== */
.contact-info-header {
  margin-bottom: 40px;
}

.contact-page-title {
  font-size: 42px;
  margin-bottom: 15px;
  color: #1f1f2e;
}

.contact-info-header p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-icon img {
  width: 24px;
}

.contact-info-item h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #1f1f2e;
}

.contact-info-item p,
.contact-info-item a {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: #ff6b6b;
}

/* ===== Contact Form Side ===== */
.contact-form-block {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #e5e5e5;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-group {
  margin-bottom: 20px;
}

.contact-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1f1f2e;
  margin-bottom: 8px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  width: 100%;
  padding: 14px 28px;
  background: #1f1f2e;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.contact-submit-btn:hover {
  background: #ff6b6b;
  transform: translateY(-2px);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-success-msg,
.contact-error-msg {
  padding: 15px 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.contact-success-msg {
  background: #e8f5e9;
  color: #2e7d32;
}

.contact-error-msg {
  background: #ffebee;
  color: #c62828;
}

/* ===== RTL Support ===== */
html[dir="rtl"] .contact-grid {
  direction: rtl;
}

html[dir="rtl"] .contact-info-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-form-row {
  direction: rtl;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact-page-section {
    padding: 100px 0 60px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-page-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .contact-page-section {
    padding: 80px 0 50px;
  }
  
  .contact-form-block {
    padding: 30px 25px;
  }
  
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-page-title {
    font-size: 32px;
  }
  
  .contact-info-item {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .contact-page-title {
    font-size: 28px;
  }
  
  .contact-info-icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-info-icon img {
    width: 18px;
  }
}

/* ========================================
   BLOG PAGE
   ======================================== */

.blog-banner {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.blog-banner-title {
  font-size: 48px;
  margin-bottom: 15px;
  color: #1f1f2e;
}

.blog-banner-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Grid - 3 ستون */
.blog-list-section {
  padding: 60px 0 100px;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.blog-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-image {
  height: 220px;
  overflow: hidden;
}

.blog-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-title a {
  color: #1f1f2e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #ff6b6b;
}

.blog-card-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.blog-read-more {
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
  margin-top: auto;
}

.blog-read-more:hover {
  gap: 10px;
}

/* No Blogs */
.no-blogs {
  text-align: center;
  padding: 60px;
  grid-column: span 3;
}

.no-blogs p {
  color: #999;
  font-size: 16px;
}

/* ===== RTL Support ===== */
html[dir="rtl"] .blogs-grid {
  direction: rtl;
}

html[dir="rtl"] .blog-read-more {
  flex-direction: row-reverse;
}

html[dir="rtl"] .blog-read-more:hover {
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .blog-banner {
    padding: 100px 0 40px;
  }
  
  .blog-banner-title {
    font-size: 36px;
  }
  
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .no-blogs {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .blog-banner {
    padding: 80px 0 30px;
  }
  
  .blog-banner-title {
    font-size: 32px;
  }
  
  .blog-banner-subtitle {
    font-size: 16px;
  }
  
  .blog-list-section {
    padding: 40px 0 60px;
  }
  
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .blog-card-image {
    height: 200px;
  }
  
  .blog-card-title {
    font-size: 16px;
  }
  
  .no-blogs {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .blog-card-image {
    height: 180px;
  }
}
/* ========================================
   BLOG DETAILS PAGE
   ======================================== */

.blog-details-page {
  padding: 120px 0 60px;
}

.blog-details-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-details-title {
  font-size: 42px;
  font-weight: 700;
  color: #1f1f2e;
  margin-bottom: 15px;
}

.blog-details-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.blog-details-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Images */
.blog-details-image-main,
.blog-details-image-secondary {
  margin: 30px 0;
  border-radius: 20px;
  overflow: hidden;
}

.blog-details-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.blog-details-image:hover {
  transform: scale(1.02);
}

/* Content */
.blog-details-content {
  max-width: 800px;
  margin: 50px auto 0;
}

.blog-details-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.blog-details-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-details-block-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1f1f2e;
}

.blog-details-block-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* ===== 404 PAGE ===== */

.error-section {
  padding: 120px 0 100px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-number {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.error-digit {
  font-size: 120px;
  font-weight: 800;
  color: #ff6b6b;
  text-shadow: 5px 5px 20px rgba(255,107,107,0.2);
  animation: bounce404 1s ease infinite;
  display: inline-block;
}

.error-digit:nth-child(1) { animation-delay: 0s; }
.error-digit:nth-child(2) { animation-delay: 0.2s; }
.error-digit:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce404 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.error-title {
  font-size: 32px;
  color: #1f1f2e;
  margin-bottom: 15px;
}

.error-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* ===== RTL Support ===== */
html[dir="rtl"] .blog-details-header {
  text-align: center;
}

html[dir="rtl"] .error-buttons {
  flex-direction: row-reverse;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .blog-details-page {
    padding: 80px 0 40px;
  }
  
  .blog-details-title {
    font-size: 32px;
  }
  
  .blog-details-subtitle {
    font-size: 16px;
  }
  
  .blog-details-block-title {
    font-size: 24px;
  }
  
  .blog-details-block-content p {
    font-size: 14px;
  }
  
  .error-section {
    padding: 80px 0 60px;
  }
  
  .error-digit {
    font-size: 80px;
  }
  
  .error-title {
    font-size: 24px;
  }
  
  .error-buttons {
    gap: 15px;
  }
}
/* ========================================
   AUTH PAGE - MODERN DESIGN
   ======================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #1f1f2e 10%);
  padding: 100px 20px;
}

/* Background Decoration */
.auth-bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.auth-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 20s infinite ease-in-out;
}

.auth-bg-circle-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.auth-bg-circle-2 {
  width: 700px;
  height: 700px;
  bottom: -300px;
  right: -200px;
  animation-delay: 5s;
}

.auth-bg-circle-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* Auth Card */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.auth-card {
  background: #fff;
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo img {
  height: 50px;
  width: auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 14px;
  color: #666;
}

/* Input Groups */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1.5px solid #e5e5e5;
  border-radius: 16px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
  font-family: inherit;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ffffff;
}

.checkbox span {
  color: #555;
}

.forgot-link {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Auth Button */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Message */
.auth-message {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  display: none;
}

.auth-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.auth-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

/* Modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.auth-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  margin: 0 20px;
}

.auth-modal-content {
  background: #fff;
  border-radius: 32px;
  padding: 32px;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.auth-modal-close:hover {
  color: #333;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-modal-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.auth-modal-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.auth-modal-header p {
  font-size: 13px;
  color: #666;
}

.auth-modal-step {
  display: none;
}

.auth-modal-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-modal-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.auth-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth-modal-footer {
  margin-top: 24px;
  text-align: center;
}

.auth-modal-back {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s ease;
}

.auth-modal-back:hover {
  color: #764ba2;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RTL Support */
html[dir="rtl"] .input-icon {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .input-group input {
  padding: 14px 48px 14px 16px;
}

html[dir="rtl"] .password-toggle {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .form-options {
  flex-direction: row-reverse;
}

html[dir="rtl"] .auth-modal-close {
  right: auto;
  left: 20px;
}

/* Responsive */
@media (max-width: 560px) {
  .auth-card {
    padding: 36px 24px;
    margin: 0 16px;
  }
  
  .auth-header h1 {
    font-size: 24px;
  }
  
  .auth-modal-content {
    padding: 28px 20px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  html[dir="rtl"] .form-options {
    align-items: flex-start;
  }
}
/* ========================================
   PROFILE PAGE - COMPLETE STYLES
   ======================================== */

.profile-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 150px;
}

.profile-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 25px;
  position: relative;
}

/* ===== Sidebar ===== */
.profile-sidebar {
  width: 300px;
  background: #fff;
  border-radius: 28px;
  padding: 30px 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  position: sticky;
  top: 20px;
  height: fit-content;
  transition: all 0.3s ease;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.profile-avatar {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ff6b6b;
  box-shadow: 0 8px 20px rgba(255,107,107,0.3);
}

.avatar-upload-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #ff6b6b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
  transform: scale(1.1);
}

.profile-avatar h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.profile-avatar p {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.profile-badge {
  display: inline-block;
  padding: 5px 12px;
  background: #d4edda;
  color: #155724;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Navigation */
.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: #f8f9fa;
  color: #ff6b6b;
}

.nav-item.active {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255,107,107,0.3);
}

.nav-badge {
  position: absolute;
  right: 16px;
  background: #ff6b6b;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

.nav-item.active .nav-badge {
  background: #fff;
  color: #ff6b6b;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: none;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  color: #dc3545;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.logout-btn:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* ===== Main Content ===== */
.profile-main {
  flex: 1;
  background: #fff;
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.profile-tab {
  display: none;
  animation: fadeIn 0.4s ease;
}

.profile-tab.active {
  display: block;
}
/* ===== PROJECTS ACCORDION STYLES ===== */

.projects-list-accordion {
  margin-top: 20px;
}

.project-accordion-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #f8f9fa;
  transition: background 0.3s ease;
}

.project-accordion-header:hover {
  background: #f0f0f0;
}

.project-info {
  flex: 1;
}

.project-name {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f2e;
  margin-bottom: 8px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.project-type {
  background: #e9ecef;
  padding: 2px 10px;
  border-radius: 20px;
}

.project-progress-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 10px;
  border-radius: 20px;
}

.project-amount {
  font-weight: 500;
  color: #2e7d32;
}

.project-toggle-icon {
  transition: transform 0.3s ease;
}

.project-accordion-item.open .project-toggle-icon {
  transform: rotate(180deg);
}

/* Accordion Content */
.project-accordion-content {
  padding: 0 25px 20px;
  border-top: 1px solid #e9ecef;
  background: #fff;
}

.payments-list h4 {
  font-size: 16px;
  margin: 15px 0 10px;
  color: #1f1f2e;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.payment-item:hover {
  background: #f0f0f0;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-title {
  font-weight: 500;
  color: #333;
}

.payment-amount {
  font-size: 13px;
  color: #666;
}

.payment-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.payment-status.paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.payment-status.pending {
  background: #fff3e0;
  color: #ed6c02;
}

.no-payments {
  text-align: center;
  padding: 20px;
  color: #999;
}

/* RTL */
html[dir="rtl"] .project-meta {
  flex-direction: row-reverse;
}

html[dir="rtl"] .project-toggle-icon {
  transform: rotate(0deg);
}

html[dir="rtl"] .project-accordion-item.open .project-toggle-icon {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
  .project-accordion-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .project-meta {
    justify-content: center;
  }
  
  .payment-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stat-icon {
  font-size: 32px;
}

.stat-info h3 {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 5px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #212529;
}

/* Recent Activity */
.recent-activity {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 25px;
}

.recent-activity h3 {
  margin-bottom: 20px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.activity-icon {
  font-size: 24px;
}

.activity-content p {
  margin-bottom: 5px;
}

.activity-time {
  font-size: 12px;
  color: #adb5bd;
}

/* Projects Grid */
.projects-grid-profile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.project-card-profile {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.project-card-profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.project-status {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-active { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,0.2); }
.status-progress { background: #ffc107; box-shadow: 0 0 0 3px rgba(255,193,7,0.2); }
.status-completed { background: #17a2b8; box-shadow: 0 0 0 3px rgba(23,162,184,0.2); }

.project-progress {
  margin: 15px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.project-deadline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6c757d;
  margin-top: 15px;
}

/* Timeline */
.timeline-container {
  background: #f8f9fa;
  border-radius: 24px;
  padding: 30px;
  margin-top: 25px;
}

.timeline-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.timeline-stat {
  text-align: center;
}

.timeline-stat .stat-label {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 8px;
}

.timeline-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #212529;
}

.timeline-progress-container {
  position: relative;
  margin: 40px 0;
}

.timeline-progress-bar {
  height: 12px;
  background: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  border-radius: 20px;
  position: relative;
  transition: width 0.5s ease;
}

.timeline-milestones {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -8px;
}

.milestone {
  text-align: center;
  flex: 1;
  position: relative;
}

.milestone-dot {
  width: 16px;
  height: 16px;
  background: #e9ecef;
  border: 3px solid #fff;
  border-radius: 50%;
  margin: 0 auto 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.milestone.completed .milestone-dot { background: #28a745; }
.milestone.active .milestone-dot { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255,107,107,0.3); }

.milestone-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
}

.milestone-date {
  font-size: 11px;
  color: #adb5bd;
}

.progress-update {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 25px;
  margin-top: 30px;
}

.progress-slider-container {
  margin-top: 20px;
}

.progress-slider-container input {
  width: 100%;
  margin: 15px 0;
}

/* Messages */
.messages-container {
  display: flex;
  gap: 25px;
  min-height: 500px;
}

.messages-list {
  flex: 0.8;
  background: #f8f9fa;
  border-radius: 20px;
  overflow-y: auto;
  max-height: 600px;
}

.message-item {
  display: flex;
  gap: 15px;
  padding: 18px;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message-item:hover {
  background: #fff;
}

.message-item.unread {
  background: #fff5f4;
  border-left: 3px solid #ff6b6b;
}

.message-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.message-content {
  flex: 1;
}

.message-sender {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.message-time {
  font-size: 11px;
  color: #adb5bd;
}

.message-content p {
  font-size: 13px;
  color: #6c757d;
}

.message-panel {
  flex: 1.2;
  background: #f8f9fa;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.message-panel-header {
  padding: 18px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-to-messages {
  background: none;
  border: none;
  cursor: pointer;
  color: #ff6b6b;
  font-size: 14px;
}

.message-conversation {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.conversation-message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
}

.conversation-message.received {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.conversation-message.sent {
  background: #ff6b6b;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message-input-area {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid #e9ecef;
  background: #fff;
}

.message-input-area textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 24px;
  resize: none;
  font-family: inherit;
}

/* Invoices */
.invoices-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.invoice-stat {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.invoice-stat .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #212529;
  display: block;
  margin-top: 10px;
}

.invoices-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.invoice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #f8f9fa;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.invoice-card:hover {
  transform: translateX(5px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.invoice-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.invoice-status.paid { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,0.2); }
.invoice-status.pending { background: #ffc107; box-shadow: 0 0 0 3px rgba(255,193,7,0.2); }
.invoice-status.overdue { background: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,0.2); }

.invoice-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.invoice-info p {
  font-size: 13px;
  color: #6c757d;
}

.invoice-date {
  font-size: 11px;
  color: #adb5bd;
}

.invoice-amount {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
}

.invoice-actions {
  display: flex;
  gap: 10px;
}

.btn-pay {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

.btn-download {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: #e9ecef;
}

/* Settings */
.settings-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
}

.settings-section h3 {
  margin-bottom: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.settings-input {
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.settings-input:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #ff6b6b;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.settings-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.btn-save-settings {
  background: #ff6b6b;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-save-settings:hover {
  background: #e85959;
  transform: translateY(-2px);
}

.btn-delete-account {
  background: none;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-delete-account:hover {
  background: #dc3545;
  color: #fff;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 28px;
  width: 90%;
  max-width: 500px;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.upload-area {
  border: 2px dashed #e9ecef;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area.dragover {
  border-color: #ff6b6b;
  background: #fff5f4;
}

.btn-browse {
  margin-top: 15px;
  background: none;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
}

/* Toast */
.toast-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 24px;
  border-radius: 12px;
  color: #fff;
  z-index: 1100;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.success { background: #28a745; }
.toast-message.error { background: #dc3545; }
.toast-message.warning { background: #ffc107; color: #212529; }
.toast-message.info { background: #17a2b8; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff6b6b;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,107,107,0.4);
  z-index: 100;
}

/* RTL */
html[dir="rtl"] .profile-sidebar {
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .nav-badge {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .activity-item:hover {
  transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }
  
  .profile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
    overflow-y: auto;
  }
  
  .profile-sidebar.open {
    left: 0;
  }
  
  .sidebar-close {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .invoices-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-section {
    padding: 10px;
    margin-top: 100px;
  }
  
  .profile-main {
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid-profile {
    grid-template-columns: 1fr;
  }
  
  .timeline-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .timeline-milestones {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .milestone {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  
  .milestone-dot {
    margin: 0;
  }
  
  .messages-container {
    flex-direction: column;
  }
  
  .invoice-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .invoice-actions {
    justify-content: center;
  }
}
