/* Tailwind CSS Base Reset */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before, ::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

img, svg, video {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* ألوان مخصصة - Neon Colors */
:root {
  --neon-blue: #5390d9;
  --neon-cyan: #56cfe1;
  --neon-light: #72efdd;
  --neon-green: #80ffdb;
  --dark-bg: #010101;
  --darker-bg: #0a0a0a;
}

/* Tailwind Utilities - مُحسّن للموقع */

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Position */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

/* Inset */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-10\% { top: 10%; }
.top-15\% { top: 15%; }
.top-25\% { top: 25%; }
.top-50\% { top: 50%; }
.top-75\% { top: 75%; }
.top-85\% { top: 85%; }
.top-90\% { top: 90%; }
.left-50\% { left: 50%; }

/* Z-index */
.z-50 { z-index: 50; }
.z-9999 { z-index: 9999; }

/* Flex Direction */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }

/* Align Items */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Grid Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Width */
.w-14 { width: 3.5rem; }
.w-72 { width: 18rem; }
.w-96 { width: 24rem; }
.w-full { width: 100%; }
.w-50px { width: 50px; }

/* Height */
.h-2 { height: 0.5rem; }
.h-14 { height: 3.5rem; }
.h-48 { height: 12rem; }
.h-72 { height: 18rem; }
.h-96 { height: 24rem; }
.h-full { height: 100%; }
.h-50px { height: 50px; }
.min-h-screen { min-height: 100vh; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-\-225px { margin-left: -225px; }
.ml-\-125px { margin-left: -125px; }
.ml-25px { margin-left: 25px; }
.ml-125px { margin-left: 125px; }
.ml-175px { margin-left: 175px; }

/* Padding */
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-20 { padding-top: 5rem; }

/* Space */
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Border */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-3 { border-width: 3px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }

/* Border Color */
.border-darker-bg { border-color: var(--darker-bg); }
.border-neon-cyan { border-color: var(--neon-cyan); }
.border-neon-blue { border-color: var(--neon-blue); }
.border-gray-700 { border-color: rgb(55, 65, 81); }
.border-gray-800 { border-color: rgb(31, 41, 55); }

/* Border Radius */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }

/* Background Color */
.bg-darker-bg { background-color: var(--darker-bg); }
.bg-dark-bg { background-color: var(--dark-bg); }
.bg-gray-800 { background-color: rgb(31, 41, 55); }
.bg-gray-900 { background-color: rgb(17, 24, 39); }
.bg-white { background-color: white; }

/* Background Opacity */
.bg-darker-bg\/95 { background-color: rgba(10, 10, 10, 0.95); }
.bg-gray-900\/30 { background-color: rgba(17, 24, 39, 0.3); }
.bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5); }
.bg-neon-cyan\/10 { background-color: rgba(86, 207, 225, 0.1); }

/* Background Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

.from-neon-cyan { --tw-gradient-from: var(--neon-cyan); --tw-gradient-to: rgba(86, 207, 225, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-neon-blue { --tw-gradient-from: var(--neon-blue); --tw-gradient-to: rgba(83, 144, 217, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-darker-bg { --tw-gradient-from: var(--darker-bg); --tw-gradient-to: rgba(10, 10, 10, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.to-neon-blue { --tw-gradient-to: var(--neon-blue); }
.to-neon-cyan { --tw-gradient-to: var(--neon-cyan); }
.to-dark-bg { --tw-gradient-to: var(--dark-bg); }

/* Text Color */
.text-white { color: white; }
.text-gray-200 { color: rgb(229, 231, 235); }
.text-gray-300 { color: rgb(209, 213, 219); }
.text-gray-400 { color: rgb(156, 163, 175); }
.text-gray-900 { color: rgb(17, 24, 39); }
.text-neon-cyan { color: var(--neon-cyan); }

/* Font Size */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Font Weight */
.font-light { font-weight: 300; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text Align */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Letter Spacing */
.tracking-wider { letter-spacing: 0.05em; }

/* Line Height */
.leading-relaxed { line-height: 1.625; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 100; }

/* Box Shadow */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Custom Shadows */
.shadow-neon-cyan\/20 { box-shadow: 0 10px 40px rgba(86, 207, 225, 0.2); }
.shadow-neon-cyan\/30 { box-shadow: 0 10px 25px rgba(86, 207, 225, 0.3); }
.shadow-neon-cyan\/50 { box-shadow: 0 0 20px rgba(86, 207, 225, 0.5), 0 5px 20px rgba(86, 207, 225, 0.4); }
.shadow-neon-cyan\/60 { box-shadow: 0 0 40px rgba(86, 207, 225, 0.6); }

/* Backdrop Filter */
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }

/* Resize */
.resize-none { resize: none; }

/* Outline */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Ring */
.focus\:ring-2:focus { --tw-ring-offset-shadow: 0 0 0 0px #fff; --tw-ring-shadow: 0 0 0 calc(2px + 0px) var(--neon-cyan); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Container */
.container { width: 100%; margin-left: auto; margin-right: auto; }

@media (min-width: 640px) {
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* Responsive - Medium screens (768px and up) */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-left { text-align: left; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Responsive - Large screens (1024px and up) */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Hover Effects */
.hover\:text-neon-cyan:hover { color: var(--neon-cyan); }
.hover\:border-neon-cyan:hover { border-color: var(--neon-cyan); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:shadow-neon-cyan\/20:hover { box-shadow: 0 15px 40px rgba(86, 207, 225, 0.3); }
.hover\:shadow-neon-cyan\/30:hover { box-shadow: 0 10px 25px rgba(86, 207, 225, 0.4); }
.hover\:shadow-neon-cyan\/50:hover { box-shadow: 0 8px 30px rgba(86, 207, 225, 0.6); }
.hover\:\-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:\-translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* Group Hover Effects */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* Focus Effects */
.focus\:border-neon-cyan:focus { border-color: var(--neon-cyan); }

/* تأثير النيون على النصوص */
.text-neon {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* إطار النيون حول الصفحة */
.neon-border {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--neon-cyan);
  pointer-events: none;
  z-index: 9999;
  box-shadow: inset 0 0 20px rgba(86, 207, 225, 0.3), 0 0 20px rgba(86, 207, 225, 0.3);
}

/* تأثير توهج شريط المهارات */
.skill-bar {
  position: relative;
  overflow: hidden;
}

.skill-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* الدائرة النيون المتوهجة حول الصورة */
.neon-circle-glow {
  box-shadow: 
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 30px var(--neon-cyan),
    0 0 40px var(--neon-cyan),
    inset 0 0 10px var(--neon-cyan);
  animation: glow-pulse 2s ease-in-out infinite;
}

/* تأثير النبض والإشعاع للدائرة */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 
      0 0 10px var(--neon-cyan),
      0 0 20px var(--neon-cyan),
      0 0 30px var(--neon-cyan),
      0 0 40px rgba(86, 207, 225, 0.4),
      inset 0 0 10px var(--neon-cyan);
  }
  50% {
    box-shadow: 
      0 0 15px var(--neon-cyan),
      0 0 30px var(--neon-cyan),
      0 0 45px var(--neon-cyan),
      0 0 60px rgba(86, 207, 225, 0.6),
      0 0 80px rgba(86, 207, 225, 0.3),
      inset 0 0 15px var(--neon-cyan);
  }
}

/* الحاوية للأيقونات */
.orbit-container {
  position: relative;
  width: 500px;  /* تأكد من أن نصف القطر لا يتجاوز نصف العرض */
  height: 500px;
  margin: 0 auto;
}

/* الأيقونات */
.tech-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.95);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 
    0 0 10px rgba(86, 207, 225, 0.6),
    0 0 20px rgba(86, 207, 225, 0.4);
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
  transform-origin: 50% 50%;
  animation: orbit-electron 12s linear infinite;
  z-index: 10;
}

/* توزيع الأيقونات باستخدام custom property لكل أيقونة */
.tech-icon:nth-child(1) { --angle: 0deg; }
.tech-icon:nth-child(2) { --angle: 45deg; }
.tech-icon:nth-child(3) { --angle: 90deg; }
.tech-icon:nth-child(4) { --angle: 135deg; }
.tech-icon:nth-child(5) { --angle: 180deg; }
.tech-icon:nth-child(6) { --angle: 225deg; }
.tech-icon:nth-child(7) { --angle: 270deg; }
.tech-icon:nth-child(8) { --angle: 315deg; }

/* الحركة حول المركز بدون تعارض مع transform الأصلي */
@keyframes orbit-electron {
  0% { transform: rotate(var(--angle)) translateX(200px ) rotate(calc(-1 * var(--angle))); }
  100% { transform: rotate(calc(360deg + var(--angle))) translateX(180px) rotate(calc(-360deg - var(--angle))); }
}

/* حركة الدخول */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  will-change: transform, opacity;
}

/* تأخيرات مختلفة لكل أيقونة */
.fade-in-up.delay-100 { animation-delay: 0.05s; }
.fade-in-up.delay-200 { animation-delay: 0.1s; }
.fade-in-up.delay-300 { animation-delay: 0.15s; }
.fade-in-up.delay-400 { animation-delay: 0.2s; }
.fade-in-up.delay-500 { animation-delay: 0.25s; }
.fade-in-up.delay-600 { animation-delay: 0.3s; }
.fade-in-up.delay-700 { animation-delay: 0.35s; }
.fade-in-up.delay-800 { animation-delay: 0.4s; }

.animate-on-scroll {
  opacity: 0;
}

/* العناصر المتحركة تبدأ مخفية */
.animate-on-scroll {
  opacity: 0;
}

/* حركة محسّنة لأشرطة المهارات */
.skill-bar-animate {
  width: 0 !important;
  transition: width 1s ease-out;
  will-change: width;
}

.skill-bar-animate.active {
  width: var(--target-width) !important;
}

/* حركات مخصصة */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(86, 207, 225, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(86, 207, 225, 0.8)); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-spin-slow { animation: spin 20s linear infinite; }
.animate-spin-slower { animation: spin 30s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* تحسين الأداء */
.will-change-transform { will-change: transform; }
