@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f0b90b;
    --dark: #181a20;
    --light: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Code Particles Animation */
@keyframes floatCodeParticle {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20vh) rotate(90deg) translateX(10vw);
    }
    50% {
        transform: translateY(-40vh) rotate(180deg) translateX(5vw);
    }
    75% {
        transform: translateY(-60vh) rotate(270deg) translateX(-10vw);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg) translateX(0);
    }
}

.code-particle {
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 8px rgba(240, 185, 11, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    background-color: var(--light);
    color: var(--dark);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--dark);
    color: var(--primary);
}

/* Header */
header {
    background-color: var(--dark);
    color: var(--light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo-icon {
    background-color: var(--primary);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    box-shadow: 0 0 10px rgba(240, 185, 11, 0.5);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-right: 5px;
    position: relative;
}

.nav-menu li:last-child {
    margin-right: 0;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 25px;
    display: block;
    position: relative;
    overflow: hidden;
}

.nav-link span {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.nav-link:hover span,
.nav-link.active span {
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary);
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 0;
    box-shadow: 0 0 8px rgba(240, 185, 11, 0.6);
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.header-contact {
    margin-right: auto;
    margin-left: 20px;
}

.phone-number {
    display: flex;
    align-items: center;
    background-color: rgba(240, 185, 11, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.phone-number i {
    color: var(--primary);
    margin-left: 8px;
    font-size: 0.9rem;
}

.phone-number span {
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 500;
}

.phone-number:hover {
    background-color: var(--primary);
}

.phone-number:hover i,
.phone-number:hover span {
    color: var(--dark);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    margin-right: 15px;
    z-index: 10000;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    right: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
    width: 75%;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.menu-toggle:hover .hamburger span:nth-child(2) {
    width: 100%;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

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

.menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(24, 26, 32, 0.95);
    z-index: 9999;
    transition: all 0.4s ease;
    overflow-y: auto;
    opacity: 0;
    display: block;
}

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

.mobile-menu-container {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark);
    float: right;
    padding: 20px;
    position: relative;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-menu {
    width: 30px;
    height: 30px;
    background-color: rgba(240, 185, 11, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-menu i {
    color: var(--primary);
    font-size: 18px;
}

.close-menu:hover {
    background-color: var(--primary);
}

.close-menu:hover i {    
    color: var(--dark);
}

/* Mobile Navigation */
.mobile-nav {
    margin-bottom: 30px;
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    display: block;
}

.mobile-nav ul li {
    margin-bottom: 15px;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav ul li {
    transform: translateX(0);
    opacity: 1;
    display: block !important;
}

.mobile-nav ul li a {
    display: block;
    color: var(--light);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.mobile-nav ul li a span {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-nav ul li a:hover span {
    transform: translateY(-2px);
}

.mobile-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary);
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.mobile-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 0;
    box-shadow: 0 0 8px rgba(240, 185, 11, 0.6);
}

.mobile-nav ul li a:hover {
    color: var(--dark);
}

.mobile-nav ul li a:hover::before {
    width: 100%;
}

.mobile-nav ul li a:hover::after {
    width: 80%;
}

.mobile-contact {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(240, 185, 11, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mobile-phone i {
    color: var(--primary);
    margin-left: 12px;
    font-size: 18px;
}

.mobile-phone span {
    color: var(--light);
    font-weight: 500;
}

.mobile-phone:hover {
    background-color: var(--primary);
}

.mobile-phone:hover i,
.mobile-phone:hover span {
    color: var(--dark);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 0;
}

.mobile-social a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-social a:hover::before {
    transform: scale(1);
}

.mobile-social a:hover i {
    color: var(--dark);
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(24, 26, 32, 0.95) 0%, rgba(32, 35, 42, 0.95) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light);
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1555949963-ff9fe0c870eb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.code-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.particle-bg {
    opacity: 0.15 !important;
    filter: blur(1px);
}

.particle-mid {
    opacity: 0.35 !important;
    filter: blur(0.5px);
}

.particle-fg {
    opacity: 0.6 !important;
    filter: blur(0);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.code-element {
    position: absolute;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    animation: float 10s infinite ease-in-out;
}

.code-element:nth-child(1) {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.code-element:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.code-element:nth-child(3) {
    top: 30%;
    right: 60%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.code-element:nth-child(4) {
    top: 70%;
    right: 70%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.code-element:nth-child(5) {
    top: 10%;
    right: 80%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.code-element:nth-child(6) {
    top: 50%;
    right: 40%;
    animation-delay: 5s;
    animation-duration: 14s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.animated-text {
    margin-bottom: 30px;
}

.tech-text {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background-color: rgba(24, 26, 32, 0.7);
    padding: 5px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.tech-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 2px;
    height: 100%;
    background-color: var(--primary);
    animation: blink-caret 1s infinite;
}

@keyframes blink-caret {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.highlight-text {
    color: var(--primary);
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.hero-content:hover .highlight-text::after {
    transform: scaleX(1);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.terminal-window {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    background-color: #282c34;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background-color: #21252b;
    padding: 10px;
    display: flex;
    align-items: center;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
}

.terminal-button.red {
    background-color: #ff5f56;
}

.terminal-button.yellow {
    background-color: #ffbd2e;
}

.terminal-button.green {
    background-color: #27c93f;
}

.terminal-body {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #dcdfe4;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
}

.terminal-prompt {
    color: var(--primary);
    margin-left: 8px;
}

.terminal-text {
    color: #dcdfe4;
    position: relative;
}

.terminal-output {
    color: #98c379;
}

.typing::after {
    content: '|';
    position: absolute;
    left: -2px;
    top: 0;
    color: #dcdfe4;
    animation: blink-cursor 0.8s infinite;
}

.typing {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(45, end) forwards;
}

.typing2 {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(25, end) forwards;
    animation-delay: 4s;
}

@keyframes typing {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-primary i {
    margin-left: 8px;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(240, 185, 11, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-secondary i {
    margin-left: 8px;
}

.btn-secondary:hover {
    background-color: var(--light);
    color: var(--dark);
    transform: translateY(-5px);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light);
}

.about-content {
    display: flex;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text ul {
    padding-right: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    position: relative;
}

.about-text ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background-color: var(--dark);
    color: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.stat-text {
    font-size: 1.2rem;
}

/* Courses Section */
.courses {
    padding: 100px 0;
    background-color: var(--gray);
}

.course-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: var(--light);
    border: 2px solid var(--dark);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.course-content p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--dark);
    color: var(--light);
}

.testimonials .section-title {
    color: var(--light);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    padding: 30px;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    right: 20px;
    color: var(--primary);
    opacity: 0.5;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    color: var(--primary);
}

.dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light);
}

.contact-content.contact-centered {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--dark);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-left: 20px;
    background-color: rgba(240, 185, 11, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.1);
    background-color: rgba(240, 185, 11, 0.2);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.info-item p {
    color: var(--light);
    font-size: 1rem;
}

.contact-social {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background-color: var(--dark);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-social h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(240, 185, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 10px 20px rgba(240, 185, 11, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about, .footer-links, .footer-courses, .footer-newsletter {
    margin-bottom: 30px;
}

.footer-about h3, .footer-links h3, .footer-courses h3, .footer-newsletter h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--dark);
}

.footer-links ul li, .footer-courses ul li {
    margin-bottom: 15px;
}

.footer-links ul li a, .footer-courses ul li a {
    transition: color 0.3s ease;
}

.footer-links ul li a:hover, .footer-courses ul li a:hover {
    color: var(--primary);
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Vazirmatn', sans-serif;
}

.footer-newsletter .btn {
    border-radius: 0 5px 5px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-stats {
        margin-top: 30px;
    }
    
    .header-contact {
        margin-right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .course-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        margin-bottom: 10px;
    }
    
    .header-contact {
        display: none;
    }
}

/* Map styling */
.map-container {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#map {
    height: 100%;
    width: 100%;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-btn {
    background-color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

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

.map-status {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.map-help {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    margin-top: 5px;
}

.help-text {
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 400;
}

.location-marker {
    background-color: white;
    border-radius: 5px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.location-marker i {
    color: var(--primary);
}

/* Fix Leaflet routing control direction for RTL */
.leaflet-routing-container {
    direction: ltr;
    text-align: left;
}

/* Media Query for Map on Mobile */
@media screen and (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    .map-btn span {
        font-size: 0.8rem;
    }
    
    .location-marker {
        padding: 8px 20px;
    }
    
    .location-marker i {
        font-size: 1.2rem;
    }
    
    .location-marker span {
        font-size: 0.9rem;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(240, 185, 11, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 30px rgba(240, 185, 11, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(240, 185, 11, 0.2);
    }
} 