/* فونت ایران‌سنس (Vazirmatn) - نسخه آپلود شده */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  /* اعمال فونت به کل سایت */
  :root {
      --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  * {
      font-family: var(--font-family);
  }
  
  /* برای اطمینان بیشتر */
  body, input, textarea, select, button, h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th {
      font-family: var(--font-family);
  }
  
  /* تنظیم وزن فونت برای عناوین */
  h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
  }
  
  /* تنظیم وزن فونت برای دکمه‌ها */
  .btn {
      font-weight: 500;
  }
  
  /* تنظیم وزن فونت برای لینک‌های ناوبری */
  .nav-link {
      font-weight: 500;
  }
  
  /* تنظیم وزن فونت برای متن معمولی */
  body {
      font-weight: 400;
      line-height: 1.8;
  }
  




/* ریست و متغیرها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4aa;
    --secondary: #0f0f23;
    --accent: #ff6b6b;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --bg: #0a0a14;
    --card-bg: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.1);
    --shadow: 0 20px 40px rgba(0,0,0,0.3);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/*[data-theme="light"] {
    --text: #1a1a2e;
    --text-muted: #5a5a6a;
    --bg: #f8f9fa;
    --card-bg: rgba(0,0,0,0.03);
    --secondary: #495057;
    --border: rgba(0,0,0,0.1);
}*/

body {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15,15,35,0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.theme-toggle, .admin-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover, .admin-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');*/
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff8f;
    background-clip: text;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: white;
    color: var(--secondary);
}

.floating-code {
    position: absolute;
    left: 10%;
    top: 20%;
    animation: float 6s ease-in-out infinite;
}

.code-line {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    border-right: 3px solid var(--primary);
}

/* Projects */
.projects {
    padding: 120px 0 80px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    flex-direction: column;
}

.projects-controls input,
.projects-controls select {
    padding: 12px 20px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.projects-controls input:focus,
.projects-controls select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0,212,170,0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.project-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.project-image i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.stage-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.stage-idea { background: #ff6b6b; }
.stage-development { background: #ffa726; }
.stage-completed { background: #00d4aa; }

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-links a {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-demo { background: #2196f3; color: white; }
.link-download { background: #4caf50; color: white; }
.link-details { background: var(--primary); color: white; border: 1px solid var(--primary); }

.project-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.modal-content.large {
    max-width: 900px;
}

.close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text);
}

/* About */
.about {
    padding: 80px 0;
    background: var(--card-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar span {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 2s ease;
}

/* Contact */
.contact {
    padding: 80px 0;
}

.contact-content {
    text-align: center;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    min-width: 150px;
}

.contact-link i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-link:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Admin Panel */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--secondary);
    border-left: 1px solid var(--border);
}

.admin-logo {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: var(--card-bg);
    color: var(--primary);
}

.admin-main {
    flex: 1;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
}

.admin-form textarea {
    resize: vertical;
    min-height: 120px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.btn-small {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {

    
    .hero-content {
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        order: 2;
    }
}

/* انیمیشن‌ها */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

.animate.delay-1 { animation-delay: 0.2s; }
.animate.delay-2 { animation-delay: 0.4s; }
.animate.delay-3 { animation-delay: 0.6s; }

/* Scroll animations */
.project-card.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.project-card.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}