/* ===== FONTS ===== */
@font-face {
    font-family: 'IranYekan';
    src: url('/assets/fonts/iran_yekan_medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.6);
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-tertiary: #c4b5fd;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --accent-gradient-2: linear-gradient(135deg, #a78bfa, #818cf8);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-fa: 'IranYekan', 'Tahoma', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-tech: 'Orbitron', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-fa);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl;
    min-height: 100vh;
}

.font-en {
    font-family: var(--font-en);
    direction: ltr;
}

.font-display {
    font-family: var(--font-display);
}

.font-tech {
    font-family: var(--font-tech);
}

a {
    text-decoration: none;
    color: var(--accent-secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
}

img {
        border-radius: 35px;
    max-width: 100%;
    height: auto;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ===== LOADER ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.music-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 50px;
    margin-bottom: 20px;
}

.music-bars span {
    width: 6px;
    background: var(--accent-gradient);
    border-radius: 3px;
    animation: musicBar 1.2s ease-in-out infinite;
}

.music-bars span:nth-child(1) { animation-delay: 0s; height: 20px; }
.music-bars span:nth-child(2) { animation-delay: 0.2s; height: 35px; }
.music-bars span:nth-child(3) { animation-delay: 0.4s; height: 50px; }
.music-bars span:nth-child(4) { animation-delay: 0.6s; height: 35px; }
.music-bars span:nth-child(5) { animation-delay: 0.8s; height: 20px; }

@keyframes musicBar {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.loader-text {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

#audio-visualizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* ===== NAVIGATION ===== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
width: 55px;
    height: 55px;
    /* background: var(--accent-gradient); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    /* box-shadow: 0 0 20px var(--accent-glow); */
    transition: var(--transition);
}

.nav-logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 30px var(--accent-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-fa {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.logo-en {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--accent-secondary);
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

.nav-btn {
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600;
}

.btn-glow {
    background: var(--accent-gradient) !important;
    color: white !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline-glow {
    border: 1px solid var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

.btn-outline-glow:hover {
    background: rgba(139, 92, 246, 0.15) !important;
}

.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: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: 100vh;
    padding-top: 80px;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--accent-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-fa);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: white;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a1a2e;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--gold-glow);
    color: #1a1a2e;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: slideDown 0.5s ease;
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    min-width: 300px;
}

.flash-success { border-right: 4px solid var(--success); }
.flash-error { border-right: 4px solid var(--danger); }
.flash-warning { border-right: 4px solid var(--warning); }
.flash-info { border-right: 4px solid var(--info); }

.flash-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: auto;
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-30px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
}

.footer-waves svg {
    width: 100%;
    height: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 30px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.footer-logo span {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--accent-primary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    list-style: none;
}

.footer-contact i {
    color: var(--accent-primary);
    width: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.footer-bottom {
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin-bottom: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-fa);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    direction: rtl;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(139, 92, 246, 0.05);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b5cf6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 35px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
    padding: 14px 18px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-primary { background: rgba(139, 92, 246, 0.15); color: var(--accent-primary); }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination a:hover, .pagination .active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-accent { color: var(--accent-primary); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
