/*
=============== 
Fonts
===============
*/
@font-face {
    font-family: "yekan";
    src: url("../fonts/yekan/YekanNewFaceD1-Regular.ttf") format("truetype"),
        url("../fonts/yekan/YekanNewFaceD1-Medium.ttf") format("truetype"),
        url("../fonts/yekan/YekanNewFaceD1-Bold.ttf") format("truetype");
}

:root {
    --clr-orange: #FF5B22;
    --clr-light-or: #FF9130;
    --clr-purple: #ffffff;
    --clr-grey-1: #afafaf;
    --clr-grey-2: #FFEAC5;
    --clr-grey-3: #222831;
    --clr-green-1: #e8e4e2;
    --clr-green-2: #D5E7B5;
    --clr-green-3: #185519;
    --clr-grey-4: #F2AE66;
    --clr-light-1: #f8d6bf;
    --clr-white: #fff;
    --ff-primary: "yekan", sans-serif;
    --transition: all 0.3s linear;
    --radius: 0.5rem;
    --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --max-width: 1170px;
}

/*
=============== 
Global Styles
===============
*/

*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--ff-primary);
    background: var(--clr-green-1);
    color: var(--clr-grey-3);
    line-height: 1.5;
    font-size: 0.875rem;
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    margin-bottom: 0.75rem;
    font-family: var(--ff-primary);
}
h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 0.875rem;
}
p {
    margin-bottom: 1.25rem;
    color: var(--clr-white);
}
@media screen and (min-width: 800px) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    h4 {
        font-size: 1rem;
    }
    body {
        font-size: 1rem;
    }
    h1,
    h2,
    h3,
    h4 {
        line-height: 1.5;
    }
}
/*  global classes */

.btn {
    background: var(--clr-grey-3);
    color: var(--clr-white);
    padding: 0.375rem 0.75rem;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.875rem;
    font-family: var(--ff-primary);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.btn:hover {
    color: var(--clr-purple);
    background: var(--clr-purple);
}

.section {
    padding: 4rem 0;
}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: var(--max-width);
}

@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
    }
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
    color: #222222;
}

.underline {
    width: 5rem;
    height: 0.25rem;
    background: var(--clr-purple);
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.bg-grey {
    background: var(--clr-green-1);
}

/*
=============== 
Navbar
===============
*/

.nav-links {
    display: none;
}

.nav {
    background: var(--clr-white);
    height: 4.5rem;
    padding: 1rem;
    transition: var(--transition);
    z-index: 3;
}

.nav-center {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.nav-header h3 {
    font-size: 1.75rem;
}

.nav-btn {
    justify-self: end;
    background: transparent;
    border-color: transparent;
    color: var(--clr-purple);
    font-size: 2rem;
    cursor: pointer;
}

@media screen and (min-width: 768px) {
    .nav-btn {
        display: none;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 2rem;
        justify-items: center;
        justify-self: end;
    }

    .nav-links a {
        color: var(--clr-grey-3);
        transition: var(--transition);
    }

    .nav-links a:hover {
        color: var(--clr-light-or);
    }

    .nav-center {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}

.navbar-fixed {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--clr-white);
    box-shadow: var(--light-shadow);
}

/*
=============== 
Sidebar
===============
*/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-grey-3);
    z-index: 4;
    display: grid;
    /* justify-content: center;
    align-items: center; */
    place-content: center;
    transform: translateX(100%);
    transition: var(--transition);
}

.show-sidebar {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    background: transparent;
    border: transparent;
    color: #bb2525;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: #e66b6b;
}

.sidebar-links {
    text-align: center;
}

.sidebar-links a {
    font-size: 1.5rem;
    color: var(--clr-grey-2);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sidebar-links a:hover {
    color: var(--clr-light-or);
    transition: var(--transition);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    column-gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--clr-grey-3);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--clr-orange);
}

/*
===============
Hero
===============
*/


/*1404-02-19


.hero {
    background: var(--clr-primary-5);
}

.hero .underline {
    margin-right: 0;
    margin-bottom: 1rem;
}
/*
.hero-img {
    display: none;
}

.hero-center {
    min-height: calc(100vh - 4.5rem);
    display: grid;
    place-items: center;
}

.hero-info h4 {
    color: var(--clr-grey-3);
    margin-top: 2rem;
}

.hero-btn {
    margin-top: 1.25rem;
    color: #EAE4DD;
    background: #222222;;
}

.hero-icons {
    justify-items: start;
}

@media screen and (min-width: 992px) {
    .hero-img {
        display: block;
        position: relative;
    }

    .hero-center {
        grid-template-columns: 1fr 1fr;
    }

    .hero-photo {
        max-width: 25rem;
        max-height: 30rem;
        object-fit: cover;
        border-radius: var(--radius);
        position: relative;
    }

    .hero-img::before,
    .about-img::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border: 0.25rem solid var(--clr-white);
        border-radius: var(--radius);
        top: 2rem;
        right: -2rem;
    }
}
*/
/*
=============== 
About
===============
*/

.about-center {
    display: grid;
    gap: 3rem;
}

.about-photo {
    max-width: 25rem;
    max-height: 30rem;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
}

.about-img {
    justify-self: center;
}

.about-title {
    margin-bottom: 2rem;
}

.about-title .underline {
    margin-right: 0;
}

@media screen and (min-width: 992px) {
    .about-center {
        grid-template-columns: 1fr 1fr;
    }

    .about-img {
        position: relative;
    }

    .about-info {
        align-self: center;
    }
}

/*
=============== 
Services
===============
*/

.service {
    background: var(--clr-light-1);
    padding: 0rem 0rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service .underline {
    width: 3rem;
    height: 0.12rem;
    transition: var(--transition);
}

.service:hover {
    background: var(--clr-light-or);
    color: var(--clr-grey-3);
}

.service p {
    transition: var(--transition);
    color: #222222;
}

.service:hover p {
    color: var(--clr-grey-3);
}

.service:hover .underline {
    background: var(--clr-orange);
}

@media screen and (min-width: 1px) {
    .services-center {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

@media screen and (min-width: 992px) {
    .services-center {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}


/*
===============
Services-2
===============
*/

@media screen and (min-width: 1px) {
    .services2-center {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

@media screen and (min-width: 992px) {
    .services2-center {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}




/*
===============
Projects
===============
*/

.projects-text {
    width: 85vw;
    max-width: 30rem;
    margin: 0 auto;
}

.project {
    background: var(--clr-purple);
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius);
}

.project-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--clr-grey-3);
    opacity: 0;
    transition: var(--transition);
}

.project-info p {
    color: var(--clr-grey-3);
}

.project:hover .project-info {
    opacity: 1;
}

.project-img {
    transition: var(--transition);
    border-radius: var(--radius);
    height: 15rem;
    object-fit: cover;
}

.project:hover .project-img {
    opacity: 0.1;
}

.project::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0.15rem solid var(--clr-grey-1);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
}

.project:hover::after {
    opacity: 1;
    transform: scale(0.8);
}

@media screen and (min-width: 676px) {
    .projects-center {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

@media screen and (min-width: 992px) {
    .projects-center {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1170px) {
    .projects-center {
        grid-template-rows: 200px 200px;
        gap: 1rem;
        grid-template-areas:
            "a b c"
            "a d d";
    }
    .project {
        height: 100%;
    }

    .project-img {
        height: 100%;
    }

    .project-1 {
        grid-area: a;
    }

    .project-2 {
        grid-area: b;
    }

    .project-3 {
        grid-area: c;
    }

    .project-4 {
        grid-area: d;
    }
}

@media screen and (min-width: 676px) {
    .projects-center-1 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 2rem;
    }
}

@media screen and (min-width: 992px) {
    .projects-center-1 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1170px) {
    .projects-center-1 {
        grid-template-rows: 200px 200px;
        gap: 1rem;
        margin-bottom: -10rem;
        grid-template-areas:
            "e f g"


    }
    .project {
        height: 100%;
    }

    .project-img {
        height: 100%;
    }

    .project-50 {
        grid-area: e;
    }

    .project-60 {
        grid-area: f;
    }

    .project-70 {
        grid-area: g;
    }
}
/*
===============
Connect
===============
*/

.connect {
    min-height: 40rem;
    position: relative;
    display: grid;
    place-items: center;
    padding: 10rem 0 5rem 0;
    margin: 5rem 0;

    -webkit-clip-path: polygon(
        50% 0%,
        100% 10%,
        100% 90%,
        50% 100%,
        0 90%,
        0 10%
    );
    clip-path: polygon(50% 0%, 100% 10%, 100% 90%, 50% 100%, 0 90%, 0 10%);
}

.connect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-white);
    opacity: 0.7;
    z-index: -1;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-banner {
    background: var(--clr-purple);
    text-align: center;
    padding: 3rem 5rem 12rem 5rem;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 75%,
        75% 75%,
        75% 100%,
        50% 75%,
        0% 75%
    );
}

.video-text {
    max-width: 30rem;
    color: #222222;
}

/*
===============
Skills
===============
*/

.skills {
    background: var(--clr-purple);
}

.skills h3 {
    color: var(--clr-purple);
    margin: 1.5rem 0;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill p {
    color: var(--clr-purple);
    margin-bottom: 0.5rem ;
}

.skill-container {
    background: var(--clr-white);
    height: 1rem;
    width: 100%;
    border-radius: var(--radius);
    position: relative;
}

.skill-value {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--clr-purple);
    height: 100%;
    border-radius: var(--radius);
}

.value-50 {
    width: 50%;
}

.value-70 {
    width: 70%;
}

.value-80 {
    width: 80%;
}

.skill-text {
    position: absolute;
    top: -2rem;
    transform: translateX(-50%);
}

.skill-text-50 {
    left: 50%;
}

.skill-text-70 {
    left: 70%;
}

.skill-text-80 {
    left: 80%;
}

@media screen and (min-width: 768px) {
    .skills-center {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

/*
===============
Timeline
===============
*/

.timeline-center {
    width: 80vw;
    max-width: 40rem;
}

.timeline p {
    margin-bottom: 0;
}

.timeline-item {
    border-top: 2px dashed var(--clr-purple);
    padding: 4rem 2rem;
    margin: 0;
    position: relative;
}

.timeline-item:nth-child(even) {
    border-left: 2px dashed var(--clr-purple);
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    margin-right: 2rem;
    padding-right: 0;
}

.timeline-item:nth-child(odd) {
    border-right: 2px dashed var(--clr-purple);
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
    margin-left: 2rem;
    padding-left: 0;
}

.timeline-item:first-child {
    border-top: 0;
    border-top-right-radius: 0;
}

.timeline-item:last-child {
    border-bottom-left-radius: 0;
}

.number {
    position: absolute;
    top: 50%;
    background: var(--clr-orange);
    width: 2rem;
    height: 2rem;
    color: var(--clr-white);
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.timeline-item:nth-child(even) .number {
    left: 0;
}

.timeline-item:nth-child(odd) .number {
    right: 0;
    transform: translate(50%, -50%);
}

/*
===============
Blog
===============
*/

.blog {
    background: var(--clr-grey-3);
}

.card {
    height: 27rem;
    perspective: 1500px;
    position: relative;
}

.card-side {
    position: absolute;
    transition: all 1.5s linear;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.card-front {
    background: var(--clr-white);
}
/*
.card-back {
    background: var(--clr-white);
    transform: perspective();
    display: grid;
    place-items: center;
}

.card:hover .card-front {
    transform: matrix(10);
}

.card:hover .card-back {
    transform: matrix(10);
}
*/
.card-front img {
    height: 13rem;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.card-footer img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.card-info {
    padding: 1rem 1.5rem;
}

.card-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.card-footer p {
    margin-bottom: 0;
    justify-self: end;
    color: var(--clr-grey-4);
    font-size: 0.85rem;
}

.blog-center {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 3rem 1rem;
}

/*
=============== 
Footer
===============
*/

.footer {
    padding-bottom: 2rem;
    background: #222;
    display: grid;
    place-items: center;
}

.footer .social-icons {
    margin-bottom: 2rem;
}

.footer .social-icon {
    color: var(--clr-light-or);
}

.footer .social-icon:hover {
    color: var(--clr-orange);
}

.footer p {
    font-size: 1.25rem;
}



/* فایل style.css - نسخه کامل و اصلاح شده */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'yekan', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    overflow-x: hidden;
    direction: rtl;
}

/* استایل اصلی اسلایدر */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* گرادیانت و تصویر پس‌زمینه */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(89deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

/* تصاویر پس‌زمینه */
.slide:nth-child(1) {
    background-image: url('../images/HERO-SLIDE-A.webp');
    background-size: cover;
    background-position: center;
}
.slide:nth-child(2) {
    background-image: url('../images/hero-feather.webp');
    background-size: cover;
    background-position: center;
}
.slide:nth-child(3) {
    background-image: url('../images/HERO-SLIDE-B.webp');
    background-size: cover;
    background-position: center;
}
/* محتوای اسلاید */
.slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #fff;
    text-align: right;
    max-width: 600px;
    padding: 40px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #222;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* دکمه‌های ناوبری مینیمال */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hero-slider:hover .slider-nav-btn {
    opacity: 1;
    visibility: visible;
}

.slider-nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { right: 30px; }
.next-btn { left: 30px; }

.slider-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* نقاط ناوبری */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .slide-content {
        right: 5%;
        padding: 30px;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .slide-content h2 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
        opacity: 1;
        visibility: visible;
    }

    .prev-btn { right: 15px; }
    .next-btn { left: 15px; }
}