  :root {
            --primary: #8b5cf6;
            --primary-dark: #6d28d9;
            --secondary: #22d3ee;
            --dark: #111827;
            --dark-soft: #1f2937;
            --text: #d1d5db;
            --muted: #9ca3af;
            --white: #ffffff;
            --border: rgba(255, 255, 255, 0.1);
            --card: rgba(255, 255, 255, 0.045);
            --radius: 24px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            min-height: 100vh;
            overflow-x: hidden;
            color: var(--text);
            background:
                radial-gradient(circle at 85% 10%,
                    rgba(139, 92, 246, 0.18),
                    transparent 28%),
                radial-gradient(circle at 10% 50%,
                    rgba(34, 211, 238, 0.08),
                    transparent 25%),
                var(--dark);
            font-family: 'Vazirmatn', sans-serif;
            line-height: 1.9;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button,
        input,
        textarea {
            font: inherit;
        }

        button,
        a {
            -webkit-tap-highlight-color: transparent;
        }

        .container {
            width: min(1180px, calc(100% - 40px));
            margin-inline: auto;
        }

        .section {
            position: relative;
            padding: 110px 0;
        }

        .section-heading {
i            margin-bottom: 55px;
        }

        .section-label {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 15px;
            color: var(--secondary);
            font-size: 13px;
            font-weight: 700;
        }

        .section-label::before {
            width: 28px;
            height: 2px;
            border-radius: 10px;
            background: var(--secondary);
            content: '';
        }

        .section-title {
            color: var(--white);
            font-size: clamp(28px, 4vw, 22px);
            font-weight: 800;
            line-height: 1.5;
        }

        .section-description {
            margin-top: 15px;
            color: var(--muted);
            font-size: 15px;
        }

        /* Header */

        .site-header {
            position: fixed;
            z-index: 100;
            top: 0;
            right: 0;
            left: 0;
            border-bottom: 1px solid transparent;
            background: rgba(17, 24, 39, 0.5);
            backdrop-filter: blur(18px);
            transition: all 0.3s ease;
        }

        .site-header.scrolled {
            border-color: var(--border);
            background: rgba(17, 24, 39, 0.9);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 82px;
            gap: 30px;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            color: var(--white);
            font-size: 20px;
            font-weight: 800;
        }

        .brand-symbol {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: 13px;
            color: var(--white);
            background:white;
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
        }

        .brand span:last-child {
            direction: ltr;
        }

        .main-nav {
            display: flex;
            align-items: center;
            gap: 28px;
        }

        .main-nav a {
            position: relative;
            color: #cbd5e1;
            font-size: 13px;
            transition: color 0.25s ease;
        }

        .main-nav a::after {
            position: absolute;
            right: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            border-radius: 10px;
            background: var(--secondary);
            content: '';
            transition: width 0.25s ease;
        }

        .main-nav a:hover {
            color: var(--white);
        }

        .main-nav a:hover::after {
            width: 100%;
        }

        .header-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 0 18px;
            border: 1px solid rgba(139, 92, 246, 0.5);
            border-radius: 12px;
            color: var(--white);
            background: rgba(139, 92, 246, 0.15);
            font-size: 12px;
            transition: all 0.25s ease;
        }

        .header-button:hover {
            border-color: var(--primary);
            background: var(--primary);
            transform: translateY(-2px);
        }

        /* Hero */

        .hero {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 850px;
            padding-top: 120px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            align-items: center;
            gap: 80px;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-label {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 25px;
            padding: 8px 13px;
            border: 1px solid rgba(34, 211, 238, 0.2);
            border-radius: 50px;
            color: var(--secondary);
            background: rgba(34, 211, 238, 0.06);
            font-size: 12px;
            font-weight: 600;
            h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
        }

        .hero-label span {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #34d399;
            box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.1);
        }

        .hero-title {
            max-width: 760px;
            color: var(--white);
            font-size: clamp(36px, 5vw, 40px);
            font-weight: 800;
            line-height: 1.5;
            letter-spacing: -1.5px;
        }

        .hero-title strong {
            color: var(--secondary);
            font-weight: 800;
        }

        .hero-description {
            max-width: 650px;
            margin-top: 25px;
            color: var(--muted);
            font-size: 16px;
            line-height: 2.2;
        }

        .hero-actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 14px;
            margin-top: 35px;
        }

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 52px;
            padding: 0 25px;
            border: 1px solid transparent;
            border-radius: 14px;
            font-size: 13px;
            font-weight: 700;
            transition: all 0.25s ease;
        }

        .button-primary {
            color: var(--white);
            background: linear-gradient(135deg,
                    var(--primary),
                    var(--primary-dark));
            box-shadow: 0 12px 30px rgba(109, 40, 217, 0.25);
        }

        .button-primary:hover {
            box-shadow: 0 15px 35px rgba(109, 40, 217, 0.4);
            transform: translateY(-3px);
        }

        .button-outline {
            border-color: var(--border);
            color: var(--text);
            background: rgba(255, 255, 255, 0.03);
        }

        .button-outline:hover {
            border-color: rgba(34, 211, 238, 0.4);
            color: var(--secondary);
            transform: translateY(-3px);
        }

        .hero-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 35px;
            margin-top: 55px;
        }

        .hero-stat {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .hero-stat strong {
            color: var(--white);
            font-size: 27px;
            font-weight: 800;
            direction: ltr;
        }

        .hero-stat span {
            color: var(--muted);
            font-size: 12px;
        }

        .hero-visual {
            position: relative;
            min-height: 480px;
        }

        .visual-card {
            position: absolute;
            top: 30px;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 390px;
            height: 390px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 50%;
            background:
                radial-gradient(circle,
                    rgba(139, 92, 246, 0.25),
                    rgba(17, 24, 39, 0.2) 65%);
            box-shadow:
                0 0 80px rgba(139, 92, 246, 0.15),
                inset 0 0 60px rgba(34, 211, 238, 0.05);
        }

        .visual-card::before,
        .visual-card::after {
            position: absolute;
            border: 1px solid rgba(34, 211, 238, 0.2);
            border-radius: 50%;
            content: '';
        }

        .visual-card::before {
            width: 300px;
            height: 300px;
        }

        .visual-card::after {
            width: 220px;
            height: 220px;
        }

        .visual-code {
            position: relative;
            z-index: 2;
            width: 260px;
            padding: 25px;
            border: 1px solid var(--border);
            border-radius: 20px;
            background: rgba(17, 24, 39, 0.85);
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
            direction: ltr;
            text-align: left;
        }

        .code-header {
            display: flex;
            gap: 7px;
            margin-bottom: 22px;
        }

        .code-header span {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: #475569;
        }

        .code-line {
            height: 8px;
            margin-bottom: 13px;
            border-radius: 10px;
            background: #334155;
        }

        .code-line.short {
            width: 45%;
        }

        .code-line.medium {
            width: 70%;
        }

        .code-line.highlight {
            width: 85%;
            background: linear-gradient(90deg,
                    var(--primary),
                    var(--secondary));
        }

        .floating-card {
            position: absolute;
            z-index: 3;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px 18px;
            border: 1px solid var(--border);
            border-radius: 17px;
            background: rgba(31, 41, 55, 0.85);
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
            backdrop-filter: blur(15px);
        }

        .floating-card:first-of-type {
            top: 10px;
            left: 0;
        }

        .floating-card:last-of-type {
            right: -15px;
            bottom: 55px;
        }

        .floating-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            color: var(--secondary);
            background: rgba(34, 211, 238, 0.1);
        }

        .floating-card strong {
            display: block;
            color: var(--white);
            font-size: 12px;
        }

        .floating-card span {
            display: block;
            color: var(--muted);
            font-size: 10px;
        }

        /* About */

        .about-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.6fr;
            align-items: center;
            gap: 80px;
        }

        .about-card {
            order:2;
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg,
            rgba(139, 92, 246, 0.15),
            rgba(255, 255, 255, 0.025));
}

.about-card__image {
        position: absolute;
    top: -40px;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.9);
    mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}


.about-card__content {
    position: absolute;
   right: 35px;
    left: 35px;
    bottom: 15px;
    text-align: center;
    z-index: 2;
}

.about-card__content strong {
    display: block;
    color: var(--white);
    font-size: 27px;
    font-weight: 800;
}

.about-card__content span {
    color: var(--secondary);
    font-size: 13px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2.3;
}
        .about-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 15px;
            margin-top: 30px;
        }

        .about-list div {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #cbd5e1;
            font-size: 13px;
        }

        .about-list i {
            color: var(--secondary);
        }

        /* Skills */

        .skills-grid { margin-top:20px;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 18px;
        }

        .skill-card {
            padding: 28px 24px;
            border: 1px solid var(--border);
            border-radius: 20px;
            background: var(--card);
            transition: all 0.3s ease;
        }

        .skill-card:hover {
            border-color: rgba(139, 92, 246, 0.45);
            background: rgba(139, 92, 246, 0.08);
            transform: translateY(-7px);
        }

        .skill-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            margin-bottom: 22px;
            border-radius: 14px;
            color: var(--secondary);
            background: rgba(34, 211, 238, 0.08);
            font-size: 22px;
        }

        .skill-card h3 {
            margin-bottom: 10px;
            color: var(--white);
            font-size: 16px;
        }

        .skill-card p {
            color: var(--muted);
            font-size: 12px;
            line-height: 2;
        }

        /* Projects */

        .projects-grid {
            margin-top:20px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 22px;
        }

        .project-card {
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--card);
            transition: all 0.3s ease;
        }

        .project-card:hover {
            border-color: rgba(139, 92, 246, 0.4);
            transform: translateY(-7px);
        }

        .project-cover {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 190px;
            overflow: hidden;
            background:
                linear-gradient(135deg,
                    rgba(139, 92, 246, 0.3),
                    rgba(34, 211, 238, 0.12));
        }

        .project-cover::before {
            position: absolute;
            width: 180px;
            height: 180px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            content: '';
        }

        .project-cover i {
            position: relative;
            z-index: 1;
            color: var(--white);
            font-size: 58px;
        }

        .project-content {
            padding: 25px;
        }

        .project-content h3 {
            margin-bottom: 12px;
            color: var(--white);
            font-size: 18px;
        }

        .project-content p {
            min-height: 70px;
            color: var(--muted);
            font-size: 13px;
            line-height: 2.1;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 20px;
        }

        .project-tags span {
            padding: 4px 9px;
            border: 1px solid var(--border);
            border-radius: 7px;
            color: #c4b5fd;
            background: rgba(139, 92, 246, 0.08);
            font-size: 10px;
        }

        /* Contact */

        .contact-box {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            padding: 55px;
            border: 1px solid var(--border);
            border-radius: 30px;
            background:
                linear-gradient(135deg,
                    rgba(139, 92, 246, 0.12),
                    rgba(255, 255, 255, 0.025));
        }

        .contact-content p {
            margin-top: 20px;
            color: var(--muted);
            font-size: 14px;
            line-height: 2.3;
        }

        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 30px;
        }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 13px;
            color: #cbd5e1;
            font-size: 13px;
            transition: color 0.25s ease;
        }

        .contact-link i {
            color: var(--secondary);
        }

        .contact-link:hover {
            color: var(--secondary);
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 13px;
            outline: none;
            padding: 14px 16px;
            color: var(--white);
            background: rgba(17, 24, 39, 0.55);
            font-size: 13px;
            transition: border-color 0.25s ease;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: var(--primary);
        }

        .contact-form textarea {
            min-height: 140px;
            resize: vertical;
        }

        .contact-form button {
            cursor: pointer;
            border: 0;
        }

        /* Footer */

        .site-footer {
            border-top: 1px solid var(--border);
            background: #0d1422;
        }

        .footer-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 25px;
            padding: 28px 0;
            color: var(--muted);
            font-size: 12px;
        }

        .footer-inner a {
            color: var(--secondary);
            font-weight: 700;
        }

        /* Responsive */

        @media (max-width: 1100px) {

            .hero-grid,
            .about-grid {
                gap: 45px;
            }

            .skills-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .projects-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 850px) {
            .main-nav {
                display: none;
            }

            .hero {
                min-height: auto;
                padding: 150px 0 90px;
            }

            .hero-grid,
            .about-grid,
            .contact-box {
                grid-template-columns: 1fr;
            }

            .hero-visual {
                min-height: 430px;
            }

            .visual-card {
                right: 50%;
                transform: translateX(50%);
            }

            .floating-card:first-of-type {
                left: 10%;
            }

            .floating-card:last-of-type {
                right: 5%;
            }

            .contact-box {
                padding: 35px;
            }
        }

        @media (max-width: 575px) {
            .container {
                width: min(100% - 30px, 1180px);
            }

            .section {
                padding: 75px 0;
            }


            .brand {
                font-size: 16px;
            }

            .hero-title {
                font-size: 35px;
                letter-spacing: -0.5px;
            }

            .hero-description {
                font-size: 14px;
            }

            .hero-stats {
                gap: 25px;
            }

            .hero-visual {
                min-height: 350px;
                transform: scale(0.82);
                transform-origin: center top;
            }

            .visual-card {
                top: 0;
            }

            .skills-grid,
            .projects-grid,
            .about-list {
                grid-template-columns: 1fr;
            }

            .footer-inner {
                align-items: flex-start;
                flex-direction: column;
                gap: 10px;
            }

            .contact-box {
                padding: 25px;
            }
        }