* {
    font-family: 'IRANSans', 'sans-serif';
}
body {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    color: #1e293b;
}

/* انیمیشن شناور برای ویدیو نمونه */
@keyframes floatSoft {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: floatSoft 3s ease-in-out infinite;
}

/* دکمه‌های هدر */
.btn-login {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    border-radius: 12px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-login:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(79,70,229,0.2);
}
.btn-register {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

/* گرادیانت‌های مدال */
.bronze-bg {
    background: linear-gradient(145deg, #cd7f32, #b87333);
}
.silver-bg {
    background: linear-gradient(145deg, #c0c0c0, #a0a0a0);
}
.gold-bg {
    background: linear-gradient(145deg, #ffd700, #f0b90b);
}

/* کارت‌ها با hover */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

/* باکس توضیحات سایت */
.info-box {
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
    border-right: 5px solid #4f46e5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.info-box:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* شیشه‌ای */
.glass-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 1.5rem;
}

.table-custom th {
    background: #1e293b;
    color: white;
    border: none;
}
.popular-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 30px;
    white-space: nowrap;
}
.btn-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 14px;
    padding: 8px 28px;
    font-weight: bold;
    transition: all 0.2s;
}
.btn-pro:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(245,158,11,0.3);
    color: white;
}

section {
    padding: 15px 0;
}
@media (max-width: 768px) {
    section {
        padding: 45px 0;
    }
}

/* انیمیشن برای کارت‌ها */
.card-hover-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover-3d:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.25) !important;
}

/* انیمیشن درخشش طلایی */
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
.gold-glow {
    animation: pulse 2s ease-in-out infinite;
}

/* سایه‌های رنگی برای مدال‌ها */
.bronze-glow {
    animation: softPulse 3s infinite;
}
@keyframes softPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}
.cke_top {display:flex;}

.enamad-box:hover, .samandehi-box:hover, .shaparak-box:hover {
    border-color: #fbbf24 !important;
    background: #2d3748 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.enamad-box a, .samandehi-box a, .shaparak-box a {
    text-decoration: none;
}


@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(1); }
}
.card-hover:hover {
    transform: translateY(-10px) !important;
    transition: all 0.3s ease;
}


.stat-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
    border-color: rgba(79, 70, 229, 0.3) !important;
}
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    .display-4 {
        font-size: 2rem;
    }
}



.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}
.form-control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
@media (max-width: 768px) {
    .p-5 {
        padding: 1.5rem !important;
    }
}


/* استایل دکمه همبرگری */
.navbar-toggler {
    display: none;
    cursor: pointer;
}

/* منوی موبایل (پوشش تمام صفحه) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 80px 25px 30px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-overlay .close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #4f46e5;
}

.mobile-menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-overlay ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.mobile-menu-overlay ul li a {
    font-size: 1.2rem;
    color: #1e293b;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.mobile-menu-overlay .mobile-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-overlay .mobile-buttons a {
    text-align: center;
    padding: 12px;
    border-radius: 30px;
}

/* صفحه تاریک پشت منو */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.menu-backdrop.active {
    display: block;
}

@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }
    
    .collapse.navbar-collapse {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .navbar-collapse {
        display: flex !important;
    }
}