  :where([class^="ri-"])::before { content: "\f3c2"; }
        
        body {
            font-family: 'Inter', sans-serif;
            scroll-behavior: smooth;
        }
        
        .typewriter {
            overflow: hidden;
            border-right: 0.10em solid #6366f1;
            white-space: nowrap;
            margin: 0 auto;
            letter-spacing: 0.10em;
            animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
        }
        
        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }
        
        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: #6366f1 }
        }
        
        .fade-in {
            animation: fadeIn 1.5s ease-in-out;
        }
        
        @keyframes fadeIn {
            0% { opacity: 0; transform: translateY(20px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .bounce {
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-20px); }
            60% { transform: translateY(-10px); }
        }
        
        .skill-bar {
            width: 0;
            animation: fillBar 2s forwards;
        }
        
        @keyframes fillBar {
            0% { width: 0; }
            100% { width: var(--width); }
        }
        
        .card-flip {
            perspective: 1000px;
            transform-style: preserve-3d;
            transition: transform 0.6s;
        }
        
        .card-flip:hover {
            transform: rotateY(180deg);
        }
        
        .card-front, .card-back {
            backface-visibility: hidden;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .card-back {
            transform: rotateY(180deg);
        }
        
        .slide-in-left {
            opacity: 0;
            transform: translateX(-50px);
            transition: all 1s ease;
        }
        
        .slide-in-right {
            opacity: 0;
            transform: translateX(50px);
            transition: all 1s ease;
        }
        
        .slide-in-active {
            opacity: 1;
            transform: translateX(0);
        }
        
        .float {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        
        .input-animation {
            border-bottom: 2px solid #e5e7eb;
            transition: all 0.3s ease;
        }
        
        .input-animation:focus {
            border-bottom: 2px solid #6366f1;
            outline: none;
        }
        
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        
        .particle {
            position: absolute;
            border-radius: 50%;
            background: rgba(99, 102, 241, 0.2);
        }
        
        .custom-cursor {
            position: fixed;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: rgba(99, 102, 241, 0.5);
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s, background-color 0.3s;
        }
        
        .custom-cursor-outer {
            position: fixed;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid rgba(99, 102, 241, 0.5);
            pointer-events: none;
            z-index: 9998;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s;
        }
        
        .timeline-progress {
            height: 0;
            transition: height 1s ease;
        }
        
        .hamburger span {
            display: block;
            width: 24px;
            height: 3px;
            background-color: #6366f1;
            margin: 5px 0;
            transition: all 0.3s ease;
        }
        
        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        
        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }
        
        .mobile-menu {
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }
        
        .mobile-menu.active {
            transform: translateX(0);
        }
        
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background-color: #6366f1;
            width: 0%;
            z-index: 9999;
            transition: width 0.2s ease;
        }
        
        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            transition: opacity 0.5s ease;
        }
        
        .loader {
            width: 48px;
            height: 48px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #6366f1;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .theme-switch {
            position: relative;
            width: 60px;
            height: 30px;
            background-color: #e5e7eb;
            border-radius: 15px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        
        .theme-switch.dark {
            background-color: #4b5563;
        }
        
        .theme-switch-handle {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 24px;
            height: 24px;
            background-color: white;
            border-radius: 50%;
            transition: transform 0.3s ease;
        }
        
        .theme-switch.dark .theme-switch-handle {
            transform: translateX(30px);
        }
       #home {
        position: relative; /* مهم جدا */
        overflow: hidden; /* النجوم ما تخرجش خارج الهيرو */
        }

        .star {
        position: absolute;
        width: 20px;
        height: 20px;
        background: url('https://cdn-icons-png.flaticon.com/512/616/616489.png') no-repeat center center;
        background-size: contain;
        pointer-events: none; /* حتى ما تعطلش النقرات */
        animation: star-float 1s ease forwards;
        opacity: 1;
        transform-origin: center;
        }

        @keyframes star-float {
        0% {
            opacity: 1;
            transform: translateY(0) scale(1) rotate(0deg);
        }
        100% {
            opacity: 0;
            transform: translateY(-50px) scale(1.5) rotate(360deg);
        }
        }
