@font-face {
  font-family: "Ray";
  src: url("fonts/w_Ray.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ray";
  src: url("fonts/w_RayBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ray";
  src: url("fonts/w_RayBlack.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Ray", sans-serif;
}


/* ==========================
   Global Reset & Base Styles
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ray", sans-serif;
}

h1 {
    font-size: 28px;
    font-weight: 900;
}

/* Bold */
h2 {
    font-size: 24px;
    font-weight: 900;
    line-height: 2;
}

/* Semibold */
h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 2;
}

h4 {
    font-size: 20px;
    font-weight: 700;
}

h5 {
    font-size: 18px;
    font-weight: 700;
}
p {
    font-size: 16px;
    font-weight: 400;
     line-height: 1.6;
}

/* Medium */

html,
body {
    margin: 0;

}

body {
    background: #000000;
    color: #d7d7d7;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================
   Links
========================== */
a {
    color: #ededed;
    text-decoration: none;
    font-size: .92rem;
    transition: opacity .18s cubic-bezier(.2, .9, .3, 1);
}

a:active {
    opacity: .6;
}

/* ==========================
   Header
========================== */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    gap: 16px;
}

.header-logo {
    width: 180px;
    height: auto;
    display: block;
}

/* ==========================
   Hero
========================== */
.hero {
   
    margin: 40px;
   
  
    border-radius: 12px;
    text-align: justify;
    text-justify: auto;
    color: #b9b9b9;
    font-family: "Ray";
}

.heropage {
   
    margin: 20px;
    
    text-align: justify;
    text-justify: auto;
    color: #b9b9b9;
    font-family: "Ray";
}

/* ==========================
   Lists
========================== */
ul {
    list-style: none;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(1, 1fr);

}

ul.fcards {
    grid-template-columns: repeat(1, 1fr);
    GAP: 20PX;
    margin: 0 20px;

}


ul.x {
    grid-template-columns: repeat(3, 1fr);
    GAP: 20PX;
    margin: 40px;


}

ul.b {
    margin: 40px 40px 0px 40px;
    gap: 20PX;



}


/* ==========================
   Profile Card
========================== */
.profile-card {
    background: #141414;
   
    border-radius: 12px;
    padding: 24px;
    margin: 20px 20px 0 20px;
    color: #d6d6d6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;

    justify-content: space-between;
    z-index: 1000;
    padding-left: max(20px, calc((100% - 600px) / 2));
    padding-right: max(20px, calc((100% - 600px) / 2));
}

.profile-card .avatar {
    width: 96px;
    height: 96px;
    border-radius: 12px;
   
    object-fit: cover;

}

.profile-card .info {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.profile-card .title {
    font-size: 17px;
    color: #939393;
    margin: 8px;
    text-align: center;
}

.profile-card .name {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* ==========================
   Form Box - Responsive & Clean
========================== */
.box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #141414;
   
    border-radius: 12px;
    padding: 20px;
    margin: 20px 20px 0 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Inputs & Textarea */
.input,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: "Ray";
    font-size: 1.2rem;
    color: #121212;
    background: #e7e7e7;
   border: 1px solid #4e4e4e;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    line-height: 20px;
    transition: border-color 0.18s cubic-bezier(.2, .9, .3, 1),
        box-shadow 0.18s cubic-bezier(.2, .9, .3, 1);
    resize: none;
}

/* Focus state */
.input:focus,
.textarea:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.18);
}

/* Auto-resize textarea on mobile */
.textarea:focus,
.textarea:not(:placeholder-shown) {
    height: auto;
}

/* ==========================
   Button
========================== */
.btn {
    padding: 10px 32px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    direction: ltr;
    font-family: "Ray";
    color: #dedede;
    background: #e4661d;
   
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-shadow: 0 4px 14px rgba(152, 83, 4, 0.35);
    transition: transform .12s, box-shadow .12s;
border-style: none;
    width: auto;
    max-width: 180px;
    margin: 0 auto;
    flex-shrink: 0;
}

.btn:hover {
    background: #f27013;
}

.insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    direction: ltr;
    padding: 10px 22px;
    border-radius: 12px;
    background: #e4661d;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(152, 83, 4, 0.35);
    color: #dedede;
    text-decoration: none;
    font-weight: 700;
    font-family: inherit;
    margin: 0 auto;
    transition: transform .12s, box-shadow .12s;
}

.insta-btn:focus {
    outline: 3px solid rgba(99, 102, 241, .15);
    outline-offset: 2px;
}

.insta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}

/* make the icon adopt brand gradient if you want */
.insta-icon {
    color: #dedede;
    display: block;
}

/* or keep currentColor */
.insta-id {
    font-size: 1.1rem;
}

/* ==========================
   Desktop Layout
========================== */
@media (min-width: 768px) {
    .box {
        flex-direction: row;
        align-items: flex-start;

    }

    .input {
        flex: 1;
        width: auto;
        margin: 0;
    }

    .textarea {
        flex: 4;
        width: auto;
        height: 48px;
        max-height: 48px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        margin: 0;
    }

    .btn {
        margin: 0;
    }
}

/* ==========================
   Image Cards
========================== */
/* کارت اصلی */
.card {



    overflow: hidden;
    position: relative;

}

/* باکس تصویر */
.card .img-box {
    width: 100%;
    border-radius: 12px;
   
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    transition: filter 0.3s ease;
    /* برای افکت نرم */
}

/* افکت هنگام لمس روی موبایل */
@media (max-width: 768px) {
    .card .img-box:active {
        filter: blur(6px) grayscale(100%);
    }
}





/* ==========================
   Image Cards
========================== */
.bcard {


    overflow: hidden;
  

}

.bcard .img-box {
    width: 100%;

    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
  
  
}


/* محتوا روی نیمه پایین */
.bcard .content {
   
    bottom: 0px;
    left: 0;
    right:0;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
  
   text-align: right;
    /* تراز خط پایه */
   
   
       border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
   
}

.bcard .title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: #bdbdbd;
   }

.bcard .subtitle {
    font-size: 1.2rem;
     font-weight: 700;
    color: #b6b6b6;
   
  }



/* Full Card */
.fcard .img-box {

    width: 100%;
    border-radius: 12px;
   
    background-size: cover;
    background-position: center;

}


.fcard .content {
    padding: 16px;
}


.img-box {

    overflow: hidden;
    width: 100%;
}

.img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================
   Thank You Message
========================== */
.thankYou {
    display: none;
    font-size: 1.05rem;
    color: #c4c4c4;
    padding-top: 16px;
    text-align: center;
}

/* ==========================
   Footer
========================== */
footer {
    background: #000000;
    color: #bdbdbd;
    text-align: center;
    direction: ltr;
    padding: 20px 0;

   
    border-radius: 12px 12px 0 0;
    border-bottom-style: none;

}

.footer-logos img {
    width: 58px;
    height: 58px;
    margin: 8px;
    border-radius: 12px;
   border: 1px solid #616161;
}

.footer-text {
    font-size: .82rem;
    color: #969696;
}

/* ==========================
   Layout
========================== */
.layout {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

/* ==========================
   Navbar
========================== */
.nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  
    width: 100%;
    max-width: 1600px;
   box-shadow: 0 2px 2px rgba(255, 255, 255, 0.151);

    height: 90px;
    background: #000000;

    border-top-style: none;
    border-radius: 0 0 12px 12px;
    z-index: 1000;

    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================
   Mega Menu
========================== */
.mega-menu {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 1600px;
  

    background: linear-gradient(
        180deg,
        rgba(16, 16, 16, 0.622) 0%,
        rgba(53, 53, 53, 0.461) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );

     backdrop-filter: blur(40px) saturate(220%) contrast(120%);
    -webkit-backdrop-filter: blur(40px) saturate(220%) contrast(120%);

    border: 1px solid rgba(255, 255, 255, 0.123);

    box-shadow:
        inset 0 1px 1px rgba(36, 36, 36, 0.7),
        0 30px 60px rgba(0,0,0,0.18);

   
    max-height: 0;
    overflow: hidden;
    transition: 0.35s ease;
    
    z-index: 999;
 
    border-radius: 0 0 12px 12px;
}
@keyframes shimmer {
    0% { transform: rotate(45deg) translate(-100%, -100%); }
    50% { transform: rotate(45deg) translate(50%, 50%); }
    100% { transform: rotate(45deg) translate(-100%, -100%); }
}
.mega-menu.show {
    max-height: 600px;
}

/* Grid 3x3 */
.grid-box {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
}

.item {
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    color: #c3c3c3;

}

.item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
   
    border-radius: 12px;
}

.item h4 {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 900;
}

/* ==========================
   Toggle Icon (Hamburger → X)
========================== */
.wrap {
    position: relative;
    display: inline-block;
}

.toggle {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    color: #000000;
}

.icon {
    width: 48px;
    height: 48px;
    position: relative;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #b0b0b0;
    border-radius: 50%;
    transition: transform 0.45s ease, opacity 0.45s ease, width 0.45s ease, height 0.45s ease;
}

/* Dot positions (3×3 grid) */
.d1 {
    left: 6px;
    top: 6px;
}

.d2 {
    left: 20px;
    top: 6px;
}

.d3 {
    left: 34px;
    top: 6px;
}

.d4 {
    left: 6px;
    top: 20px;
}

.d5 {
    left: 20px;
    top: 20px;
}

.d6 {
    left: 34px;
    top: 20px;
}

.d7 {
    left: 6px;
    top: 34px;
}

.d8 {
    left: 20px;
    top: 34px;
}

.d9 {
    left: 34px;
    top: 34px;
}

/* Morph to X */
.toggle:checked+.icon .d1 {
    transform: translate(10px, 10px);
}

.toggle:checked+.icon .d2 {
    opacity: 0;
}

.toggle:checked+.icon .d3 {
    transform: translate(-10px, 10px);
}

.toggle:checked+.icon .d4 {
    opacity: 0;
}

.toggle:checked+.icon .d5 {
    width: 3px;
    height: 3px;
    opacity: 0.4;
}

.toggle:checked+.icon .d6 {
    opacity: 0;
}

.toggle:checked+.icon .d7 {
    transform: translate(10px, -10px);
}

.toggle:checked+.icon .d8 {
    opacity: 0;
}

.toggle:checked+.icon .d9 {
    transform: translate(-10px, -10px);
}

/* ==========================
   Responsive
========================== */

/* Small Mobile */
@media (max-width: 480px) {
    .layout {
        flex-direction: column;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-card .info {
        justify-content: center;
        align-items: center;
        gap: 2px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .grid-box {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-card {
        flex-direction: column;
    }
}

/* Tablet & Small Desktop */
@media (min-width: 600px) {
    ul {
        grid-template-columns: repeat(3, 1fr);
    }

    ul.x {
        grid-template-columns: repeat(9, 1fr);

    }

    ul.b {
        margin: 40px 0 0 0;



    }

    .header-logo {
        width: 240px;
    }

    .hero {
        padding: 20px 20PX;

    }
     .heropage {
        padding: 20px 20PX;

    }
}

/* Desktop */
@media (min-width: 992px) {
    body {
        padding: 0 calc((100% - 1600px) / 2);

    }

    ul {
        grid-template-columns: repeat(3, 1fr);
    }

    ul.x {
        grid-template-columns: repeat(9, 1fr);

        margin: 20px;

    }
    ul.fcards {
    
    margin: 0px;

}

    .hero {
        padding: 40px;
        margin: 40px 0 40px;

    }
     .heropage {
        padding: 40px;
        margin: 20px 0 20px;

    }

footer {
        
        margin: 20px 0;

    }
}