
        /* ============================================================
           CSS Variables – Light & Dark Themes
           ============================================================ */
        :root {
            --bg-body: #f0f2f5;
            --bg-card: #ffffff;
            --text-primary: #1a1a2e;
            --text-secondary: #4a4a6a;
            --text-muted: #6c6c8a;
            --border-color: #e0e0e8;
            --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.10);
            --skill-bg: #eef2ff;
            --skill-color: #4338ca;
            --skill-border: #c7d2fe;
            --badge-light: #f8fafc;
            --badge-border: #dee2e6;
            --accent-gradient: linear-gradient(135deg, #4338ca, #6c63ff);
            --glass-bg: rgba(255, 255, 255, 0.5);
            --glass-border: rgba(255, 255, 255, 0.2);
            --icon-color: #4338ca;
            --social-icon-hover: #4338ca;
            --hero-overlay: rgba(67, 56, 202, 0.12);
            --card-border-radius: 20px;
        }

        [data-theme="dark"] {
            --bg-body: #0d0d1a;
            --bg-card: #1a1a2e;
            --text-primary: #e8e8f0;
            --text-secondary: #b0b0c8;
            --text-muted: #7a7a98;
            --border-color: #2a2a42;
            --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
            --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.6);
            --skill-bg: #1a1a3e;
            --skill-color: #a5b4fc;
            --skill-border: #4f46e5;
            --badge-light: #1a1a2e;
            --badge-border: #3a3a5a;
            --accent-gradient: linear-gradient(135deg, #818cf8, #c084fc);
            --glass-bg: rgba(26, 26, 46, 0.6);
            --glass-border: rgba(255, 255, 255, 0.08);
            --icon-color: #818cf8;
            --social-icon-hover: #c084fc;
            --hero-overlay: rgba(67, 56, 202, 0.25);
        }

        /* ============================================================
           Global Styles
           ============================================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Vazirmatn', 'IranSans', Tahoma, sans-serif;
            background: var(--bg-body);
            color: var(--text-primary);
            line-height: 1.8;
            padding: 20px 0 60px;
            transition: background 0.4s ease, color 0.4s ease;
            min-height: 100vh;
        }

        h1, h2, h3, h4, h5, h6,
        .h1, .h2, .h3, .h4, .h5, .h6,
        p, li, span, strong, b, .fw-bold {
            color: var(--text-primary);
            transition: color 0.3s ease;
        }

        .text-muted, small, .small {
            color: var(--text-muted) !important;
        }
        .text-secondary {
            color: var(--text-secondary) !important;
        }

        a {
            text-decoration: none;
            color: var(--icon-color);
            transition: 0.25s;
        }
        a:hover {
            color: var(--text-primary);
        }

        * {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
        }

        /* ============================================================
           Cards – New Design
           ============================================================ */
        .card {
            border: none;
            border-radius: var(--card-border-radius);
            background: var(--bg-card);
            box-shadow: var(--shadow-card);
            transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
            backdrop-filter: blur(4px);
            border: 1px solid var(--border-color);
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }

        /* ============================================================
           Hero Section – New Layout
           ============================================================ */
        .hero-section {
            background: var(--bg-card);
            border-radius: var(--card-border-radius);
            border: 1px solid var(--border-color);
            padding: 60px 50px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-card);
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: var(--hero-overlay);
            border-radius: 50%;
            pointer-events: none;
        }

        .hero-section .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-avatar-wrapper {
            position: relative;
            z-index: 1;
        }

        .hero-avatar {
            width: 350px;
            height: 350px;
            object-fit: cover;
            border-radius: 50%;
            border: 4px solid var(--bg-card);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            transition: border-color 0.3s;
            border:3px solid #36267c;
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 35px 25px;
            }
            .hero-avatar {
                width: 180px;
                height: 180px;
            }
        }

        /* ============================================================
           Skill Tags
           ============================================================ */
        .skill-tag {
            display: inline-block;
            background: var(--skill-bg);
            color: var(--skill-color);
            padding: 6px 20px;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 500;
            margin: 4px 4px 4px 0;
            border: 1px solid var(--skill-border);
            transition: all 0.25s;
        }
        .skill-tag:hover {
            transform: scale(1.04) translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        /* ============================================================
           Section Title – New Style
           ============================================================ */
        .section-title {
            font-weight: 700;
            font-size: 1.6rem;
            position: relative;
            padding-bottom: 14px;
            margin-bottom: 30px;
            color: var(--text-primary) !important;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-title::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            width: 50px;
            height: 4px;
            background: var(--accent-gradient);
            border-radius: 8px;
            transition: width 0.3s;
        }
        .section-title:hover::after {
            width: 80px;
        }

        /* ============================================================
           Social Icons – New Style
           ============================================================ */
        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            border-radius: 14px;
            background: var(--bg-body);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
            font-size: 1.2rem;
            transition: all 0.3s;
            text-decoration: none;
        }
        .social-icon:hover {
            background: var(--icon-color);
            color: #fff;
            border-color: var(--icon-color);
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 8px 20px rgba(67, 56, 202, 0.20);
        }

        /* ============================================================
           Theme Toggle Button
           ============================================================ */
        .theme-toggle {
            position: fixed;
            bottom: 30px;
            left: 30px;
            z-index: 999;
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: var(--bg-card);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-card);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        .theme-toggle:hover {
            transform: scale(1.08) rotate(8deg);
            box-shadow: var(--shadow-hover);
        }

        /* ============================================================
           Navbar – New Style
           ============================================================ */
        .navbar {
            background: var(--bg-card);
            border-radius: var(--card-border-radius);
            border: 1px solid var(--border-color);
            padding: 10px 25px;
            margin-bottom: 30px;
            box-shadow: var(--shadow-card);
            transition: background 0.3s, border-color 0.3s;
        }
        .navbar .navbar-brand,
        .navbar .nav-link {
            color: var(--text-primary) !important;
        }
        .navbar .nav-link {
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 12px;
            transition: 0.25s;
        }
        .navbar .nav-link:hover {
            background: var(--skill-bg);
            color: var(--icon-color) !important;
        }

        /* ============================================================
           Project Cards – New Style
           ============================================================ */
        .project-card {
            border-radius: 16px;
            padding: 25px 20px;
            background: var(--bg-body);
            border: 1px solid var(--border-color);
            transition: all 0.3s;
            height: 100%;
        }
        .project-card:hover {
            transform: translateY(-4px);
            border-color: var(--icon-color);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
        }

        /* ============================================================
           Animations
           ============================================================ */
        .fade-in {
            animation: fadeUp 0.6s ease forwards;
            opacity: 0;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(25px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .stagger>* {
            animation: fadeUp 0.6s ease forwards;
            opacity: 0;
        }
        .stagger>*:nth-child(1) { animation-delay: 0.05s; }
        .stagger>*:nth-child(2) { animation-delay: 0.1s; }
        .stagger>*:nth-child(3) { animation-delay: 0.15s; }
        .stagger>*:nth-child(4) { animation-delay: 0.2s; }
        .stagger>*:nth-child(5) { animation-delay: 0.25s; }

        /* ============================================================
           Form – New Style
           ============================================================ */
        .form-control {
            background: var(--bg-body);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            border-radius: 14px;
            padding: 12px 18px;
            transition: 0.25s;
        }
        .form-control:focus {
            border-color: var(--icon-color);
            box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.10);
            background: var(--bg-body);
            color: var(--text-primary);
        }
        .form-control::placeholder {
            color: var(--text-muted);
        }

        .btn-primary {
            background: var(--icon-color);
            border-color: var(--icon-color);
            border-radius: 14px;
            padding: 12px 36px;
            font-weight: 600;
            transition: 0.25s;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(67, 56, 202, 0.25);
            background: var(--icon-color);
            border-color: var(--icon-color);
        }

        /* Badge inside project cards */
        .project-badge {
            display: inline-block;
            background: var(--skill-bg);
            color: var(--skill-color);
            padding: 4px 14px;
            border-radius: 40px;
            font-size: 0.75rem;
            font-weight: 500;
            border: 1px solid var(--skill-border);
        }
