/*
Theme Name: Sepanta
Theme URI: http://example.com
Author: Milad7091@gmail.com
Author URI: http://example.com
Description: برای تغییر در این قالب حتما با طراح آن ارتباط داشته باشید، در غیر این صورت طراح هیچ گونه مسئولتی در مورد خراب شدن این قالب به عهده نمیگیرد
Version: 1.0
Text Domain: sepanta
*/

@font-face {
    font-family: Yekan;
    src: url('fonts/Yekan.eot');
    src: url('fonts/Yekan.eot?#iefix') format('fonts/Yekan-opentype'),
    url('fonts/Yekan.woff') format('woff'),
    url('fonts/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Yekan';
}

/* رنگ و فونت لینک‌ها */
.navbar-nav .nav-link {
    font-weight: 600; /* ضخامت متن */
    padding: 0.8rem 1rem; /* فاصله داخلی */
    transition: color 0.3s; /* افکت هاور */
}

/* هاور لینک‌ها */
.navbar-nav .nav-link:hover {
    color: #F7C660; /* رنگ هاور */
    text-decoration: none;
}

/* آیتم فعال */

.menu-item > .nav-item , .menu-item > nav-link,.menu-item > .nav-link, .navbar-nav .current-menu-item > .nav-link {
    color: #F7C660;
    font-weight: 700;
}



/* فاصله بین آیتم‌ها */
.navbar-nav .nav-item + .nav-item {
    margin-left: 1rem; /* فاصله افقی بین آیتم‌ها */
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item + .nav-item {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* والد navbar را relative کن */
.navbar {
    position: relative;
    background-color: #273E74 !important;
}

/* لوگو */
.logo-img {
    position: absolute;
    top: 100%;
    transform: translate(-20%, -65%);
    max-height: 100px;
    height: auto;
    z-index: 10;
}


/* فاصله منوها از لوگو */
.navbar-nav {
    margin-right: 100px; /* فاصله افقی از لوگو */
}

.footer-section {
    font-family: 'Tahoma', sans-serif; /* پیشنهاد می‌شود از فونت‌های فارسی مثل Vazir استفاده کنید */
}

/* ایجاد حالت منحنی در بخش زرد (مشابه تصویر) */
@media (min-width: 992px) {
    .bg-warning {
        border-top-right-radius: 50px;
        min-height: 350px;
    }
}

.footer-section ul li a {
    cursor: pointer;
    transition: 0.3s;
    color: #ccc;
}

.footer-section ul li a:hover {
    color: #ffc107; /* رنگ زرد هنگام هاور */
    padding-right: 5px;
}

.footer-logo {
    width: 120px;
}


.service-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 23px;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.6);
    transition: transform 0.7s ease;
}

/* المان‌های کوچک روی کارت */
.card-elements span {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translateY(0);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.card-elements .line {
    border-radius: 2px;
}

/* هاور کارت */
.service-card:hover .card-bg {
    transform: scale(1.12);
    filter: brightness(0.8);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.25);
}


.card-info {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px 60px;
    color: #fff;
    font-family: 'IranSans', sans-serif;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.3); /* بک‌گراند نیمه شفاف برای خوانایی */
    border-radius: 12px;
    overflow: hidden;
}

.card-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.06), transparent 60%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
    border-radius: 12px;
}

.card-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.card-info p {
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}


.e1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.e2 {
    width: 50px;
    height: 50px;
    top: 30%;
    left: 70%;
    animation-delay: 2s;
}

.e3 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 40%;
    animation-delay: 4s;
}

.e4 {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* ارتفاع پویا بر اساس محتوا */
}

.hero-bg img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 10%;
    z-index: 10;
    color: #bc191a;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 15px;
}

.hero-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.hero-elements .circle {
    position: absolute;
    background-color: rgba(50, 150, 200, 0.7);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.hero-elements .line {
    position: absolute;
    background-color: rgba(50, 150, 200, 0.7);
    transition: transform 0.5s ease;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }
}


.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 250px;
    margin: 50px 0;
}

.card-bg {
    flex: 1;
    background-size: cover;
    background-position: center;
    transform: translateX(-100%); /* اول خارج از دید */
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.card-info {
    flex: 1;
    padding: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(100%); /* اول خارج از دید */
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* وقتی کارت در viewport شد */
.service-card.visible .card-bg {
    transform: translateX(0);
    opacity: 1;
}

.service-card.visible .card-info {
    transform: translateX(0);
    opacity: 1;
}


.hero-content {
    opacity: 0;
    transform: translateY(50px); /* اول پایین‌تر قرار داره */
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0); /* جای اصلیش */
}

.hero-title {
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #666;
}

.hero-bg {
    overflow: hidden;
    position: relative;
}

.page-wrapper {
    background: #fff;
}

/* هدر برگه */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(
            120deg,
            #f6f8fb,
            #ffffff
    );
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #101e5e;
}

.page-content h2,
.page-content h3 {
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* موبایل */
@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 50px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-content {
        padding: 50px 0;
    }
}


/*                  */
.dark {
    background: #111;
    color: #fff
}

.section {
    padding: 20px 0
}

.hero-main-page {
    height: 95vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* تصویر بک‌گراند */
.hero-image-page {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* لایه رویی */
.hero-layer-page {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 1;
    transition: opacity .4s ease;
}
.hero-layer-page:hover
{
    background: rgba(0, 0, 0, 0);
}

/* محتوای هرو */
.hero-content-page {
    position: relative;
    max-width: 650px;
    color: #ffffff;
    text-align: center;
    top: -30%;
    z-index: 2;
}

/* لیبل بالای تیتر */
.hero-label-page {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    opacity: .85;
    margin-bottom: 12px;
}

.editorial {
    background: #f7f7f7
}

.hr-art {
    width: 70px;
    height: 3px;
    background: #000;
    border: 0;
    margin: 30px 0
}

.hr-art.light {
    background: #fff
}

.hr-art.center {
    margin-inline: auto
}

.text-slider {
    border-left: 3px solid #fff;
    padding-left: 30px
}

.text-slider .slide {
    display: none;
    font-size: 1.3rem
}

.text-slider .slide.active {
    display: block
}

.image-split {
    position: relative
}

.split-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover
}

.content-box {
    background: #fff;
    padding: 60px
}

.timeline {
    margin-top: 60px
}

.timeline-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2)
}

.projects-visual .project-row {
    display: flex;
    align-items: center
}

.project-row img {
    width: 65%;
    height: 60vh;
    object-fit: cover
}

.project-row span {
    font-size: 2rem;
    padding: 40px
}

.statement-section {
    background: #ff4a4a;
    color: #fff
}

.statement {
    font-size: 1.6rem;
    line-height: 2;
    text-align: center
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s
}

.reveal.visible {
    opacity: 1;
    transform: none
}



.shadow-text{
    text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px  1px 0 #000000,
            1px  1px 0 #000000,
            0px -1px 0 #000000,
            0px  1px 0 #000000,
            -1px  0px 0 #000000,
            1px  0px 0 #000000,
            0 0 5px #000000;
}

.hr-art{width:70px;height:3px;background:#000;border:0;margin:20px 0;}
.hr-art.center{margin:auto;}

.section-img{width:100%;border-radius:12px;}

#textCarousel .carousel-inner{
    padding:60px 20px;
    background:#f8f9fa;
    border-radius:12px;
}
#textCarousel h3{font-size:1.8rem;font-weight:600;margin-bottom:10px;}
#textCarousel p{font-size:1.2rem;color:#555;}
.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-color:#000;
    border-radius:50%;
}

.image-split{position:relative;margin-bottom:60px;}
.split-img{position:absolute;left:0;top:0;width:50%;height:100%;object-fit:cover;border-radius:12px;}
.content-box{background:#f7f7f7;padding:40px;border-radius:12px;}

.timeline{margin-top:40px;}
.timeline-item{padding:15px 0;border-bottom:1px solid rgba(0,0,0,.1);}

.card-section .card{
    border:0;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.1);
}
.card-section .card-img-top{
    border-radius:12px 12px 0 0;
}

.projects-visual .project-card{position:relative;overflow:hidden;border-radius:12px;}
.projects-visual .project-card img{width:100%;height:250px;object-fit:cover;}
.projects-visual .project-card span{
    position:absolute;
    bottom:139px;
    background:rgba(255,255,255,.8);
    padding:5px 10px;
    border-radius:6px;
    font-weight:bold;
}


.footer-tell{
    background: #273E74;
}

.footer-tell-title{
    color:#f7c660;
}

.footer-text-title{
    background-color:#F7C660;
}