/* استایل جدید برای بخش اصلی */
.hero-section {
    width: 100%;
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f5f7fa;
}

/* محتوا روی کانوا */
.hero-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 3;
}

/* استایل بخش هدر */
/* CANVAS BACKGROUND */
#bg-canvas{
    position: fixed;
    inset:0;
    z-index:0;
}
/* BANNER */
.banner-container{
    margin-bottom: 50px;
    height:550px;
    position:relative;
    overflow:hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    transition: transform 0.3s ease;
}

.banner-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* IMAGE CONTAINER WITH SLIDE-IN ANIMATION */
.img-container{
    position:absolute;
    inset:0;
    padding:30px 0 30px 0;
    z-index:1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ANIMATED IMAGE */
.img-container img{
    position: relative;
    left: 15%;
    width:70%;
    height:auto;
    max-height: 100%;
    object-fit:contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: transform 0.5s ease;
    
    /* Initial state - hidden under left slider */
    transform: translateX(-100px) scale(0.9);
    opacity: 0;
    animation: slideInFromLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px) scale(0.9);
        opacity: 0;
    }
    70% {
        transform: translateX(20px) scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* WHITE PANEL */
.banner-desc{
    position:absolute;
    top:0;
    left:-20%;
    width:70%;
    height:100%;
    z-index:2;
    pointer-events:none;
    display: flex;
}

.banner-desc::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    transform:skewX(30deg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.5s ease;
    
    /* Animation for the panel background */
    animation: panelSlideIn 1s ease-out forwards;
}

@keyframes panelSlideIn {
    0% {
        transform: skewX(30deg) translateX(100%);
        opacity: 0;
    }
    100% {
        transform: skewX(30deg) translateX(0);
        opacity: 1;
    }
}

.banner-container:hover .banner-desc::before {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* ANIMATED BOXES */
.box{
    position: relative;
    right: 20%;
    top: -10%;
    width: 50px;
    height: 250px;
    border-radius: 50px;
    background: linear-gradient(135deg, #4fdcff, #3aa8ff);
    transform: rotate(-30deg);
    opacity: 0.8;
    animation: floatBox 6s ease-in-out infinite, fadeInBox 1s ease-out forwards;
    animation-delay: 0.8s, 0s;
}

.box.extra{
    top: -14%;
    right: 28%;
    animation-delay: 2s, 0.5s;
    background: linear-gradient(135deg, #3aa8ff, #2d8cff);
}

@keyframes fadeInBox {
    0% {
        opacity: 0;
        transform: rotate(-30deg) scale(0.5);
    }
    100% {
        opacity: 0.8;
        transform: rotate(-30deg) scale(1);
    }
}

.desc {
    position: relative;
    top: 92%;
    right: -18%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: auto;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.desc h1{
    font-size: 38pt;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 700;
}

.desc h2{
    font-size: 20pt;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #4fdcff, #3aa8ff);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16pt;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(79, 220, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    pointer-events: auto;
    animation: buttonPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s both;
}
/* LOADING STATE */
.loading {
    opacity: 0;
}

.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* ACCESSIBILITY */
.cta-button:focus {
    outline: 2px solid #3aa8ff;
    outline-offset: 3px;
}

/* REDUCE MOTION FOR PREFERENCE */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* استایل برای بخش محتوا */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 3;
}

/* استایل برای کارت‌های سمت چپ */
.feature-flowchart {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(52, 152, 219, 0.15);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) translateX(5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #3498db;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.feature-card p {
    color: #5d6d7e;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* استایل برای متن سمت راست */
.hero-text-content {
    flex: 1;
    text-align: right;
    color: #2c3e50;
    padding-left: 40px;
    background: white;
    border-radius: 20px;
    padding: 45px 40px;
    border: 1px solid rgba(52, 152, 219, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-text-content h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #2c3e50;
    position: relative;
    padding-bottom: 20px;
}

.hero-text-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to left, #3498db, #2ecc71);
    border-radius: 2px;
}

.hero-text-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #5d6d7e;
    margin-bottom: 35px;
    text-align: justify;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.hero-features li {
    margin-bottom: 15px;
    padding-right: 35px;
    position: relative;
    font-size: 1.1rem;
    color: #2c3e50;
}

.hero-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.4rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 18px 40px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.35);
}

.cta-button span {
    position: relative;
    z-index: 2;
}
/* بخش پشتیبانی */
.video-support-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 3;
    margin-top: 40px;
}

.support-buttons-container {
    max-width: 400px;
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.support-buttons-container h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.support-buttons-container h4 {
    color: #5d6d7e;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.support-button {
    display: block;
    width: 100%;
    padding: 18px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.25);
}

.support-button.call::before {
    content: '📞 ';
}

.support-button.ticket::before {
    content: '🎫 ';
}

.support-button span {
    position: relative;
    z-index: 2;
}

.footer-container {
    margin-top: 0;
}
@keyframes buttonPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(79, 220, 255, 0.4);
    background: linear-gradient(135deg, #3aa8ff, #2d8cff);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* ANIMATIONS */
@keyframes floatBox {
    0%, 100% {
        transform: rotate(-30deg) translateY(0);
    }
    50% {
        transform: rotate(-30deg) translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .desc h1 {
        font-size: 32pt;
    }
    
    .desc h2 {
        font-size: 18pt;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 15pt;
    }
    
    .img-container img {
        width: 75%;
        left: 0;
    }
}

@media (max-width: 1100px) {
    .hero-content {
        flex-direction: column;
        gap: 60px;
    }

    .hero-text-content {
        padding-left: 40px;
        text-align: center;
    }

    .hero-text-content h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .hero-features li {
        text-align: right;
    }

    .hero-header h1 {
        font-size: 2.8rem;
    }

    .hero-text-content h2 {
        font-size: 2.4rem;
    }
}
@media (max-width: 992px) {
    .banner-container {
        height: 500px;
    }
    
    .desc h1 {
        font-size: 28pt;
    }
    
    .desc h2 {
        font-size: 16pt;
    }
    
    .box {
        height: 200px;
        width: 40px;
        right: 33%;
    }
    .box.extra{
        right: 42%;
    }
    
    .img-container img {
        width: 80%;
    }
}

@media (max-width: 768px) {
     .hero-section {
        padding: 30px 15px;
    }

    .hero-header {
        margin-bottom: 50px;
    }

    .hero-header h1 {
        font-size: 2.2rem;
    }

    .hero-header p {
        font-size: 1.1rem;
        padding: 20px;
    }

    .hero-text-content {
        padding: 30px 25px;
    }

    .hero-text-content h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 30px 25px;
    }
    .box{
        display: none;
    }
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    .banner-container{
        height: 400px;
    }
    .banner-desc{
        left: -30%;
        width: 75%;
    }
    .desc{
        right: 0;
    }
    .desc h1 {
        font-size: 18pt;
    }
    
    .desc h2 {
        font-size: 10pt;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 13pt;
    }
    
    .img-container img {
        width: 85%;
    } 
    .desc {
        right: -2%;
    }
}

@media (max-width: 486px) {
    .banner-container{
        height: 300px;
    }
    
    .desc {
        right: -4%;
        padding: 0;
    }
    
    .desc h1 {
        font-size: 14pt;
    }
    .desc h2 {
        font-size: 8pt;
    }
    
    .cta-button {
        padding: 6px 14px;
        font-size: 9pt;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
@media (max-width: 384px) {
    .banner-desc{
        left: -35%;
        width: 85%;
    }
    .desc {
        top: 96%;
        right: -8%;
    }
}