/* ==================== Reset & Variables ==================== */
:root {
    --bg-dark: #0f1117;
    --bg-card: #181b24;
    --bg-card-hover: #212634;
    --primary: #8a3ffc;
    --primary-gradient: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #f77737 100%);
    --accent: #00f2fe;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 3.5rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(to left, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .section-title p {
    color: var(--text-muted);
    font-size: 1rem;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
  }
  
  .btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
  }
  
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.6);
  }
  
  .btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
  }
  
  .btn-outline:hover {
    border-color: #e1306c;
    color: #fff;
    background: rgba(225, 48, 108, 0.05);
  }
  
  .center-btn {
    text-align: center;
    justify-content: center;
  }
  
  /* ==================== Header & Navbar ==================== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }
  
  .logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
  }
  
  .logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .nav-links {
    display: flex;
    gap: 2.2rem;
  }
  
  .nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: #fff;
  }
  
  .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* ==================== Hero Section ==================== */
  .hero {
    padding: 180px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(225, 48, 108, 0.1);
    border: 1px solid rgba(225, 48, 108, 0.25);
    border-radius: 50px;
    color: #fd1d1d;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 1.5rem;
  }
  
  .hero-content h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
  }
  
  .hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  
  .hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
  }
  
  .hero-avatar {
    width: 320px;
    height: 380px;
    border-radius: 28px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
  }
  
  .floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
    animation: float 4s ease-in-out infinite alternate;
  }
  
  .badge-1 {
    top: -20px;
    right: -20px;
  }
  
  .badge-2 {
    bottom: -15px;
    left: -20px;
    animation-delay: 2s;
  }
  
  .floating-badge i {
    font-size: 1.4rem;
    color: #fd1d1d;
  }
  
  .floating-badge span {
    font-size: 0.85rem;
    font-weight: 700;
  }
  
  @keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
  }
  
  /* ==================== Stats Section ==================== */
  .stats-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(24, 27, 36, 0.4);
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
  }
  
  .stat-item h3 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
  }
  
  .stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  /* ==================== Portfolio Section ==================== */
  .portfolio-section {
    padding: 100px 0;
  }
  
  .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: 0.6rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
  }
  
  .filter-btn.active,
  .filter-btn:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
  }
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
  
  .portfolio-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
  }
  
  .portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  }
  
  .portfolio-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
  }
  
  .portfolio-body {
    padding: 1.5rem;
  }
  
  .portfolio-tag {
    font-size: 0.75rem;
    color: #fd1d1d;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  .portfolio-body h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.8rem;
    font-weight: 700;
  }
  
  .portfolio-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
  }
  
  .portfolio-metrics {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #00f2fe;
    font-weight: 600;
  }
  
  /* ==================== Pricing Section ==================== */
  .pricing-section {
    padding: 100px 0;
    background: rgba(24, 27, 36, 0.3);
  }
  
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
  }
  
  .pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
  }
  
  .pricing-card:hover {
    border-color: rgba(225, 48, 108, 0.5);
  }
  
  .pricing-card.featured {
    border-color: #e1306c;
    background: linear-gradient(180deg, rgba(225, 48, 108, 0.08) 0%, var(--bg-card) 100%);
    transform: scale(1.03);
  }
  
  .badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
  }
  
  .pricing-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
  }
  
  .pricing-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }
  
  .price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
  }
  
  .price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
  }
  
  .pricing-features {
    margin-bottom: 2.5rem;
    flex-grow: 1;
  }
  
  .pricing-features li {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #d1d5db;
  }
  
  .pricing-features li i.fa-check {
    color: #10b981;
  }
  
  .pricing-features li i.fa-xmark {
    color: #ef4444;
    opacity: 0.6;
  }
  
  /* ==================== Contact Section ==================== */
  .contact-section {
    padding: 100px 0;
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  
  .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
  }
  
  .contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }
  
  .direct-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }
  
  .direct-link-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.1rem 1.5rem;
    border-radius: 16px;
    transition: var(--transition);
  }
  
  .direct-link-card:hover {
    border-color: #00f2fe;
    transform: translateX(-5px);
  }
  
  .direct-link-card i {
    font-size: 1.6rem;
    color: #00f2fe;
  }
  
  .sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
  }
  
  .contact-form h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
  }
  
  .form-group {
    margin-bottom: 1.3rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #d1d5db;
  }
  
  .form-control {
    width: 100%;
    background: #0f1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
  }
  
  .form-control:focus {
    outline: none;
    border-color: #e1306c;
    box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.2);
  }
  
  textarea.form-control {
    resize: vertical;
    min-height: 110px;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* ==================== Footer ==================== */
  footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  
  /* ==================== Responsive ==================== */
  @media (max-width: 992px) {
    .hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .hero-content p {
      margin: 0 auto 2.5rem;
    }
    .hero-actions {
      justify-content: center;
    }
    .contact-grid {
      grid-template-columns: 1fr;
    }
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.featured {
      transform: none;
    }
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
    .nav-links {
      position: absolute;
      top: 80px;
      right: -100%;
      width: 100%;
      background: var(--bg-dark);
      flex-direction: column;
      padding: 2rem;
      gap: 1.5rem;
      border-bottom: 1px solid var(--border-color);
      transition: var(--transition);
    }
    .nav-links.active {
      right: 0;
    }
    .hero-content h1 {
      font-size: 2.2rem;
    }
    .hero-avatar {
      width: 260px;
      height: 320px;
    }
    .stats-grid {
      grid-template-columns: 1fr;
    }
  }
  