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

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

:root {
  --bg-primary: #060d1a;
  --bg-secondary: #0a1628;
  --bg-card: #0f1d33;
  --blue-primary: #0099ff;
  --blue-light: #33bbff;
  --blue-glow: rgba(0, 153, 255, 0.3);
  --blue-dark: #0066cc;
  --white: #ffffff;
  --gray-light: #b8c6db;
  --gray: #6b7f99;
  --gradient-blue: linear-gradient(135deg, #0066cc, #00bbff);
  --gradient-dark: linear-gradient(180deg, #060d1a 0%, #0a1628 100%);
  --font: 'Cairo', sans-serif;
  --shadow-blue: 0 0 30px rgba(0, 153, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.8;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 153, 255, 0.1);
  padding: 0.6rem 5%;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 50px; transition: var(--transition); }
.navbar.scrolled .nav-logo img { height: 40px; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--gray-light); text-decoration: none; font-weight: 600;
  font-size: 0.95rem; position: relative; transition: var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; right: 0;
  width: 0; height: 2px; background: var(--gradient-blue);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--gradient-blue); color: var(--white); border: none;
  padding: 0.6rem 1.8rem; border-radius: 50px; font-family: var(--font);
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span {
  display: block; width: 28px; height: 3px; background: var(--white);
  margin: 5px 0; border-radius: 3px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; padding: 6rem 5% 4rem;
  background: var(--gradient-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.15;
  background: radial-gradient(circle at 30% 40%, rgba(0,153,255,0.25) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(0,102,204,0.2) 0%, transparent 50%);
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
}
.particle {
  position: absolute; width: 4px; height: 4px; background: var(--blue-primary);
  border-radius: 50%; opacity: 0; animation: particleFloat 6s infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-logo {
  width: 180px; height: auto; margin-bottom: 2rem;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0, 153, 255, 0.4));
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.hero-title .highlight {
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem); color: var(--gray-light);
  margin-bottom: 2.5rem; font-weight: 300;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gradient-blue); color: var(--white); border: none;
  padding: 0.9rem 2.5rem; border-radius: 50px; font-family: var(--font);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  transform: translateX(100%); transition: var(--transition);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,153,255,0.3); }
.btn-secondary {
  background: transparent; color: var(--white); border: 2px solid var(--blue-primary);
  padding: 0.9rem 2.5rem; border-radius: 50px; font-family: var(--font);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(0, 153, 255, 0.1); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,153,255,0.15);
}
.hero-stats {
  display: flex; gap: 3rem; justify-content: center; margin-top: 4rem;
  padding-top: 3rem; border-top: 1px solid rgba(0, 153, 255, 0.1);
}
.stat { text-align: center; }
.stat-number {
  font-size: 2.2rem; font-weight: 900;
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--gray); font-weight: 600; }

/* ===== SECTIONS SHARED ===== */
section { padding: 6rem 5%; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge {
  display: inline-block; background: rgba(0, 153, 255, 0.1);
  border: 1px solid rgba(0, 153, 255, 0.2); padding: 0.4rem 1.5rem;
  border-radius: 50px; font-size: 0.85rem; color: var(--blue-light);
  font-weight: 600; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 1rem;
}
.section-title .highlight {
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { color: var(--gray-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== SERVICES ===== */
.services { background: var(--bg-secondary); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--bg-card); border-radius: 20px; padding: 2.5rem 2rem;
  border: 1px solid rgba(0, 153, 255, 0.08); transition: var(--transition);
  position: relative; overflow: hidden; text-align: center;
}
.service-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--gradient-blue); transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px); border-color: rgba(0, 153, 255, 0.2);
  box-shadow: var(--shadow-blue);
}
.service-icon {
  width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 153, 255, 0.08); font-size: 2rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(0, 153, 255, 0.15); transform: scale(1.1);
}
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; }
.service-card p { color: var(--gray-light); font-size: 0.95rem; line-height: 1.7; }

/* ===== ABOUT ===== */
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  max-width: 1200px; margin: 0 auto; align-items: center;
}
.about-text h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 1.5rem; }
.about-text h2 .highlight {
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.about-text p { color: var(--gray-light); margin-bottom: 1.5rem; font-size: 1.05rem; }
.about-features { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.about-feature {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(0, 153, 255, 0.05); padding: 1rem 1.5rem;
  border-radius: 12px; border: 1px solid rgba(0, 153, 255, 0.08);
  transition: var(--transition);
}
.about-feature:hover { border-color: rgba(0, 153, 255, 0.2); transform: translateX(-5px); }
.about-feature-icon {
  width: 45px; height: 45px; border-radius: 12px; flex-shrink: 0;
  background: rgba(0, 153, 255, 0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.about-feature span { font-weight: 600; font-size: 0.95rem; }
.about-visual { position: relative; }
.about-card {
  background: var(--bg-card); border-radius: 24px; padding: 3rem;
  border: 1px solid rgba(0, 153, 255, 0.1); position: relative;
  box-shadow: var(--shadow-card);
}
.about-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 24px;
  background: var(--gradient-blue); z-index: -1; opacity: 0.15;
  filter: blur(20px);
}
.about-counter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.counter-item { text-align: center; }
.counter-number {
  font-size: 2.5rem; font-weight: 900;
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.counter-label { font-size: 0.85rem; color: var(--gray); font-weight: 600; margin-top: 0.3rem; }

/* ===== PROCESS ===== */
.process { background: var(--bg-secondary); }
.process-timeline {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.process-step {
  display: flex; gap: 2rem; align-items: flex-start;
  background: var(--bg-card); padding: 2rem; border-radius: 16px;
  border: 1px solid rgba(0, 153, 255, 0.08);
  transition: var(--transition);
}
.process-step:hover {
  border-color: rgba(0, 153, 255, 0.2);
  box-shadow: var(--shadow-blue); transform: translateX(-5px);
}
.step-number {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  background: var(--gradient-blue); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; font-weight: 900;
}
.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-content p { color: var(--gray-light); font-size: 0.95rem; }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.portfolio-card {
  background: var(--bg-card); border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(0, 153, 255, 0.08); transition: var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-8px); border-color: rgba(0, 153, 255, 0.2);
  box-shadow: var(--shadow-blue);
}
.portfolio-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: var(--transition);
}
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }
.portfolio-img-wrapper { overflow: hidden; }
.portfolio-info { padding: 1.5rem 2rem; }
.portfolio-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-info p { color: var(--gray-light); font-size: 0.9rem; }
.portfolio-tags { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.portfolio-tag {
  background: rgba(0, 153, 255, 0.1); color: var(--blue-light);
  padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--bg-secondary); text-align: center; padding: 5rem 5%;
}
.cta-box {
  max-width: 800px; margin: 0 auto; background: var(--bg-card);
  border-radius: 24px; padding: 4rem 3rem; position: relative;
  border: 1px solid rgba(0, 153, 255, 0.1); overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,153,255,0.15) 0%, transparent 60%);
}
.cta-box h2 { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; position: relative; }
.cta-box p { color: var(--gray-light); margin-bottom: 2rem; font-size: 1.05rem; position: relative; }
.cta-box .btn-primary { position: relative; font-size: 1.1rem; padding: 1rem 3rem; }

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: 1100px; margin: 0 auto;
}
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--gray-light); margin-bottom: 2rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: rgba(0, 153, 255, 0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.contact-item-text span { display: block; font-size: 0.85rem; color: var(--gray); }
.contact-item-text a, .contact-item-text p {
  color: var(--white); text-decoration: none; font-weight: 600; margin: 0;
}
.contact-form {
  background: var(--bg-card); border-radius: 20px; padding: 2.5rem;
  border: 1px solid rgba(0, 153, 255, 0.08);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.9rem 1.2rem; background: var(--bg-secondary);
  border: 1px solid rgba(0, 153, 255, 0.1); border-radius: 12px;
  color: var(--white); font-family: var(--font); font-size: 0.95rem;
  transition: var(--transition); direction: rtl;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; background: var(--gradient-blue); color: var(--white);
  border: none; padding: 1rem; border-radius: 12px; font-family: var(--font);
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,153,255,0.3); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary); border-top: 1px solid rgba(0, 153, 255, 0.08);
  padding: 3rem 5% 1.5rem;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.7rem; }
.footer-logo img { height: 35px; }
.footer-logo span { font-weight: 700; font-size: 1.1rem; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--blue-light); }
.social-links { display: flex; gap: 0.8rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem;
  background: rgba(0, 153, 255, 0.08); color: var(--gray-light);
  transition: var(--transition); text-decoration: none;
}
.social-link:hover { background: var(--blue-primary); color: var(--white); transform: translateY(-3px); }
.footer-bottom {
  text-align: center; padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--gray); font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.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; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--bg-secondary); padding: 5rem 2rem 2rem; gap: 1.5rem; border-left: 1px solid rgba(0,153,255,0.1); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; z-index: 1001; }
  .about-content { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 4rem 5%; }
  .hero { padding: 5rem 5% 3rem; }
  .hero-logo { width: 130px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-step { flex-direction: column; align-items: center; text-align: center; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
