
/* ۱. وارد کردن فونت با تمام وزن‌ها */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ۲. فونت کل سایت رو وزیر می‌ذاریم */
* {
    font-family: 'Vazirmatn', sans-serif;
}

/* ۳. تیتر اصلی (مثل اون نوشته گنده لیارا) */
.hero h1 {
    font-weight: 900; /* خیلی ضخیم و قدرتمند */
    font-size: 3.2rem;
    color: #000000fb; /* یه رنگ تیره و عمیق */
    margin-bottom: 15px;
    line-height: 1.4;
}
/* ۴. متن زیرین (همون که گفتی نازک باشه) */
.hero p {
    font-weight: 300; /* وزن نازک و ظریف */
    font-size: 0.8rem;
    color: #000000; /* یه خاکستری ملایم که چشم رو نمی‌زنه */
    line-height: 2.4;
    max-width: 600px; /* برای اینکه توی مانیتور بزرگ خیلی کش نیاد */
}
* {
    box-sizing: border-box;
}

input, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Vazirmatn, sans-serif;
  background: linear-gradient(135deg, rgba(230, 225, 230, 0.904), #faf8f7);
  color: rgb(8, 8, 8);
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 40px;
  flex-direction;0;
}

.hero-image img {
  width: 3000px
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(250, 249, 249, 0.3);
}

.hero-text {
  flex: 1;
  text-align: right;
}

.hero-text h1 {
  font-size: 36px;
}

.hero-text p {
  font-size: 24px;
}

.btn {
  background: #080808(38, 7, 87);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
}

/* NAVBAR */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 0;
    background: rgba(0, 0, 0, 0, 04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(27, 27, 27, 0.25);
    box-shadow: 0 2px 32px rgba(29, 35, 121, 0.1);
}
}

.logo {
  font-size: 40px;
  font-weight: 700;
  color: rgb(2, 2, 2);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #050505;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #070707;
}

/* PORTFOLIO */
.portfolio {
  padding: 80px 10%;
  text-align: center;
}

.portfolio h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: rgb(7, 7, 7);
}

.portfolio-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.project-card {
  background: rgba(36, 6, 70, 0.15);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 18px;
  width: 300px;
  transition: 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  color: rgb(7, 7, 7);
}

.project-card p {
  font-size: 15px;
  opacity: 0.9;
}

/* SKILLS SECTION */
.skills {
  padding: 60px 10%;
  text-align: center;
}

.skills h2 {
  font-size: 30px;
  margin-bottom: 30px;
  color: rgb(3, 3, 3);
}

.skills-container {
  display: flex;
  flex-wrap: wrap; /* این خط باعث می‌شود اگر جا نشد، برود خط بعدی و بهم نریزد */
  justify-content: center;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto; /* برای اینکه دقیقا وسط قرار بگیرد */
}

.skill-tag {
  background: rgba(23, 3, 70, 0.1);
  backdrop-filter: blur(8px);
  padding: 12px 25px;
  border-radius: 50px; /* شکل بیضی شیک */
  border: 1px solid rgba(32, 3, 75, 0.2);
  color: rgb(3, 3, 3);
  font-size: 15px;
  transition: 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: #535353; /* رنگ آبی مشابه گرادیانت سایتت */
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(27, 2, 87, 0.4);
}

.portfolio {
  padding: 80px 10%;
  text-align: center;
}

.portfolio h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: rgb(7, 7, 7);
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.post-item {
  background: rgba(76, 76, 77, 0.247);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 20px;
  color: rgb(7, 7, 7);
  transition: 0.3s;
}

.post-item:hover {
  transform: translateY(-8px);
}

.post-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.btn-view {
  display: inline-block;
  padding: 10px 16px;
  background: rgb(2, 2, 2);
  color: #fcfafa;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.contact-section {
    padding: 80px 20px;
    background: rgba(115, 50, 141, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    max-width: 800px;
    margin: 50px auto;
}

.contact-container {
    text-align: center;
}

.contact-subtitle {
    margin-bottom: 30px;
    opacity: 0.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #020202;
    background: rgba(253, 252, 252, 0.904);
    font-size: 15px;
    outline: none;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0a0a0a;
}

.contact-btn {
    background: linear-gradient(135deg, #fcfafa, #fcfbfb);
    padding: 14px;
    color: rgb(5, 5, 5);
    border-radius: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.form-success,
.form-error {
    display: none;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.form-success {
    background: #080808;
    color: #272727;
}

.form-error {
    background: #080808;
    color: #0a0a0a;
}

.hero-image {
    display: inline-block;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(2, 2, 2, 0.75),
                0 0 25px rgba(3, 3, 3, 0.842),
                0 0 55px rgba(3, 3, 3, 0.945);
}

.hero-image img {
    display: block;
    border: none;
    outline: none;
    border-radius: 24px;
}

.hero-image img {
    width: 200px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    height: auto !important;
}

@keyframes pulseNeon {
    0% {
        box-shadow: 0 0 8px #303030, 0 0 30px #555555;
    }
    50% {
        box-shadow: 0 0 25px #3b3b3b, 0 0 70px #585858;
    }
    100% {
        box-shadow: 0 0 8px #3d3d3d, 0 0 30px #3b3b3b;
    }
}

.hero-image {
    animation: pulseNeon 1.5s infinite ease-in-out;
}

button, .btn {
    background: #020202;
    color: rgb(253, 251, 251);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover, .btn:hover {
    box-shadow: 0 0 15px #242424, 0 0 40px #444444;
    transform: translateY(-3px);
}

.article {
    transition: 0.3s ease;
}

.article:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(25, 25, 26, 0.4);
}


  .simple-box {
    background: rgba(48, 48, 48, 0.05); /* شیشه‌ای */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(46, 46, 46, 0.35);
    border-rad: 14px;

    padding: 22px 26px;
    max-width: 600px;

    margin: 40px 0 40px auto;   /* 👈می‌ره سمت  چپ*/
    
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(23, 1, 58, 0.15);

    animation: glassFadeIn 0.9s ease-out both;}

.simple-box h2 {
    color: #313131;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.simple-box p {
    color: #030303;
    font-size: 0.95rem;
    line-height: 1.9;
}
@keyframes glassFadeIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.simple-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(25, 1, 53, 0.25);
    border-radius: 16px;
    width: 350px;                 /* 👈 جمع‌وجور و ظریف */
    padding: 18px 22px;
    margin: 60px 8% 60px auto;    /* می‌بره سمت راست، وسط دو بخش */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: right;            /* بهتره چون متن فارسیه */
    animation: softAppear 1s ease-out both;
}

.simple-box h2 {
    color: #050505;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.simple-box p {
    font-size: 0.9rem;
    color: #050505;
    line-height: 1.8;
}

@keyframes softAppear {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- تنظیمات مخصوص موبایل --- */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        position: relative;
    }

    .nav-links {
        display: none; /* در حالت عادی منو مخفیه */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #111; /* رنگ تیره برای منو */
        padding: 20px 0;
        z-index: 100;
    }

    .nav-links.active {
        display: flex; /* وقتی روی همبرگری کلیک کنی ظاهر میشه */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block; /* آیکون همبرگری ظاهر میشه */
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #252525; /* رنگ نئونی */
        transition: 0.3s;
    }

    /* اصلاح بخش Hero در موبایل */
    .hero {
        flex-direction: column-reverse; /* عکس بالا، متن پایین */
        text-align: center;
        padding-top: 50px;
    }

    .hero-image img {
        width: 180px !important; /* کوچکتر شدن عکس در موبایل */
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    /* کارت‌های نمونه کار زیر هم بیفتن */
    .portfolio-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90% !important;
        margin-bottom: 20px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero:: {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 20% 30%, rgba(73, 73, 73, 0.35), transparent 35%),
        radial-gradient(circle at 20% 20%, rgba(52, 53, 53, 0.25), transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(75, 74, 74, 0.18), transparent 30%);

    filter: blur(20px);
    z-index: -1;
}
    position: relative;

    .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

section [
    padding:80px 0;
]

.skill {
  background: #f1f1f4;
  color: #333;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.skill:hover {
  background: #111;
  color: #fff;
}

.posts-scroll-container{
  display:flex;
  overflow-x:auto;
  gap:20px;
  padding:20px 0;
  scroll-behavior:smooth;
}

.posts-scroll-container::-webkit-scrollbar{
  display:none;
}

.post-item{
  flex:0 0 300px;  background:#ffffff;
  border-radius:16px;
  padding:15px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  transition:0.3s;
}

.post-item:hover{
  transform:translateY(-5px);
}

.post-item img{
  width:100%;
  border-radius:10px;
}

.brand-logo img {
  width: auto !important;
  max-width: none !important;
}

header {
  background: #111; /* یا هر رنگی که برای هدر در نظر داری */
  padding: 10px 5%;
  direction: rtl;
}

header .container {
  display: flex;
  justify-content: space-between; /* لوگو راست، منو چپ */
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px; /* فاصله بین لوگو و متن */
}

.brand-logo img {
  height: 45px !important; /* اینجا می‌تونی اندازه رو دقیق کنترل کنی */
  width: auto !important;
  display: block;
}

.brand-logo span {
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

.main-footer {
  background-color: #0f0f0f; /* رنگ تیره هماهنگ با هدر */
  color: #ffffff;
  padding: 50px 0 20px 0;
  margin-top: 50px;
  border-top: 1px solid #333;
  direction: rtl;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 30px;
}

.footer-about, .footer-links, .footer-contact {
  flex: 1;
  min-width: 250px;
}

.main-footer h3, .main-footer h4 {
  color: #00d4ff; /* رنگ آبی نئونی */
  margin-bottom: 20px;
}

.main-footer p {
  line-height: 1.8;
  color: #ccc;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #00d4ff;
  padding-right: 5px; /* یک حرکت کوچک موقع هاور */
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s ease-in-out; /* تغییر برای نرمی بیشتر */
  border: 1px solid #444;
  /* اضافه کردن افکت نئون */
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.5), /* سایه داخلی روشن */
              0 0 10px rgba(0, 212, 255, 0.3); /* سایه خارجی کم‌رنگ‌تر */
}

.social-icons a:hover {
  background: #00d4ff; /* رنگ آبی نئونی */
  color: #000;
  transform: translateY(-5px);
  border-color: #00d4ff; /* رنگ مرز هم تغییر کنه */
  /* افزایش درخشش موقع هاور */
  box-shadow: 0 0 8px #00d4ff,
              0 0 15px #00d4ff,
              0 0 25px #00d4ff;
}
}
.contact-details p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #ccc;
}

.contact-details span {
  color: #00d4ff;
  font-weight: bold;
  margin-left: 5px;
}

.contact-details a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.contact-details a:hover {
  color: #00d4ff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.testimonials {
  padding: 100px 0;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%); /* یکم گرادینت برای عمق دادن */
  overflow: hidden;
  position: relative;
}

.slider-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden; /* پنهان کردن کارت‌های بیرون از کادر */
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out; /* برای حرکت نرم اسلایدر */
}

.t-card {
  flex: 0 0 calc(33.33% - 20px); /* نمایش ۳ کارت در صفحه */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px); /* حالت شیشه‌ای مدرن */
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(78, 78, 78, 0.808);
  position: relative;
  transition: 0.4s;
}

.t-card:hover {
  border-color: #00d4ff;
  background: rgba(241, 243, 243, 0.74);
  transform: translateY(-10px);
}

.quote-icon {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 80px;
  color: rgba(245, 246, 247, 0.822); /* علامت نقل قول کمرنگ */
  font-family: serif;
}

.t-text {
  color: #ddd;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 25px;
  position: relative;
}

.t-info {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.795);
  padding-top: 20px;
}

.t-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #00d4ff;
  box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

.t-info h4 {
  color: #fff;
  margin: 0 0 5px 0;
}

.t-stars {
  color: #ffd700;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.portfolio-slider {
    padding: 50px 20px;
    text-align: center;
    background-color: #fffafb; /* یه رنگ خیلی ملایم */
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slides-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.portfolio-item {
    display: none; /* اول همه رو مخفی می‌کنیم */
    animation: fadeIn 0.5s ease-in-out;
}

.portfolio-item.active {
    display: block; /* فقط اونی که فعال هست رو نشون میدیم */
}

.portfolio-item img {
    width: 65%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.slider-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4B4453;
    padding: 20px;
    transition: 0.3s;
}

.slider-btn:hover {
    color: #161616; /* رنگ طوسی تیره که دوست داشتی */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.testimonials {
    padding: 60px 20px;
    text-align: center;
    background: #0f0f10;
    color: #ffffff;
}

.testi-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.testi-container {
    width: 100%;
    overflow: hidden;
}

.testi-item {
    display: none;
    padding: 25px 30px;
    animation: fadeIn 0.4s ease;
}

.testi-item.active {
    display: block;
}

.quote {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.testi-item h4 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
}

.role {
    font-size: 0.9rem;
    color: #e8f805;
}

.testi-btn {
    background: none;
    border: none;
    color: #f8f8f5;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.testi-btn:hover {
    color: #fcf804;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer-credit {
    font-size: 0.4rem; /* کوچیک‌تر */
    opacity: 0.4;      /* لطیف‌تر */
    margin-top: 10px;
}

/* دکمه تغییر تم */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    margin-left: 15px;
    transition: 0.3s;
}

.theme-toggle:hover {
    color: #f8f8f7;
}

/* حالت لایت */
.light-mode {
    background: #ffffff;
    color: #222;
}

/* عناصر در حالت لایت */
.light-mode header,
.light-mode footer {
    background: #f5f5f5;
    color: #333;
}

.light-mode .portfolio-item,
.light-mode .testi-item {
    background: rgba(240, 240, 240, 0.8);
}

.light-mode .stars {
    color: #f5f2f2;
}

.light-mode .theme-toggle {
    color: #353535;
}

.footer-legal {
  font-size: 0.75rem; /* یا مثلا 12px */
  opacity: 0.7;       /* کمی کمرنگ‌تر و شیک‌تر */
  text-align: right; /* اگر می‌خوای وسط چین بمونه */
  margin-top: 10px;
}

.footer-text{
  font-size: 12px;
  text-align: right;
  opacity: 0.8;
  margin-top: 10px;
}

nav ul li a {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

/* افکت بزرگ‌شدن و تغییر رنگ */
nav ul li a:hover {
  color: #FFD700; /* طلایی یا هر رنگی که سایتت داره */
  transform: scale(1.08);
}

/* خط انیمیشنی زیر منو */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #070707;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px; /* برای سمت راست می‌تونی left رو به right تغییر بدی */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.btn-float {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.btn-float:hover {
    transform: scale(1.1);
}

.ble { background-color: #152944; } /* رنگ بله */
.telegram { background-color: #152944; } /* رنگ تلگرام */

.vector-avatar{
    width: 280px;
    height: auto;
    display: block;
}

