/* ====== HERO SECTION - OPTIMIZED ====== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Background Effects - با استفاده از opacity و filter */
.hero .hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: opacity;
}

.hero .orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation: orb-pulse-1 8s ease-in-out infinite;
}

.hero .orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: orb-pulse-2 10s ease-in-out infinite;
}

.hero .orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(118,75,162,0.3) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: orb-pulse-3 12s ease-in-out infinite;
}

/* فقط opacity را تغییر میدیم */
@keyframes orb-pulse-1 {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

@keyframes orb-pulse-2 {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes orb-pulse-3 {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.55; }
}

/* Hero Content */
.hero .hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Text Content */
.hero .hero-text {
    color: white;
    animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    animation: badge-glow 3s ease-in-out infinite;
}

/* فقط shadow را تغییر میدیم */
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 30px rgba(255,255,255,0.4); }
}

.hero .badge-icon {
    font-size: 18px;
    animation: icon-spin 20s linear infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Title */
.hero .hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero .title-line {
    line-height: normal;
    display: block;
    animation: fade-in 0.6s ease-out backwards;
}

.hero .title-line:nth-child(1) { animation-delay: 0.1s; }
.hero .title-line:nth-child(3) { animation-delay: 0.3s; }

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero .title-highlight {
    display: block;
    background: linear-gradient(90deg, #fff 0%, #f0e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: fade-in 0.6s ease-out 0.2s backwards;
}

@keyframes underline-grow {
    from { width: 0; }
    to { width: 100%; }
}

/* Description */
.hero .hero-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0;
    margin-bottom: 35px;
    max-width: 540px;
    animation: fade-in 0.8s ease-out 0.5s forwards;
}

/* CTA Buttons */
.hero .hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-in 0.8s ease-out 0.7s forwards;
}

.hero .btn-primary-hero {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #667eea;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero .btn-primary-hero:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    filter: brightness(1.05);
}

.hero .btn-primary-hero svg {
    rotate: 180deg;
    transition: transform 0.3s;
}

.hero .btn-primary-hero:hover svg {
    transform: translateX(5px);
}
.hero .btn-secondary-hero svg{
    rotate: 180deg;
}
.hero .btn-secondary-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.hero .btn-secondary-hero:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* Stats */
.hero .hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 30px;
    opacity: 0;
    animation: fade-in 0.8s ease-out 0.9s forwards;
}

.hero .stat-item {
    text-align: center;
}

.hero .stat-number {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    animation: count-up 2s ease-out 1.2s backwards;
}

@keyframes count-up {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.hero .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.hero .stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

/* Trust Badges */
.hero .trust-badges {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-in 0.8s ease-out 1.1s forwards;
}

.hero .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.95;
}

.hero .trust-item svg {
    width: 20px;
    height: 20px;
}

/* Visual Content */
.hero .hero-visual {
    position: relative;
    height: 600px;
    animation: fade-in-left 1s ease-out 0.3s backwards;
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main Image Card */
.hero .main-card {
    position: absolute;
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero .main-card:hover {
    transform: scale(1.02);
}

.hero .main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero .main-card:hover img {
    transform: scale(1.05);
}

.hero .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero .main-card:hover .card-overlay {
    opacity: 1;
}

.hero .overlay-content {
    color: white;
}

.hero .overlay-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.hero .overlay-content p {
    font-size: 18px;
    font-weight: 600;
}

/* Floating Cards - بدون transform در keyframes */
.hero .floating-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero .floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.hero .card-1 {
    top: 50px;
    right: -30px;
    width: 200px;
    animation: card-fade-in 0.6s ease-out 0.8s backwards;
}

.hero .card-2 {
    bottom: 80px;
    left: -40px;
    width: 200px;
    animation: card-fade-in 0.6s ease-out 1s backwards;
}

.hero .card-3 {
    bottom: 200px;
    right: -20px;
    width: 180px;
    text-align: center;
    animation: card-fade-in 0.6s ease-out 1.2s backwards;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero .card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero .card-text strong {
    display: block;
    color: #667eea;
    font-size: 16px;
    margin-bottom: 5px;
}

.hero .card-text span {
    font-size: 13px;
    color: #64748b;
}

.hero .rating-stars {
    font-size: 20px;
    margin-bottom: 8px;
}

.hero .card-3 p {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 5px;
}

.hero .card-3 strong {
    font-weight: 800;
}

.hero .card-3 span {
    font-size: 12px;
    color: #64748b;
}

/* Scroll Indicator */
.hero .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    opacity: 0;
    animation: fade-in 1s ease-out 1.5s forwards;
}

.hero .mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    position: relative;
}

.hero .wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-move 2s ease-in-out infinite;
}

@keyframes wheel-move {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0;
        top: 20px;
    }
}

.hero .scroll-indicator span {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

/* Modal */
#consultModal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#consultModal .modal-overlay.active {
    display: flex;
    opacity: 1;
}

#consultModal .modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#consultModal .modal-overlay.active .modal-content {
    transform: scale(1);
}

#consultModal .modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

#consultModal .modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

#consultModal .modal-header {
    margin-bottom: 30px;
}

#consultModal .modal-header h2 {
    color: #1e293b;
    font-size: 28px;
    margin-bottom: 10px;
}

#consultModal .modal-header p {
    color: #64748b;
    font-size: 15px;
}

#consultModal .consult-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#consultModal .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#consultModal .form-group label {
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

#consultModal .form-group input,
#consultModal .form-group select,
#consultModal .form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

#consultModal .form-group input:focus,
#consultModal .form-group select:focus,
#consultModal .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#consultModal .form-group textarea {
    resize: vertical;
}

#consultModal .btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 10px;
}

#consultModal .btn-submit:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    filter: brightness(1.1);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 968px) {
    .hero .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero .hero-title {
        font-size: 42px;
    }

    .hero .hero-visual {
        height: 500px;
    }

    .hero .main-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero .hero-title {
        font-size: 36px;
    }

    .hero .hero-description {
        font-size: 16px;
    }

    .hero .hero-cta {
        flex-direction: column;
    }

    .hero .btn-primary-hero,
    .hero .btn-secondary-hero {
        width: 100%;
        justify-content: center;
    }

    .hero .hero-stats {
        gap: 15px;
        flex-wrap: wrap;
    }

    .hero .stat-number {
        font-size: 24px;
    }

    .hero .hero-visual {
        height: 400px;
    }

    .hero .main-card {
        height: 350px;
    }

    .hero .floating-card {
        transform: scale(0.85);
    }

    /* ادامه Responsive - قسمت ناقص */
    #consultModal .modal-content {
        padding: 30px 20px;
    }

    #consultModal .modal-header h2 {
        font-size: 24px;
    }

    .hero .card-1,
    .hero .card-2,
    .hero .card-3 {
        width: 160px;
    }

    .hero .card-1 {
        right: unset;
        left: -35px;
        top: -48px;
    }

    .hero .card-2 {
        bottom: 60px;
        left: -30px;
    }

    .hero .card-3 {
        bottom: 150px;
        right: -30px;
    }
    .hero .rating-stars{
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero .hero-text{
        text-align: center;
    }
    .hero .hero-title {
        font-size: 32px;
    }

    .hero .hero-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    .hero .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;
    }

    .hero .stat-divider {
        display: none;
    }

    .hero .trust-badges {
        flex-direction: row;
        justify-content: space-around;
        gap: 15px;
    }

    .hero .hero-visual {
        height: 350px;
    }

    .hero .main-card {
        height: 300px;
    }

    .hero .floating-card {
        transform: scale(0.75);
    }

    .hero .scroll-indicator {
        bottom: 20px;
    }
}
