/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-purple: #2c1e69;
    --deep-purple: #1e0f4d;
    --light-purple: #8f7ee5;
    --text-color: #ffffff;
    --gradient-start: #6c5ce7;
    --gradient-middle: #a367e7;
    --gradient-end: #e45e9d;
    --faq-gradient-start: #e45e9d;
    --faq-gradient-end: #9b59b6;
}

body {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--deep-purple), var(--dark-purple));
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    text-align: right;
    direction: rtl;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    padding: 0;
    background-color: rgba(44, 30, 105, 0.8);
}

.navbar-brand img.logo {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Navbar Toggler Icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: right;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.download-btn {
    background: linear-gradient(45deg, var(--light-purple), var(--accent-color), var(--primary-color), var(--accent-color));
    background-size: 300% 300%;
    color: var(--text-color);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    animation: gradientShift 3s ease infinite, pulse 2s ease-in-out infinite, shake 4s ease-in-out infinite;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: sparkle 2.5s linear infinite;
}

.download-btn::after {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: twinkle 1.5s ease-in-out infinite;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.6);
    color: var(--text-color);
    animation-play-state: paused;
}

.download-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Keyframe animations for download button */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 10px rgba(108, 92, 231, 0.4);
    }
    50% {
        box-shadow: 0 8px 20px rgba(108, 92, 231, 0.8), 0 0 20px rgba(253, 121, 168, 0.5);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    50% { transform: translateX(0); }
}

@keyframes sparkle {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: translateY(-50%) scale(1.2);
    }
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

/* How to Get Rewards Section */
.how-section {
    padding: 100px 0;
    position: relative;
    /* background: linear-gradient(0deg, var(--gradient-end), var(--gradient-middle), transparent); */
    /* clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%); */
    margin-top: -50px;
    padding-top: 50px;
}

.how-section-bg {
    position: absolute;
    top: 20%;
    width: 100%;
    height: 80%;
    background: linear-gradient(0deg, var(--gradient-end), var(--gradient-middle), transparent);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.steps-row {
    margin-top: 50px;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.step-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.step-icon {
    margin-bottom: 20px;
}

.step-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.step-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-align: center;
}

.bg-glow-purple {
    background: radial-gradient(ellipse closest-side, #6525d5 20%, #00000000 150%);
}

.bg-glow-purple-lt {
    background: radial-gradient(ellipse closest-side, #ff84c799 0%, #00000000 150%);
}

/* Mission Section */
.mission-section {
    padding: 80px 0;
    background: var(--deep-purple);
    position: relative;
    overflow: hidden;
}

.mission-phone-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mission-phone {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    z-index: 2;
}

.mission-phone:before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 132, 199, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
    z-index: -500;
}

.mission-phone img {
    width: 100%;
    border-radius: 20px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
}

.phone-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 3;
}

.phone-nav-btn:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.prev-btn {
    margin-right: 10px;
}

.next-btn {
    margin-left: 10px;
}

.mission-content {
    padding: 20px;
    text-align: right;
}

.mission-tabs-container {
    margin: 0px 0;
}

.mission-tabs-container .nav-pills {
    display: inline-flex;
    border-bottom: none;
}

.mission-tabs-container .nav-link {
    color: var(--text-color);
    background-color: transparent;
    border-radius: 0;
    font-size: 1.1rem;
    padding: 10px 20px;
    /* margin-right: 10px; */
    position: relative;
    border-bottom: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.mission-tabs-container .nav-link.active {
    color: var(--text-color);
    background-color: transparent;
    font-weight: 600;
}

.slide-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.slide-number {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--text-color);
}

.current-slide {
    font-weight: 700;
    font-size: 1.5rem;
}

.slide-divider {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.6);
}

.slide-dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.mission-instructions {
    margin-top: 20px;
}

.mission-instructions h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.mission-steps {
    list-style-type: none;
    padding-right: 0;
    margin-bottom: 0;
}

.mission-steps li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    line-height: 1.5;
    text-align: justify;
}

.mission-steps li:before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    right: 0;
    font-size: 1.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--faq-gradient-start), var(--faq-gradient-end));
}

.faq-tabs {
    margin-top: 40px;
}

.nav-pills {
    /* gap: 10px; */
    flex-wrap: wrap;
}

.nav-pills .nav-link {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    padding: 10px 15px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-pills .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: transparent;
    color: var(--text-color);
}

.nav-pills .nav-link.active::after {
    width: 100%;
}

.accordion {
    margin-top: 30px;
}

.accordion-item {
    background-color: #261B52;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    box-shadow: none;
}

.accordion-button::after {
    display: none;
}

.accordion-button .faq-icon {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.accordion-body {
    background-color: rgba(255, 255, 255, 0.05);
    color: #d1c4e9;
    padding: 20px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--deep-purple);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-logo-img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-description {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-copyright {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-content {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .how-section {
        padding-top: 60px;
    }
    
    .video-container {
        height: 350px;
    }
    
    .mission-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .mission-tabs-container .nav-pills {
        justify-content: center;
    }
    
    .slide-indicator {
        justify-content: center;
    }
    
    .mission-instructions {
        text-align: right;
    }
    
    .mission-phone-container {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }
    .custom-center-mobile {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .step-card {
        margin-bottom: 20px;
    }
    
    .how-section {
        padding-top: 80px;
    }
    
    .video-container {
        height: 250px;
    }
    
    .nav-pills {
        flex-direction: row;
    }
    
    .nav-pills .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .mission-phone {
        max-width: 220px;
    }
    
    .phone-nav-btn {
        font-size: 1.2rem;
    }
    
    .mission-tabs-container .nav-link {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .slide-number {
        font-size: 1rem;
    }
    
    .current-slide {
        font-size: 1.3rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .mission-instructions h4 {
        font-size: 0.9rem;
        text-align: center;
    }

    #missionTabs .nav-link {
        z-index: 1000;
    }
}