@font-face {
    font-family: 'fonts';
    src: url('../../font/sans/Sans-Regular.ttf') format('woff'),
        url('../../font/vazir/Vazir-Medium.woff') format('embedded-opentype'),
        url('../../font/vazir/Vazir-Thin.eot') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-orange: #ff7a0c;
    --brand-green: #128d21;
    --brand-perple: #6500d3;
    --panel: #ece9e8;
    --teal: #18a999;
    --danger: #dc3545;
    --nav-h: 70px;
    /* در موبایل/تبلت */
    --nav-h-desktop: 84px;
}

/* ✅ صفحه اسکرول نخوره */


body {
    font-family: fonts;
    font-size: 15px;
    color: #111;
    direction: rtl;
    background-color: #ece9e8;
}

/* ---------- Navbar ---------- */
.topbar {
    background: var(--panel);
    border-bottom: 4px solid var(--brand-orange);
    position: relative;
    min-height: var(--nav-h-desktop);
    flex: 0 0 auto;
}

.navbar-toggler {
    border: 0 !important;
    box-shadow: none !important;
    padding: 8px 10px;
}

.burger {
    width: 34px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #111;
}

.nav-link {
    color: #d15f00 !important;
    font-weight: 600;
}

.back-button {
    color: white;
    text-decoration: none;
    position: fixed;
    background: #00618f;
    padding: 10px;
    border-radius: 7px;
    font-size: 18px;
}

.brand-logo {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 5px solid var(--brand-orange);
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    z-index: 3;
}

.brand-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

/* ---------- Layout wrapper ---------- */
.page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

h1 {
    margin: 0;
}

h3 {
    font-size: 1.15rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 5px 4px 11px #ccc;
    overflow: hidden;
    flex-direction: column;
    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
    padding: 16px;
}


‌ .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-joz {
    width: 100%;
    background-color: #ff7a0c;

}

.link-btn {
    font-size: 20px;
    text-decoration: none;
    font-weight: 700;
    width: 100%;
    padding: 10px;
    color: #fff;
}



‌ .images {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.portfolio-content {
    padding: 15px;
    flex-grow: 1;
}

‌ .portfolio-content h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #333;
}

‌ .portfolio-content p {
    font-size: 0.9rem;
    color: #666;
}

‌ .portfolio-content a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;

}

‌.portfolio-content a:hover {
    background-color: #0056b3;
}

‌footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #333;
    color: #fff;
    font-size: 0.8rem;
}

/* Container items */
.portfolio-item {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    padding: 40px;
}

/* Slider images */
.slider-wrapper {
    overflow: hidden;
    width: 100%;
    height: 170px;
}

.slider-box {
    display: flex;
    width: 300%;
    animation: slide 30s infinite linear;
}

.slider-box img {
    width: 33.33%;
    height: 170px;
    object-fit: cover;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(10%);
    }

    20% {
        transform: translateX(20%);
    }

    30% {
        transform: translateX(30%);
    }

    40% {
        transform: translateX(40%);
    }

    50% {
        transform: translateX(50%);
    }

    60% {
        transform: translateX(60%);
    }

    70% {
        transform: translateX(70%);
    }

    80% {
        transform: translateX(80%);
    }

    90% {
        transform: translateX(90%);
    }

    100% {
        transform: translateX(100%);
    }


}

/* Content box */
.portfolio-content {
    padding: 10px;
    text-align: center;
}

.btn-joz {
    margin-top: 10px;
    padding: 8px 15px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-joz:hover {
    background: #222;
}

footer {
    text-align: center;
    margin-top: -100px;
}

.dency {
    font-size: 24px;
    font-family: cursive;
    color: #666;
}

.home {
    color: var(--brand-orange);
    text-decoration: none;
}

/* Fullscreen Gallery */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.gallery-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.gallery-btn {
    font-size: 60px;
    cursor: pointer;
    color: white;
    user-select: none;
}

@media (max-width: 991.98px) {
    footer{
        display: none;
    }
    .portfolio-container {
        grid-template-columns: repeat(auto-fill, minmax(336px, 0fr));
        justify-content: center;
    }

    .portfolio-item img {
        height: 180px;
    }

    .nav-item-hide {
        display: none;
    }

    .portfolio-content h3 {
                font-size: 0.80rem;
        font-weight: 700;
    }

    .topbar {
        min-height: var(--nav-h);
    }

    .content {
        padding: 14px 70px;
    }

    .panel {
        max-height: calc(100vh - var(--nav-h) - 90px);
    }

    .brand-logo {
        width: 90px;
        height: 90px;
        top: 18px;
        border: 3px solid #ff7a0c;
        transform: translateX(-42%);
    }

    .brand-logo img {
        width: 84px;
        height: 84px;
    }

    .mobile-center {
        text-align: center;
    }

    .field-error {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .slider-wrapper {
        height: 130px;
    }

    .panel {
        padding: 16px 14px 16px;
    }

    .nav-item-hide {
        display: none;
    }

    .panel-body {
        padding: 0px 2px 0;
    }

    .content {
        padding: 14px 12px;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .portfolio-item img {
        height: 120px;
        width: 40%;
    }

    .portfolio-content {
        padding: 10px;
    }
}