/*==============================================
 *  NeonMatrix Pro - Multi-Purpose HTML Template with Matrix Effect
 * Version: 1.0.0.4
==============================================*/
/* ===== ROOT VARIABLES ===== */
    :root {
        --primary: #00ffff;
        --primary-dark: #00cccc;
        --secondary: #ff00ff;
        --accent: #ffff00;
        --bg-dark: #0a0a0f;
        --neon-green:#00ff00;
        --bg-card: rgba(255, 255, 255, 0.03);
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
        --border-color: rgba(0, 255, 255, 0.2);
        --gradient-primary: linear-gradient(135deg, #00ffff, #ff00ff);
        --gradient-secondary: linear-gradient(135deg, #ff00ff, #ffff00);
    --gradient-tertiary:  linear-gradient(120deg, rgba(255, 84, 204, 0.92) 0%,  rgba(144, 0, 255, 0.95) 100%);        
        --shadow-glow: 0 0 40px rgba(0, 255, 255, 0.3);
        --font-primary: 'Vazirmatn', 'Tahoma', sans-serif;
        --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
/* Light Theme Variables */


[data-theme="light"] {
    --primary: #00b7ff;
    --bg-dark: linear-gradient(135deg,
            #ffffffdd 0%,
            #a3fff363 25%,
            #111734da 50%,
            #027eaf 75%,
            #0f0b1f 100%
        );

    --gradient-primary: linear-gradient(135deg, #f56cff 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #fff1ff 30%, #ff3ff5 90%);

    --matrix-bg: radial-gradient(ellipse at center, 
        rgba(0, 255, 180, 0.12) 0%, 
        rgba(0, 255, 180, 0.05) 50%, 
        transparent 100%
    );

    --bg-secondary: rgba(35, 10, 40, 0.61);
    --bg-card: rgba(10, 79, 100, 0.5);
    --bg-glass: rgba(25, 78, 80, 0.363);
    --bg-hover: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.25) 0%, 
        rgba(255, 0, 255, 0.15) 100%
    );


    --text-primary: #e0f8ff;
    --text-secondary: #202020;
    --text-dim: #94c8ff;
    /* کارت‌های ویژگی و باکس‌های شفاف */
    --features-card: rgba(0, 229, 255, 0.12);
    /* بوردرها – نئون    */
    --border: 1px solid rgba(0, 255, 255, 0.4);
    --border-light: #00eaff;
    /* آیکون‌ها و المان‌های  */
    --icon-neon: #0fffff;
    --text-footer: #00eeff;
    --text-footer2: #a0f8ff;
}

[data-theme="light"] .btn-white, .btn-lg {
    background: var(--gradient-primary);
    color: #000000;
    
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] .hero-title {
    text-shadow: 
        0 0 15px rgba(0, 255, 255, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3);
    color: #ffffff;
}


[data-theme="light"] .btn-primary {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 16px 36px;
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9fffff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.6);
}


[data-theme="light"] .btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #00ffff,
        #ff00ff 60deg,
        #8a00ff 120deg,
        #00ffff 180deg,
        #00ff88 240deg,
        #ff0066 300deg,
        #00ffff 360deg
    );
    animation: cyberSpin 12s linear infinite;
    filter: blur(12px);
    opacity: 0.7;
    z-index: -2;
}

[data-theme="light"] .btn-primary::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(10, 12, 35, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.5);
    z-index: -1;

}


@keyframes cyberSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


[data-theme="light"] .btn-outline {
    position: relative;
    background: rgba(10, 15, 40, 1.4);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 14px 36px;
    color: #272727;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}


[data-theme="light"] .btn-outline::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: linear-gradient(45deg,
        #0fffff, #ff00ff, #8a00ff, #00ffea, #ff0066, #00ffff, #00ffff
    );
    background-size: 600% 600%;
    border-radius: 30px;
    z-index: -2;
    animation: energyFlow 10s linear infinite;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.6s ease;
}



[data-theme="light"] .btn-outline {
    position: relative;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(98, 255, 221, 0.692);
    border-radius: 16px;
    padding: 14px 36px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        0 8px 15px rgba(0, 0, 0, 0.6);   
}


[data-theme="light"] .btn-outline::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg,
        rgba(140, 0, 255, 0.25),
        rgba(255, 0, 255, 0.35),
        rgba(247, 0, 255, 0.418)
    );
    background-size: 200% 200%;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
}


[data-theme="light"] .btn-outline:hover::after {
    opacity: 1;
    transform: translateY(0);
    animation: softFlow 4s ease-in-out infinite;
}

[data-theme="light"] .btn-outline:hover {
    color: #ffffff;
    border-color: #00ffff;
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 255, 0.5);
}


@keyframes softFlow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}


@keyframes liquidFill {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes energyFlow {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}


[data-theme="light"] .btn-outline:hover {
    color: #ffffff;
    border-color: #00ffff;
    transform: translateY(-6px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 255, 255, 0.7),
        0 0 80px rgba(255, 0, 255, 0.4);
}
[data-theme="light"] .btn-sm {    
    padding: 12px 26px;
    font-size:  0.8rem;

}   
.gradient-title {
    background: linear-gradient(90deg, #00ffff, #ff00ff, #a855f7, #00ffff);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}
.gradient-title-2 {
    background: linear-gradient(90deg, #00ffff, #ff00ff, #a855f7, #8400ff, #00ffff);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}
.gradient-title-3 {
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ff00, #00ffff);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
} 
/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.02), transparent);
}

.testimonials-slider {
    padding: 20px 0 60px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.15);
}

.testimonial-stars {
    margin-bottom: 1.5rem;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 1.1rem;
    margin-left: 3px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Swiper Custom Styles */
.swiper-pagination-bullet {
    background: var(--border-color);
    opacity: 1;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* ===== PRICING SECTION ===== */
.pricing-preview {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.15);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    color: var(--text-secondary);
}

.pricing-features li i {
    font-size: 1rem;
}

.pricing-features li .fa-check {
    color: #27ca40;
}

.pricing-features li .fa-times {
    color: #ff5f56;
}

.pricing-features li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===== BLOG SECTION ===== */
.blog-preview {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.02), transparent);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-link:hover {
    gap: 1rem;
}

/* ===== FAQ STYLES ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
}

.faq-question h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question h4 i {
    color: var(--primary);
}

.faq-icon {
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.faq-more {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== TRUSTED BY ===== */
.trusted-by {
    margin-top: 4rem;
    text-align: center;
}

.trusted-by p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    opacity: 0.6;
}

.trusted-logos:hover {
    opacity: 1;
}

.trusted-logos img {
    filter: grayscale(100%) brightness(2);
    transition: var(--transition);
}

.trusted-logos img:hover {
    filter: grayscale(0%) brightness(1);
}

/* ===== NEWSLETTER STYLES ===== */
.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--bg-dark);
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-message {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.form-message.success {
    color: #27ca40;
}

.form-message.error {
    color: #ff5f56;
}

.btn-loading {
    display: none;
}

.newsletter-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.newsletter-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-features i {
    color: #27ca40;
}

/* ===== CTA STYLES ===== */
.cta-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--bg-dark);
    animation: float 3s ease-in-out infinite;
}

.cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-trust i {
    color: var(--primary);
}

/* ===== FOOTER EXTRA STYLES ===== */
.footer-apps {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-badge img {
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.app-badge:hover img {
    transform: scale(1.05);
}

.footer-middle {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 3rem 0;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary);
}



/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-1 {
    background: var(--gradient-tertiary);
    text-shadow: 3px 6px 7px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-shadow: 0 0 1px #59ff598a;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    font-weight: 500;
    margin: 0 auto;
}

.text-center {
    text-align: center;

}

.mt-40 {
    margin-top: 40px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.matrix-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.matrix-loader::before,
.matrix-loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.matrix-loader::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: var(--secondary);
    animation: spin 2s linear infinite reverse;
}

.matrix-loader::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: var(--accent);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== MATRIX BACKGROUND ===== */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.15;
}

.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 70%);
    pointer-events: none;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-dark);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    color: var(--text-footer2);    
    font-weight: 900;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo .highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* ——— زیرمنوی سایبرپانک Glassmorphism ——— */
.nav-item.has-submenu {
    position: relative;
}

.submenu-arrow {
    font-size: 0.7rem;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

/* زیرمنوی اصلی */
.cyber-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 16px;
    padding: 12px 0;
    min-width: 220px;
    background: rgba(10, 25, 35, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 200, 0.25);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 200, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.has-submenu:hover > .cyber-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* افکت اسکن ماتریکس (خیلی خفن!) */
.cyber-submenu::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* آیتم‌های منو */
.cyber-item {
    display: block;
    padding: 12px 24px;
    color: #e0fff8;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.cyber-item:hover {
    background: rgba(0, 255, 200, 0.12);
    color: #00ffcc;
    padding-right: 32px;
    text-shadow: 0 0 10px #00ffcc;
}

.cyber-item.highlight {
    color: #00ffcc;
    font-weight: 700;
    background: rgba(0, 255, 200, 0.1);
}

.cyber-item.highlight:hover {
    background: rgba(0, 255, 200, 0.2);
    text-shadow: 0 0 15px #00ffcc;
}

.cyber-divider {
    height: 1px;
    background: rgba(0, 255, 200, 0.3);
    margin: 8px 20px;
}

/* موبایل — زیرمنو داخل منوی همبرگری */
@media (max-width: 992px) {
    .cyber-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 12px 20px 0;
        background: rgba(10, 25, 35, 0.6);
        border: 1px solid rgba(0, 255, 200, 0.2);
        border-radius: 12px;
        display: none;
    }
    
    .has-submenu.active .cyber-submenu {
        display: block;
    }
    
    .cyber-submenu::before { display: none; }
}

.theme-toggle {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-footer);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: rotate(180deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--bg-dark);
}

.btn-white:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;

}

/* ===== MOBILE MENU TOGGLE ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); }
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;    
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.code-snippet {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 255, 255, 0.2);
}

.code-header {
    display: flex;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-snippet pre {
    padding: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--primary);
    direction: rtl;
}

.typing-effect {
    overflow: hidden;
    border-left: 2px solid var(--primary);
    animation: typing 4s steps(40) infinite, blink 0.7s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

.scroll-indicator p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.02), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-dark);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 0 15px #3f3f3f8c;    
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.75rem;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transform-style: preserve-3d;
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth 3D-ready transition */
}

.feature-card p {
    font-size: 1rem;    
    color: var(--text-primary);
    line-height: 1.8;
}


.feature-card:hover {
    transform: translateY(-12px);
    border-color: #00ffff;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.6),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

/* 3D Zoom + Perspective on Hover */
.feature-card:hover h3 {
    transform: 
        translateZ(20px) 
        translateX(-20px)
        scale(1.3) 
        rotateY(28deg);
    color: #00ffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 30px rgba(0, 255, 255, 0.4);
    letter-spacing: 0.5px;
}
/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.05));
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-big {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-big:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-big h3 {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-big p {
    font-size: 1rem;
    color: var(--text-primary);
}

/* ===== PORTFOLIO / MODELS SECTION ===== */
.portfolio {
    background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.02), transparent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0px 40px rgba(255, 0,255, 0.2);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    backdrop-filter: blur(5px);    
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.portfolio-btn:hover {
    transform: translateX(-5px);
}

/* ===== LEARNING PATH SECTION ===== */
.learning-path-section {
    padding: 100px 0;
}

.learning-path {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: var(--transition);
}

.path-card:hover::before {
    opacity: 0.3;
}

@keyframes rotate-border {
    to { transform: rotate(360deg); }
}

.path-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.2);
    border-color: var(--primary);
}

.path-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.path-card p {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* ===== TEAM SECTION (3D CARDS) ===== */
.team-cards-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.02), transparent);
}

.instructors-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

/* 3D Card Styles */
.rayen3d-container {
    perspective: 1000px;
}

.rayen3d-card {
    width: 380px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.rayen3d-container:hover .rayen3d-card {
    transform: rotateY(10deg) rotateX(5deg);
}



.rayen3d-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rayen3d-logo {
    position: absolute;
    top: 0;
    left: 60;
    width: 60%;
    height: 60%;
    pointer-events: none;
}



.rayen3d-content {
    text-align: center;
    margin-bottom: 1rem;
}

.rayen3d-content h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.rayen3d-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rayen3d-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rayen3d-social_icons {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.rayen3d-social_icons:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.rayen3d-link a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.rayen3d-link a:hover {
    text-decoration: underline;
}

/* ===== STUDENT PROJECTS / AI CREATIONS ===== */
.student-projects {
    padding: 100px 0;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.02), transparent);
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    padding-right: 1rem;
}

.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h4::before {
    content: '❓';
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-right: 1.5rem;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 80px 0;
}

.partners-section h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
}

.partners:hover {
    opacity: 1;
}

.partners img {
    height: 50px;
    filter: grayscale(100%) brightness(2);
    transition: var(--transition);
}

.partners img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
}

.newsletter h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.newsletter-form input::placeholder {
    color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1), transparent);
    border-radius: 50%;
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary);
    font-size: 2rem;
}

.footer-col p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;

    margin-top: 1rem;    
    margin-bottom: 1rem;
    margin-right: 1.5rem;
    color: var(--primary);
}

.footer-links li {
    margin-bottom: 0.8rem;
    margin-right: 1.5rem;    
 
}

.footer-links a {
    color: var(--text-primary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 0.5rem;
}

.footer-contact li {

    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    margin-right: 1.5rem;     
    color: var(--text-primary);
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-left: 3.5rem;      
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-dim);
  
    font-size: 0.9rem;
}

/* ========================================================= */
/*                  RESPONSIVE DESIGN – PROFESSIONAL         */
/* ========================================================= */

/* پایه موبایل (320px تا 480px) – Mobile First */
@media (max-width: 480px) {
    html { font-size: 13.5px; }

    .container { padding: 0 2rem; }

    section { padding: 60px 0; }

    .section-title { font-size: clamp(1.9rem, 6vw, 2.6rem); }
    .section-subtitle { font-size: 1rem; }

    /* Hero */
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { justify-content: center; }

    /* Buttons */
    .btn { padding: 0.9rem 1.6rem; font-size: 0.95rem; }
    .btn-lg { padding: 1rem 2rem; font-size: 1.05rem; width: 100%; max-width: 280px; }

    /* Hero Stats */
    .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
    .stat-number { font-size: 2.2rem; }

    /* Cards General */
    .feature-card,
    .pricing-card,
    .blog-card,
    .testimonial-card,
    .path-card { padding: 1.8rem 1.5rem; }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));}
    .feature-icon { width: 65px; height: 65px; font-size: 1.7rem; }

    /* Pricing */
    .price .amount { font-size: 2.6rem; }
    .pricing-badge { font-size: 0.75rem; padding: 0.4rem 1.1rem; top: -12px; }

    /* Footer */
    .footer-bottom-content { flex-direction: column; gap: 1rem; }
    .footer-legal { flex-direction: column; gap: 0.8rem; }

    /* Back to top */
    .back-to-top { width: 48px; height: 48px; bottom: 15px; left: 15px; font-size: 1.1rem; }
}

/* موبایل بزرگ و تبلت کوچک (481px – 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    html { font-size: 14.5px; }

    .container { padding: 0 1.5rem; }
    section { padding: 70px 0; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); }

    .stat-number { font-size: 2.4rem; }
    /* Hero */
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { justify-content: center; }
    /* تمام گریدها تک‌ستونی */
    .features-grid,
    .portfolio-grid,
    .blog-grid,
    .pricing-grid,
    .learning-path,
    .stats-grid { grid-template-columns: 1fr; }

    /* Newsletter & Form */
    .newsletter-form,
    .form-group { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button,
    .form-group input,
    .form-group button { width: 100%; }

    .rayen3d-card { width: 320px; height: 300px; }
}

/* تبلت (769px – 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    html { font-size: 15px; }

    section { padding: 90px 0; }

    /* Hero */
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { justify-content: center; }

    /* گریدهای ۳ یا ۴ ستونی → ۲ ستون */
    .features-grid,
    .portfolio-grid,
    .learning-path,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-10px); }

    .blog-grid { grid-template-columns: 1fr; }

    .rayen3d-card { width: 340px; height: 310px; }
}

/* لپ‌تاپ کوچک (993px – 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .hero .container { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .hero-visual { display: block; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); }

    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1.03); }
}

/* دسکتاپ بزرگ (1201px – 1400px) */
@media (min-width: 1201px) and (max-width: 1400px) {
    .container { max-width: 1240px; }
    .pricing-grid { grid-template-columns: repeat(3, minmax(300px, 1fr)); }
}

/* دسکتاپ خیلی بزرگ (1401px+) */
@media (min-width: 1401px) {
    .container { max-width: 1400px; }
    .pricing-grid { grid-template-columns: repeat(3, minmax(340px, 1fr)); gap: 2.5rem; }
}

/* افقی بودن موبایل (Landscape) */
@media (max-height: 600px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 80px 0; }
    section { padding: 60px 0; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .stat-item { padding: 1rem; }
}

/* منوی موبایل – همبرگر */
@media (max-width: 992px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 420px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        font-size: 1.3rem;
        padding: 1rem 0;
        opacity: 0.9;
    }

    .nav-link:hover,
    .nav-link.active { opacity: 1; }

    /* زیرمنو در موبایل */
    .cyber-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 1rem 0 0;
        background: rgba(10, 25, 35, 0.6);
        border-radius: 12px;
        padding: 0.5rem 0;
        box-shadow: none;
    }

    .has-submenu.active .cyber-submenu { display: block; }
}


.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:30px;
}

.portfolio-item{
    cursor:pointer;
    border-radius:24px;
    overflow:hidden;
    position:relative;
    transition:.3s;
    box-shadow:0 15px 35px rgba(90,60,255,.12);
}

.portfolio-item:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 45px rgba(90,60,255,.18);
}

.portfolio-image{
    position:relative;
    height:290px;
    background:#111;
    overflow:hidden;
}

.portfolio-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    padding:10px;
    transition:.4s;
}

.portfolio-item:hover img{
    transform:scale(1.03);
}

.portfolio-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:24px;
    background:linear-gradient(
        to top,
        rgba(15,15,25,.92) 0%,
        rgba(15,15,25,.55) 35%,
        rgba(15,15,25,0) 70%
    );
}

.portfolio-overlay h3{
    color:#fff;
    font-size:24px;
    margin-bottom:8px;
}

.portfolio-overlay p{
    color:#d7d7e7;
    margin:0;
    font-size:14px;
}

@media(max-width:992px){

    .portfolio-grid{
        grid-template-columns:1fr;
    }

    .portfolio-image{
        height:240px;
    }

}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:60px;
}

.portfolio-item{
    display:block;
    text-decoration:none;
    position:relative;
    overflow:hidden;

    background:rgba(255,255,255,.03);
    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.08);
    border-radius:28px;

    transition:.4s;
}

.portfolio-item::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(99,102,241,.12),
        rgba(168,85,247,.08)
    );
    opacity:0;
    transition:.4s;
}

.portfolio-item:hover::before{
    opacity:1;
}

.portfolio-item:hover{
    transform:translateY(-10px);
    border-color:rgba(99,102,241,.35);
    box-shadow:
    0 20px 50px rgba(99,102,241,.15),
    0 0 0 1px rgba(255,255,255,.05);
}

.portfolio-image{
    height:260px;
    overflow:hidden;
    position:relative;
}

.portfolio-image::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:120px;
    background:linear-gradient(
        to top,
        rgba(12,12,18,.95),
        transparent
    );
}

.portfolio-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.7s;
}

.portfolio-item:hover img{
    transform:scale(1.08);
}

.portfolio-content{
    position:relative;
    z-index:2;
    padding:24px;
}

.portfolio-content h3{
    color:#fff;
    font-size:22px;
    font-weight:700;
    margin-bottom:12px;
    line-height:1.5;
}

.portfolio-content p{
    color:rgba(255,255,255,.65);
    line-height:2;
    margin:0;
    font-size:14px;
}

.services-btn-wrap{
    text-align:center;
    margin-top:55px;
}

.services-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:16px 38px;

    border-radius:18px;

    background:linear-gradient(
        135deg,
        #6366f1,
        #8b5cf6
    );

    color:#fff;
    text-decoration:none;
    font-weight:700;

    transition:.35s;
}

.services-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(99,102,241,.35);
    color:#fff;
}

@media(max-width:992px){

    .portfolio-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .portfolio-image{
        height:220px;
    }

}

@media(max-width:768px){

    .portfolio-grid{
        grid-template-columns:1fr;
    }

    .portfolio-image{
        height:240px;
    }

    .portfolio-content{
        padding:20px;
    }

    .portfolio-content h3{
        font-size:20px;
    }

}

/* فوتر در تبلت و موبایل */
@media (max-width: 992px) {
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .footer-social,
    .footer-apps,
    .trust-badges { justify-content: center; }
    .footer-bottom-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-legal { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}

/* اسکرول‌بار و سلکشن – همیشه فعال */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: var(--primary); color: var(--bg-dark); }
::-moz-selection { background: var(--primary); color: var(--bg-dark); }



