﻿/* نوار بالایی */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    text-align: right
}

/* کانتینر اسلایدر */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden
}

/* ردیف اسلایدها */
.slides {
    display: flex;
    direction: ltr;
    width: 100%;
    height: 100%;
    transition: transform .7s ease-in-out
}

/* هر اسلاید */
.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

/* کانتینر دایره‌ها */
.circle-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    animation: expand 1s ease-out 0.2s forwards;
}

/* دایره بیرونی (آبی) */
.circle-outer {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c724d, #fcc9c9a1);
    /*box-shadow: 0 0 40px rgba(30, 60, 114, 0.06), 0 0 80px rgba(30,60,114,0.3);*/
    z-index: 5;
}

/* دایره داخلی (آبی روشن‌تر) */
.circle-inner {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f758147, #be060673);
    /*box-shadow: inset 0 0 30px rgba(0,0,0,0.3), 0 0 25px rgba(30,60,114,0.4);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    transform: scale(0);
    animation: expand 1s ease-out 0.5s forwards;
}

/* محتوای داخل دایره */
.circle-content {
    position: relative;
    z-index: 15;
}

    .circle-content h1 {
        margin: 0 0 15px;
       
        color: #ecf0f1;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        opacity: 0;
        animation: fadeInText 0.8s ease-out 1s forwards
    }

    .circle-content p {
        margin: 0 0 20px;
        font-size: 16px;
        color: #bdc3c7;
        opacity: 0;
        animation: fadeInText 0.8s ease-out 1.3s forwards
    }

    .circle-content button {
       
       
        transition: all 0.3s ease;
        opacity: 0;
        animation: fadeInText 0.8s ease-out 1.6s forwards
    }

        .circle-content button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(52,152,219,0.4)
        }

/* انیمیشن باز شدن دایره‌ها */
@keyframes expand {
    0% {
        transform: scale(0)
    }

    100% {
        transform: scale(1)
    }
}

/* انیمیشن متن */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* دکمه‌های جهت */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(189, 0, 0);
    color: #fff;
    border: none;
    padding: 12px 5px;
    cursor: pointer;
    font-size: 20px;
    z-index: 98;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

    .nav-btn:hover {
        background: rgba(30,60,114,0.9);
        transform: translateY(-50%) scale(1.1)
    }

.prev {
    left: 20px
}

.next {
    right: 20px
}

/* موبایل */
@media(max-width:500px) {
    .circle-container {
        width: 90vw;
        height: 90vw
    }

    .circle-outer {
        width: 90vw;
        height: 90vw
    }

    .circle-inner {
        width: 80vw;
        height: 80vw
    }

    .circle-content h1 {
        font-size: 22px
    }

    .circle-content p {
        font-size: 14px
    }
}

/* ریست انیمیشن برای اسلاید جدید */
.slide:not(.active) .circle-container,
.slide:not(.active) .circle-inner,
.slide:not(.active) .circle-content h1,
.slide:not(.active) .circle-content p,
.slide:not(.active) .circle-content button {
    animation: none;
    transform: scale(0);
    opacity: 0
}

/* اسلاید فعال */
.slide.active .circle-container {
    animation: expand 1s ease-out 0.2s forwards
}

.slide.active .circle-inner {
    animation: expand 1s ease-out 0.5s forwards
}

.slide.active .circle-content h1 {
    animation: fadeInText 0.8s ease-out 1s forwards
}

.slide.active .circle-content p {
    animation: fadeInText 0.8s ease-out 1.3s forwards
}

.slide.active .circle-content button {
    animation: fadeInText 0.8s ease-out 1.6s forwards
}
