html {
  font-size: 14px;
}
body {
    font-family: "Vazirmatn", sans-serif;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
* {
    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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.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;
}

.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f5f5f2;
}

    .hero h1 {
        font-size: 70px;
        letter-spacing: 8px;
        font-weight: 300;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 22px;
        color: #555;
        max-width: 600px;
    }

.btn {
    margin-top: 30px;
    padding: 14px 35px;
    background: #111;
    color: white;
    text-decoration: none;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}


/* HEADER */

.main-header {
    width: 100%;
    padding: 35px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    direction: ltr;
}

/* LOGO */

.logo a {
    color: #111;
    text-decoration: none;
    font-size: 26px;
    letter-spacing: 6px;
}


.logo {
    direction: ltr;
}

/* MENU */
.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 {
    padding: 30px;
    text-align: center;
    color: #777;
}
/* HERO SECTION */

.hero {
    height: calc(100vh - 100px);
    background-image: linear-gradient( rgba(0,0,0,0.25), rgba(0,0,0,0.25) ), url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}



.hero-content h1 {
    font-size: 80px;
    letter-spacing: 15px;
    font-weight: 300;
    margin-bottom: 30px;
}



.hero-content p {
    font-size: 24px;
    letter-spacing: 2px;
    max-width: 600px;
    margin: auto;
}



.hero-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 45px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    letter-spacing: 3px;
    transition: 0.3s;
}



    .hero-btn:hover {
        background: white;
        color: black;
    }
/* PROJECTS PAGE */


.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: 40px;
}



.project-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}



.project-item h3 {
    margin-top: 25px;
    font-size: 25px;
    font-weight: 400;
}



.project-item p {
    color: #777;
    letter-spacing: 1px;
}



/* Hover Effect */

.project-item {
    transition: 0.3s;
}



    .project-item:hover {
        transform: translateY(-10px);
    }
/* ABOUT PAGE */


.about-page {
    padding: 120px 70px;
}



.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;
}



.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}
/* CONTACT */


.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;
    }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}


.project-card {
    background: #fff;
    overflow: hidden;
}


    .project-card img {
        width: 100%;
        height: 350px;
        object-fit: cover;
    }


.project-content {
    padding: 25px;
}


    .project-content h2 {
        font-size: 28px;
        font-weight: 400;
    }


    .project-content span {
        color: #777;
    }


    .project-content p {
        line-height: 2;
    }

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    height: 38px;
    width: auto;
}

.logo-link span {
    margin-top: 6px;
}
.project-card {
    cursor: pointer;
    overflow: hidden;
    transition: .35s ease;
}

    .project-card img {
        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-card:hover .project-content {
            transform: translateY(-4px);
        }

.project-content {
    transition: .35s ease;
}
/* ===========================
      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: 165px;
        height: 165px;
        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);
    }
}