/* استایل‌های مدرن و پیشرفته AMGworld - نسخه تیره */

/* انیمیشن لودینگ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #1a1a2e;
    border-top: 4px solid #00d2ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* آمار */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

/* تایم‌لاین */
.timeline {
    position: relative;
    padding: 50px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #00d2ff, #3a7bd5);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: rgba(25, 25, 35, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0,210,255,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d2ff;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -45px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -45px;
}

@media (max-width: 768px) {
    .timeline::before { right: 20px; }
    .timeline-content { width: calc(100% - 60px); margin-right: auto !important; }
    .timeline-content::before { right: -40px !important; left: auto !important; }
}

/* دکمه اسکرول */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,210,255,0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,210,255,0.4);
}

/* فرم تماس مدرن تیره */
.contact-form-modern {
    background: rgba(25, 25, 35, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(0,210,255,0.1);
}

.form-group-modern {
    margin-bottom: 25px;
    position: relative;
}

.form-group-modern input,
.form-group-modern textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0,210,255,0.2);
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s;
    background: rgba(20, 20, 30, 0.8);
    color: #e0e0e0;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: #00d2ff;
    background: #1a1a2e;
    box-shadow: 0 0 0 4px rgba(0,210,255,0.1);
}

.form-group-modern label {
    position: absolute;
    right: 15px;
    top: -12px;
    background: #1a1a2e;
    padding: 0 8px;
    font-size: 0.85rem;
    color: #00d2ff;
    font-weight: 600;
}

/* پیام نوتیفیکیشن */
.notification {
    position: fixed;
    bottom: 100px;
    left: 30px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    border-radius: 12px;
    z-index: 1000;
    animation: slideInLeft 0.4s ease-out;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* کارت قیمت تیره */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(25, 25, 35, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,210,255,0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,210,255,0.2);
    border-color: rgba(0,210,255,0.5);
}

.pricing-card.featured::before {
    content: 'محبوب ترین';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
}

.price {
    font-size: 3rem;
    color: #00d2ff;
    font-weight: 800;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #aaa;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* تگ مهارت تیره */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    padding: 10px 25px;
    background: rgba(0,210,255,0.1);
    border-radius: 30px;
    color: #00d2ff;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(0,210,255,0.2);
}

.skill-tag:hover {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    transform: translateY(-3px);
}

/* ===== افکت گلیچ ===== */
@keyframes glitch {
    0% { transform: skew(0deg, 0deg); opacity: 1; }
    10% { transform: skew(2deg, 1deg); opacity: 0.8; }
    20% { transform: skew(-1deg, -2deg); opacity: 1; }
    100% { transform: skew(0deg, 0deg); opacity: 1; }
}

.glitch-char {
    display: inline-block;
    transition: all 0.1s ease;
}

.glitch-char:hover {
    animation: glitch 0.2s ease;
    color: #00d2ff;
}

/* ===== مودال ===== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(15px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 25px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,210,255,0.3);
}

.project-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #00d2ff;
    transform: rotate(90deg);
}

.modal-body img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.modal-cat {
    display: inline-block;
    background: rgba(0,210,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: #00d2ff;
    margin: 15px 0;
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-prev, .modal-next {
    pointer-events: auto;
    background: rgba(0,210,255,0.2);
    border: none;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-prev:hover, .modal-next:hover {
    background: #00d2ff;
    transform: scale(1.1);
}

/* ===== اسکلتون لودینگ ===== */
.skeleton-card {
    background: rgba(30,30,40,0.6);
    border-radius: 20px;
    overflow: hidden;
}

.skeleton-img {
    height: 250px;
    background: linear-gradient(90deg, #2a2a3a 25%, #3a3a4a 50%, #2a2a3a 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

.skeleton-text {
    height: 20px;
    background: #2a2a3a;
    margin: 15px;
    border-radius: 10px;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== نوار مهارت ===== */
.skill-item {
    margin-bottom: 25px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #ccc;
}

.skill-bar-bg {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-45deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) skewX(-45deg); }
    100% { transform: translateX(200%) skewX(-45deg); }
}

/* ===== شمارنده آمار ===== */
.counter-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== تستیمونیل اسلایدر ===== */
.testimonial-item {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(30,30,40,0.6);
    border-radius: 20px;
    border: 1px solid rgba(0,210,255,0.2);
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid #00d2ff;
}

/* ===== افکت هیرو ===== */
.hero-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0,210,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.1s ease-out;
}