
        /* --- Core Styles from index.css --- */
        :root {
          --background-color: #121212;
          --primary-text-color: #e0e0e0;
          --secondary-text-color: #b0b0b0;
          --accent-color-1: #00ff9b;
          --accent-color-2: #00c6ff;
          --surface-color: rgba(30, 30, 30, 0.7);
          --border-color: rgba(51, 51, 51, 0.35);

          --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
          --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
          --font-fa: 'Ravi', Tahoma, Arial, sans-serif;
          --font-display: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        }

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

        html {
          scroll-behavior: smooth;
        }

        html .page-section-container {
          scroll-snap-type: y mandatory;
        }

        body {
          background-color: var(--background-color);
          color: var(--primary-text-color);
          font-family: var(--font-primary);
          line-height: 1.6;
          font-size: 1rem;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          cursor: none;
        }

        body.dragging {
            user-select: none;
            -webkit-user-select: none;
        }

        a, button {
            cursor: none;
        }

        /* Preloader Styles */
        #preloader {
            position: fixed;
            inset: 0;
            background-color: var(--background-color);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
            visibility: visible;
            opacity: 1;
        }

        #preloader.preloader--hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .preloader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            width: 300px;
        }

        .logo-code {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            color: var(--accent-color-1);
            border-right: 3px solid var(--accent-color-1);
            white-space: nowrap;
            overflow: hidden;
            animation: blink-preloader-caret .75s step-end infinite;
        }

        .preloader-progress-bar {
            width: 100%;
            height: 4px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }

        .preloader-progress {
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
            border-radius: 2px;
            transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
        }

        .preloader-status {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--secondary-text-color);
            transition: opacity 0.3s ease;
        }

        @keyframes blink-preloader-caret {
            from, to { border-color: transparent }
            50% { border-color: var(--accent-color-1); }
        }

        #root {
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        body.loaded #root {
            opacity: 1;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--background-color);
        }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--accent-color-1), var(--accent-color-2));
            border-radius: 4px;
        }

        /* Custom Cursor */
        .cursor-dot,
        .cursor-outline {
            pointer-events: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }

        body:hover .cursor-dot,
        body:hover .cursor-outline {
            opacity: 1;
        }

        .cursor-dot {
            width: 6px;
            height: 6px;
            background-color: var(--accent-color-1);
        }

        .cursor-outline {
            width: 30px;
            height: 30px;
            border: 2px solid var(--accent-color-1);
            transition: transform 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out;
        }

        .cursor-outline.cursor--hover {
            transform: translate(-50%, -50%) scale(1.5);
            background-color: rgba(0, 255, 155, 0.2);
        }

        /* Header */
        .app-header {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          padding: 1rem 5%;
          background-color: rgba(18, 18, 18, 0.8);
          backdrop-filter: blur(10px);
          display: flex;
          justify-content: space-between;
          align-items: center;
          z-index: 1000;
          border-bottom: 1px solid var(--border-color);
        }

        .logo {
          font-family: var(--font-mono);
          font-size: 1.5rem;
          font-weight: 700;
          color: var(--primary-text-color);
          text-decoration: none;
          position: relative;
          transition: text-shadow 0.3s ease;
        }

        .logo:hover {
            text-shadow: 0 0 8px rgba(0, 255, 155, 0.7);
        }

        .logo span {
            color: var(--accent-color-1);
        }

        .nav-controls {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .nav-links {
            display: flex;
            align-items: center;
        }

        .nav-links a {
          display: inline-flex;
          align-items: center;
          gap: 0.5rem;
          color: var(--primary-text-color);
          text-decoration: none;
          margin-left: 2rem;
          font-family: var(--font-mono);
          transition: color 0.3s ease;
        }

        .nav-links a:hover,
        .nav-links a.active {
          color: var(--accent-color-1);
        }

        .nav-links a.lang-switcher {
          border: 1px solid var(--border-color);
          padding: 0.35rem 0.8rem;
          border-radius: 4px;
          font-family: var(--font-fa);
          font-size: 0.9rem;
          transition: all 0.3s ease;
          line-height: 1;
        }

        [lang="fa"], .rtl, .font-fa {
          font-family: var(--font-fa) !important;
        }

        .nav-icon {
          flex-shrink: 0;
          transition: transform 0.2s ease, stroke-width 0.2s ease;
        }

        .nav-links a:hover .nav-icon {
          transform: translateY(-1px);
        }

        .nav-links a.lang-switcher:hover {
          border-color: var(--accent-color-1);
          background-color: rgba(0, 255, 155, 0.08);
          color: var(--accent-color-1);
        }

        .mobile-header-lang-switcher {
          display: none;
        }

        .mobile-nav-contact {
          display: none;
        }

        .page-section {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 6rem 2rem 2rem;
            position: relative;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .page-section.active {
            opacity: 1;
            transform: translateY(0);
        }

        .page-section .content-container {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
        }

        .page-section.active .content-container {
            opacity: 1;
            transform: translateY(0);
        }

        .content-container {
            width: 100%;
            max-width: 900px;
            padding: 0 2rem;
            margin: 0 auto;
        }

        /* Hero Section */
        .code-background-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .hero-content {
          position: relative;
          z-index: 1;
          padding: 2rem;
          background-color: rgba(18, 18, 18, 0.6);
          border-radius: 10px;
          backdrop-filter: blur(4px);
          text-align: center;
        }

        .hero-title-container {
            min-height: 6rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-title {
          font-family: var(--font-mono);
          font-size: 2.2rem;
          color: var(--primary-text-color);
          text-shadow: 0 0 15px rgba(0, 255, 155, 0.5);
          position: relative;
          border-right: 3px solid var(--accent-color-1);
          animation: blink-caret .75s step-end infinite;
          white-space: pre;
        }

        @keyframes blink-caret {
          from, to { border-color: transparent }
          50% { border-color: var(--accent-color-1); }
        }

        .hero-subtitle {
          font-size: 1.2rem;
          color: var(--secondary-text-color);
          margin-top: 1rem;
          margin-bottom: 2rem;
        }

        .cta-button {
          background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
          color: #121212;
          border: none;
          padding: 0.8rem 1.5rem;
          font-size: 1rem;
          font-family: var(--font-mono);
          font-weight: 700;
          border-radius: 5px;
          cursor: pointer;
          text-decoration: none;
          transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
          display: inline-flex;
          justify-content: center;
          align-items: center;
          min-height: 45px;
          min-width: 150px;
        }

        .cta-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .cta-button:not(:disabled):hover {
          transform: translateY(-3px);
          box-shadow: 0 5px 15px rgba(0, 255, 155, 0.4);
        }

        /* Generic Section Styles */
        .section-title {
          font-family: var(--font-display);
          font-size: 3.5rem;
          font-weight: 400;
          text-align: center;
          margin-bottom: 4rem;
          color: transparent;
          -webkit-text-stroke: 0.5px var(--primary-text-color);
          text-stroke: 0.5px var(--primary-text-color);
          position: relative;
          letter-spacing: 1px;
        }

        .section-title::after {
            content: attr(data-text);
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            z-index: -1;
            color: var(--accent-color-2);
            opacity: 0.1;
            text-shadow: 0 0 15px var(--accent-color-2);
        }

        .section-title span {
            font-family: inherit;
            -webkit-text-stroke: 0.5px var(--accent-color-1);
            text-stroke: 0.5px var(--accent-color-1);
        }

        /* About Section */
        .about-content {
            display: flex;
            flex-direction: column;
            gap: 3rem;
            align-items: center;
        }

        @keyframes blink {
          50% { opacity: 0; }
        }

        .loading-placeholder {
            min-height: 100px;
            background-color: var(--surface-color);
            border-radius: 5px;
        }

        /* About Section - Code Editor Style */
        .code-editor-window {
            background-color: #1e1e1e;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            width: 100%;
            overflow: hidden;
        }

        .editor-header {
            background-color: #333333;
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .editor-controls {
            display: flex;
            gap: 0.5rem;
        }

        .editor-controls .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .editor-controls .red { background-color: #ff5f56; }
        .editor-controls .yellow { background-color: #ffbd2e; }
        .editor-controls .green { background-color: #27c93f; }

        .editor-title {
            color: var(--secondary-text-color);
            font-family: var(--font-mono);
            font-size: 0.85rem;
        }

        .editor-body {
            padding: 1rem 1.5rem;
            min-height: 250px;
            font-family: var(--font-mono);
            line-height: 1.7;
            direction: ltr;
            text-align: left;
        }

        .editor-body pre {
            margin: 0;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .editor-body code {
            color: var(--primary-text-color);
            font-family: inherit;
        }

        .editor-body .typing-cursor {
            animation: blink 0.75s step-end infinite;
            margin-left: 1px;
            color: var(--primary-text-color);
            font-weight: 700;
        }

        /* Features for About Section */
        .about-features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            width: 100%;
        }

        @media (min-width: 1200px) {
            .about-features-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            .content-container {
                max-width: 1200px;
            }
        }

        .feature-item {
            background: var(--surface-color);
            padding: 2rem 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .feature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 255, 155, 0.15);
            border-color: var(--accent-color-1);
        }

        .feature-icon {
            color: var(--accent-color-1);
            width: 64px;
            height: 64px;
            margin-bottom: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            filter: drop-shadow(0 0 8px rgba(0, 255, 155, 0.12));
        }

        .feature-icon svg {
            width: 56px;
            height: 56px;
            display: block;
            overflow: visible;
            vector-effect: non-scaling-stroke;
        }

        .feature-item:hover .feature-icon {
            filter: drop-shadow(0 0 10px rgba(0, 255, 155, 0.28));
        }

        .feature-title {
            font-family: var(--font-mono);
            font-size: 1.2rem;
            color: var(--primary-text-color);
            margin-bottom: 0.5rem;
        }

        .feature-description {
            font-size: 0.95rem;
            color: var(--secondary-text-color);
            line-height: 1.6;
        }

        /* Projects Section */
        .projects-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          gap: 2rem;
        }

        .project-card {
          background-color: var(--surface-color);
          border: 1px solid var(--border-color);
          border-radius: 8px;
          overflow: hidden;
          display: flex;
          flex-direction: column;
          transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
          backdrop-filter: blur(5px);
        }

        .project-card:hover {
          transform: translateY(-5px);
          box-shadow: 0 8px 25px rgba(0, 198, 255, 0.2);
          border-color: var(--accent-color-2);
        }

        .project-image {
          width: 100%;
          height: 200px;
          background-color: #000;
          overflow: hidden;
          position: relative;
          background-size: cover;
          background-position: center;
          filter: grayscale(100%);
          transition: filter 0.4s ease;
        }

        .project-card:hover .project-image {
          filter: grayscale(0%);
        }

        .project-image::before,
        .project-image::after {
          content: '';
          display: block;
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-image: inherit;
          background-position: center;
          background-size: cover;
          opacity: 0;
          transition: opacity 0.5s ease, transform 0.3s ease;
        }

        .project-card:hover .project-image::before {
          animation: glitch 0.4s cubic-bezier(.25, .46, .45, .94) both;
          mix-blend-mode: color-dodge;
          background-color: #0ff;
        }

        .project-card:hover .project-image::after {
          animation: glitch 0.4s cubic-bezier(.25, .46, .45, .94) both reverse;
          mix-blend-mode: screen;
          background-color: #f0f;
        }

        @keyframes glitch {
          0% {
            transform: translate(0);
            opacity: 0;
          }
          10% {
            transform: translate(-3px, -2px);
            opacity: 0.8;
          }
          20% {
            transform: translate(3px, 2px);
            opacity: 0.2;
          }
          30% {
            transform: translate(0);
            opacity: 0.8;
          }
          40% {
            clip-path: polygon(0 40%, 100% 40%, 100% 45%, 0 45%);
            transform: translate(-5px, 0);
            opacity: 0.6;
          }
          50% {
            clip-path: polygon(0 60%, 100% 60%, 100% 70%, 0 70%);
            transform: translate(5px, 0);
            opacity: 0.4;
          }
          60% {
            clip-path: initial;
            transform: translate(3px, 2px);
            opacity: 0.8;
          }
          70% {
            transform: translate(-3px, -2px);
            opacity: 0.2;
          }
          80% {
            transform: translate(0);
            opacity: 0.8;
          }
          90% {
            opacity: 0;
          }
          100% {
            transform: translate(0);
            opacity: 0;
          }
        }

        .project-info {
          padding: 1.5rem;
          flex-grow: 1;
          display: flex;
          flex-direction: column;
        }

        .project-title {
          font-family: var(--font-mono);
          font-size: 1.25rem;
          margin-bottom: 0.5rem;
          color: var(--primary-text-color);
        }

        .project-tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .tech-tag {
            background-color: rgba(0, 255, 155, 0.1);
            color: var(--accent-color-1);
            padding: 0.25rem 0.6rem;
            border-radius: 15px;
            font-size: 0.75rem;
            font-family: var(--font-mono);
        }

        .project-description {
          color: var(--secondary-text-color);
          margin-bottom: 1rem;
          flex-grow: 1;
        }

        .project-links a {
          color: var(--accent-color-1);
          text-decoration: none;
          font-family: var(--font-mono);
          margin-right: 1.5rem;
          transition: color 0.3s ease;
          display: inline-flex;
          align-items: center;
          gap: 0.5rem;
        }

        .project-links a:hover {
          text-decoration: underline;
        }

        /* Tutorials Section - Specific Styles */
        .tutorials-wrapper {
            position: relative;
            width: 100%;
        }

        .tutorials-search-container {
            position: relative;
            margin-bottom: 2.5rem;
        }

        .tutorials-search-container svg {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-text-color);
            pointer-events: none;
        }

        .tutorials-search-input {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            padding: 0.85rem 1rem 0.85rem 3rem;
            background-color: var(--surface-color);
            border: 1px solid var(--border-color);
            color: var(--primary-text-color);
            border-radius: 50px;
            font-family: var(--font-primary);
            font-size: 1rem;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .tutorials-search-input::placeholder {
            color: var(--secondary-text-color);
            opacity: 0.7;
        }

        .tutorials-search-input:focus {
            outline: none;
            border-color: var(--accent-color-1);
            box-shadow: 0 0 0 3px rgba(0, 255, 155, 0.2);
        }

        .no-tutorials-message {
            text-align: center;
            color: var(--secondary-text-color);
            padding: 3rem 0;
            font-size: 1.1rem;
            font-style: italic;
        }

        .tutorials-wrapper .projects-grid {
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        }

        @media (min-width: 840px) {
            .tutorials-wrapper .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .tutorial-card-date {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--secondary-text-color);
            margin-bottom: 0.75rem;
        }

        .read-more-button {
            background: none;
            border: none;
            color: var(--accent-color-1);
            font-family: var(--font-mono);
            font-size: 0.9rem;
            font-weight: 700;
            margin-top: 1rem;
            padding: 0.5rem 0;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            align-self: flex-start;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .read-more-button:hover {
            color: var(--accent-color-2);
        }

        .read-more-button:hover svg {
            transform: translateX(4px);
        }

        .read-more-button svg {
            transition: transform 0.3s ease;
        }

        .show-more-container {
            text-align: center;
            margin-top: 2rem;
        }

        .show-more-button {
            background: transparent;
            border: 1.5px solid var(--accent-color-1);
            color: var(--accent-color-1);
            padding: 0.75rem 1.75rem;
            font-size: 1rem;
            font-family: var(--font-mono);
            font-weight: 700;
            border-radius: 50px;
            cursor: pointer;
            text-decoration: none;
            transition: color 0.4s ease-in-out, border-color 0.4s ease-in-out;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
            min-height: 50px;
            min-width: 180px;
        }

        .show-more-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
            transform: scaleX(0);
            transform-origin: 0% 50%;
            transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
            z-index: -1;
        }

        .show-more-button:not(:disabled):hover {
            color: #121212;
            border-color: transparent;
        }

        .show-more-button:not(:disabled):hover::before {
            transform: scaleX(1);
        }

        .show-more-button svg {
            transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        }

        .show-more-button:not(:disabled):hover svg {
            transform: translateY(4px);
        }

        .show-more-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .show-more-button .loading-spinner {
            width: 28px;
            height: 28px;
        }

        .show-more-button .loading-spinner .path {
            stroke: var(--accent-color-1);
            stroke-linecap: round;
        }

        .show-more-button:not(:disabled):hover .loading-spinner .path {
            stroke: var(--background-color);
        }

        /* Code Block */
        .code-block-wrapper {
            position: relative;
            margin-top: 1.5rem;
        }

        .code-block {
            background-color: #0d0d0d;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 1.5rem 1rem 1rem;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            color: #d1d5db;
            white-space: pre-wrap;
            word-wrap: break-word;
            overflow-x: auto;
            max-height: 300px;
            text-align: left;
            direction: ltr;
        }

        .copy-button {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--primary-text-color);
            border: 1px solid var(--border-color);
            border-radius: 5px;
            padding: 0.25rem 0.6rem;
            font-family: var(--font-mono);
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .copy-button:hover {
            background-color: var(--accent-color-1);
            color: #121212;
        }

        .copy-button svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

        /* --- Tutorial Page Styles --- */
        .tutorial-page {
            justify-content: flex-start;
            padding-top: 8rem;
            padding-bottom: 4rem;
            height: auto;
            min-height: 100vh;
            scroll-snap-align: none;
        }

        .tutorial-page .content-container {
            max-width: 900px;
        }

        .tutorial-back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            color: var(--accent-color-1);
            font-family: var(--font-mono);
            font-size: 1rem;
            margin-bottom: 2rem;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .tutorial-back-button:hover {
            color: var(--accent-color-2);
            transform: translateX(-4px);
        }

        .tutorial-content {
            width: 100%;
        }

        .tutorial-page-title {
            font-family: var(--font-mono);
            font-size: 2rem;
            color: var(--primary-text-color);
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .tutorial-page-date {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: var(--secondary-text-color);
            margin-bottom: 2rem;
        }

        .tutorial-page-description {
            color: var(--secondary-text-color);
            line-height: 1.8;
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .tutorial-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem 0;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            margin-top: 2.5rem;
        }

        .like-button {
            background: none;
            border: 1px solid var(--secondary-text-color);
            color: var(--secondary-text-color);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: var(--font-mono);
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .like-button svg {
            width: 18px;
            height: 18px;
            transition: all 0.3s ease;
        }

        .like-button:not(:disabled):hover {
            color: #ff6b81;
            border-color: #ff6b81;
            transform: translateY(-2px);
        }

        .like-button.liked {
            color: #ff6b81;
            border-color: #ff6b81;
        }

        .like-button:disabled {
            cursor: not-allowed;
        }

        .comments-section {
            margin-top: 2.5rem;
        }

        .comments-title {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            color: var(--primary-text-color);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .comments-title svg {
            width: 22px;
            height: 22px;
            color: var(--accent-color-1);
        }

        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin-bottom: 2rem;
            max-height: 400px;
            overflow-y: auto;
            padding-right: 1rem;
        }

        .comment-item {
            background-color: rgba(255, 255, 255, 0.03);
            padding: 1rem;
            border-radius: 6px;
            border-left: 2px solid var(--accent-color-2);
        }

        .comment-author {
            font-family: var(--font-mono);
            color: var(--primary-text-color);
            font-size: 0.95rem;
        }

        .comment-text {
            color: var(--secondary-text-color);
            font-size: 0.9rem;
            margin-top: 0.5rem;
        }

        .no-comments {
            color: var(--secondary-text-color);
            font-style: italic;
        }

        .comment-form {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .comment-input {
            background-color: #0d0d0d;
            border: 1px solid var(--border-color);
            color: var(--primary-text-color);
            border-radius: 6px;
            padding: 0.75rem;
            font-family: var(--font-primary);
            font-size: 1rem;
            resize: vertical;
            min-height: 80px;
        }

        .comment-input:focus {
            outline: none;
            border-color: var(--accent-color-1);
            box-shadow: 0 0 0 2px rgba(0, 255, 155, 0.2);
        }

        .comment-submit-button {
            background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
            color: #121212;
            border: none;
            padding: 0.75rem 1.25rem;
            font-size: 0.9rem;
            font-family: var(--font-mono);
            font-weight: 700;
            border-radius: 5px;
            align-self: flex-end;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .comment-submit-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 255, 155, 0.3);
        }

        /* Loading Spinner */
        .loading-spinner {
            animation: rotate 1.4s linear infinite;
            width: 24px;
            height: 24px;
        }

        .loading-spinner .path {
            stroke: var(--background-color);
            stroke-linecap: round;
            animation: dash 1.5s ease-in-out infinite;
        }

        @keyframes rotate {
            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes dash {
            0% {
                stroke-dasharray: 1, 200;
                stroke-dashoffset: 0;
            }
            50% {
                stroke-dasharray: 89, 200;
                stroke-dashoffset: -35px;
            }
            100% {
                stroke-dasharray: 89, 200;
                stroke-dashoffset: -124px;
            }
        }

        /* Contact Section */
        .contact-content {
            text-align: center;
            color: var(--secondary-text-color);
            background: var(--surface-color);
            padding: 2rem;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            backdrop-filter: blur(5px);
        }

        .contact-email {
            color: var(--accent-color-1);
            margin: 1rem 0;
            display: inline-block;
            font-size: 1.2rem;
            text-decoration: none;
        }
        .contact-email:hover {
            text-decoration: underline;
        }

        .social-links {
            margin-top: 1.5rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 0.85rem;
        }

        .social-link {
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary-text-color);
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            text-decoration: none;
            transition: color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
        }

        .social-link svg {
            width: 22px;
            height: 22px;
            display: block;
            flex: 0 0 auto;
        }

        .social-link:hover,
        .social-link:focus-visible {
            color: var(--accent-color-2);
            border-color: currentColor;
            background-color: rgba(0, 198, 255, 0.07);
            box-shadow: 0 0 18px rgba(0, 198, 255, 0.14);
            transform: translateY(-3px);
            outline: none;
        }

        .social-link:active {
            transform: translateY(-1px) scale(0.96);
        }

        .social-link.is-unconfigured {
            cursor: default;
            color: var(--secondary-text-color);
            opacity: 0.72;
        }

        .social-link.is-unconfigured:hover,
        .social-link.is-unconfigured:focus-visible {
            color: var(--secondary-text-color);
            border-color: var(--border-color);
            background: rgba(255, 255, 255, 0.025);
            box-shadow: none;
            transform: none;
        }

        .footer-text {
            margin-top: 3rem;
            font-size: 0.9rem;
            color: var(--secondary-text-color);
        }

        /* Nav Overlay for mobile */
        .nav-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .nav-overlay.open {
            opacity: 1;
            pointer-events: auto;
        }

        /* Hamburger Menu & Responsive */
        .nav-toggle {
            display: none;
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 1001;
            padding: 0;
        }
        .nav-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background-color: var(--primary-text-color);
            margin: 5px 0;
            transition: all 0.3s ease-in-out;
        }
        .nav-toggle.open span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .nav-toggle.open span:nth-child(2) {
            opacity: 0;
        }
        .nav-toggle.open span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Side Navigation */
        .side-nav {
            position: fixed;
            top: 50%;
            right: 2rem;
            transform: translateY(-50%);
            z-index: 998;
            opacity: 0;
            animation: side-nav-fade-in 0.5s ease 1s forwards;
        }

        @keyframes side-nav-fade-in {
            to { opacity: 1; }
        }

        .side-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .side-nav li button {
            background: none;
            border: none;
            padding: 0;
            display: flex;
            align-items: center;
            position: relative;
        }

        .side-nav li .dot {
            width: 8px;
            height: 8px;
            background-color: var(--secondary-text-color);
            border-radius: 50%;
            transition: all 0.3s ease;
            opacity: 0.5;
        }

        .side-nav li:hover .dot,
        .side-nav li.active .dot {
            background-color: var(--accent-color-1);
            transform: scale(1.5);
            opacity: 1;
            box-shadow: 0 0 10px var(--accent-color-1);
        }

        .side-nav li .tooltip {
            position: absolute;
            right: 25px;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--surface-color);
            backdrop-filter: blur(5px);
            color: var(--primary-text-color);
            padding: 0.4rem 0.8rem;
            border-radius: 5px;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        }

        .side-nav li button:hover .tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) translateX(-10px);
        }

        /* Scroll to Top Button */
        .scroll-to-top-button {
            position: fixed;
            bottom: 1.5rem;
            left: 1.5rem;
            width: 38px;
            height: 38px;
            background: var(--accent-color-1);
            color: var(--background-color);
            border: none;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999;
            box-shadow: 0 4px 12px rgba(0, 255, 155, 0.4);
            
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        }

        .scroll-to-top-button.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-to-top-button:hover {
            transform: scale(1.1) translateY(0);
            box-shadow: 0 6px 16px rgba(0, 255, 155, 0.5);
        }

        .scroll-to-top-button svg {
            width: 22px;
            height: 22px;
        }

        /* Persistent mobile menu trigger beside the scroll-to-top control. */
        .mobile-floating-menu-button {
            display: none;
        }

        @media (max-width: 768px) {
          html, body {
            scroll-snap-type: none !important;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
          }

          html::-webkit-scrollbar,
          body::-webkit-scrollbar,
          .page-section-container::-webkit-scrollbar,
          *::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
          }

          html .page-section-container {
            scroll-snap-type: none !important;
          }

          .side-nav {
            display: none;
          }

          .scroll-to-top-button {
            bottom: calc(1rem + env(safe-area-inset-bottom));
            left: 1rem;
            width: 38px;
            height: 38px;
            z-index: 1002;
          }

          .mobile-floating-menu-button {
            position: fixed;
            bottom: calc(1rem + env(safe-area-inset-bottom));
            left: 1rem;
            width: 38px;
            height: 38px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-color-1);
            background: rgba(18, 18, 18, 0.88);
            border: 1px solid rgba(0, 255, 155, 0.42);
            border-radius: 50%;
            box-shadow: 0 5px 18px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 255, 155, 0.04) inset;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 1003;
            transform: translateZ(0);
            transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
          }

          .mobile-floating-menu-button.with-scroll-top {
            left: calc(1rem + 46px);
          }

          .mobile-floating-menu-button:hover,
          .mobile-floating-menu-button:focus-visible,
          .mobile-floating-menu-button.open {
            color: var(--background-color);
            background: var(--accent-color-1);
            border-color: var(--accent-color-1);
            box-shadow: 0 6px 20px rgba(0, 255, 155, 0.28);
          }

          .mobile-floating-menu-button:active {
            transform: scale(0.94);
          }

          .mobile-floating-menu-icon {
            width: 17px;
            height: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
          }

          .mobile-floating-menu-icon > span {
            display: block;
            width: 17px;
            height: 1.5px;
            border-radius: 99px;
            background: currentColor;
            transform-origin: center;
            transition: transform 0.25s ease, opacity 0.18s ease, width 0.25s ease;
          }

          .mobile-floating-menu-icon > span:nth-child(2) {
            width: 12px;
            align-self: flex-end;
          }

          .mobile-floating-menu-button.open .mobile-floating-menu-icon > span:nth-child(1) {
            transform: translateY(6.25px) rotate(45deg);
          }

          .mobile-floating-menu-button.open .mobile-floating-menu-icon > span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
          }

          .mobile-floating-menu-button.open .mobile-floating-menu-icon > span:nth-child(3) {
            transform: translateY(-6.25px) rotate(-45deg);
          }

          body.mobile-nav-open .scroll-to-top-button {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none;
          }

          body.mobile-nav-open .mobile-floating-menu-button {
            left: 1rem;
          }

          .hero-title {
            font-size: 1.6rem !important;
            white-space: normal !important;
            word-break: break-word !important;
            border-right: none !important;
            animation: none !important;
            width: 100% !important;
            text-align: center !important;
            line-height: 1.4 !important;
          }
          
          .hero-title-container {
            min-height: 6rem !important;
          }
          
          .hero-content {
              padding: 1.5rem 1rem !important;
              width: 95% !important;
          }

          .hero-subtitle {
              font-size: 1rem !important;
              line-height: 1.5 !important;
              margin-bottom: 1.5rem !important;
          }
          
          .section-title {
            font-size: 2rem !important;
            margin-bottom: 2rem !important;
            -webkit-text-stroke: 0.3px var(--primary-text-color) !important;
            text-stroke: 0.3px var(--primary-text-color) !important;
          }

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

          .section-title span {
            -webkit-text-stroke: 0.3px var(--accent-color-1) !important;
            text-stroke: 0.3px var(--accent-color-1) !important;
          }

          .page-section {
            scroll-snap-align: none !important;
            scroll-snap-stop: normal !important;
            height: auto !important;
            min-height: auto !important;
            padding: 4.5rem 1rem 2rem !important;
            opacity: 0;
            transform: translate3d(0, 26px, 0);
            transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
          }

          .page-section.active {
            opacity: 1;
            transform: translate3d(0, 0, 0);
          }

          .page-section .content-container {
            opacity: 1;
            transform: none;
            transition: none;
          }

          .page-section:first-of-type {
            min-height: 100svh !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            padding-top: 2rem !important;
          }

          .content-container {
            padding: 0 0.5rem !important;
            width: 100% !important;
          }

          /* Code Editor Mobile Tweaks */
          .editor-body {
            padding: 0.75rem 1rem !important;
            font-size: 0.8rem !important;
            min-height: auto !important;
          }

          .editor-body pre {
            white-space: pre-wrap !important;
            word-break: break-all !important;
          }

          .about-features-grid {
            grid-template-columns: 1fr !important;
            gap: 1.25rem !important;
            margin-top: 1.5rem !important;
          }

          .feature-item {
            padding: 1.5rem 1rem !important;
          }

          .feature-title {
            font-size: 1.1rem !important;
          }

          .feature-description {
            font-size: 0.9rem !important;
          }
          
          .projects-grid {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 1.25rem;
            padding: 0.25rem 1rem 1.5rem 1rem; 
            margin: 0 -1rem; 
          }

          .projects-grid {
            scrollbar-width: none;
            -ms-overflow-style: none;
          }

          .projects-grid::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
          }
          
          .projects-grid .project-card {
            flex: 0 0 85% !important;
            max-width: 290px !important;
            scroll-snap-align: start;
          }

          .project-info {
            padding: 1.25rem 1rem !important;
          }

          .project-title {
            font-size: 1.1rem !important;
          }

          .project-description {
            font-size: 0.85rem !important;
            line-height: 1.5 !important;
          }
          
          .nav-controls {
            gap: 0.42rem;
          }

          .mobile-header-lang-switcher {
            position: relative;
            z-index: 1002;
            min-width: 44px;
            height: 34px;
            padding: 0 0.62rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.36rem;
            color: var(--primary-text-color);
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(0, 255, 155, 0.22);
            border-radius: 999px;
            text-decoration: none;
            font-family: var(--font-fa);
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 0.02em;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
          }

          .mobile-header-lang-switcher svg {
            width: 14px;
            height: 14px;
            flex: 0 0 14px;
            color: var(--accent-color-1);
            transition: color 0.22s ease, transform 0.22s ease;
          }

          .mobile-header-lang-switcher:hover,
          .mobile-header-lang-switcher:focus-visible {
            color: var(--background-color);
            background: var(--accent-color-1);
            border-color: var(--accent-color-1);
            box-shadow: 0 5px 18px rgba(0, 255, 155, 0.22);
            transform: translateY(-1px);
          }

          .mobile-header-lang-switcher:hover svg,
          .mobile-header-lang-switcher:focus-visible svg {
            color: var(--background-color);
            transform: rotate(12deg);
          }

          .mobile-header-lang-switcher:active {
            transform: scale(0.96);
          }
          
          .nav-toggle {
            display: block;
          }
          
          .nav-links {
            position: fixed;
            top: 0;
            right: 0;
            width: min(86vw, 340px);
            height: 100dvh;
            background: rgba(18, 18, 18, 0.97);
            backdrop-filter: blur(14px);
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            transform: translateX(105%);
            transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
            margin-left: 0;
            gap: 0.35rem;
            padding: calc(5.25rem + env(safe-area-inset-top)) 1.35rem calc(1.25rem + env(safe-area-inset-bottom));
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: none;
            -ms-overflow-style: none;
            z-index: 1000;
            border-left: 1px solid rgba(0, 255, 155, 0.12);
            box-shadow: -18px 0 45px rgba(0, 0, 0, 0.35);
          }

          .nav-links::-webkit-scrollbar {
            display: none;
          }
          
          .nav-links.open {
            transform: translateX(0);
          }
          .nav-links > a {
            width: 100%;
            margin: 0;
            padding: 0.72rem 0.8rem;
            border-radius: 7px;
            font-size: 1.02rem;
            opacity: 0;
            transform: translateY(12px);
            transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.25s ease;
            display: flex;
            align-items: center;
            gap: 0.8rem;
          }

          .nav-links > a::before {
            content: none !important;
            display: none !important;
          }

          .nav-links > a:hover,
          .nav-links > a.active {
            background: rgba(0, 255, 155, 0.07);
          }

          .nav-links > a .nav-icon {
            width: 18px;
            height: 18px;
            color: var(--accent-color-1);
          }

          .nav-links.open > a {
              opacity: 1;
              transform: translateY(0);
          }
          .nav-links.open > a:nth-child(1) {
              transition-delay: 0.2s;
          }
          .nav-links.open > a:nth-child(2) {
              transition-delay: 0.3s;
          }
          .nav-links.open > a:nth-child(3) {
              transition-delay: 0.4s;
          }
           .nav-links.open > a:nth-child(4) {
              transition-delay: 0.5s;
          }
           .nav-links.open > a:nth-child(5) {
              transition-delay: 0.6s;
          }

          .nav-links > a.lang-switcher {
              display: none;
          }

          .mobile-nav-contact {
              display: block;
              width: 100%;
              margin-top: auto;
              padding-top: 1.25rem;
              border-top: 1px solid rgba(255, 255, 255, 0.08);
              opacity: 0;
              transform: translateY(12px);
              transition: opacity 0.35s ease 0.45s, transform 0.35s ease 0.45s;
          }

          .nav-links.open .mobile-nav-contact {
              opacity: 1;
              transform: translateY(0);
          }

          .mobile-nav-contact-title {
              margin: 0 0 0.75rem;
              color: var(--secondary-text-color);
              font-size: 0.76rem;
              letter-spacing: 0.08em;
              text-transform: uppercase;
          }

          .mobile-nav-contact-list {
              display: grid;
              grid-template-columns: repeat(2, minmax(0, 1fr));
              gap: 0.55rem;
          }

          .mobile-nav-contact-item {
              min-width: 0;
              margin: 0 !important;
              padding: 0.65rem !important;
              gap: 0.55rem !important;
              border: 1px solid rgba(255, 255, 255, 0.07);
              border-radius: 7px;
              background: rgba(255, 255, 255, 0.025);
              opacity: 1 !important;
              transform: none !important;
              text-decoration: none;
          }

          .mobile-nav-contact-item:hover {
              border-color: rgba(0, 255, 155, 0.35);
              background: rgba(0, 255, 155, 0.06);
          }

          .mobile-nav-contact-item svg {
              width: 18px;
              height: 18px;
              flex: 0 0 auto;
              color: var(--accent-color-1);
          }

          .mobile-nav-contact-item span {
              min-width: 0;
              display: flex;
              flex-direction: column;
              line-height: 1.25;
          }

          .mobile-nav-contact-item strong {
              color: var(--primary-text-color);
              font-size: 0.78rem;
              font-weight: 700;
          }

          .mobile-nav-contact-item small {
              margin-top: 0.18rem;
              overflow: hidden;
              color: var(--secondary-text-color);
              font-size: 0.65rem;
              text-overflow: ellipsis;
              white-space: nowrap;
          }

          body.mobile-nav-open {
              overflow: hidden;
          }

          .tutorial-page {
            padding-top: 5rem !important;
            padding-bottom: 2rem !important;
          }

          .tutorial-page-title {
            font-size: 1.4rem !important;
            line-height: 1.3 !important;
          }

          .tutorial-page-description {
            font-size: 0.9rem !important;
            line-height: 1.5 !important;
          }

          .code-block-wrapper pre {
            font-size: 0.75rem !important;
            padding: 0.75rem !important;
          }

          .contact-content {
            padding: 1.5rem 1rem !important;
          }

          .contact-email {
            font-size: 1.1rem !important;
            word-break: break-all !important;
          }

          .social-links {
            gap: 0.7rem;
          }

          .social-link {
            width: 42px;
            height: 42px;
          }

          .social-link svg {
            width: 21px;
            height: 21px;
          }
        }

        /* --- Standalone HTML File Overrides --- */

        .side-nav {
            top: 50% !important;
            transform: translateY(-50%) !important;
        }

        .page-section {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .page-section.active {
            opacity: 1;
            transform: translateY(0);
        }

        .page-section .content-container {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
        }

        .page-section.active .content-container {
            opacity: 1;
            transform: translateY(0);
        }

        #hero-section {
            position: relative;
            overflow: hidden;
            background-color: var(--background-color);
        }

        .code-background-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .cursor-dot, .cursor-outline {
            opacity: 0;
        }

        body.loaded:hover .cursor-dot,
        body.loaded:hover .cursor-outline {
            opacity: 1;
        }

        input:focus, textarea:focus {
            outline: none;
            border-color: var(--accent-color-1) !important;
            box-shadow: 0 0 10px rgba(0, 255, 155, 0.2);
        }

        .read-more-button {
            background-color: transparent;
            color: var(--accent-color-1);
            border: 1px solid rgba(0, 255, 155, 0.3);
            padding: 0.5rem 1rem;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .read-more-button:hover {
            background-color: rgba(0, 255, 155, 0.05);
            border-color: var(--accent-color-1);
            transform: translateX(4px);
        }

        .loading-spinner {
            width: 24px;
            height: 24px;
            animation: rotate 1.5s linear infinite;
        }

        .loading-spinner .path {
            stroke: var(--accent-color-1);
            stroke-linecap: round;
            animation: dash 1.5s ease-in-out infinite;
        }

        @keyframes rotate {
            100% { transform: rotate(360deg); }
        }

        @keyframes dash {
            0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
            50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
            100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
        }

        .typing-cursor {
            display: inline-block;
            font-weight: bold;
            color: var(--accent-color-1);
            animation: blink-cursor 0.75s step-end infinite;
            margin-left: 2px;
        }

        @keyframes blink-cursor {
            from, to { color: transparent }
            50% { color: var(--accent-color-1) }
        }

        .page-section-container {
            height: 100vh;
            overflow-y: auto;
            scroll-snap-type: y mandatory;
            scroll-behavior: smooth;
        }

        @media (max-width: 768px) {
            .page-section-container {
                height: auto;
                overflow: visible;
                scroll-snap-type: none;
                scroll-behavior: auto;
            }
        }
    
/* --- WordPress integration and accessibility adjustments --- */
html { margin-top: 0 !important; }
body.admin-bar .app-header { top: 32px; }
body.admin-bar .page-section-container { height: calc(100vh - 32px); }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
.project-image.is-placeholder {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.site-page-shell {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    background: var(--background-color);
}
.site-page-shell .content-container { max-width: 900px; }
.site-page-shell article {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}
.site-page-shell h1,
.site-page-shell h2,
.site-page-shell h3 { font-family: var(--font-mono); margin-bottom: 1rem; }
.site-page-shell p,
.site-page-shell li { color: var(--secondary-text-color); margin-bottom: 1rem; }
.site-page-shell a { color: var(--accent-color-1); }
.site-page-shell ul,
.site-page-shell ol { padding-left: 1.5rem; }
.wp-caption, img { max-width: 100%; height: auto; }

@media (hover: none), (pointer: coarse) {
    body, a, button { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none !important; }
}
@media screen and (max-width: 782px) {
    body.admin-bar .app-header { top: 46px; }
    body.admin-bar .page-section-container { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .cursor-dot, .cursor-outline, .code-background-canvas { display: none !important; }
}
body:not(.aa-portfolio-front-page),
body:not(.aa-portfolio-front-page) a,
body:not(.aa-portfolio-front-page) button {
    cursor: auto;
}

/* Real tutorial interactions */
.tutorial-interaction-status {
    min-height: 1.5rem;
    margin: 0.75rem 0 0;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.tutorial-interaction-status:empty {
    min-height: 0;
    margin-top: 0;
}

.tutorial-interaction-status.is-success {
    color: var(--accent-color-1);
}

.tutorial-interaction-status.is-error {
    color: #ff7b8c;
}

.tutorial-interaction-status.is-info {
    color: var(--accent-color-2);
}

.like-button.is-loading {
    opacity: 0.65;
}

.like-button:disabled {
    cursor: wait;
}

.like-button:disabled:not(.is-loading) {
    cursor: not-allowed;
    opacity: 0.55;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.comment-date {
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0.75;
}

.comment-author-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.comment-author-fields[hidden],
.comment-user-note[hidden] {
    display: none !important;
}

.comment-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.comment-form label {
    color: var(--secondary-text-color);
    font-size: 0.82rem;
}

.comment-field,
.comment-input {
    width: 100%;
    background-color: #0d0d0d;
    border: 1px solid var(--border-color);
    color: var(--primary-text-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.comment-field::placeholder,
.comment-input::placeholder {
    color: var(--secondary-text-color);
    opacity: 0.65;
}

.comment-field:focus,
.comment-input:focus {
    outline: none;
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 2px rgba(0, 255, 155, 0.18);
}

.comment-user-note {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.comment-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.comment-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.comment-form.is-disabled .comment-field,
.comment-form.is-disabled .comment-input {
    opacity: 0.55;
}

@media (max-width: 600px) {
    .comment-author-fields {
        grid-template-columns: 1fr;
    }

    .comment-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .comment-submit-button {
        width: 100%;
        align-self: stretch;
    }

    .comment-form-footer {
        display: block;
    }
}

/* Native Persian / RTL language variant */
html[lang="fa"] body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-fa);
}

html[lang="fa"] .logo,
html[lang="fa"] .logo-code,
html[lang="fa"] .preloader-status,
html[lang="fa"] .nav-links a,
html[lang="fa"] .hero-title,
html[lang="fa"] .cta-button,
html[lang="fa"] .editor-title,
html[lang="fa"] .editor-body,
html[lang="fa"] .feature-title,
html[lang="fa"] .project-title,
html[lang="fa"] .tech-tag,
html[lang="fa"] .project-links a,
html[lang="fa"] .tutorial-card-date,
html[lang="fa"] .read-more-button,
html[lang="fa"] .show-more-button,
html[lang="fa"] .tutorial-back-button,
html[lang="fa"] .tutorial-page-title,
html[lang="fa"] .tutorial-page-date,
html[lang="fa"] .like-button,
html[lang="fa"] .comments-title,
html[lang="fa"] .comment-author,
html[lang="fa"] .comment-submit-button,
html[lang="fa"] .side-nav .tooltip,
html[lang="fa"] .mobile-nav-contact,
html[lang="fa"] .site-page-shell h1,
html[lang="fa"] .site-page-shell h2,
html[lang="fa"] .site-page-shell h3 {
    font-family: var(--font-fa);
}

html[lang="fa"] .section-title,
html[lang="fa"] .section-title::after,
html[lang="fa"] .section-title span {
    font-family: var(--font-fa);
    letter-spacing: 0;
}

html[lang="fa"] .hero-title {
    white-space: normal;
    border-right: 0;
    border-left: 3px solid var(--accent-color-1);
    line-height: 1.55;
}

html[lang="fa"] .editor-body {
    direction: rtl;
    text-align: right;
}

html[lang="fa"] .editor-body pre {
    direction: rtl;
    text-align: right;
}

html[lang="fa"] .code-block,
html[lang="fa"] .code-block code {
    direction: ltr;
    text-align: left;
    font-family: var(--font-mono);
}

html[lang="fa"] .tutorials-search-container svg {
    left: auto;
    right: 1rem;
}

html[lang="fa"] .tutorials-search-input {
    padding: 0.85rem 3rem 0.85rem 1rem;
    text-align: right;
    font-family: var(--font-fa);
}

html[lang="fa"] .project-links a {
    margin-right: 0;
    margin-left: 1.5rem;
}

html[lang="fa"] .tutorial-back-button svg,
html[lang="fa"] .read-more-button svg {
    transform: scaleX(-1);
}

html[lang="fa"] .read-more-button:hover svg {
    transform: scaleX(-1) translateX(4px);
}

html[lang="fa"] .side-nav {
    right: auto;
    left: 2rem;
}

html[lang="fa"] .side-nav li .tooltip {
    right: auto;
    left: 25px;
}

html[lang="fa"] .side-nav li button:hover .tooltip {
    transform: translateY(-50%) translateX(10px);
}

html[lang="fa"] .comment-form-footer {
    justify-content: flex-start;
}

html[lang="fa"] .comment-submit-button {
    align-self: flex-start;
}

html[lang="fa"] .comment-field,
html[lang="fa"] .comment-input {
    font-family: var(--font-fa);
    text-align: right;
}

html[lang="fa"] .comment-meta {
    direction: rtl;
}

@media (max-width: 768px) {
    html[lang="fa"] .side-nav {
        display: none;
    }

    html[lang="fa"] .nav-links,
    html[lang="fa"] .mobile-nav-contact-item,
    html[lang="fa"] .mobile-nav-contact-item span {
        text-align: right;
    }

    html[lang="fa"] .hero-title {
        border-left: 0 !important;
    }
}


@media (max-width: 370px) {
  .app-header {
    padding-inline: 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .mobile-header-lang-switcher {
    min-width: 38px;
    padding-inline: 0.5rem;
    gap: 0.28rem;
  }

  .mobile-header-lang-switcher svg {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }
}


/* --- SEO, progressive enhancement, and content templates --- */
/* Content remains readable when JavaScript is unavailable. Animations are
   enabled only after the tiny head script adds the .js class. */
.page-section,
.page-section .content-container {
    opacity: 1;
    transform: none;
}

.js .aa-portfolio-front-page .page-section {
    opacity: 0;
    transform: translateY(40px);
}

.js .aa-portfolio-front-page .page-section.active {
    opacity: 1;
    transform: translateY(0);
}

.js .aa-portfolio-front-page .page-section .content-container {
    opacity: 0;
    transform: translateY(30px);
}

.js .aa-portfolio-front-page .page-section.active .content-container {
    opacity: 1;
    transform: translateY(0);
}

.project-image {
    display: block;
    text-decoration: none;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image::before,
.project-image::after {
    display: none;
}

.project-title a {
    color: inherit;
    text-decoration: none;
}

.project-title a:hover,
.project-title a:focus-visible {
    color: var(--accent-color-1);
}

.section-archive-link {
    margin-top: 2rem;
    text-align: center;
}

.section-archive-link a {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color-1);
    font-family: var(--font-mono);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.breadcrumbs {
    margin: 0 0 2rem;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-inline-start: 0.45rem;
    opacity: 0.55;
}

.breadcrumbs a {
    color: var(--secondary-text-color);
    text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: var(--accent-color-1);
}

.archive-header,
.single-entry-header {
    margin-bottom: 2rem;
}

.archive-header p {
    max-width: 720px;
}

.archive-page-shell .content-container {
    max-width: 1200px;
}

.archive-projects-grid,
.archive-tutorials-grid {
    margin-bottom: 2rem;
}

.single-entry {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.single-featured-image {
    margin: 0 0 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.single-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.single-entry-content {
    line-height: 1.85;
}

.single-project-actions,
.single-tutorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 2rem;
}

.comment-list .comment-body {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
}

.comment-list .comment-meta {
    margin-bottom: 0.75rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: #0d0d0d;
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font: inherit;
}

.comment-form .submit {
    width: auto;
    border: 0;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    color: var(--background-color);
    font-weight: 700;
    padding: 0.75rem 1.25rem;
}

.navigation.pagination {
    margin-top: 2rem;
}

.nav-links.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
}

.page-numbers.current {
    border-color: var(--accent-color-1);
    color: var(--accent-color-1);
}

:focus-visible {
    outline: 2px solid var(--accent-color-2);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .js .aa-portfolio-front-page .page-section,
    .js .aa-portfolio-front-page .page-section .content-container {
        transform: translateY(20px);
    }

    .single-entry {
        padding: 1rem;
    }

    .breadcrumbs {
        margin-bottom: 1.25rem;
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .aa-portfolio-front-page .page-section,
    .js .aa-portfolio-front-page .page-section .content-container {
        opacity: 1;
        transform: none;
    }
}

.navigation.pagination .nav-links {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    backdrop-filter: none;
    transform: none;
    opacity: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}
