@font-face {
    font-family: "Peyda-main";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: "vazir-main";
    src: url("../fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "lalezar-main";
    src: url("../fonts/lalezar.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}



* {
    font-family: "Peyda-main";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --primary-purple: #8b5cf6;
    --secondary-purple: #a78bfa;
    --primary-blue: #3b82f6;
    --secondary-blue: #60a5fa;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --dark-secondary: #1a1a2e;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    --secondary-color: #00d4ff;
    --primary-color: #6c63ff;


}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* Header */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(108, 99, 255, 0.1);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 30px rgba(176, 38, 255, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.cart-icon {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: var(--accent-purple);
    transform: scale(1.1);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}


/* Shopping Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    margin-top: 80px;
    padding: 5rem 5%;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-blue);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Filters Section */
.filters-section {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--secondary-dark);
    border-radius: 20px;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    gap: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.8rem 1rem;
    background: var(--primary-dark);
    border: 2px solid var(--tertiary-dark);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-select:hover {
    border-color: var(--primary-purple);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--primary-dark);
    border: 2px solid var(--tertiary-dark);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.search-box {
    margin: 0px 20px;
    grid-column: span 2;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    background: var(--primary-dark);
    border: 2px solid var(--tertiary-dark);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* Courses Grid */
.courses-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.course-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.course-card.premium {
    border-color: var(--warning-yellow);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.badge-new {
    background: var(--success-green);
}

.badge-popular {
    background: var(--danger-red);
}

.badge-discount {
    background: var(--warning-yellow);
    color: var(--primary-dark);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image {
    transform: scale(1.1);
}

.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    color: var(--secondary-purple);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex: 1;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rating {
    color: var(--warning-yellow);
}

.course-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-green);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
}

.discount-percent {
    background: var(--danger-red);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--tertiary-dark);
    color: var(--text-primary);
    width: 45px;
    padding: 0.8rem;
}

.btn-secondary:hover {
    background: var(--primary-purple);
}

/* Package Cards */
.packages-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.package-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--tertiary-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.package-card.featured {
    border-color: var(--warning-yellow);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.package-card.featured::before {
    content: 'پیشنهاد ویژه';
    position: absolute;
    top: 0;
    right: -50px;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
}

.package-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.package-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: right;
}

.package-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-features i {
    color: var(--success-green);
}

.package-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Shopping Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: var(--secondary-dark);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--tertiary-dark);
    padding-bottom: 1rem;
}

.cart-title {
    font-size: 1.5rem;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--danger-red);
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-dark);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--success-green);
    font-weight: bold;
}

.cart-item-remove {
    color: var(--danger-red);
    cursor: pointer;
    align-self: center;
    transition: transform 0.3s ease;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: var(--primary-dark);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    border-top: 2px solid var(--tertiary-dark);
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.7rem 1.5rem;
    background: var(--secondary-dark);
    border: 2px solid var(--tertiary-dark);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-dark);
    border: 2px solid var(--tertiary-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: scale(1.1);
}

.page-number.active {
    background: var(--gradient-2);
    border-color: transparent;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    background: var(--secondary-dark);
    padding: 2rem 5%;
    text-align: center;
    margin-top: 5rem;
    border-top: 2px solid var(--tertiary-dark);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: var(--dark-secondary);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }



    .mobile-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    .search-box {
        grid-column: span 1;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card.featured {
        transform: scale(1);
    }

    .cart-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 5%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .price-range {
        flex-direction: column;
    }

    .cart-actions {
        flex-direction: column;
    }
}