#typewriter{
    color: aliceblue;
}
body{
    background-color: black;
}

.head {
    align-items: center;
    display: flex;
    text-decoration: none;
    direction: rtl;
    margin-right: 10px;
    margin-left: 20px;
    margin-top: 0%;
    color: aliceblue;
    font-weight: bold;
    font-size: large;
}
.slider {
    overflow: hidden;
    width: 100%;
    background-color: #111;
    cursor: pointer;
}

.inslider {
    display: flex;
    width: max-content; 
    animation: scrol 15s linear infinite;
    padding: 20px 0;
}

.inslider:hover {
    animation-play-state: paused;
}

.slide {
    width: 220px; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide img {
    width: 150px; 
    height: auto;
    object-fit: contain;
}
@keyframes scrol {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-220px * 4)); 
    }
}
.precision-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* ستون اول یک سوم، ستون دوم دو سوم */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
  }

  .main-heading {
    font-size: 3rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
  }

  .sub-heading {
    color: #888;
    font-size: 1.1rem;
  }

  .grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .grid-item {
    padding-left: 25px;
    border-left: 1px solid #333; /* خط ظریف سمت چپ */
    transition: all 0.4s ease;
  }

  .grid-item:hover {
    border-left-color: #D4A85F; /* تغییر رنگ خط به طلایی هنگام هاور */
  }

  .item-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #D4A85F; /* رنگ طلایی */
    margin-bottom: 15px;
    font-weight: 600;
  }

  .item-desc {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
  }

  .process-container {
    max-width: 1000px;
    margin: 100px auto;
    padding: 20px;
    text-align: center;
  }
  
  .process-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 60px;
  }

  .process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }

  .step {
    opacity: 0; /* مخفی */
    transform: translateY(30px); /* کمی پایین‌تر از جای اصلی */
    transition: all 0.8s ease-out; /* حرکت نرم و کشیده */

    
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ۳ تا توی هر ردیف */
    gap: 20px;
    margin-top: 40px;
    border-radius: 10px;
}

/* برای تبلت */
@media (max-width: 992px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

/* برای موبایل */
@media (max-width: 600px) {
    .process-steps { grid-template-columns: 1fr; }
}
@media (max-width: 768) {
    .side-content {
        text-align: center;
        align-self: center;
    }
}

/* این کلاس رو JS اضافه می‌کنه */
.step.show {
    opacity: 1;
    transform: translateY(0); /* میاد سرِ جاش */
}
  .step {
    border-radius: 10px;
    flex: 1;
    padding: 20px;
    border: 1px solid #222;
    transition: 0.3s;
  }

  .step:hover {
    border-color: #D4A85F;
    transform: translateY(-3px);
  }

  .step-num {
    display: block;
    font-size: 2rem;
    color: #D4A85F;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .step h4 {
    color: #fff;
    margin-bottom: 10px;
  }

  .step p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  

  /* ریسپانسیو */
  @media (max-width: 768px) {
    .process-steps { flex-direction: column; }
    .grid-item{
        text-align: center;
        padding-bottom: 25px;
        border-left: none; 
        border-bottom: 1px solid #333; /* خط ظریف سمت چپ */
        transition: all 0.4s ease;
    }
      .grid-item:hover {
    border-bottom-color: #D4A85F; /* تغییر رنگ خط به طلایی هنگام هاور */
  }
  }

  /* ریسپانسیو برای موبایل */
  @media (max-width: 768px) {
    .precision-container {
      grid-template-columns: 1fr;
    }
    .side-content{
        text-align: center;
    }
    .grid-layout {
      grid-template-columns: 1fr;
    }
  }
  .precision-container {
    opacity: 0;
    transition: opacity 2s ease; /* انیمیشنِ نرمِ ۱.۵ ثانیه‌ای */
  }

  /* وقتی کلاسِ active اضافه شد، ظاهر میشه */
  .precision-container.is-visible {
    opacity: 1;
  }
  .portfolio-showcase {
    padding: 100px 5%;
    background: #141414;
    color: #fff;
}

/* تیتر */
.header-container { text-align: center; margin-bottom: 80px; }
.header-container h2 { font-size: 2.2rem;   }
.line { width: 50px; height: 2px; background: #D4A85F; margin: 20px auto; }
  
@media (min-width: 900px) {
        .phone{
        display: none;
    }
}

/* کارت‌ها */
.large-card-wrapper {
    
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.card { position: relative; cursor: pointer; }

.image-wrapper {
    position: relative;
    border-radius: 10px;
    height: 400px;
    overflow: hidden;
    background: #111;
}

.image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

/* هاورِ حرفه‌ای */
.overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .overlay { opacity: 1; }
.card:hover img { transform: scale(1.03); }

/* دکمه VIEW PROJECT روی عکس */
.view-btn {
    border: 1px solid #fff;
    padding: 12px 30px;
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 10px;
}
.view-btn:hover { background: #fff; color: #000; }

.card-info { margin-top: 25px; text-align: center; }
.card-info h3 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: 1px; }
.card-info p { color: #D4A85F; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; }

/* دکمه اصلی (View All) */
.cta-container { text-align: center; margin-top: 80px; }
.btn-main {
    padding: 18px 45px;
    border: 1px solid #D4A85F;
    color: #D4A85F;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    transition: 0.4s ease;
    display: inline-block;
    border-radius: 10px;
}
.btn-main:hover {
    background: #D4A85F;
    color: #000;
    box-shadow: 0 0 20px rgba(212, 168, 95, 0.3);
}

.split-section {
    display: flex;
    gap: 20px;
    padding: 40px;
}

/* هر گروه نصف عرض صفحه */
.group {
    flex: 1;
    display: flex;
    flex-direction: column; /* سه ردیف افقی */
    justify-content: center;
    gap: 20px;
}
hr{
    border: 1px solid #111;
}
button{
    border-radius: 20px;
    width: 90%;
    padding: 15px;
    margin: 10px auto; 
    display: block; 
    font-size: larger;
    border: none;
    background-color: #D4A85F;
    font-weight: bolder;
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    
}
@media (max-width: 840px){
    button{
        width: 100%;
        margin: none;
        padding: 10px;
        border-radius: 15px;
        color: rgb(0, 0, 0);
    }
}

button:hover{
    background-color: #D4A85F;
    color: rgb(255, 255, 255);
    border-radius: 70px;
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(151, 106, 32, 0.4); 
    letter-spacing: 1px; 
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    
}

/* ردیف‌ها */
.row {
    font-size: 1.5em;
    color: white;
}

/* عکس گروه دوم */
.group-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.simple-section {
    display: flex;
    gap: 20px;
    padding: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* ریسپانسیو */
    background-color: #111; /* یا هر رنگ پس زمینه */
}

.simple-text {
    flex: 1;
    color: white;
    font-size: 1.2em;
}

.simple-image {
    flex: 1;
}

.simple-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 900px) {
    .split-section {
        flex-direction: column; /* گروه‌ها زیر هم */
    }
    .group {
        width: 100%;
        text-align: center;
    }
}

.section-project{
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(3, 1fr);
}
.menu {
    font-weight: 300;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(11, 1fr) ;
    grid-template-rows: 1fr 1fr;
    grid-gap: 0px;
    padding-bottom: 20px;
    margin: auto;
    align-items: center;
    background-color: #D4A85F;
    text-align: left;
    height: 30px;
    padding-top: 10px;
    border-radius: 15px;
    position: sticky;
}
.icon{
    display: none;
}
.head:hover{
    font-weight: bolder;
    color: rgb(0, 0, 0);
    transition: 1s;
    
}
@media (max-width: 1100px) {
    .menu{
        grid-template-columns: 1fr 1fr 1fr;
    }
    .item-menu{
        display: none;
    }
    .icon{
        display: block;
        grid-column: 3/4;
        max-width: 44px;
        text-align: right;
    }
    .i{
        grid-column: 3/4;
        margin-left: 200px;
    }
    .row{
        text-align: center;
    }
 }
@media(max-width:780px){
    .i{
        margin-left: 150px ;
    }
}
@media(max-width:640px){
    .i{
        margin-left: 100px;
    }
}
@media(max-width:540px){
    .menu{
        grid-template-columns: 1fr 1fr;

    }
    .i{
        grid-column: 2/3;
        margin-left: 160px;
    }
}
@media(max-width:430px){
    .menu{
        grid-template-columns: 1fr 1fr;

    }
    .i{
        grid-column: 2/3;
        margin-left: 120px;
    }
}
@media(max-width:400px){
    .menu{
        grid-template-columns: 1fr 1fr;

    }
    .i{
        grid-column: 2/3;
        margin-left: 90px;
    }
}
@media (max-width: 1100px) {
    /* منوی موبایل */
    .menu {
        display: flex;
        flex-direction: column; /* آیتم‌ها زیر هم */
        align-items: flex-start; 
        position: relative;    }

    .icon {
        align-items: flex-end;
        display: block;
        position: absolute;
        top: 6px;
        right: 10px;
        cursor: pointer;
        z-index: 1001;

    }

    .item-menu { /* همبرگر نو بار بالا */
        align-self: flex-end;
        display: none; /* ابتدا مخفی */
        padding-bottom: 15px;
        margin-top: 20px; /* فاصله بین آیتم‌ها */
        background-color: #2C2C2C;
        border-radius: 15px;
        padding-left: 20px;
        padding-right: 25px;
    }

    /* وقتی باز شد */
    .item-menu.open {
        display: block;

    }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* CSS Navbar چسبان */
header {
    position: sticky;
    top: 0;              /* فاصله از بالای صفحه وقتی چسبید */
    z-index: 1000;       /* همیشه بالای بقیه عناصر */
}


/* ==== Preloader ==== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 9999;
}

.preloader-logo {
    width: 250px;
    opacity: 0;
    transform: translateX(-150%);
    animation: slideIn 1.8s ease forwards;
}
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-150%);
    }
    60% {
        opacity: 1;
        transform: translateX(10%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.preloader-hide {
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.ab{
    display: none;
}
@media (max-width: 900px){
    .ab{
        display: flex;
    }
}
.bc{
    display: flex;
}
@media (max-width: 900px){
    .bc{
        display: none;
    }
}


.mobSphere{
    position:relative;
    width:140px;
    height:140px;
    margin: auto;
    opacity:0;
    transform:scale(0);
    transition:1.2s ease;
    margin-bottom: 29px;
    margin-top: 32px;
}

.mobSphere.showSphere{
    opacity:1;
    transform:scale(1);
}

.mobPulse{
    position:absolute;
    inset:0;
    border-radius:50%;
    background:
    radial-gradient(circle,
    rgba(212,168,95,.45),
    rgba(212,168,95,.15),
    transparent);

    backdrop-filter:blur(15px);

    box-shadow:
    inset 0 0 25px rgba(255,255,255,.15),
    0 0 40px rgba(212,168,95,.3);

    animation:pulse 4s infinite ease-in-out;
}

.mobRing{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    border-radius:50%;
    border:1px solid rgba(212,168,95,.4);
}

.ring1{
    width: 165px;
    height: 172px;
    animation:rotate1 12s linear infinite;
}

.ring2{
    width:172px;
    height:180px;
    animation:rotate2 18s linear infinite reverse;
}

.mobLogo{
    position:absolute;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#D4A85F;
    font-size:20px;
    font-weight:700;
    letter-spacing:4px;

    filter:blur(15px);
    opacity:0;

    animation:showLogo 1.5s forwards;
    animation-delay:4s;
}

.mobSpark{
    position:absolute;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#D4A85F;
    box-shadow:0 0 10px #D4A85F;
}

.s1{
    top:0;
    left:50%;
    animation:orbit1 5s linear infinite;
}

.s2{
    top:50%;
    right:0;
    animation:orbit2 8s linear infinite;
}

.s3{
    bottom:0;
    left:50%;
    animation:orbit3 6s linear infinite;
}

.s4{
    top:50%;
    left:0;
    animation:orbit4 7s linear infinite;
}

.mobShine{
    position:absolute;
    width:40px;
    height:250px;
    background:rgba(255,255,255,.15);

    transform:rotate(30deg);
    left:-120px;
    top:-40px;

    animation:shine 6s infinite;
}

@keyframes pulse{
    50%{
        transform:scale(1.05);
    }
}

@keyframes rotate1{
    to{
        transform:translate(-50%,-50%) rotate(360deg);
    }
}

@keyframes rotate2{
    to{
        transform:translate(-50%,-50%) rotate(-360deg);
    }
}

@keyframes showLogo{
    to{
        opacity:1;
        filter:blur(0);
    }
}

@keyframes shine{
    0%{
        left:-120px;
    }

    100%{
        left:260px;
    }
}

@keyframes orbit1{
    50%{
        transform:translateY(15px);
    }
}

@keyframes orbit2{
    50%{
        transform:translateX(-15px);
    }
}

@keyframes orbit3{
    50%{
        transform:translateY(-15px);
    }
}

@keyframes orbit4{
    50%{
        transform:translateX(15px);
    }
}

@media (min-width: 900px) {
        .mobSphere{
        display: none;
    }
}
@media (max-width: 900px) {
        .mobile{
        display: none;
    }
}