/**
 * Abr Baran Elementor Widgets CSS
 * Version: 1.0.0
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #077070;
    --secondary: #344456;
    --accent: #00ffcc;
    --success: #00ff66;
    --warning: #ffcc00;
    --white: #ffffff;
    --dark: #0a0a0a;
    --text-light: rgba(255,255,255,0.8);
    --gradient: linear-gradient(135deg, #077070 0%, #00ffcc 100%);
    --gradient-dark: linear-gradient(135deg, #000 0%, #0a1628 100%);
}

.abr-baran-widget {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
    opacity: 0.3;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Top Bar - Trust Indicators */
.trust-bar {
    background: rgba(0,255,204,0.1);
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,255,204,0.2);
    animation: pulse-trust 3s infinite;
}

@keyframes pulse-trust {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.trust-text {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

/* Hero Section - Redesigned for Datacenter */
.hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, #00ffcc 0deg, transparent 60deg, transparent 180deg, #077070 180deg, transparent 240deg, transparent 360deg);
    animation: rotate-gradient 10s linear infinite;
    opacity: 0.1;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    animation: slideInRight 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(0,255,204,0.2);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 20px;
    animation: badge-glow 2s infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0,255,204,0.3); }
    50% { box-shadow: 0 0 20px rgba(0,255,204,0.6); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-light);
}

.hero-feature::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,255,204,0.4);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,255,204,0.6);
    text-decoration: none;
    color: var(--dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
}

/* Hero Visual - Datacenter Design */
.hero-visual {
    position: relative;
    animation: slideInLeft 0.8s ease;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.datacenter-3d {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 20s linear infinite;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

.datacenter-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.network-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.connection-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(45deg, transparent, var(--accent), transparent);
    animation: pulse-connection 3s linear infinite;
}

@keyframes pulse-connection {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0,255,204,0.2);
    border-radius: 50%;
    animation: rotate-orbit 10s linear infinite;
}

.orbit-1 {
    width: 500px;
    height: 500px;
    top: -50px;
    left: -50px;
}

.orbit-2 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes rotate-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    box-shadow: 0 0 15px var(--accent);
}

/* Stats Section */
.stats {
    padding: 80px 20px;
    background: rgba(7,112,112,0.05);
    position: relative;
    z-index: 5;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-light);
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 50px;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
}

/* Features Section */
.features {
    padding: 120px 20px;
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, rgba(7,112,112,0.05) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0,255,204,0.1);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 900;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, rgba(7,112,112,0.1) 0%, rgba(52,68,86,0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,255,204,0.2);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,255,204,0.2);
    background: linear-gradient(135deg, rgba(7,112,112,0.2) 0%, rgba(52,68,86,0.2) 100%);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    font-size: 2rem;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 20px;
    opacity: 0.3;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0; }
}

.feature-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.feature-list {
    margin-top: 20px;
    list-style: none;
}

.feature-list li {
    color: var(--text-light);
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Plans Section */
.plans {
    padding: 120px 20px;
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, rgba(52,68,86,0.1) 50%, transparent 100%);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 80px auto 0;
}

.plan-card {
    background: linear-gradient(135deg, rgba(7,112,112,0.05) 0%, rgba(52,68,86,0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.plan-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0,255,204,0.3);
}

.plan-card.featured::before {
    content: 'پیشنهاد ویژه ۲۳%';
    position: absolute;
    top: 20px;
    left: -30px;
    background: var(--gradient);
    color: var(--dark);
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-weight: 700;
    font-size: 0.9rem;
}

.plan-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0,255,204,0.2);
}

.plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.plan-name {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price-old {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.plan-period {
    color: var(--text-light);
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin: 40px 0;
}

.plan-features li {
    padding: 15px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient);
    color: var(--dark);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.plan-btn:hover::after {
    width: 400px;
    height: 400px;
}

.plan-btn:hover {
    text-decoration: none;
    color: var(--dark);
}

/* Dashboard Section */
.dashboard-section {
    padding: 120px 20px;
    position: relative;
    z-index: 5;
}

.dashboard-mockup {
    max-width: 1400px;
    margin: 80px auto 0;
    background: linear-gradient(135deg, rgba(7,112,112,0.05) 0%, rgba(52,68,86,0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,255,204,0.2);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.mockup-header {
    background: var(--gradient);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mockup-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.dot:first-child { background: #ff5f56; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.mockup-content {
    padding: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: rgba(0,255,204,0.05);
    border: 1px solid rgba(0,255,204,0.2);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    background: rgba(0,255,204,0.1);
    transform: translateY(-5px);
}

.dashboard-value {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-label {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 1rem;
}

/* Why Choose Us Section */
.why-choose {
    padding: 120px 20px;
    background: rgba(0,255,204,0.02);
}

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(7,112,112,0.05) 0%, rgba(52,68,86,0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0,255,204,0.1);
    transition: all 0.3s ease;
}

.why-item:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,255,204,0.1);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.why-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
    padding: 120px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(7,112,112,0.05) 100%);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial {
    background: linear-gradient(135deg, rgba(7,112,112,0.05) 0%, rgba(52,68,86,0.05) 100%);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,255,204,0.1);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}

.author-info {
    flex: 1;
}

.author-name {
    color: var(--white);
    font-weight: 600;
}

.author-company {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    padding: 120px 20px;
    background: rgba(52,68,86,0.05);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(0,255,204,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(7,112,112,0.05) 0%, rgba(52,68,86,0.05) 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(7,112,112,0.1) 0%, rgba(52,68,86,0.1) 100%);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 25px 30px;
    max-height: 200px;
}

.faq-toggle {
    color: var(--accent);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* CTA Section */
.cta {
    padding: 120px 20px;
    background: radial-gradient(ellipse at center, rgba(0,255,204,0.1) 0%, transparent 70%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-text {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive - فقط مشکل موبایل برطرف شد */
@media (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .datacenter-3d {
        width: 280px;
        height: 280px;
        max-width: 100%;
    }

    .orbit-1 {
        width: 300px;
        height: 300px;
        top: -10px;
        left: -10px;
    }

    .orbit-2 {
        width: 320px;
        height: 320px;
        top: -20px;
        left: -20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .section-header,
    .features-grid,
    .plans-grid,
    .why-grid,
    .testimonials-grid,
    .faq-grid,
    .dashboard-mockup,
    .stats-grid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    .hero,
    .stats,
    .features,
    .plans,
    .dashboard-section,
    .why-choose,
    .testimonials,
    .faq,
    .cta {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .features-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}