:root {
      --bg: #0f0f0f;
      --card: #1c1c1c;
      --text: #eaeaea;
      --gold: #d4af37;
      --muted: #9a9a9a;
    }

    body.light {
      --bg: #f5f5f5;
      --card: #ffffff;
      --text: #1a1a1a;
      --gold: #b89b2e;
      --muted: #666;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Vazirmatn", sans-serif;
      background: var(--bg);
      color: var(--text);
      transition:
        background 0.4s,
        color 0.4s;
    }

    header {
      padding: 3rem 1rem;
      text-align: center;
      animation: fadeDown 1s ease;
    }

    header h1 {
      font-size: 2.5rem;
      margin: 0;
      color: var(--gold);
    }

    header p {
      margin-top: 0.8rem;
      color: var(--muted);
    }

    .toggle {
      position: fixed;
      top: 20px;
      left: 20px;
      background: var(--card);
      border: 1px solid var(--gold);
      color: var(--gold);
      padding: 0.5rem 1rem;
      border-radius: 30px;
      cursor: pointer;
      transition: 0.3s;
    }

    .container {
      max-width: 1000px;
      margin: auto;
      padding: 1rem;
    }

    .section {
      background: var(--card);
      border-radius: 16px;
      padding: 2rem;
      margin-bottom: 2rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      animation: fadeUp 1s ease;
    }

    .section h2 {
      margin-top: 0;
      color: var(--gold);
      border-right: 4px solid var(--gold);
      padding-right: 10px;
    }

    .job {
      margin-top: 1.5rem;
      padding-right: 1rem;
      border-right: 2px dashed var(--gold);
      animation: slideIn 1.2s ease;
    }

    footer {
      text-align: center;
      padding: 2rem;
      color: var(--muted);
      font-size: 0.9rem;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* فرم نظرات */
    form textarea {
      width: 100%;
      min-height: 80px;
      border-radius: 8px;
      padding: 10px;
      background: var(--card);
      color: var(--text);
      border: 1px solid var(--gold);
    }

    form button {
      background: var(--gold);
      border: none;
      padding: 10px 20px;
      border-radius: 20px;
      cursor: pointer;
      color: var(--dark);
      font-weight: bold;
    }

    #successMessage {
      color: limegreen;
      margin-top: 10px;
      font-weight: bold;
      display: none;
    }

    .hero {
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 40px 20px;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      width: 700px;
      height: 700px;
      background: radial-gradient(circle,
          rgba(212, 175, 55, 0.15),
          transparent 70%);
      top: -250px;
      left: 50%;
      transform: translateX(-50%);
    }

    .hero-buttons {
      position: absolute;
      top: 25px;
      left: 25px;
      display: flex;
      gap: 10px;
      z-index: 10;
    }

    .hero-buttons button {
      background: var(--card);
      border: 1px solid var(--gold);
      color: var(--gold);
      padding: 10px 15px;
      border-radius: 50px;
      cursor: pointer;
      font-family: inherit;
    }

    .profile-wrapper {
      position: relative;
      z-index: 5;
      max-width: 800px;
    }

    .profile-image {
      width: 220px;
      height: 220px;
      border-radius: 50%;
      margin: auto;
      border: 4px solid var(--gold);
      display: flex;
      justify-content: center;
      align-items: center;
      background: #252525;
      font-size: 1rem;
      color: #888;
      box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
    }

    .hero-title {
      font-size: 3.8rem;
      margin-top: 30px;
      color: var(--gold);
    }

    .hero-subtitle {
      font-size: 1.3rem;
      font-weight: 400;
      margin-top: -10px;
      color: var(--muted);
    }

    .typing-container {
      margin-top: 25px;
      height: 40px;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--gold);
    }

    .hero-description {
      max-width: 650px;
      margin: 25px auto;
      font-size: 1.1rem;
      line-height: 2;
      color: var(--muted);
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 30px;
    }

    .social-btn {
      width: 65px;
      height: 65px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.7rem;
      color: var(--gold);
      border: 2px solid var(--gold);
      text-decoration: none;
      transition: 0.3s;
    }

    .social-btn:hover {
      transform: translateY(-8px);
      box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    }

    @media (max-width: 768px) {
      .hero-title {
        font-size: 2.6rem;
      }

      .profile-image {
        width: 170px;
        height: 170px;
      }

      .hero-description {
        font-size: 1rem;
      }
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      align-items: center;
    }

    .about-text p {
      line-height: 2;
      color: var(--muted);
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    .stat-card {
      background: rgba(212, 175, 55, 0.08);
      border: 1px solid rgba(212, 175, 55, 0.2);
      padding: 25px;
      border-radius: 16px;
      text-align: center;
    }

    .stat-card span {
      display: block;
      font-size: 2rem;
      font-weight: 800;
      color: var(--gold);
    }

    .skill {
      margin: 25px 0;
    }

    .skill-title {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
    }

    .skill-bar {
      height: 12px;
      background: #2a2a2a;
      border-radius: 30px;
      overflow: hidden;
    }

    .skill-fill {
      height: 100%;
      background: var(--gold);
      border-radius: 30px;
    }

    @media (max-width: 768px) {
      .about-grid {
        grid-template-columns: 1fr;
      }
    }

    .music-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .music-card {
      background: rgba(212, 175, 55, 0.05);
      border: 1px solid rgba(212, 175, 55, 0.15);
      padding: 25px;
      border-radius: 18px;
      text-align: center;
      transition: 0.3s;
    }

    .music-card:hover {
      transform: translateY(-8px);
    }

    .music-icon {
      font-size: 3rem;
      margin-bottom: 15px;
    }

    .music-card h3 {
      color: var(--gold);
    }

    .music-card p {
      color: var(--muted);
      line-height: 1.9;
    }

    .timeline {
      position: relative;
      padding-right: 30px;
    }

    .timeline::before {
      content: "";
      position: absolute;
      right: 10px;
      top: 0;
      width: 3px;
      height: 100%;
      background: var(--gold);
    }

    .timeline-item {
      position: relative;
      margin-bottom: 40px;
    }

    .timeline-dot {
      position: absolute;
      right: -26px;
      width: 18px;
      height: 18px;
      background: var(--gold);
      border-radius: 50%;
    }

    .timeline-content {
      background: rgba(212, 175, 55, 0.05);
      padding: 20px;
      border-radius: 16px;
    }

    .timeline-content h3 {
      margin-top: 0;
      color: var(--gold);
    }

    .gallery-text {
      text-align: center;
      color: var(--muted);
      margin-bottom: 25px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .gallery-item {
      overflow: hidden;
      border-radius: 18px;
      position: relative;
    }

    .gallery-item img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      display: block;
      transition: 0.5s;
    }

    .gallery-item:hover img {
      transform: scale(1.08);
    }

    .gallery-item::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
      pointer-events: none;
    }

    .comment-desc {
      text-align: center;
      color: var(--muted);
      margin-bottom: 25px;
    }

    #commentForm {
      background: rgba(212, 175, 55, 0.04);
      border: 1px solid rgba(212, 175, 55, 0.15);
      padding: 25px;
      border-radius: 20px;
    }

    #commentForm input,
    #commentForm textarea {
      width: 100%;
      padding: 14px;
      border-radius: 12px;
      border: 1px solid rgba(212, 175, 55, 0.25);
      background: var(--card);
      color: var(--text);
      font-family: inherit;
    }

    #commentForm textarea {
      min-height: 120px;
      resize: vertical;
    }

    #commentForm button {
      background: var(--gold);
      color: #111;
      padding: 12px 28px;
      border: none;
      border-radius: 14px;
      cursor: pointer;
      font-weight: 700;
      transition: 0.3s;
    }

    #commentForm button:hover {
      transform: translateY(-3px);
    }

    #successMessage {
      text-align: center;
      background: rgba(0, 255, 120, 0.08);
      border: 1px solid rgba(0, 255, 120, 0.2);
      padding: 15px;
      border-radius: 12px;
      margin-top: 15px;
    }

    .contact-text {
      text-align: center;
      color: var(--muted);
      margin-bottom: 30px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .contact-card {
      background: rgba(212, 175, 55, 0.05);
      border: 1px solid rgba(212, 175, 55, 0.15);

      border-radius: 20px;

      padding: 30px;

      text-align: center;

      text-decoration: none;

      color: var(--text);

      transition: 0.3s;
    }

    .contact-card:hover {
      transform: translateY(-10px);

      box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
    }

    .contact-icon {
      font-size: 3rem;

      margin-bottom: 15px;

      color: var(--gold);
    }

    .contact-card h3 {
      color: var(--gold);

      margin-bottom: 10px;
    }

    .profile-image {
      width: 160px;
      height: 160px;
      border-radius: 50%;
      overflow: hidden;
      border: 3px solid var(--gold);
    }

    .profile-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .rating {
      display: flex;
      flex-direction: row-reverse;
      justify-content: center;
      gap: 5px;
    }

    .rating input {
      display: none;
    }

    .rating label {
      font-size: 2rem;
      cursor: pointer;
      color: #555;
      transition: .2s;
    }

    .rating label:hover,
    .rating label:hover~label {
      color: gold;
    }

    .rating input:checked~label {
      color: gold;
    }

    body {
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity 0.8s ease,
        transform 2s ease;
    }

    body.loaded {
      opacity: 1;
    }