/* =====================================================
   NexCode Portfolio - Stylesheet
   RTL Arabic Design | Dark Premium Theme
   ===================================================== */

/* ===================== INSTAGRAM ===================== */
.instagram-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}

.instagram-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
  z-index: 0;
}

.instagram-link:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(131, 58, 180, 0.35);
}

.instagram-link:hover::before {
  opacity: 1;
}

.instagram-icon-wrap {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.instagram-link:hover .instagram-icon-wrap {
  background: rgba(255,255,255,0.2);
}

.instagram-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: white;
}

.instagram-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.instagram-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.instagram-link:hover .instagram-label {
  color: rgba(255, 255, 255, 0.8);
}

.instagram-handle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.instagram-link:hover .instagram-handle {
  color: white;
}

.instagram-arrow {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transition: var(--transition);
  flex-shrink: 0;
}

.instagram-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.instagram-link:hover .instagram-arrow {
  background: rgba(255,255,255,0.2);
  transform: translateX(-4px);
}

.instagram-link:hover .instagram-arrow svg {
  color: white;
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #060612;
  --bg-secondary: #0d0d1a;
  --bg-card: #0f0f1e;
  --bg-card-hover: #151527;
  --bg-glass: rgba(255, 255, 255, 0.03);

  --purple-dark: #3b1f6e;
  --purple-main: #7c3aed;
  --purple-light: #a855f7;
  --cyan-main: #06b6d4;
  --cyan-light: #22d3ee;
  --pink-main: #ec4899;

  --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-secondary: linear-gradient(135deg, #a855f7, #ec4899);
  --gradient-glow: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.3));

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(124, 58, 237, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.2);
  --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.2);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-primary: 'Cairo', 'Tajawal', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
  cursor: none;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--purple-main);
  color: white;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-main);
  border-radius: 3px;
}

/* ---- Custom Cursor ---- */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--purple-light);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}

.cursor-follower {
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, opacity 0.3s ease;
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 99px;
  animation: fillBar 1.5s ease forwards;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- Container ---- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section ---- */
.section {
  padding: 100px 0;
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--purple-light);
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: none;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover::before {
  opacity: 0.07;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(-4px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: #1e1b4b;
  font-weight: 800;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 6, 18, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.logo-nex {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-code {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 20px;
}

.nav-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  white-space: nowrap;
}

.nav-cta:hover {
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.55);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
  margin-right: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 99px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.18);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.12);
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(236, 72, 153, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.2s ease both;
  letter-spacing: -1px;
}

.title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.9;
  animation: fadeInUp 0.8s 0.35s ease both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s 0.5s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 40px;
  animation: fadeInUp 0.8s 0.65s ease both;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-item {
  text-align: center;
  padding: 0 28px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  line-height: 1;
}

.stat-plus {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeIn 1s 1s ease both;
}

.scroll-indicator {
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 480px;
}

.about-card-main {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.about-card-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.3;
  border-radius: inherit;
}

.about-card-icon svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.about-card-main h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-card-main p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-card-floating {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite;
}

.card-emoji {
  font-size: 1.2rem;
}

.card-f1 {
  top: 20px;
  right: -30px;
  animation-delay: 0s;
}

.card-f2 {
  bottom: 80px;
  right: -40px;
  animation-delay: -1.5s;
}

.card-f3 {
  bottom: 20px;
  left: -30px;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--purple-main);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-desc {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}

.about-desc strong {
  color: var(--purple-light);
  font-weight: 700;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateX(-4px);
}

.feature-icon {
  font-size: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ===================== SERVICES ===================== */
.services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.service-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.service-card:hover::before {
  opacity: 0.04;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}

.service-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--purple-light);
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--purple-main);
}

.service-card:hover .service-icon-wrap svg {
  stroke: white;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-arrow {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--purple-light);
  transition: var(--transition);
  opacity: 0;
  transform: scale(0.8);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: scale(1);
}

/* ===================== PROJECTS ===================== */
.projects {
  background: var(--bg-secondary);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: none;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.project-card.featured .project-features {
  grid-column: 2;
  grid-row: 3 / 6;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.project-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-8px);
  box-shadow: 0 24px 80px rgba(124, 58, 237, 0.15);
}

.project-card:hover::after {
  opacity: 0.03;
}

.project-number {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  font-family: var(--font-primary);
}

.project-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.project-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.project-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.project-tags span {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}

.project-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.pf-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.project-card:hover .pf-item {
  border-color: rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
}

/* ===================== TECHNOLOGIES ===================== */
.technologies {
  background: var(--bg-primary);
}

.tech-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}

.tech-category:hover {
  border-color: var(--border-glow);
}

.tech-cat-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-cat-title::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 99px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: none;
  transition: var(--transition);
  min-width: 70px;
}

.tech-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.15);
}

.tech-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.tech-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Tech logo colors */
.flutter { background: #0553B1; color: #67C8F5; }
.react { background: #0d2d42; color: #61DAFB; }
.vue { background: #1a3330; color: #4FC08D; }
.js { background: #3d3400; color: #F7DF1E; }
.ts { background: #0a1929; color: #3178C6; }
.laravel { background: #3d0a0a; color: #FF2D20; }
.node { background: #0a2110; color: #68A063; }
.dotnet { background: #1a0033; color: #9B59B6; }
.python { background: #1a2c3d; color: #FFD43B; }
.php { background: #1a1a3d; color: #777BB4; }
.mysql { background: #002133; color: #00758F; }
.postgres { background: #0a1929; color: #336791; }
.sqlserver { background: #1a0000; color: #CC2927; }
.firebase { background: #1a1400; color: #FFCA28; }
.rest { background: #1a2a0a; color: #7EC8A0; }
.graphql { background: #1a0a1a; color: #E535AB; }
.docker { background: #002244; color: #2496ED; }
.git { background: #1a0a00; color: #F05032; }
.github { background: #0a0a0a; color: #f1f5f9; }

/* ===================== WHY US ===================== */
.why-us {
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.12);
}

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

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.why-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================== VISION ===================== */
.vision {
  background: var(--bg-primary);
  padding-top: 0;
}

.vision-card {
  background: linear-gradient(135deg, #1e1040, #0a1229);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.vision-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.v-orb1 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.25);
  top: -100px;
  right: -100px;
}

.v-orb2 {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.2);
  bottom: -80px;
  left: -80px;
}

.vision-content {
  position: relative;
  z-index: 2;
}

.vision-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  color: white;
  margin-bottom: 20px;
}

.vision-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

/* ===================== CONTACT ===================== */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.contact-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.contact-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cs-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--purple-light);
  flex-shrink: 0;
}

.contact-quote {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  border-right: 3px solid var(--purple-main);
}

.quote-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.contact-quote p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  transition: var(--transition);
  direction: rtl;
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-main);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeIn 0.4s ease;
}

.form-success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.form-success.show {
  display: flex;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-logo {
  font-size: 1.6rem;
}

.footer-links h4,
.footer-services h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--purple-light);
}

.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-services ul li {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-tagline {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  opacity: 0;
  transform: translateY(20px);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Intersection Observer animation classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    height: 320px;
    max-width: 460px;
    margin: 0 auto;
  }

  .project-card.featured {
    grid-column: span 1;
    display: block;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: rgba(6, 6, 18, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-stats {
    padding: 16px 20px;
    gap: 4px;
  }

  .stat-item {
    padding: 0 16px;
  }

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

  .hero-title {
    font-size: 2.2rem;
  }

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

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

  .project-card.featured {
    grid-column: span 1;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  body {
    cursor: default;
  }

  .vision-card {
    padding: 48px 28px;
  }

  .contact-form-wrap {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .stat-item {
    padding: 8px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .project-filters {
    gap: 6px;
  }
}
