    :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #10b981;
            --dark: #0f172a;
            --light: #f8fafc;
            --gray: #94a3b8;
            --light-gray: #e2e8f0;
            --card-bg: rgba(255, 255, 255, 0.85);
            --card-bg-dark: rgba(15, 23, 42, 0.85);
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --border-radius: 16px;
            --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        * {
-webkit-tap-highlight-color: transparent;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .ammer{
      text-align: justify;
    }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: var(--font-main);
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
            background-attachment: fixed;
        }
        body.dark-theme {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: var(--light);
        }
        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
        h1 {
            font-size: clamp(2.5rem, 8vw, 4rem);
        }
        h2 {
            font-size: clamp(2rem, 6vw, 3rem);
            position: relative;
            display: inline-block;
            margin-bottom: 2.5rem;
        }
        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }
        p {
            margin-bottom: 1.5rem;
            color: var(--gray);
        }
        a {
            text-decoration: none;
            color: var(--primary);
            transition: var(--transition);
        }
        img {
            max-width: 100%;
            display: block;
        }
        .container {
            width: min(90%, 1200px);
            margin: 0 auto;
            padding: 0 1.5rem;
        }
        .btn {
            display: inline-block;
            padding: 0.8rem 2rem;
            background: var(--primary);
            color: white;
            border-radius: 50px;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid var(--primary);
            cursor: pointer;
            text-align: center;
        }
        .btn:hover {
            background: transparent;
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }
        .btn-outline {
            background: transparent;
            color: var(--primary);
        }
        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }
        header {
            padding: 2rem 0;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(248, 250, 252, 0.9);
            backdrop-filter: blur(10px);
            transition: var(--transition);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        header.scrolled {
            padding: 1rem 0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .nav-links {
            display: flex;
            gap: 2rem;
        }
        .nav-links a {
            font-weight: 600;
            color: var(--dark);
            position: relative;
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }
        .nav-links a:hover::after {
            width: 100%;
        }
        .theme-toggle {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--dark);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        .theme-toggle:hover {
            background: var(--light-gray);
            transform: rotate(20deg);
        }
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--dark);
            cursor: pointer;
            color: #007af7;
        }
        /* =============== HERO =============== */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: 8rem;
            position: relative;
            overflow: hidden;
        }
        .hero-content {
            max-width: 650px;
            position: relative;
            z-index: 2;
        }
        .hero h1 {
            margin-bottom: 1.5rem;
            background: linear-gradient(90deg, var(--dark), #1e293b);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .hero p {
            font-size: 1.25rem;
            margin-bottom: 2.5rem;
            color: var(--dark);
        }
        .hero-btns {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }
        .hero-image {
            position: absolute;
            left: -50px;
            top: 50%;
            transform: translateY(-50%);
            width: 45%;
            max-width: 600px;
            z-index: 1;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            animation: float 6s ease-in-out infinite;
        }
        .hero-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        @keyframes float {
            0% { transform: translateY(-50%) translateX(0); }
            50% { transform: translateY(-53%) translateX(10px); }
            100% { transform: translateY(-50%) translateX(0); }
        }
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }
        .about-text h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        .about-text p {
            margin-bottom: 1.5rem;
        }
        .about-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }
        .stat-card {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .stat-card:hover {
            transform: translateY(-5px);
        }
        .stat-card h4 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }
        .timeline {
            display: flex;
            flex-direction: column;
            gap: 2.5rem;
            margin-top: 2rem;
        }
        .timeline-item {
            position: relative;
            padding-right: 30px;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            right: -8px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--light-gray);
        }
        .timeline-item::after {
            content: '';
            position: absolute;
            right: -12px;
            top: 0;
            width: 10px;
            height: 10px;
            background: var(--primary);
            border-radius: 50%;
            z-index: 1;
        }
        body.dark-theme .timeline-item::before {
            background: #334155;
        }
        body.dark-theme .timeline-item::after {
            background: var(--secondary);
        }
        .timeline-content {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        body.dark-theme .timeline-content {
            background: var(--card-bg-dark);
        }
        .timeline-content:hover {
            transform: translateY(-5px);
        }
        .timeline-date {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }
        .timeline-title {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }
        body.dark-theme .timeline-title {
            color: var(--light);
        }
        .timeline-subtitle {
            display: block;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 1rem;
        }
        .timeline-content p {
            margin-bottom: 0;
            color: var(--gray);
        }
        body.dark-theme .timeline-content p {
            color: #cbd5e1;
        }
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2.5rem;
        }
        .skill-category h3 {
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        .skill-item {
            margin-bottom: 1.5rem;
        }
        .skill-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        .skill-bar {
            height: 10px;
            background: var(--light-gray);
            border-radius: 10px;
            overflow: hidden;
        }
        .skill-progress {
            height: 100%;
            background: var(--primary);
            border-radius: 10px;
            width: 0;
        }
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2.5rem;
        }
        .project-card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .project-img {
            height: 200px;
            overflow: hidden;
        }
        .project-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        .project-card:hover .project-img img {
            transform: scale(1.1);
        }
        .project-content {
            padding: 1.5rem;
        }
        .project-content h3 {
            margin-bottom: 0.75rem;
            color: var(--dark);
        }
        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .tag {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }
        .contact-info h3 {
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        .contact-item {
            display: flex;
            gap: 1rem;
        }
        .contact-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
        }
        .contact-form .form-group {
            margin-bottom: 1.5rem;
        }
        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--light-gray);
            border-radius: 10px;
            background: transparent;
            color: var(--dark);
            font-family: var(--font-main);
            font-size: 1rem;
            transition: var(--transition);
        }
        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .contact-form textarea {
            min-height: 150px;
            resize: vertical;
        }
        /* =============== FOOTER =============== */
        footer {
            background: var(--dark);
            color: var(--light);
            padding: 3rem 0;
            text-align: center;
        }
        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }
        .social-links {
            display: flex;
            gap: 1.5rem;
        }
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1.25rem;
            transition: var(--transition);
        }
        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }
        body.dark-theme {
            color: var(--light);
        }
        body.dark-theme .logo {
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        body.dark-theme header {
            background: rgba(15, 23, 42, 0.9);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }
        body.dark-theme .nav-links a {
            color: var(--light);
        }
        body.dark-theme .theme-toggle {
            color: var(--light);
        }
        body.dark-theme .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        body.dark-theme .hero h1 {
            background: linear-gradient(90deg, #f8fafc, #cbd5e1);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        body.dark-theme .hero p {
            color: var(--light);
        }
        body.dark-theme .about-text h3,
        body.dark-theme .skill-category h3,
        body.dark-theme .project-content h3,
        body.dark-theme .contact-info h3,
        body.dark-theme .timeline-title {
            color: var(--light);
        }
        body.dark-theme .stat-card,
        body.dark-theme .project-card,
        body.dark-theme .timeline-content,
        body.dark-theme .contact-form input,
        body.dark-theme .contact-form textarea {
            background: var(--card-bg-dark);
            color: var(--light);
        }
        body.dark-theme .contact-form input:focus,
        body.dark-theme .contact-form textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
        }
        body.dark-theme p,
        body.dark-theme .timeline-content p {
            color: #cbd5e1;
        }
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-in.appear {
            opacity: 1;
            transform: translateY(0);
        }
        @media (max-width: 992px) {
            .hero-image {
                width: 40%;
                right: -30px;
            }
            .about-content,
            .contact-container {
                grid-template-columns: 1fr;
            }
            .hero-btns {
                flex-direction: column;
                align-items: flex-start;
            }
        }
        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
            }
            .nav-links {
                position: fixed;
                top: 70px;
                left: 0;
                background: var(--light);
                width: 100%;
                flex-direction: column;
                align-items: center;
                padding: 2rem 0;
                gap: 1.5rem;
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
                transform: translateY(-150%);
                transition: transform 0.4s ease;
            }
            .nav-links.active {
                transform: translateY(0);
            }
            body.dark-theme .nav-links {
                background: var(--dark);
            }
            .hero {
                text-align: center;
                padding-top: 6rem;
            }
            .hero-content {
                margin: 0 auto;
            }
            .hero-btns {
                justify-content: center;
            }
            .hero-image {
                display: none;
            }
            .about-stats {
                grid-template-columns: repeat(2, 1fr);
            }
            .timeline-item {
                padding-right: 20px;
            }
            .timeline-item::before,
            .timeline-item::after {
                right: 2px;
            }
        }
        @media (max-width: 576px) {
            h1 {
                font-size: 2.5rem;
            }
            h2 {
                font-size: 2rem;
            }
            .about-stats {
                grid-template-columns: 1fr;
            }
            .btn {
                width: 100%;
                text-align: center;
            }
        }

        .skill-bar {
  background: #ddd;
  border-radius: 8px;
  overflow: hidden;
  height: 10px;
  margin-top: 5px;
}

.skill-progress {
  background: linear-gradient(90deg, #6698d1, #6366f1);
  height: 100%;
  border-radius: 8px;
  width: 0;
}

form{
    font-family: vazir;
}

input{
    font-family: vazir;
}