:root {
    --primary: #ff6e00;
    --primary-dark: #e65100;
    --dark: #0a1929;
    --dark2: #13294b;
    --light: #f8f9fa;
    --text: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 20px;
}

/* ── هدر ── */
header {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--dark);
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}

header .container{
    padding: 0px 20px;
}

header.scrolled {
    background: rgba(10, 25, 41, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    min-height: 70px;
}

/* سمت راست → نارنجی + لوگو */
.header-right {
    background: var(--primary);
    padding: 0 10px;
    /* کمی کوچکتر از قبل */
    border-radius: 0 0 20px 0;
    display: flex;
    align-items: center;
    /* عمودی وسط چین */
    justify-content: center;
    /* افقی وسط چین */
    min-height: 55px;
    /* ارتفاع ثابت برای هماهنگی */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* فاصله بین عکس و متن */
    color: white;
    font-size: 1.7rem;
    font-weight: 800;
}

.logo-img {
    height: 55px;
    width: auto;
}

.logo span {
    color: white;
}

/* سمت چپ → آبی تیره + منو */
.header-left {
    background: rgba(19, 41, 75, 0.78);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    color: #e8eeff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    right: 0;
    background: var(--primary);
    transition: width 0.4s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.9rem;
    color: #e8eeff;
    cursor: pointer;
}

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.whatsapp-float img {
    width: 45px;
    height: 45px;
    margin-top: 10px;
}

/* هیرو */
#home {
    background: url("img/banner1.png") center center/100% 100% no-repeat;
    position: relative;
    min-height: 100vh;
    /* background: linear-gradient(rgba(10,25,41,0.72), rgba(10,25,41,0.85)),
                  url('https://images.unsplash.com/photo-1618221195710-dd2dabb60b29?auto=format&fit=crop&q=80') center/cover no-repeat; */
    /* color: white;
      display: flex;
      align-items: center;
      text-align: center; */
}
section#home {
    margin-top: 80px;
    padding-top: 20px;
}

#home .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: #fff;
    text-align: center;
    max-width: 800px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 132px;
    margin-right: 25px;
    margin-left: 25px;
    /* max-width: 920px;
      margin: 0 auto; */
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 700;
    margin-bottom: 1.4rem;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.35s;
    box-shadow: 0 6px 20px rgba(230,81,0,0.4);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(230,81,0,0.5);
}

/* بخش‌های مشترک */
section {
    padding-top: 80px;
    padding-bottom: 30px;
}

section.dark {
    background: var(--dark);
    color: white;
}

h2 {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 1.4rem;
    font-weight: 700;
}

h2 .header-span {
    color: var(--primary);
    position: relative;
}
h2 span {
    position: relative;
    z-index: 1;
}
h2 .header-span::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 4px;
    background: var(--primary);
    bottom: -14px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.grid-3,
.grid-4 {
    display: grid;
    gap: 2.5rem;
    margin-top: 4rem;
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* درباره ما */
#about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}
.about-text {
    text-align: justify;
}
.about-text .lead {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.6rem;
}
.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* پورتفولیو */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

#portfolio a,
#portfolio a:hover,
#portfolio a:visited {
    color: #fff;
    text-decoration: none;
}

/* تیم */
.team-member {
    text-align: center;
    background: rgba(255,255,255,0.06);
    padding: 2.2rem 1.4rem;
    border-radius: 16px;
    transition: all 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    cursor: pointer;
    background: linear-gradient(180deg, #d1d1d1, transparent);}

.team-member img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary);
    margin-bottom: 1.4rem;
}

#process {
    padding-bottom: 100px;
}
.step .step-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f1f1;
    background-color: var(--primary);
    padding-right: 10px;
    margin-bottom: 1rem;
    clip-path: polygon(0% 50%, 20px 0%, 100% 0%, 100% 100%, 20px 100%);
    display: flex;
    justify-content: center;
    position: relative;
}

.step-title::before{
    content: "";
    width: 10px;
    position: absolute;
    right: 20px;
    top: 0px;
    background-color: var(--dark);
    height: 100%;
}

.step-subtitle{
    font-size: smaller;
    color: peru;
}
#contact {
    position: relative;
    overflow: hidden;
}
#contact::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;

    background-image: url("img/mannisman.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: 0 0;

    filter: blur(2px) brightness(0.2);
}
.contact-form,
.contact-info {
    z-index: 1;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
    align-items: start;
}
.contact-form img {
    width: 100%;
    border-radius: 20px;

    border: 2px solid rgba(214,165,41,.35);

    box-shadow: 0 0 30px rgba(214,165,41,.25), 0 0 80px rgba(214,165,41,.12);
}

/* موبایل */
@media (max-width: 850px) {

    /* ── هدر ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--dark);
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}
    #header .container {
        display: flex;
        align-items: center;
    }
    nav {
        position: relative;
        flex: 1;
    }

    .header-left {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--dark2);
        border-radius: 0;
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
    }

    .header-left.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        margin-right: -20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.6rem;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        margin-left: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }
}
@media (max-width: 600px) {
    #home {
        margin-top: 106px;
        background: url("img/banner2.png") center center/cover no-repeat;
    }
    .hero-content {
        margin-top: 250px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content .btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    .contact-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }
}

/* ---------------------------    detail page */

#detail .about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

#detail section.article {
    padding-top: 40px;
}
#detail .about-text .lead {
    text-align: center;
}

#detail .about-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
#detail .about-image img {
    width: 80%;
    box-shadow: 0 0 8px 2px rgba(0,0,0,0.35);
}
#detail ol,
#detail ul {
    margin-right: 30px;
}
#detail table {
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    margin: 20px;
}

#detail table thead {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
}

#detail table td,
#detail table th {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #ffedd5;
    text-align: center;
}

#detail table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#detail table tbody tr:nth-child(even) {
    background-color: #fff7ed;
}

#detail table tbody tr:hover {
    background-color: #ffedd5;
}

#detail table tbody tr:last-child td {
    border-bottom: none;
}
