:root {
  --primary: #6C63FF;
  --primary-dark: #5A52D5;
  --secondary: #00D9FF;
  --accent: #FF6584;
  --dark: #0a0a1a;
  --dark2: #12122a;
  --dark3: #1a1a3e;
  --text: #e0e0ff;
  --text-muted: #8888aa;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* === CUSTOM CURSOR === */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, background 0.15s ease;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2);
  background: rgba(108, 99, 255, 0.2);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--secondary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

/* === LOADING SCREEN === */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--dark3);
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  animation: loading 2s ease forwards;
}

@keyframes loading {
  to {
    width: 100%;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* === PARTICLES CANVAS === */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  padding: 15px 60px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-logo span {
  -webkit-text-fill-color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 60px 60px;
  overflow: hidden;
}

/* Ambient background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.3), transparent 70%);
  top: -100px;
  right: -100px;
  animation: blobFloat1 12s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.2), transparent 70%);
  bottom: -50px;
  left: -80px;
  animation: blobFloat2 15s ease-in-out infinite;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 101, 132, 0.15), transparent 70%);
  top: 40%;
  left: 40%;
  animation: blobFloat3 18s ease-in-out infinite;
}

@keyframes blobFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, 40px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes blobFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(20px, -10px) scale(1.1);
  }
}

@keyframes blobFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.15);
  }
}

/* Social sidebar */
.hero-social {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10;
  animation: fadeInLeft 1s ease 3s both;
}

.hero-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
}

.hero-social a:hover {
  color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-3px);
}

.hero-social-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 2px;
}

/* Hero container */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1.1;
  text-align: right;
  max-width: 750px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 50px;
  background: rgba(0, 217, 255, 0.06);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease 2s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
  }
}

/* Greeting */
.hero-greeting {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease 2.1s both;
}

/* H1 */
.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 2.2s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s ease infinite;
}

.hero-accent {
  display: inline-block;
  color: var(--secondary);
  -webkit-text-fill-color: var(--secondary);
  position: relative;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  opacity: 0.3;
}

@keyframes gradientMove {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Description */
.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.9;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 2.4s both;
}

/* Subtitle with typewriter */
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 2.5s both;
}

.typewriter {
  display: inline-block;
  color: var(--secondary);
  border-left: 2px solid var(--secondary);
  padding-left: 8px;
  animation: cursorBlink 0.8s ease infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    border-color: var(--secondary);
  }

  50% {
    border-color: transparent;
  }
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 20px;
  animation: fadeInUp 0.8s ease 2.7s both;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.stat-card:hover {
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* === HERO VISUAL (Image side) === */
.hero-visual {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated orbital rings */
.image-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(108, 99, 255, 0.15);
}

.image-ring-1 {
  width: 110%;
  height: 110%;
  animation: ringRotate 25s linear infinite;
}

.image-ring-2 {
  width: 125%;
  height: 125%;
  border-color: rgba(0, 217, 255, 0.1);
  animation: ringRotate 35s linear infinite reverse;
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.image-wrapper {
  position: relative;
  width: 80%;
  z-index: 2;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 25px 60px rgba(108, 99, 255, 0.25));
  transition: filter 0.4s ease;
}

.image-wrapper:hover img {
  filter: drop-shadow(0 30px 80px rgba(108, 99, 255, 0.35));
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, rgba(0, 217, 255, 0.06) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Floating tech badges */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(18, 18, 42, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.hero-float-badge:hover {
  transform: scale(1.08);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.2);
}

.hero-float-badge i {
  font-size: 1rem;
  color: var(--secondary);
}

.hfb-1 {
  top: 8%;
  left: -5%;
  animation: floatBadge1 5s ease-in-out infinite, fadeInUp 0.8s ease 2.8s both;
}

.hfb-2 {
  top: 15%;
  right: -8%;
  animation: floatBadge2 6s ease-in-out infinite, fadeInUp 0.8s ease 3s both;
}

.hfb-3 {
  bottom: 15%;
  left: -10%;
  animation: floatBadge3 5.5s ease-in-out infinite, fadeInUp 0.8s ease 3.2s both;
}

.hfb-4 {
  bottom: 8%;
  right: -5%;
  animation: floatBadge4 4.5s ease-in-out infinite, fadeInUp 0.8s ease 3.4s both;
}

@keyframes floatBadge1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(8px, -12px);
  }
}

@keyframes floatBadge2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, 8px);
  }
}

@keyframes floatBadge3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(12px, 8px);
  }
}

@keyframes floatBadge4 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-8px, -10px);
  }
}

/* Fade-in animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* === BUTTONS (used globally) === */
.btn {
  padding: 14px 36px;
  border-radius: 12px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeInUp 1s ease 3.2s both;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  margin: 0 auto 10px;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

.scroll-indicator p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === SECTION STYLES === */
section {
  padding: 120px 60px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 15px auto 0;
  line-height: 1.8;
}

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.about-image-wrapper::before {
  content: "";
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 20px;
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image-wrapper:hover::before {
  top: -10px;
  right: -10px;
}

.about-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  overflow: hidden;
  position: relative;
}

.about-img .code-bg {
  position: absolute;
  font-size: 0.7rem;
  color: rgba(108, 99, 255, 0.15);
  line-height: 1.6;
  top: 10px;
  left: 10px;
  right: 10px;
  font-family: monospace;
  text-align: left;
  direction: ltr;
}

.about-img .avatar-icon {
  position: relative;
  z-index: 2;
  font-size: 6rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.floating-badge {
  position: absolute;
  padding: 10px 20px;
  background: var(--dark2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatBadge 4s ease-in-out infinite;
  z-index: 3;
}

.floating-badge:nth-child(2) {
  top: 10px;
  left: -30px;
  animation-delay: 0s;
}

.floating-badge:nth-child(3) {
  bottom: 40px;
  right: -40px;
  animation-delay: 1s;
}

.floating-badge:nth-child(4) {
  bottom: -10px;
  left: -20px;
  animation-delay: 2s;
}

.floating-badge i {
  color: var(--secondary);
  font-size: 1.1rem;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 20px;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0;
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-info-item i {
  color: var(--primary);
  width: 20px;
}

.about-info-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-info-item strong {
  color: var(--text);
}

/* === SKILLS === */
.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 35px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.skill-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.skill-tags span {
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--primary);
}

.tech-orbit {
  max-width: 500px;
  height: 500px;
  margin: 80px auto 0;
  position: relative;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 60px rgba(108, 99, 255, 0.5);
  z-index: 5;
}

.orbit-ring {
  position: absolute;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.orbit-ring:nth-child(2) {
  width: 250px;
  height: 250px;
  margin-top: -125px;
  margin-left: -125px;
  animation: rotate 20s linear infinite;
}

.orbit-ring:nth-child(3) {
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  animation: rotate 30s linear infinite reverse;
}

.orbit-item {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--dark2);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.orbit-ring:nth-child(2) .orbit-item:nth-child(1) {
  top: -25px;
  left: 50%;
  margin-left: -25px;
}

.orbit-ring:nth-child(2) .orbit-item:nth-child(2) {
  bottom: -25px;
  left: 50%;
  margin-left: -25px;
}

.orbit-ring:nth-child(2) .orbit-item:nth-child(3) {
  top: 50%;
  right: -25px;
  margin-top: -25px;
}

.orbit-ring:nth-child(2) .orbit-item:nth-child(4) {
  top: 50%;
  left: -25px;
  margin-top: -25px;
}

.orbit-ring:nth-child(3) .orbit-item:nth-child(1) {
  top: -25px;
  left: 50%;
  margin-left: -25px;
}

.orbit-ring:nth-child(3) .orbit-item:nth-child(2) {
  bottom: -25px;
  left: 50%;
  margin-left: -25px;
}

.orbit-ring:nth-child(3) .orbit-item:nth-child(3) {
  top: 50%;
  right: -25px;
  margin-top: -25px;
}

.orbit-ring:nth-child(3) .orbit-item:nth-child(4) {
  top: 50%;
  left: -25px;
  margin-top: -25px;
}

.orbit-ring:nth-child(3) .orbit-item:nth-child(5) {
  top: 15%;
  right: 0;
}

.orbit-ring:nth-child(3) .orbit-item:nth-child(6) {
  bottom: 15%;
  left: 0;
}

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

  to {
    transform: rotate(360deg);
  }
}

.orbit-item img,
.orbit-item span {
  animation: counterRotate 20s linear infinite;
  font-size: 1.3rem;
}

.orbit-ring:nth-child(3) .orbit-item img,
.orbit-ring:nth-child(3) .orbit-item span {
  animation: counterRotate 30s linear infinite reverse;
}

@keyframes counterRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* === PROJECTS === */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 320px;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
  border-radius: 10px 10px 0 0;
  display: block;
  background: rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-image img {
  transform: scale(1.03);
}

/* Project Status Badge */
.project-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="rtl"] .project-status {
  right: auto;
  left: 15px;
}

.status-working {
  background: rgba(255, 152, 0, 0.9);
  color: #fff;
}

.status-complete {
  background: rgba(76, 175, 80, 0.9);
  color: #fff;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.status-working .status-dot {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.project-type {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="rtl"] .project-type {
  left: auto;
  right: 15px;
}

.type-freelance {
  background: rgba(108, 99, 255, 0.9);
  color: #fff;
}

.type-company {
  background: rgba(0, 217, 255, 0.9);
  color: #fff;
}

/* Fallback for regular images or icons */
.project-image .project-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform 0.4s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(108, 99, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.project-card:hover .project-overlay a {
  transform: translateY(0);
}

.project-card:hover .project-overlay a:nth-child(2) {
  transition-delay: 0.1s;
}

.project-overlay a:hover {
  background: #fff;
  color: var(--primary);
}

.project-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-info .project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 3px 10px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--secondary);
}

.project-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  min-height: 58px;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  min-height: 92px;
}

/* === EXPERIENCE TIMELINE === */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--dark);
  z-index: 2;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.timeline-content {
  width: 45%;
  padding: 25px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-5px);
}

.timeline-date {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.timeline-content h5 {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* === CONTACT === */
.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.contact-info>p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateX(-5px);
}

.contact-item i {
  width: 45px;
  height: 45px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-item-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-item-text a,
.contact-item-text p {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.social-links a {
  width: 48px;
  height: 48px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-5px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-family: "Cairo", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group label {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -10px;
  right: 15px;
  font-size: 0.75rem;
  background: var(--dark);
  padding: 0 8px;
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  box-shadow: 0 10px 40px rgba(108, 99, 255, 0.5);
  transform: translateY(-2px);
}

/* === FOOTER === */
.footer {
  padding: 40px 60px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer .heart {
  color: var(--accent);
  animation: heartBeat 1.5s ease infinite;
  display: inline-block;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* === PROJECT MODAL === */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: min(88vh, 780px);
  max-height: 88vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
}

.project-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  flex: 1;
  min-height: 0;
}

.modal-gallery {
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 35%),
    radial-gradient(circle at bottom left, rgba(108, 99, 255, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.2);
  padding: 34px 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid var(--glass-border);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.gallery-main {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.28);
  overscroll-behavior: none;
  touch-action: none;
}

.gallery-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
  pointer-events: none;
}

.gallery-main img {
  position: relative;
  z-index: 1;
  max-width: min(100%, 500px);
  max-height: min(100%, 460px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.5s ease;
  border-radius: 22px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 20, 0.72);
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.gallery-main img.zoomed {
  transform: scale(1.7);
  cursor: zoom-out;
}

.gallery-main img.is-portrait {
  width: min(100%, 320px);
  max-width: 320px;
  max-height: min(100%, 460px);
}

.gallery-main img.is-landscape,
.gallery-main img.is-square {
  width: min(100%, 520px);
}

.gallery-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  background: rgba(12, 18, 36, 0.62);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.gallery-nav .nav-prev {
  right: 18px;
}

.gallery-nav .nav-next {
  left: 18px;
}

.gallery-nav button:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 16px 36px rgba(108, 99, 255, 0.35);
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 2px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  min-height: 116px;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.thumb-item {
  width: 70px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.58;
  background: rgba(255, 255, 255, 0.03);
}

.thumb-item.active {
  border-color: var(--secondary);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(0, 217, 255, 0.18);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item:hover {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-details {
  padding: 42px 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  background:
    radial-gradient(circle at top left, rgba(108, 99, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%);
}

.modal-details #modalTags {
  margin-bottom: 22px;
}

.modal-details h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--text), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-details p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

.modal-actions .btn {
  padding: 15px 30px;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    border-left: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 60px 30px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .modal-details {
    padding: 40px 30px;
  }

  .modal-content {
    height: auto;
    max-height: 95vh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* === GLOW EFFECTS === */
.glow-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
      rgba(108, 99, 255, 0.15),
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.glow-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 80px;
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-image-frame {
    max-width: 350px;
  }

  .hero-description {
    margin: 0 auto 12px;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-social {
    display: none;
  }

  .hero-float-badge {
    padding: 8px 14px;
    font-size: 0.7rem;
  }

  .image-ring-2 {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    width: 280px;
    height: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    right: 30px;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-end;
    text-align: right !important;
  }

  .timeline-dot {
    right: 21px !important;
    transform: none !important;
  }

  .timeline-content {
    width: calc(100% - 60px);
  }

  .tech-orbit {
    display: none;
  }

  section {
    padding: 80px 30px;
  }

  .navbar {
    padding: 15px 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-greeting {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .hero-float-badge {
    display: none;
  }

  .hero-image-frame {
    max-width: 280px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: left 0.4s ease;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 20px 40px;
  }

  .section-title {
    font-size: 2rem;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ==========================================
   LANGUAGE TOGGLE BUTTON
   ========================================== */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 50px;
  color: var(--text);
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.lang-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 50px;
}

.lang-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.lang-toggle:hover::before {
  opacity: 0.15;
}

.lang-toggle:active {
  transform: translateY(0) scale(0.97);
}

.lang-icon {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--secondary);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-toggle:hover .lang-icon {
  transform: rotate(180deg);
}

.lang-text {
  letter-spacing: 1px;
  font-weight: 700;
}

/* ==========================================
   LTR MODE OVERRIDES (English)
   ========================================== */

/* Smooth direction transition */
html {
  transition: direction 0s;
}

body {
  transition: font-family 0.3s ease;
}

/* All translatable text transitions smoothly */
[data-i18n] {
  transition: opacity 0.2s ease;
}

body.lang-switching [data-i18n] {
  opacity: 0;
}

/* === LTR Global Overrides === */
html[dir="ltr"] body {
  font-family: "Inter", "Cairo", sans-serif;
}

/* Navbar LTR */
html[dir="ltr"] .nav-links a::after {
  right: auto;
  left: 0;
}

/* Hero Content LTR */
html[dir="ltr"] .hero-content {
  text-align: left;
}

html[dir="ltr"] .hero-accent::after {
  right: auto;
  left: 0;
}

/* Typewriter cursor on left side in LTR */
html[dir="ltr"] .typewriter {
  border-left: none;
  border-right: 2px solid var(--secondary);
  padding-left: 0;
  padding-right: 8px;
}

/* Social sidebar position swap */
html[dir="ltr"] .hero-social {
  left: auto;
  right: 30px;
}

/* Social sidebar fade direction */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

html[dir="ltr"] .hero-social {
  animation-name: fadeInRight;
}

/* About section image wrapper border */
html[dir="ltr"] .about-image-wrapper::before {
  right: auto;
  left: -15px;
}

html[dir="ltr"] .about-image-wrapper:hover::before {
  right: auto;
  left: -10px;
}

/* Timeline LTR */
html[dir="ltr"] .timeline::before {
  right: auto;
  left: 50%;
}

html[dir="ltr"] .timeline-dot {
  right: auto !important;
  left: 50%;
  transform: translateX(-50%) !important;
}

html[dir="ltr"] .timeline-item:nth-child(odd) {
  flex-direction: row !important;
  text-align: left !important;
}

html[dir="ltr"] .timeline-item:nth-child(even) {
  flex-direction: row-reverse !important;
  text-align: left !important;
}

/* Form labels LTR */
html[dir="ltr"] .form-group label {
  right: auto;
  left: 20px;
}

html[dir="ltr"] .form-group input:focus~label,
html[dir="ltr"] .form-group textarea:focus~label,
html[dir="ltr"] .form-group input:not(:placeholder-shown)~label,
html[dir="ltr"] .form-group textarea:not(:placeholder-shown)~label {
  right: auto;
  left: 15px;
}

/* Modal gallery nav arrows swap */
html[dir="ltr"] .nav-prev i,
html[dir="ltr"] .nav-next i {
  transform: scaleX(-1);
}

/* Mobile menu position for LTR */
@media (max-width: 992px) {
  html[dir="ltr"] .nav-links {
    left: auto;
    right: -100%;
    transition: right 0.4s ease;
  }

  html[dir="ltr"] .nav-links.open {
    right: 0;
  }

  html[dir="ltr"] .timeline::before {
    left: 30px;
    right: auto;
  }

  html[dir="ltr"] .timeline-item {
    align-items: flex-start !important;
    text-align: left !important;
  }

  html[dir="ltr"] .timeline-dot {
    left: 21px !important;
    right: auto !important;
    transform: none !important;
  }
}

/* === STATUS SECTION === */
#status {
  padding: 100px 60px;
  background: linear-gradient(to bottom, var(--dark), var(--dark2));
}

.status-container {
  max-width: 1200px;
  margin: 0 auto;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.status-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.status-card:hover {
  transform: translateY(-10px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.working-card::before {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.complete-card::before {
  background: linear-gradient(to bottom, #4CAF50, #00C853);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.status-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.status-icon.working {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
}

.status-icon.complete {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.status-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.status-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.status-list li i {
  margin-top: 5px;
  font-size: 0.9rem;
}

.working-card .status-list li i {
  color: var(--secondary);
}

.complete-card .status-list li i {
  color: #4CAF50;
}

.status-card:hover .status-list li {
  color: var(--text);
}

@media (max-width: 768px) {
  #status {
    padding: 80px 30px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* RTL SUPPORT FOR STATUS */
html[dir="rtl"] .status-card::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .status-list li i {
  transform: scaleX(-1);
}

/* MODAL BADGES */
.modal-header-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-header-badges .project-type,
.modal-header-badges .project-status {
  position: static;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.modal-header-badges .type-freelance {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
  border-color: rgba(108, 99, 255, 0.3);
}

.modal-header-badges .type-company {
  background: rgba(0, 217, 255, 0.15);
  color: var(--secondary);
  border-color: rgba(0, 217, 255, 0.3);
}

.modal-header-badges .status-complete {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border-color: rgba(76, 175, 80, 0.3);
}

.modal-header-badges .status-working {
  background: rgba(255, 152, 0, 0.15);
  color: #FF9800;
  border-color: rgba(255, 152, 0, 0.3);
}

.modal-header-badges .status-dot {
  background: currentColor;
}
