:root {
    --primary-color: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --warning-color: #f59e0b;
    --bg-color: #0A0A0F;
    --card-bg-color: #14141C;
    --text-color: #e2e8f0;
    --text-muted-color: #8892b0;
    --border-color: #2c2c3a;
    --border-glow-color: rgba(99, 102, 241, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.body-no-scroll {
    overflow: hidden;
}

p {
    line-height: 1.9;
    letter-spacing: 0.01em;
    color: var(--text-muted-color);
}

.sub-headline {
    text-align: center;
}

.highlight-primary { color: var(--primary-color); font-weight: 600; }
.highlight-warning { color: var(--warning-color); font-weight: 600; }

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-header {
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.glow-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--border-glow-color) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glow-card:hover:before {
    opacity: 1;
}

.glow-card:hover {
    transform: translateY(-5px);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.215, 0.610, 0.355, 1), padding 0.5s ease;
    padding: 0 1.5rem;
}

.accordion-content p, .accordion-content ul {
    text-align: justify;
}

.accordion-item.active .accordion-content {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-item.active .accordion-header .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    #features-accordion-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        align-items: flex-start;
    }

    #features-accordion-container .accordion-item {
        flex: 1 1 calc(50% - 1.5rem);
        min-width: 300px;
        margin-bottom: 0 !important;
    }
}

.accordion-header h4 {
    font-size: 1.25rem;
    transition: font-size 0.3s ease;
}

@media (max-width: 1200px) {
    .accordion-header h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    .accordion-header h4 {
        font-size: 1.1rem;
    }
}

#scroll-guide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#scroll-guide.visible {
    opacity: 1;
}

.mouse-icon {
    width: 28px;
    height: 48px;
    border: 2px solid var(--text-muted-color);
    border-radius: 14px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-muted-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    25% { opacity: 1; }
    50% { opacity: 0; transform: translate(-50%, 20px); }
    51% { opacity: 0; transform: translate(-50%, -8px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

.gallery-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.gallery-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    opacity: 0.5;
    filter: blur(1px);
    transform: scale(0.8);
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 1rem;
}

.gallery-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-swiper .swiper-slide-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    box-shadow: 0 0 40px var(--primary-glow);
    cursor: pointer;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: rgba(26, 26, 33, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-color);
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev-custom {
    left: 10px;
}
.swiper-button-next-custom {
    right: 10px;
}
.swiper-button-prev-custom::after,
.swiper-button-next-custom::after {
    font-family: 'swiper-icons';
    font-size: 24px;
    font-weight: 900;
}
.swiper-button-prev-custom::after {
    content: 'prev';
}
.swiper-button-next-custom::after {
    content: 'next';
}

@media (max-width: 768px) {
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        display: none;
    }
    .gallery-swiper .swiper-slide {
        width: 80vw;
    }
}

#image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

#image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

#lightbox-image {
    position: absolute;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 0 40px var(--primary-glow);
    cursor: zoom-out;
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
    z-index: 10000;
}

#image-lightbox.active #lightbox-close {
    opacity: 1;
    transform: scale(1);
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-header {
    width: 100%;
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.2s ease;
}
.faq-header:hover {
    color: var(--primary-color);
}
.faq-header::marker,
.faq-header::-webkit-details-marker {
    display: none;
}
.faq-header strong {
    font-weight: 700;
}
.faq-header::after {
    content: ' ';
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 1rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-size: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[open] > .faq-header {
    color: var(--primary-color);
}
.faq-item[open] > .faq-header::after {
    transform: rotate(180deg);
}

.faq-content-wrapper {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-content {
    padding-bottom: 1.5rem;
    padding-right: 0.5rem;
}
.faq-content p {
    text-align: justify;
}
.faq-content ul, .faq-content ol {
    padding-right: 1.25rem;
    margin-top: 1rem;
}
.faq-content li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

/* FAQ more container matches main FAQ container width and uses max-height for smooth reveal */
#faq-more-container {
    max-width: 64rem; /* same as .max-w-4xl */
    margin: 0 auto;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}
#faq-more-container.expanded {
    max-height: 2000px; /* large enough for all items */
}
.faq-more-content-inner {
    overflow: visible;
}
#faq-show-more-btn svg {
    transition: transform 0.3s ease-out;
}
#faq-show-more-btn.expanded svg {
    transform: rotate(180deg);
}