/* =========================================
   font & reset
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.8;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

.gradient-text {
    background: linear-gradient(135deg, #00ffc8, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Hero
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero-bg-glow::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1300px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    animation: fadeInRight 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 200, 0.08);
    border: 1px solid rgba(0, 255, 200, 0.25);
    border-radius: 50px;
    color: #00ffc8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge i {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.hero-text h1 .gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.typing-text {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ccc;
    min-height: 2.5rem;
}

.typing-text span {
    color: #00ffc8;
    border-left: 3px solid #00ffc8;
    padding-left: 5px;
    animation: blink 0.7s infinite;
}

.hero-description {
    font-size: 1.05rem;
    color: #999;
    line-height: 2;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffc8, #00c896);
    color: #0a0a0f;
    box-shadow: 0 5px 25px rgba(0, 255, 200, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 200, 0.5);
}

.btn-outline {
    background: transparent;
    color: #00ffc8;
    border: 2px solid rgba(0, 255, 200, 0.3);
}

.btn-outline:hover {
    background: rgba(0, 255, 200, 0.08);
    border-color: #00ffc8;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffc8, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}

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

.hero-image {
    flex: 0 0 auto;
    position: relative;
    animation: fadeInLeft 1s ease-out;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.12) 0%, rgba(124, 58, 237, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(0, 255, 200, 0.15);
    transition: all 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.03);
    border-color: rgba(0, 255, 200, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.15), 0 0 80px rgba(124, 58, 237, 0.1);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 50px;
    color: #00ffc8;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
}

.badge-1 { top: 10%; right: -20px; animation: floatBadge 3s ease-in-out infinite; }
.badge-2 { bottom: 15%; right: -30px; animation: floatBadge 3.5s ease-in-out infinite 0.5s; }
.badge-3 { top: 50%; left: -40px; animation: floatBadge 4s ease-in-out infinite 1s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   Slogan
   ========================================= */
.slogan {
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 200, 0.02), transparent);
}

.slogan-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.slogan-icon {
    font-size: 2.5rem;
    color: rgba(0, 255, 200, 0.2);
    margin-bottom: 1.5rem;
    display: block;
}

.slogan h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.5;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* =========================================
   about me
   ========================================= */
.about {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 255, 200, 0.08);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 50px;
    color: #00ffc8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: #888;
    font-size: 1.05rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-text p {
    color: #bbb;
    font-size: 1rem;
    line-height: 2;
}

.about-text p strong {
    color: #00ffc8;
    font-weight: 600;
}

.about-belief {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 200, 0.05);
    border-right: 3px solid #00ffc8;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-belief i {
    font-size: 1.5rem;
    color: #00ffc8;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.about-belief p {
    color: #ddd !important;
    margin: 0 !important;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-card {
    padding: 1.5rem;
    background: rgba(18, 18, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 200, 0.2);
    background: rgba(0, 255, 200, 0.03);
}

.highlight-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 255, 200, 0.08);
    margin-bottom: 1rem;
}

.highlight-icon i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #00ffc8, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.highlight-card p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* =========================================
   Services
   ========================================= */
.services {
    padding: 6rem 5%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 200, 0.02), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(18, 18, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ffc8, #7c3aed);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 200, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 200, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0, 255, 200, 0.08);
    border: 1px solid rgba(0, 255, 200, 0.15);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #00ffc8, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #00ffc8, #7c3aed);
    border-color: transparent;
}

.service-card:hover .service-icon i {
    -webkit-text-fill-color: #0a0a0f;
    background: none;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #999;
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #bbb;
}

.service-features li i {
    color: #00ffc8;
    font-size: 0.7rem;
}

/* =========================================
   brands scroll
   ========================================= */


.brands-section {
    padding: 5rem 0;
    background: #0a0a0f;
}

.brands-section .section-header {
    padding: 0 5%;
    margin-bottom: 1rem;
    text-align: center;
}

.marquee-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
    padding-top: 1rem;

}

.marquee-scroll {
    display: flex;
    flex-direction: row-reverse;
    width: max-content;
    gap: 2rem;
    animation: marqueeLoopRTL 30s linear infinite;
    
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0); /* فعال‌سازی GPU acceleration */
}
@keyframes marqueeLoopRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%); /* 👈 علامت + به جای - */
    }
}

.marquee-fade {
    width: 100%;
    position: absolute;
    background: linear-gradient(
        90deg,
        #0a0a0f,
        transparent 20%,
        transparent 80%,
        #0a0a0f
    );
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    background-color: rgba(18, 18, 25, 0.6);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow:
        0 0.1rem 0.2rem rgba(0, 0, 0, 0.2),
        0 0.1rem 0.5rem rgba(0, 0, 0, 0.3),
        0 0.2rem 1.5rem rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}


.brand-item:hover {
    border-color: rgba(0, 255, 200, 0.3);
    background-color: rgba(0, 255, 200, 0.05);
    transform: translateY(-5px);
}

.brand-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.4s ease;
}

.brand-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.brand-item span {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

.brand-item:hover span {
    color: #00ffc8;
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-scroll {
        gap: 1.5rem;
    }
    .brand-item {
        padding: 1.2rem 0.8rem;
    }
    .brand-item img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .marquee-scroll {
        gap: 1rem;
    }
    .brand-item {
        padding: 1rem 0.6rem;
    }
    .brand-item img {
        width: 60px;
        height: 60px;
    }
    .brand-item span {
        font-size: 0.75rem;
    }
}


/* =========================================
   CTA
   ========================================= */
.cta {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 255, 200, 0.05) 0%, transparent 70%);
}

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

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.cta p {
    color: #999;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* =========================================
   footer
   ========================================= */
.footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 15, 0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.footer-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #00ffc8;
    border-color: rgba(0, 255, 200, 0.4);
    background: rgba(0, 255, 200, 0.08);
    transform: translateY(-3px);
}

.footer-copy {
    color: #444;
    font-size: 0.8rem;
}

.footer-designer {
    color: #555;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

.footer-designer a {
    background: linear-gradient(135deg, #00ffc8, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-designer a:hover {
    opacity: 0.8;
}

/* =========================================
   animation
   ========================================= */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes blink {
    0%, 100% { border-color: #00ffc8; }
    50% { border-color: transparent; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   responsive
   ========================================= */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        width: 280px;
        height: 280px;
    }

    .floating-badge {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 4%;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .brand-item {
        min-width: 110px;
        padding: 1rem 0.8rem;
    }

    .slogan {
        padding: 3rem 5%;
    }
}
