:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #202225;
}

/* ===== FONTS ===== */
@font-face {
    font-family: 'YekanBakh';
    font-display: auto;
    src: url('../font/YekanBakh-VF.ttf') format('truetype');
}

@import url(./fontiran.css);

* {
    font-family: IRANSansX;
}

body {
    font-family: 'yekanBakh';
}

/* ===== TITLE ===== */
.title {
    font-size: clamp(20px, 4vw, 50px);
}

/* ===== BASE ANIMATIONS ===== */
.animateTop {
    position: absolute;
    animation: divtop 4s infinite;
}

@keyframes divtop {
    from {
        top: 0px;
        transform: translateY(0px);
    }
    to {
        top: 40px;
        transform: translateY(40px);
    }
}

.animateLeft {
    position: absolute;
    animation: divleft 4s infinite;
}

@keyframes divleft {
    from {
        left: 0px;
        transform: translateX(0px);
    }
    to {
        left: 40px;
        transform: translateX(40px);
    }
}

.animation_traslate:hover .animation_traslate_items {
    animation: traslate_icon 2s infinite ease-in;
}

@keyframes traslate_icon {
    0% {
        transform: translate(0px, 0px);
    }
    50% {
        transform: translate(0px, 20px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

/* ========================================
   REVEAL ON SCROLL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   GLASS HEADER
   ======================================== */
header.glass-header {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

/* ========================================
   TYPING CURSOR
   ======================================== */
.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ========================================
   ACTIVE NAV LINK
   ======================================== */
.active-nav {
    color: #20c997 !important;
    position: relative;
}

.active-nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #20c997;
    animation: navUnderline 0.3s ease;
}

@keyframes navUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ========================================
   GLOW INPUTS
   ======================================== */
input:focus,
textarea:focus {
    box-shadow: 0 0 20px rgba(32, 201, 151, 0.15);
    border: 1px solid #20c997;
    transition: all 0.3s ease;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #20c997;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a9c7a;
}

/* ========================================
   SERVICE CARD 3D
   ======================================== */
.service-card {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(32, 201, 151, 0.15);
}

/* ========================================
   PROJECT IMAGE ZOOM
   ======================================== */
.parent_element {
    overflow: hidden;
    border-radius: 12px;
}

.parent_element img {
    transition: transform 0.6s ease, filter 0.4s ease;
}

.parent_element:hover img {
    transform: scale(1.08);
}

/* ========================================
   PROJECT OVERLAY
   ======================================== */
.parent_element:hover .image_child_element {
    filter: grayscale(0%);
}

.span_child_element {
    position: relative;
    overflow: hidden;
}

.span_child_element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 0;
    height: 100%;
    background: rgba(4, 195, 127);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.parent_element:hover .span_child_element::after {
    width: 1000px;
    height: 300px;
}

.parent_element:hover .element_text {
    color: white;
}

/* ========================================
   TEAM IMAGE
   ======================================== */
.deleter_shadow_rounded_img_item {
    box-shadow: 3px 4px 1px 1px #04c37f;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.deleter_shadow_rounded_img:hover .deleter_shadow_rounded_img_item {
    filter: grayscale(0%);
    box-shadow: none;
    transform: rotate(8deg) scale(1.05);
}

.deleter_shadow_rounded_img:hover .deleter_shadow_rounded_img_item_img {
    filter: grayscale(0%);
}

/* ========================================
   SVG HOVER
   ======================================== */
.svg_hover1:hover .hover1 {
    background-color: white;
}
.svg_hover1:hover .svg1 {
    width: 40px;
}
.svg_hover2:hover .hover2 {
    background-color: white;
}
.svg_hover2:hover .svg2 {
    width: 40px;
}
.svg_hover3:hover .hover3 {
    background-color: white;
}
.svg_hover3:hover .svg3 {
    width: 40px;
}

/* ========================================
   انیمیشن‌های جدید و حرفه‌ای
   ======================================== */

/* ===== 1. WAVY TEXT ===== */
.wavy-text span {
    display: inline-block;
    animation: wavy 1.5s infinite;
    animation-delay: calc(0.05s * var(--i));
}

@keyframes wavy {
    0%, 40%, 100% {
        transform: translateY(0px);
    }
    20% {
        transform: translateY(-15px);
    }
}

/* ===== 2. SPIN ===== */
.spin-slow {
    animation: spin 8s linear infinite;
}
.spin-medium {
    animation: spin 4s linear infinite;
}
.spin-fast {
    animation: spin 2s linear infinite;
}

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

/* ===== 3. PULSE ===== */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}
.pulse-fast {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== 4. SWING ===== */
.swing {
    animation: swing 2s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* ===== 5. BOUNCE ===== */
.bounce {
    animation: bounce 2s ease-in-out infinite;
}

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

/* ===== 6. FADE-SHIFT ===== */
.fade-shift-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.fade-shift-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-shift-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.fade-shift-right.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-shift-up {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.fade-shift-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== 7. PARALLAX ===== */
.parallax {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.parallax:hover {
    transform: scale(1.02) translateY(-5px);
}

/* ===== 8. UNDERLINE ANIMATION ===== */
.underline-animation {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #20c997;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.underline-animation:hover::after {
    width: 100%;
}
.underline-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== 9. SPARKLE ===== */
.sparkle {
    position: relative;
    overflow: hidden;
}
.sparkle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(32, 201, 151, 0.3) 0%, transparent 70%);
    animation: sparkle 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ===== 10. COUNTER JUMP ===== */
.counter-jump {
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    color: #20c997;
    animation: counterJump 0.6s ease;
}

@keyframes counterJump {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* ===== 11. GLOW ===== */
.glow-teal {
    animation: glowTeal 2s ease-in-out infinite alternate;
}

@keyframes glowTeal {
    from {
        text-shadow: 0 0 5px rgba(32, 201, 151, 0.2);
        box-shadow: 0 0 10px rgba(32, 201, 151, 0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(32, 201, 151, 0.6);
        box-shadow: 0 0 30px rgba(32, 201, 151, 0.3);
    }
}

/* ===== 12. FLOATING ===== */
.floating-slow {
    animation: floating 4s ease-in-out infinite;
}
.floating-medium {
    animation: floating 3s ease-in-out infinite;
}
.floating-fast {
    animation: floating 2s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* ===== 13. SLIDE IN ===== */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 14. ZOOM IN ===== */
.zoom-in {
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== 15. ROTATE ON HOVER ===== */
.rotate-hover {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.rotate-hover:hover {
    transform: rotate(10deg) scale(1.05);
}

/* ===== 16. GRADIENT BORDER ===== */
.gradient-border {
    position: relative;
    background: #111;
    border-radius: 15px;
    padding: 2px;
}
.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #20c997, #04c37f, #20c997, #04c37f);
    background-size: 400% 400%;
    border-radius: 16px;
    z-index: -1;
    animation: gradientMove 3s ease-in-out infinite;
}

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

/* ===== 17. TEXT REVEAL ===== */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}
.text-reveal span {
    display: inline-block;
    animation: revealText 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transform: translateY(100%);
    opacity: 0;
}
.text-reveal span:nth-child(1) { animation-delay: 0.05s; }
.text-reveal span:nth-child(2) { animation-delay: 0.1s; }
.text-reveal span:nth-child(3) { animation-delay: 0.15s; }
.text-reveal span:nth-child(4) { animation-delay: 0.2s; }
.text-reveal span:nth-child(5) { animation-delay: 0.25s; }
.text-reveal span:nth-child(6) { animation-delay: 0.3s; }
.text-reveal span:nth-child(7) { animation-delay: 0.35s; }
.text-reveal span:nth-child(8) { animation-delay: 0.4s; }
.text-reveal span:nth-child(9) { animation-delay: 0.45s; }
.text-reveal span:nth-child(10) { animation-delay: 0.5s; }

@keyframes revealText {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== 18. NEON GLOW ===== */


@keyframes neon {
    from {
        text-shadow: 0 0 5px rgba(32, 201, 151, 0.5),
                     0 0 10px rgba(32, 201, 151, 0.3),
                     0 0 20px rgba(32, 201, 151, 0.1);
    }
    to {
        text-shadow: 0 0 10px rgba(32, 201, 151, 0.8),
                     0 0 20px rgba(32, 201, 151, 0.5),
                     0 0 40px rgba(32, 201, 151, 0.3),
                     0 0 80px rgba(32, 201, 151, 0.1);
    }
}

/* ===== 19. STAGGER CHILDREN ===== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ===== 20. PARTICLE BACKGROUND ===== */
.particle-bg {
    position: relative;
    overflow: hidden;
}
.particle-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle, rgba(32, 201, 151, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(32, 201, 151, 0.2) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    animation: particleMove 20s linear infinite;
    pointer-events: none;
}

@keyframes particleMove {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

/* ========================================
   HEADER MODERN STYLE - LINE FROM CENTER
   ======================================== */

/* ===== دسکتاپ ===== */
.nav-link-modern {
    color: #a0a0a0;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
}

/* خط زیر - از وسط باز میشه */
.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #20c997, #04c37f);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

/* هاور */
.nav-link-modern:hover {
    color: #ffffff !important;
}

.nav-link-modern:hover::after {
    width: 100%;
}

/* لینک فعال */
.nav-link-modern.active {
    color: #20c997 !important;
}

.nav-link-modern.active::after {
    width: 100%;
}

/* وقتی روی لینک فعال هاور می‌ری - هیچ تغییری نکنه */
.nav-link-modern.active:hover {
    color: #20c997 !important;
}

.nav-link-modern.active:hover::after {
    width: 100%;
}

/* ===== موبایل ===== */
.nav-link-mobile {
    color: #a0a0a0;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    text-align: right;
    border-bottom: 1px solid transparent;
}

/* خط زیر برای موبایل */
.nav-link-mobile::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #20c997, #04c37f);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link-mobile:hover {
    color: #ffffff !important;
    padding-right: 10px;
}

.nav-link-mobile:hover::after {
    width: 60%;
}

.nav-link-mobile.active {
    color: #20c997 !important;
}

.nav-link-mobile.active::after {
    width: 60%;
}

.nav-link-mobile.active:hover {
    color: #20c997 !important;
}







/* ===== GLASS HEADER ===== */
header.glass-header {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}


/* ===== TESTIMONIALS SLIDER ===== */
#testimonialSlider {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dot {
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
    background: #20c997 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    #prevBtn, #nextBtn {
        width: 32px;
        height: 32px;
    }
    #prevBtn svg, #nextBtn svg {
        width: 16px;
        height: 16px;
    }
}