
/* Custom CSS */

/* ===============================
   Real Pinterest Masonry Portfolio
   =============================== */

#portfolio .container {
    max-width: 1080px;
}

.masonry-grid {
    column-count: 4;
    column-gap: 10px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 10px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ارتفاع‌های متفاوت، ولی بدون فضای خالی */
.masonry-tall {
    height: 230px;
}

.masonry-medium {
    height: 170px;
}

.masonry-short {
    height: 125px;
}

.masonry-item:nth-child(4n) {
    height: 260px;
}

.masonry-item:nth-child(5n) {
    height: 145px;
}

.masonry-item:nth-child(7n) {
    height: 210px;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover caption */
.masonry-item .portfolio-item-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(100, 77, 68, 0.88);
    transition: all 0.25s ease-in-out;
}

.masonry-item:hover .portfolio-item-caption {
    opacity: 1;
}

/* Tablet */
@media (max-width: 991px) {
    .masonry-grid {
        column-count: 3;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 8px;
    }

    .masonry-item {
        margin-bottom: 8px;
    }

    .masonry-tall {
        height: 210px;
    }

    .masonry-medium {
        height: 155px;
    }

    .masonry-short {
        height: 115px;
    }

    .masonry-item:nth-child(4n) {
        height: 225px;
    }

    .masonry-item:nth-child(5n) {
        height: 130px;
    }

    .masonry-item:nth-child(7n) {
        height: 185px;
    }
}







/* ===============================
   Fullscreen Artistic Portfolio Modal - Final Clean Version
   =============================== */

.portfolio-modal .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
}

.portfolio-modal .modal-content {
    width: 100vw;
    min-height: 100vh;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(196, 166, 145, 0.35), transparent 28%),
        radial-gradient(circle at 90% 85%, rgba(100, 77, 68, 0.25), transparent 30%),
        linear-gradient(135deg, #f7f3ef 0%, #ffffff 45%, #e8e2dd 100%) !important;
}

.art-modal-body {
    position: relative;
    min-height: 100vh;
    padding: 5.5rem 6vw !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-modal-layout {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

/* Image Side */
.art-modal-image-wrap {
    position: relative;
    min-height: 66vh;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(44, 62, 80, 0.28);
    background: #d9d4cf;
}

.art-modal-image-wrap::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 26px;
    z-index: 2;
    pointer-events: none;
}

.art-modal-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.18),
        rgba(100, 77, 68, 0.08),
        rgba(255, 255, 255, 0.05)
    );
    z-index: 1;
    pointer-events: none;
}

.art-modal-image {
    width: 100%;
    height: 66vh;
    object-fit: contain;
    display: block;
    padding: 18px;
    background: rgba(255, 255, 255, 0.32);
}

/* Text Side */
.art-modal-info {
    position: relative;
    padding: 2.2rem 2.4rem !important;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 25px 70px rgba(44, 62, 80, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.art-modal-label {
    display: inline-block;
    margin-bottom: 1rem;
    color: #644d44;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.art-modal-title {
    color: #2c3e50;
    font-size: clamp(1.35rem, 2.2vw, 2.7rem) !important;
    line-height: 1.08 !important;
    text-transform: uppercase;
    margin-bottom: 1rem !important;
}

.art-modal-line {
    width: 90px;
    height: 4px;
    border-radius: 20px;
    background: linear-gradient(to right, #644d44, rgba(100, 77, 68, 0.15));
    margin-bottom: 1.3rem !important;
}

.art-modal-caption {
    color: #4a4a4a;
    font-size: 1rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.2rem !important;
}

/* Hide old boxed meta if it still exists */
.art-modal-meta {
    display: none !important;
}

/* Compact Icon Meta */
.art-modal-meta-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.2rem;
    margin: 1.2rem 0 1.5rem;
}

.art-meta-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: start;
    gap: 0.55rem;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.art-meta-item i {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #644d44 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem !important;
    margin-top: 0.1rem;
}

.art-meta-item strong {
    display: block;
    color: #2c3e50;
    font-size: 0.64rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    margin-bottom: 0.08rem !important;
}

.art-meta-item span {
    display: block;
    color: #644d44;
    font-size: 0.86rem !important;
    line-height: 1.25 !important;
}

/* Button */
.art-modal-btn {
    background-color: #644d44 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.72rem 1.45rem !important;
    font-size: 0.9rem !important;
    box-shadow: 0 12px 28px rgba(100, 77, 68, 0.28);
}

/* Close Button */
.art-modal-close {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 20;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.92);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 34px rgba(44, 62, 80, 0.25);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.art-modal-close:hover {
    transform: rotate(90deg) scale(1.05);
    background: #644d44;
}

/* Background Shapes */
.art-modal-bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.shape-one {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: -80px;
    background: rgba(196, 166, 145, 0.48);
}

.shape-two {
    width: 180px;
    height: 180px;
    right: 9%;
    top: 12%;
    background: rgba(100, 77, 68, 0.18);
}

/* Opening Animation */
.portfolio-modal.fade .art-modal-layout {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: all 0.45s ease;
}

.portfolio-modal.show .art-modal-layout {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Tablet / Mobile */
@media (max-width: 991px) {
    .art-modal-body {
        padding: 5rem 1.2rem 2rem !important;
        align-items: flex-start;
        overflow-y: auto;
    }

    .art-modal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .art-modal-image-wrap {
        min-height: auto;
        border-radius: 24px;
    }

    .art-modal-image {
        height: auto;
        max-height: 58vh;
    }

    .art-modal-info {
        max-height: none;
        overflow-y: visible;
        padding: 2rem !important;
        border-radius: 24px;
    }

    .art-modal-meta-icons {
        grid-template-columns: 1fr;
    }

    .art-modal-close {
        top: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
    }
}




/* افکت تیره روی تصاویر پورتفولیو قبل از کلیک و هاور */
.masonry-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ایجاد یک لایه تیره ملایم روی عکس با اپاسیتی 0.3 */
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1; /* بالاتر از عکس اما پایین‌تر از کپشن */
    transition: background-color 0.3s ease-in-out; /* انیمیشن نرم */
    pointer-events: none; /* جلوگیری از تداخل با کلیک موس */
}

/* افکت در حالت هاور (نگه داشتن موس روی عکس) */
.masonry-item:hover::after {
    /* در حالت هاور، لایه تیره را شفاف‌تر می‌کنیم تا عکس شفاف‌تر شود (اختیاری) */
    background-color: rgba(0, 0, 0, 0.1);
}

/* اطمینان از اینکه کپشن روی این لایه تیره قرار می‌گیرد */
.masonry-item .portfolio-item-caption {
    z-index: 2; /* کپشن باید روی لایه تیره باشد */
}






/* ===============================
   Contact to Footer Smooth Blend
   =============================== */


/* فوتر کمی برود زیر گرادینت */
.footer {
    position: relative;
    margin-top: -1px !important;
    padding-top: 7rem !important;
    background-color: #2c3e50 !important;
    color: #fff;
}


/* ===============================
   FAQ Section
   =============================== */

.faq-section {
    position: relative;
    background:
        linear-gradient(135deg, #ffffff 0%, #f7f3ef 48%, #eee8e3 100%) !important;
    overflow: hidden;
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

.faq-header {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.faq-heading {
    color: #2c3e50;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.faq-subtitle {
    color: rgba(44, 62, 80, 0.72);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 auto;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1.6rem;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.faq-intro-card {
    border-radius: 32px;
    padding: 2.3rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 34%),
        linear-gradient(135deg, #644d44, #2c3e50);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(44, 62, 80, 0.14);
}

.faq-intro-card i {
    font-size: 2.1rem;
    margin-bottom: 1.2rem;
}

.faq-intro-card h3 {
    color: #ffffff;
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.faq-intro-card p {
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 0;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    border-radius: 24px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(100, 77, 68, 0.12);
    box-shadow: 0 16px 42px rgba(44, 62, 80, 0.07);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1.2rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 800;
    font-size: 1rem;
}

.faq-question i {
    color: #644d44;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 1.35rem 1.25rem;
    color: rgba(44, 62, 80, 0.72);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 260px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

@media (max-width: 991px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }
}


/* ===============================
   Professional Footer with Map
   =============================== */

.site-footer {
    position: relative;
    background: #2c3e50;
    color: #ffffff;
    overflow: hidden;
}

.footer-map {
    width: 100%;
    height: 360px;
    overflow: hidden;
    filter: grayscale(35%) contrast(95%) brightness(92%);
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 360px;
}

.footer-main {
    position: relative;
    padding: 4rem 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,0.08), transparent 28%),
        linear-gradient(135deg, #644d44 0%, #2c3e50 65%, #182530 100%);
}

.footer-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0));
    pointer-events: none;
}

.footer-main .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 0.75fr 1fr;
    gap: 2rem;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.footer-brand span {
    display: block;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.74);
    line-height: 1.75;
    margin-bottom: 0;
}

.footer-info h4,
.footer-links h4,
.footer-contact h4 {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    margin-bottom: 1rem;
}

.footer-info ul,
.footer-links ul,
.footer-contact ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-info li,
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(255,255,255,0.74);
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.footer-info i,
.footer-contact i {
    color: #d7c5ba;
    margin-top: 0.2rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.74);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.footer-socials a:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
}

.footer-bottom {
    background: #16232d;
    padding: 1rem 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        padding: 3rem 0;
    }

    .footer-map,
    .footer-map iframe {
        height: 280px;
    }
}



/* ===============================
   Professional About Section - Final Clean Version
   =============================== */

.about-section {
    position: relative;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08), transparent 28%),
        radial-gradient(circle at 90% 80%, rgba(44,62,80,0.25), transparent 32%),
        linear-gradient(135deg, #644d44 0%, #73594f 45%, #2c3e50 100%) !important;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    left: -120px;
    top: 80px;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.about-section::after {
    display: none !important;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

/* Header */
.about-header {
    margin-bottom: 3rem;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.about-title-line {
    width: 90px;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 20px;
    background: linear-gradient(to right, transparent, #ffffff, transparent);
}

/* Main Layout */
.about-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 1.4rem;
    align-items: start !important;
}

/* Shared glass style */
.about-main-card,
.about-side-panel {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.16);
}

/* Left Card */
.about-main-card {
    align-self: start;
    border-radius: 34px;
    padding: 2.8rem;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.about-main-card h3 {
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.about-main-card p {
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

/* Buttons */
.about-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.about-primary-btn {
    background: #ffffff !important;
    color: #644d44 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.85rem 1.6rem !important;
    font-weight: 700 !important;
}

.about-outline-btn {
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    border-radius: 999px !important;
    padding: 0.85rem 1.6rem !important;
    font-weight: 700 !important;
}

.about-outline-btn:hover {
    background: rgba(255,255,255,0.12) !important;
}

/* Right Panel */
.about-side-panel {
    position: relative;
    overflow: visible;
    align-self: start !important;
    height: auto !important;
    border-radius: 34px;
    padding: 1.4rem;
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
}

/* Profile Image */
.about-photo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: -1rem 0 0.6rem;
}

.about-photo {
    width: min(260px, 90%);
    height: auto;
    display: block;
    transform: translateY(-10px);
    filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.28));
}

/* Right Panel Items */
.about-mini-stat {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.75rem;
    align-items: start;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.75rem 0.8rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
}

.about-mini-stat i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.about-mini-stat strong {
    display: block;
    color: #ffffff;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.about-mini-stat span {
    display: block;
    color: rgba(255,255,255,0.74);
    font-size: 0.78rem;
    line-height: 1.35;
}

/* Responsive */
@media (max-width: 991px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-main-card {
        padding: 2rem;
    }

    .about-side-panel {
        max-width: 100%;
        padding: 1.6rem;
    }
}

@media (max-width: 575px) {
    .about-photo {
        width: min(210px, 90%);
    }

    .about-main-card h3 {
        font-size: 1.8rem;
    }

    .about-main-card p {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}



/* ===============================
   Professional Services Section
   =============================== */

.services-section {
    position: relative;
    background:
        radial-gradient(circle at 8% 15%, rgba(100, 77, 68, 0.08), transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(44, 62, 80, 0.10), transparent 30%),
        linear-gradient(135deg, #f7f3ef 0%, #ffffff 48%, #eee8e3 100%) !important;
    overflow: hidden;
}



.services-section .container {
    position: relative;
    z-index: 2;
}

.services-header {
    max-width: 760px;
    margin: 0 auto 3.2rem;
}

.section-kicker-dark {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: #644d44;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.services-heading {
    color: #2c3e50;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.services-subtitle {
    color: rgba(44, 62, 80, 0.72);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 auto;
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem 1.5rem;
}

/* Card Item */
.service-item {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem 1.35rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(100, 77, 68, 0.12);
    box-shadow: 0 18px 45px rgba(44, 62, 80, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.service-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.75),
        rgba(255,255,255,0.12)
    );
    opacity: 0.55;
    pointer-events: none;
}

.service-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 26px 60px rgba(44, 62, 80, 0.13);
}

.service-icon,
.service-content {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #644d44, #2c3e50);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 12px 28px rgba(100, 77, 68, 0.22);
}

.service-content h3 {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.service-content p {
    color: rgba(44, 62, 80, 0.68);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item {
        grid-template-columns: 48px 1fr;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 575px) {
    .services-header {
        margin-bottom: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-item {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .service-item::before {
        border-radius: 22px;
    }

    .services-subtitle {
        font-size: 0.95rem;
    }
}



/* ===============================
   Certificates Slider Section
   =============================== */

.certificates-section {
    position: relative;
    background:
        radial-gradient(circle at 12% 18%, rgba(100, 77, 68, 0.08), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(44, 62, 80, 0.10), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7f3ef 45%, #eee8e3 100%) !important;
    overflow: hidden;
}



.certificates-section .container {
    position: relative;
    z-index: 2;
}

.certificates-header {
    max-width: 780px;
    margin: 0 auto 3.2rem;
}

.certificates-heading {
    color: #2c3e50;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.certificates-subtitle {
    color: rgba(44, 62, 80, 0.72);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 auto;
}

/* Slider */
.certificate-slider {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
}

.certificate-track {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 32px;
}

.certificate-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(110px) scale(0.98);
    pointer-events: none;
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.certificate-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

.certificate-slide.leaving {
    opacity: 0;
    transform: translateX(-110px) scale(0.98);
    z-index: 1;
}

/* Card */
.certificate-card {
    position: relative;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.7rem;
    align-items: center;
    min-height: 330px;
    padding: 1.2rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(100, 77, 68, 0.13);
    box-shadow: 0 22px 60px rgba(44, 62, 80, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.certificate-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(to bottom, #644d44, #2c3e50);
}

.certificate-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #efeae5;
    box-shadow: inset 0 0 0 1px rgba(100, 77, 68, 0.10);
}

.certificate-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.10),
        rgba(44,62,80,0.08)
    );
    pointer-events: none;
}

.certificate-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.certificate-info {
    padding: 0.8rem 1.1rem 0.8rem 0;
}

.certificate-year {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(100, 77, 68, 0.10);
    color: #644d44;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
}

.certificate-info h3 {
    color: #2c3e50;
    font-size: clamp(1.35rem, 2.2vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.certificate-issuer {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #644d44;
    font-size: 0.93rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.certificate-issuer i {
    color: #2c3e50;
    font-size: 0.95rem;
}

.certificate-info p {
    color: rgba(44, 62, 80, 0.72);
    font-size: 0.96rem;
    line-height: 1.75;
    margin-bottom: 0;
}

/* Dots */
.certificate-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.certificate-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(100, 77, 68, 0.28);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.certificate-dot.active {
    width: 34px;
    background: #644d44;
}

/* Responsive */
@media (max-width: 991px) {
    .certificate-track {
        min-height: 560px;
    }

    .certificate-card {
        grid-template-columns: 1fr;
        min-height: 560px;
    }

    .certificate-info {
        padding: 0.4rem 0.5rem 0.8rem;
    }

    .certificate-image {
        height: 260px;
    }
}

@media (max-width: 575px) {
    .certificates-header {
        margin-bottom: 2.2rem;
    }

    .certificate-track {
        min-height: 610px;
        border-radius: 24px;
    }

    .certificate-card {
        min-height: 610px;
        padding: 0.9rem;
        border-radius: 24px;
    }

    .certificate-image-wrap {
        border-radius: 18px;
    }

    .certificate-image {
        height: 200px;
    }

    .certificate-info h3 {
        font-size: 1.35rem;
    }

    .certificate-info p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}




/* ===============================
   Technical Skills Masonry - Fixed Final
   =============================== */

.skills-grid {
    column-count: 3;
    column-gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
}

.skill-card {
    display: inline-block !important;
    width: 100% !important;
    margin: 0 0 1.25rem !important;
    break-inside: avoid;
    page-break-inside: avoid;
    position: relative;
    vertical-align: top;

    padding: 1.45rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(100, 77, 68, 0.12) !important;
    box-shadow: 0 18px 45px rgba(44, 62, 80, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;

    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 0 !important;
    height: auto !important;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.12));
}

.skill-card > * {
    position: relative;
    z-index: 2;
}

.skill-top {
    display: grid !important;
    grid-template-columns: 48px 1fr;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1.1rem;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    color: #ffffff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 12px 28px rgba(100, 77, 68, 0.22);
}

.skill-top h3 {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.skill-top span {
    display: block;
    color: #644d44;
    font-size: 0.78rem;
    font-weight: 700;
}

.skill-progress {
    display: block !important;
    width: 100% !important;
    height: 10px !important;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.10) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.skill-progress-fill {
    display: block !important;
    width: 0%;
    height: 100% !important;
    border-radius: inherit;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-percent {
    display: block;
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.9rem;
}

.skill-card p {
    color: rgba(44, 62, 80, 0.68);
    font-size: 0.88rem;
    line-height: 1.62;
    margin-bottom: 0;
}

/* Different colors */
.skill-card:nth-child(1) .skill-icon,
.skill-card:nth-child(1) .skill-progress-fill {
    background: linear-gradient(135deg, #644d44, #8a675b) !important;
}

.skill-card:nth-child(2) .skill-icon,
.skill-card:nth-child(2) .skill-progress-fill {
    background: linear-gradient(135deg, #2c3e50, #4d6478) !important;
}

.skill-card:nth-child(3) .skill-icon,
.skill-card:nth-child(3) .skill-progress-fill {
    background: linear-gradient(135deg, #3f6f7f, #65a2b4) !important;
}

.skill-card:nth-child(4) .skill-icon,
.skill-card:nth-child(4) .skill-progress-fill {
    background: linear-gradient(135deg, #5c7063, #8aa38e) !important;
}

.skill-card:nth-child(5) .skill-icon,
.skill-card:nth-child(5) .skill-progress-fill {
    background: linear-gradient(135deg, #7a5d43, #b08a66) !important;
}

.skill-card:nth-child(6) .skill-icon,
.skill-card:nth-child(6) .skill-progress-fill {
    background: linear-gradient(135deg, #4d5365, #777f99) !important;
}

.skill-card:nth-child(7) .skill-icon,
.skill-card:nth-child(7) .skill-progress-fill {
    background: linear-gradient(135deg, #5b6f91, #8ba1c7) !important;
}

.skill-card:nth-child(8) .skill-icon,
.skill-card:nth-child(8) .skill-progress-fill {
    background: linear-gradient(135deg, #5d4c6f, #8970a1) !important;
}

/* Importance sizing */
.skill-card:nth-child(1) {
    padding: 1.9rem !important;
}

.skill-card:nth-child(1) .skill-top {
    grid-template-columns: 60px 1fr;
}

.skill-card:nth-child(1) .skill-icon {
    width: 60px;
    height: 60px;
    font-size: 1.35rem;
}

.skill-card:nth-child(1) .skill-top h3 {
    font-size: 1.25rem;
}

.skill-card:nth-child(1) .skill-percent {
    font-size: 2.25rem;
}

.skill-card:nth-child(2) {
    padding: 1.7rem !important;
}

.skill-card:nth-child(2) .skill-icon {
    width: 54px;
    height: 54px;
    font-size: 1.22rem;
}

.skill-card:nth-child(2) .skill-percent {
    font-size: 2rem;
}

.skill-card:nth-child(n+5) {
    padding: 1.35rem !important;
}

.skill-card:nth-child(n+5) p {
    font-size: 0.84rem;
    line-height: 1.55;
}

/* Responsive */
@media (max-width: 991px) {
    .skills-grid {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .skills-grid {
        column-count: 1;
    }

    .skill-card,
    .skill-card:nth-child(1),
    .skill-card:nth-child(2),
    .skill-card:nth-child(n+5) {
        padding: 1.3rem !important;
    }

    .skill-card:nth-child(1) .skill-icon,
    .skill-card:nth-child(2) .skill-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .skill-card:nth-child(1) .skill-top,
    .skill-card:nth-child(2) .skill-top {
        grid-template-columns: 48px 1fr;
    }

    .skill-card:nth-child(1) .skill-percent,
    .skill-card:nth-child(2) .skill-percent {
        font-size: 1.45rem;
    }
}






/* ===============================
   Dynamic Process Section
   =============================== */

.process-section {
    position: relative;
    background:
        linear-gradient(135deg, #ffffff 0%, #f7f3ef 48%, #eee8e3 100%) !important;
    overflow: hidden;
}

.process-section .container {
    position: relative;
    z-index: 2;
}

.process-header {
    max-width: 780px;
    margin: 0 auto 3.2rem;
}

.process-heading {
    color: #2c3e50;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.process-subtitle {
    color: rgba(44, 62, 80, 0.72);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 auto;
}

.process-workflow {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(100, 77, 68, 0.12);
    box-shadow: 0 24px 70px rgba(44, 62, 80, 0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.process-workflow::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    right: -120px;
    top: -120px;
    background: rgba(100, 77, 68, 0.08);
    pointer-events: none;
}

.process-workflow::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    left: -100px;
    bottom: -100px;
    background: rgba(44, 62, 80, 0.08);
    pointer-events: none;
}

.process-line {
    position: relative;
    width: calc(100% - 8rem);
    height: 6px;
    margin: 1.1rem auto 2.2rem;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.10);
    overflow: hidden;
    z-index: 2;
}

.process-line-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #644d44, #2c3e50);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.process-step {
    position: relative;
    min-height: 178px;
    padding: 1.2rem 1rem;
    border: 1px solid rgba(100, 77, 68, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.58);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(44, 62, 80, 0.07);
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.process-step::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, #644d44, #2c3e50);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.process-step > * {
    position: relative;
    z-index: 2;
}

.process-step:hover,
.process-step.active {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(44, 62, 80, 0.14);
    border-color: rgba(100, 77, 68, 0.22);
}

.process-step.active::before {
    opacity: 1;
}

.process-step-number {
    display: block;
    color: rgba(44, 62, 80, 0.42);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12rem;
    margin-bottom: 0.8rem;
}

.process-step-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 17px;
    background: linear-gradient(135deg, #644d44, #8a675b);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 12px 28px rgba(100, 77, 68, 0.20);
}

.process-step-title {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.process-step-short {
    display: block;
    color: rgba(44, 62, 80, 0.66);
    font-size: 0.82rem;
    line-height: 1.35;
}

.process-step.active .process-step-number,
.process-step.active .process-step-title,
.process-step.active .process-step-short {
    color: #ffffff;
}

.process-step.active .process-step-icon {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.process-detail-panel {
    position: relative;
    z-index: 2;
    min-height: 210px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 20%, rgba(100,77,68,0.08), transparent 35%),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(100, 77, 68, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
    overflow: hidden;
}

.process-detail {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.4rem;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateX(70px);
    pointer-events: none;
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-detail.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.process-detail-icon {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    background: linear-gradient(135deg, #644d44, #2c3e50);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.18);
}

.process-detail-content span {
    display: inline-block;
    color: #644d44;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12rem;
    margin-bottom: 0.4rem;
}

.process-detail-content h3 {
    color: #2c3e50;
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    line-height: 1.08;
    margin-bottom: 0.85rem;
}

.process-detail-content p {
    color: rgba(44, 62, 80, 0.72);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 780px;
}

/* Responsive */
@media (max-width: 991px) {
    .process-workflow {
        padding: 1.3rem;
    }

    .process-line {
        display: none;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step {
        min-height: 150px;
    }

    .process-detail-panel {
        min-height: 300px;
    }

    .process-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }

    .process-detail-icon {
        width: 70px;
        height: 70px;
        border-radius: 22px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .process-header {
        margin-bottom: 2.2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-workflow {
        border-radius: 26px;
    }

    .process-step {
        min-height: auto;
    }

    .process-detail-panel {
        min-height: 360px;
        border-radius: 24px;
    }

    .process-detail {
        padding: 1.4rem;
    }

    .process-detail-content p {
        font-size: 0.92rem;
        line-height: 1.65;
    }
}









/* اصلاح رنگ ستاره و خط‌های جداکننده در هدر */
.divider-custom.divider-light .divider-custom-line {
    background-color: #644d44 !important;
}
.divider-custom.divider-light .divider-custom-icon {
    color: #644d44 !important;
}

/* اصلاح رنگ دکمه لودینگ پینترستی که قبلاً با هم ساختیم */
.masonry-item .portfolio-item-caption {
    background-color: rgba(100, 77, 68, 0.9) !important; /* هاور عکس‌ها به رنگ قهوه‌ای با شفافیت */
}

/* اصلاح رنگ دکمه‌های اصلی (Primary Buttons) */
.btn-primary {
    --bs-btn-bg: #644d44 !important;
    --bs-btn-border-color: #644d44 !important;
    --bs-btn-hover-bg: #4b3932 !important;
    --bs-btn-hover-border-color: #4b3932 !important;
    --bs-btn-focus-shadow-rgb: 100, 77, 68 !important;
    --bs-btn-active-bg: #4b3932 !important;
    --bs-btn-active-border-color: #4b3932 !important;
    --bs-btn-disabled-bg: #644d44 !important;
    --bs-btn-disabled-border-color: #644d44 !important;
}

/* اصلاح رنگ دکمه‌های Outline (مثل دکمه About) */
.btn-outline-light {
    --bs-btn-color: #644d44 !important;
    --bs-btn-border-color: #644d44 !important;
    --bs-btn-hover-bg: #644d44 !important;
    --bs-btn-hover-border-color: #644d44 !important;
    --bs-btn-active-bg: #4b3932 !important;
    --bs-btn-active-border-color: #4b3932 !important;
}

/* اصلاح رنگ هاور لینک‌های منوی ناوبری (Header Navigation) */
#mainNav .navbar-nav li.nav-item a.nav-link:hover {
    color: #644d44 !important;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link.active {
    background: #644d44 !important;
    color: #fff !important;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active:focus {
    background: #4b3932 !important;
    color: #fff !important;
}

/* اصلاح رنگ بک‌گراند آیکون ضربدر و عنوان در پورتفولیو مدال‌ها */
.portfolio-modal .btn-close {
    color: #644d44 !important;
}

/* رنگ خط فوکوس فیلدهای فرم تماس */
.form-control:focus {
    border-color: #644d44 !important;
    box-shadow: 0 0 0 0.25rem rgba(100, 77, 68, 0.25) !important;
}



/* سفید کردن ستاره و خطوط هدر */
.masthead .divider-custom.divider-light .divider-custom-line {
    background-color: #ffffff !important;
}

.masthead .divider-custom.divider-light .divider-custom-icon {
    color: #ffffff !important;
}

/* استایل ناوبار در بالاترین نقطه صفحه (حالت عادی) */
#mainNav {
    background-color: rgba(44, 62, 80, 0.3) !important; /* رنگ فرعی قالب با اپاسیتی 0.6 */
    transition: background-color 0.3s ease-in-out, padding-top 0.3s, padding-bottom 0.3s !important;
}

/* استایل ناوبار به محض شروع اسکرول به سمت پایین */
#mainNav.navbar-shrink {
    background-color: rgba(44, 62, 80, 0.9) !important; /* تغییر اپاسیتی به 0.9 */
}


/* ===============================
   Professional Navbar
   =============================== */

.custom-navbar {
    padding: 1.05rem 0;
    background: rgba(24, 35, 45, 0.82) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    transition: padding 0.25s ease, background-color 0.25s ease;
}

.custom-navbar .container {
    max-width: 1180px;
}

.custom-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff !important;
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #644d44, #d7c5ba);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.brand-mark i {
    font-size: 1.2rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.05rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.brand-text small {
    margin-top: 0.22rem;
    color: rgba(255,255,255,0.62);
    font-size: 0.68rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.custom-navbar .nav-link {
    color: rgba(255,255,255,0.78) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    padding: 0.85rem 0.75rem !important;
    transition: color 0.25s ease, transform 0.25s ease;
}

.custom-navbar .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.custom-navbar .nav-cta {
    padding: 0.72rem 1.15rem !important;
    border-radius: 999px;
    color: #2c3e50 !important;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.custom-navbar .nav-cta:hover {
    color: #644d44 !important;
    transform: translateY(-2px);
}

.custom-toggler {
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
}

.custom-toggler:focus {
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .custom-navbar {
        background: rgba(24, 35, 45, 0.95) !important;
    }

    .custom-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(255,255,255,0.08);
    }

    .custom-navbar .nav-link {
        padding: 0.75rem 0 !important;
    }

    .custom-navbar .nav-cta {
        display: inline-flex;
        padding: 0.75rem 1.2rem !important;
        margin-top: 0.6rem;
    }
}

/* ===============================
   Professional Hero Header
   =============================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 9rem 0 6rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(24,35,45,0.92), rgba(100,77,68,0.78)),
        url("/Reisi/assets/img/header-bg.jpeg") center center / cover no-repeat;
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 240px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 94%);
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.10), transparent 26%),
        radial-gradient(circle at 85% 70%, rgba(215,197,186,0.18), transparent 28%),
        linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.25));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.4rem, 5.6vw, 5.9rem);

    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.4rem;
    max-width: 850px;
    text-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.hero-subtitle {
    max-width: 720px;
    color: rgba(255,255,255,0.80);
    font-size: clamp(1rem, 1.3vw, 1.22rem);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.2rem;
}

.hero-primary-btn {
    background: #ffffff !important;
    color: #2c3e50 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.95rem 1.7rem !important;
    font-weight: 800 !important;
    box-shadow: 0 15px 34px rgba(0,0,0,0.22);
}

.hero-outline-btn {
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.55) !important;
    border-radius: 999px !important;
    padding: 0.95rem 1.7rem !important;
    font-weight: 800 !important;
    background: rgba(255,255,255,0.06) !important;
}

.hero-outline-btn:hover {
    background: rgba(255,255,255,0.14) !important;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-trust-row div {
    min-width: 135px;
    padding: 0.95rem 1.1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-trust-row strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.hero-trust-row span {
    display: block;
    color: rgba(255,255,255,0.66);
    font-size: 0.78rem;
    line-height: 1.35;
}

.hero-visual {
    position: relative;
}

.hero-profile-card {
    position: relative;
    padding: 2.2rem;
    border-radius: 34px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.26);
    overflow: hidden;
}

.hero-profile-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -70px;
    right: -70px;
    background: rgba(215,197,186,0.22);
}

.profile-label {
    position: relative;
    display: inline-block;
    margin-bottom: 1.3rem;
    color: rgba(255,255,255,0.64);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.hero-profile-card h2 {
    position: relative;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-profile-card p {
    position: relative;
    color: rgba(255,255,255,0.76);
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.profile-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.profile-tags span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    font-size: 0.76rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        max-width: 520px;
    }
}

@media (max-width: 575px) {
    .brand-text small {
        display: none;
    }

    .hero-title {
        font-size: 2.35rem;
    }

    .hero-profile-card {
        padding: 1.6rem;
        border-radius: 26px;
    }

    .hero-trust-row div {
        width: 100%;
    }
}



/* ===============================
   Hero Profile Image Card
   =============================== */

.hero-profile-card,
.profile-tags,
.hero-trust-row {
    display: none !important;
}

.hero-profile-image-card {
    position: relative;
    border-radius: 36px;
    padding: 1.1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.26);
    overflow: hidden;
}

.hero-profile-image-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    top: -90px;
    right: -80px;
    background: rgba(215,197,186,0.24);
    pointer-events: none;
}

.hero-profile-image-wrap {
    position: relative;
    z-index: 2;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.10);
}

.hero-profile-image {
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: contrast(1.04) saturate(0.95);
}

.hero-profile-contact {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.2rem 1.1rem;
}

.hero-profile-contact .profile-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.68);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.hero-profile-contact h2 {
    color: #ffffff;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    line-height: 1.05;
    margin-bottom: 0.65rem;
}

.hero-profile-contact p {
    color: rgba(255,255,255,0.74);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

.hero-whatsapp-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    background: #25d366 !important;
    color: #2c3e50 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.85rem 1.35rem !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-whatsapp-btn i {
    color: #25D366;
    font-size: 1.15rem;
}

.hero-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(0,0,0,0.26);
}

/* Mobile */
@media (max-width: 991px) {
    .hero-profile-image-card {
        max-width: 480px;
    }

    .hero-profile-image {
        height: 380px;
    }
}

@media (max-width: 575px) {
    .hero-profile-image-card {
        border-radius: 28px;
        padding: 0.85rem;
    }

    .hero-profile-image-wrap {
        border-radius: 22px;
    }

    .hero-profile-image {
        height: 320px;
    }

    .hero-profile-contact {
        padding: 1.2rem 0.9rem 0.9rem;
    }
}

/* ===============================
   Controlled Section Blends - Final
   فقط برای سکشن‌های اصلی بعد از جابه‌جایی
   =============================== */

body {
    background-color: #ffffff !important;
}

/* پایه عمومی */
.page-section,
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
}

/* همه محتوای سکشن‌ها روی گرادینت بماند */
.page-section > .container,
.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* جلوگیری از اینکه گرادینت روی محتوا بیفتد */
#portfolio,
#services,
#certificates,
#technical-skills,
#faq,
#process,
#about {
    padding-bottom: 8rem !important;
}

/* --------------------------------
   Hero -> Services / first white section
   -------------------------------- */

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 260px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(247,243,239,0.25) 42%,
        rgba(247,243,239,0.75) 76%,
        #f7f3ef 100%
    ) !important;
}

/* --------------------------------
   Portfolio / white section -> About brown section
   اگر About بعد از Portfolio است
   -------------------------------- */

#portfolio::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 360px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(247,243,239,0.45) 35%,
        rgba(150,130,122,0.50) 70%,
        #644d44 100%
    ) !important;
}

/* --------------------------------
   Certificates / white section -> FAQ white/cream
   اینجا فقط نرم و کرمی شود، نه قهوه‌ای تیره
   -------------------------------- */

#certificates::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 300px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(238,232,227,0) 0%,
        rgba(238,232,227,0.45) 45%,
        rgba(247,243,239,0.80) 78%,
        #f7f3ef 100%
    ) !important;
}

/* --------------------------------
   Technical Skills / white section -> Process white/cream
   چون هر دو روشن هستند، فقط مرز را نرم می‌کنیم
   -------------------------------- */

#technical-skills::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 300px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(247,243,239,0.45) 45%,
        rgba(238,232,227,0.75) 78%,
        #eee8e3 100%
    ) !important;
}

/* --------------------------------
   FAQ / white section -> Process white/cream
   اگر FAQ قبل از Process قرار گرفته
   -------------------------------- */

#faq::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 300px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(247,243,239,0.45) 45%,
        rgba(238,232,227,0.75) 78%,
        #eee8e3 100%
    ) !important;
}

/* --------------------------------
   About brown section -> next white/cream section
   اگر بعد از About یک سکشن روشن داری
   -------------------------------- */

#about::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 360px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(100,77,68,0) 0%,
        rgba(100,77,68,0.70) 28%,
        rgba(150,130,122,0.45) 58%,
        rgba(247,243,239,0.75) 84%,
        #f7f3ef 100%
    ) !important;
}

/* اگر یک سکشن خاص نباید fade داشته باشد، اینجا خاموشش کن */
#services::after,
#process::after {
    content: none !important;
    display: none !important;
}