/*
===============
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: #f6f6f6;
    --clr-grey-3: #1f1f1f;
    --clr-green-1: #e8e4e2;
    --clr-green-2: #D5E7B5;
    --clr-green-3: #185519;
    --clr-grey-4: #F2AE66;
    --clr-light-1: #c800ff;
    --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-grey-2);
    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-grey-2);
    font-size: medium;
}
@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;
    }
}
/*  global classes */

.btn {
    background: var(--clr-light-or);
    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-white);
    background: var(--clr-orange);
}

.section {
    padding: 5rem 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: 4rem;
    text-align: center;
    color: #222222;
}

.underline {
    width: 5rem;
    height: 0.25rem;
    background: var(--clr-primary-2);
    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: 1000;
}

.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-primary-2);
    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-primary-4);
    }

    .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: 999;
    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
===============
*/
.hero {
    background: var(--clr-purple);
}

.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;
}

/*
===============
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;
}

/* ===== Slider Styles ===== */
.slider {
    position: relative;
    max-width: 25rem;
    overflow: hidden;
    border-radius: var(--radius);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

/*اسلایدر gpt-5*/
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slide-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev {
    left: 0.5rem;
}
.next {
    right: 0.5rem;
}
.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 6;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgb(208, 208, 208);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--clr-light-or);
}

/* ===== Slider Styles ===== */


.about-title {
    margin-bottom: 2rem;
}

.about-title .underline {
    margin-right: 0;
}

@media screen and (min-width: 768px) {
    .about-center {
        grid-template-columns: 1fr 1fr;
    }

    .about-img {
        position: relative;
    }

    .about-info {
        align-self: center;
    }
}
@media screen and (min-width: 768px) {
    .about-center-1 {
        grid-template-columns: 1fr;
    }

    .about-info-1 {
        align-self: center;
    }
}

/*
===============
Services
===============
*/

.service {
    background: var(--clr-light-grey);
    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;
    }
}

/*
===============
Blog
===============
*/

.blog {
    background: var(--clr-grey-3);
}

.card {
    height:25rem;
    perspective: 1500px;
    position: relative;
    grid-template-columns: 1fr 1fr 1fr;
    }
@media screen and (min-width: 676px) {
    .card {
        height: 29rem;
    }
}

.card-side {
    position: absolute;
    transition: all 0.2s linear;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.card-front {
    background: var(--clr-white);
}

.card:hover .card-front {
    /*transform: rotateY(-180deg);*/
    transform: translateY(3px);
}

.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-green-3);
    font-size: 1.1rem;
}

.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;
}

/*حالت عکس تمام صفحه*/
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.lightbox-close {
    top: 20px;
    left: 20px;
}

.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.7;
}

.lightbox-prev:hover, .lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.contact-title {
    font-size: 0.9rem;
    color: var(--clr-grey-3);
    margin-bottom: 6px;
    margin-top: 10px;
}


/*دکمه های سوشال مدیا gpt*/
.contact-icons {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    align-items: center;
    justify-content: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: var(--clr-grey-3);
    border-radius: 50%;
    transition: transform 0.4s ease, color 0.2s ease, background-color 0.2s ease;
}

.contact-link:hover {
    color: var(--clr-orange);
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.contact-link i {
    font-size: 2rem;
    line-height: 1;
}

/* روبیکا بدون پس‌زمینه */
.icon-rubika {
    width: 40px;
    height: 40px;
    display: block;
}
/*دکمه های سوشال مدیا gpt*/

/*
-----------------
order box
-----------------
*/
.order-box {
    border: 2px solid var(--clr-orange);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    background-color: #fffaf4; /* رنگ ملایم برای جدا شدن از پس‌زمینه */
}

.order-btn {
    display: block;
    padding: 10px 14px;
    background-color: var(--clr-light-or);
    color: black;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
}

.order-btn:hover {
    background-color: var(--clr-orange);; /* کمی تیره‌تر هنگام هاور */
}
/*order box*/
@media (max-width: 768px) {
    .order-btn {
        width: 100%;
        font-size: 1rem;
        padding: 12px 0;
    }

    /* بخش آیکن‌ها وسط‌چین */
    .contact-icons {
        gap: 18px;
        justify-content: center;
    }

    /* دکمه آیکن‌ها: بزرگ‌تر و وسط‌چین کامل */
    .contact-link {
        display: flex;
        align-items: center;
    }

    /* سایز آیکن‌ها (هم فونت آیکن، هم SVG روبیکا) */
    .contact-link i,
    .icon-rubika {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}
