/* =========================================================
   BASE
   ========================================================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: "Vazirmatn", sans-serif;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

.btn {
    margin-top: 30px;
    padding: 14px 35px;
    background: #111;
    color: white;
    text-decoration: none;
}

/* =========================================================
   SITE LOADER
   ========================================================= */
#site-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity .6s ease, visibility .6s ease;
}

    #site-loader.hide {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loader-logo {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loader-logo img {
        width: 200px;
        height: 200px;
        object-fit: contain;
        animation: loader-pulse 1.8s ease-in-out infinite;
        z-index: 2;
    }

.loader-ring {
    position: absolute;
    inset: 0;
    border: 4px solid #eee;
    border-top-color: #111;
    border-radius: 50%;
    animation: loader-spin 3.5s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(.9);
    }
}

/* =========================================================
   HEADER
   ========================================================= */
.main-header {
    width: 100%;
    padding: 15px 95px 15px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    direction: ltr;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    direction: ltr;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    height: 70px;
    width: auto;
}

.logo-link span {
    margin-top: 30px; /* عدد رو کم‌کم زیاد کنید تا جای دلخواه برسه */
    color: #111;
    font-size: 17px;
    letter-spacing: 5px;
}.menu {
    display: flex;
    gap: 45px;
    direction: rtl;
}

    .menu a {
        color: #111;
        text-decoration: none;
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

        .menu a:hover {
            opacity: 0.5;
        }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    text-align: center;
    color: #777;
}

/* =========================================================
   HOME / HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 40px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background-color: #ffffff;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

    .hero-btn:hover {
        background-color: #d4af7a;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .hero-btn .arrow {
        transition: transform 0.3s ease;
    }

    .hero-btn:hover .arrow {
        transform: translateX(-5px);
    }

    .hero-btn.light {
        background-color: #fff;
        color: #111;
    }

        .hero-btn.light:hover {
            background-color: #d4af7a;
            color: #fff;
        }

    .hero-btn.dark {
        background-color: #111;
        color: #fff;
    }

        .hero-btn.dark:hover {
            background-color: #d4af7a;
            color: #fff;
        }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
}

    .scroll-indicator span {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 8px;
        background: #fff;
        border-radius: 2px;
        animation: scrollBounce 1.6s infinite;
    }

@keyframes scrollBounce {
    0% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 20px;
        opacity: 0.3;
    }

    100% {
        top: 8px;
        opacity: 1;
    }
}

/* =========================================================
   HOME / SHARED SECTION STYLES
   ========================================================= */
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d4af7a;
    margin-bottom: 15px;
}

section h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* =========================================================
   HOME / ABOUT INTRO
   ========================================================= */
.about-intro {
    padding: 70px 0;
    text-align: center;
}

    .about-intro p {
        max-width: 700px;
        margin: 0 auto 25px;
        color: #555;
        line-height: 2;
        font-size: 1.05rem;
    }

.text-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

    .text-link:hover {
        color: #d4af7a;
        border-color: #d4af7a;
    }

/* =========================================================
   HOME / STATS
   ========================================================= */
.stats {
    background-color: #1a1a1a;
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #d4af7a;
}

    .stat-number::after {
        content: attr(data-suffix);
    }

.stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   HOME / FEATURED PROJECTS
   ========================================================= */
.featured-projects {
    padding: 50px 0 100px;
    text-align: center;
    background-color: #f5f5f5;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
    text-align: right;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 320px;
    cursor: pointer;
}

    .featured-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .featured-card:hover img {
        transform: scale(1.08);
    }

.featured-info {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 25px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
}

    .featured-info h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .featured-info span {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.8);
    }

.center-btn {
    margin-top: 50px;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

    .outline-btn:hover {
        background-color: #1a1a1a;
        color: #fff;
    }

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HOME / CTA
   ========================================================= */
.cta {
    padding: 110px 0;
    text-align: center;
    background-color: #111;
    color: #fff;
}

    .cta h2 {
        color: #fff;
    }

    .cta p {
        color: rgba(255,255,255,0.7);
        margin-bottom: 35px;
        font-size: 1.05rem;
    }

/* =========================================================
   SCROLL REVEAL (Fail-Safe)
   ========================================================= */
.reveal {
    opacity: 1;
    transform: none;
}

html.js-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    html.js-ready .reveal.in-view {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================================================
   PROJECTS PAGE (/Projects listing)
   ========================================================= */
.projects-page {
    padding: 30px 70px 100px;
}

.projects-title {
    text-align: center;
    margin-bottom: 80px;
}

    .projects-title h1 {
        font-size: 55px;
        font-weight: 300;
        letter-spacing: 6px;
    }

    .projects-title p {
        color: #777;
        font-size: 18px;
        margin-top: 20px;
    }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.project-card {
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: .35s ease;
}

    .project-card img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        transition: .45s ease;
    }

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 18px 40px rgba(0,0,0,.18);
    }

        .project-card:hover img {
            transform: scale(1.08);
        }

.project-content {
    padding: 25px;
    transition: .35s ease;
}

.project-card:hover .project-content {
    transform: translateY(-4px);
}

.project-content h2 {
    font-size: 28px;
    font-weight: 400;
}

.project-content span {
    color: #777;
}

.project-content p {
    line-height: 2;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-page {
    padding: 60px 70px 120px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h1 {
    font-size: 55px;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 40px;
}

.about-text p {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: justify;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-page {
    padding: 100px 70px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h1 {
    font-size: 55px;
    font-weight: 300;
}

.contact-info p {
    font-size: 20px;
    line-height: 2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .contact-form input,
    .contact-form textarea {
        padding: 18px;
        border: 1px solid #ddd;
        font-size: 16px;
    }

    .contact-form textarea {
        height: 180px;
    }

    .contact-form button {
        padding: 18px;
        background: black;
        color: white;
        border: none;
        cursor: pointer;
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .menu {
        gap: 25px;
    }

    .logo-link span {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: 5px;
    }

    .hero-btn {
        padding: 12px 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-page {
        width: 94%;
    }

    .project-card img {
        height: 240px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

        .about-image img {
            height: 380px;
        }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
