@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            transition: background-color 0.3s ease;
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #10B981, #3B82F6);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
        }
        
        .dark .hero-gradient {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
        }
        
        .skill-card {
            border: 1px solid transparent;
            background-clip: padding-box;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, #10B981, #3B82F6);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0.5;
            z-index: -1;
        }
        
        .skill-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.2);
        }
        
        .dark .skill-card:hover {
            box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3), 0 10px 10px -5px rgba(59, 130, 246, 0.3);
        }
        
        .project-card {
            transition: all 0.3s ease;
            border: 1px solid transparent;
            background-clip: padding-box;
        }
        
        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, #10B981, #3B82F6);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            z-index: -1;
            transition: opacity 0.3s ease;
        }
        
        .project-card:hover {
            transform: translateY(-5px) scale(1.01);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .project-card:hover::before {
            opacity: 0.5;
        }
        
        .dark .project-card:hover {
            box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.2);
        }
        
        .btn-gradient {
            background: linear-gradient(135deg, #10B981, #3B82F6);
            transition: all 0.3s ease;
        }
        
        .btn-gradient:hover {
            box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.2);
            transform: translateY(-2px) scale(1.05);
        }
        
        .logo {
            transition: all 0.3s ease;
            font-family: "Playwrite AU QLD", cursive;
        }
        
        .logo:hover {
            
            transform: scale(1.05);
            text-shadow: 0 10px 15px rgba(16, 185, 129, 0.3), 0 4px 6px rgba(59, 130, 246, 0.2);
        }
        
        .glass-effect {
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        /* Progress bar for scrolling */
        .progress-container {
            width: 100%;
            height: 3px;
            background: transparent;
            position: fixed;
            top: 0;
            z-index: 100;
        }
        
        .progress-bar {
            height: 3px;
            background: linear-gradient(to right, #10B981, #3B82F6);
            width: 0%;
        }
        
        /* Profile image styling */
        .profile-image {
            position: relative;
            border-radius: 50%;
            overflow: hidden;
            background: linear-gradient(135deg, #10B981, #3B82F6);
            padding: 4px;
        }
        
        .profile-image::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            padding: 4px;
            background: linear-gradient(135deg, #10B981, #3B82F6);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0.8;
            z-index: 1;
        }
        
        .profile-image img {
            border-radius: 50%;
            z-index: 2;
            position: relative;
        }
        
        .profile-image::after {
            content: '';
            position: absolute;
            inset: -5px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10B981, #3B82F6);
            z-index: 0;
            opacity: 0.5;
            filter: blur(15px);
        }
        
      .typewriter {
    border-right: 3px solid;
    animation: cursor-blink 1s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out; /* ضيف هاد السطر */
}
        
        @keyframes cursor-blink {
            from, to { border-color: transparent }
            50% { border-color: #10B981; }
        }
        
        /* About me section */
        .about-me-card {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .about-me-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, #10B981, #3B82F6);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0.5;
            z-index: -1;
        }
        
        /* Project image container with 16:9 aspect ratio */
        .project-image {
            position: relative;
            width: 100%;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            overflow: hidden;
            border-top-left-radius: inherit;
            border-top-right-radius: inherit;
        }
        
        .project-image-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-size: cover;
            background-position: center;
            transition: transform 0.5s ease;
        }
        
        .project-card:hover .project-image-content {
            transform: scale(1.05);
        }
        
        /* Project image overlay */
        .project-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }
        
        .project-card:hover .project-image-overlay {
            opacity: 0.4;
        }

       #backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: block; /* لازم يكون ظاهر حتى يقدر يتحرك */
  opacity: 0;
  transform: translateX(100px); /* مخفي يمين الشاشة */
  transition: opacity 0.3s ease, transform 0.3s ease;
}
 #backToTop:hover{
    background: linear-gradient(135deg, #3B82F6,#10B981);
   

 }

/* لما يظهر الزر */
#backToTop.show {
  opacity: 1;
  transform: translateX(0); /* يرجع لمكانه الطبيعي */
  
}
