/* ============================================
   العراق الأزرق – Main Stylesheet
   ============================================ */

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

/* --- Root Variables --- */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --secondary: #2563eb;
  --accent: #06b6d4;
  --dark-bg: #0a0e1a;
  --dark-card: rgba(15, 23, 42, 0.75);
  --light-bg: #f0f9ff;
  --light-card: rgba(255, 255, 255, 0.15);
  --text-dark: #1e293b;
  --text-light: #e2e8f0;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --neon-blue: 0 0 20px rgba(14, 165, 233, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.8;
}

/* --- Dark Mode (default) --- */
.dark-mode {
  background: var(--dark-bg);
  color: var(--text-light);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: #fff;
}

/* --- Glass Card --- */
.glass {
  background: var(--light-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.glass:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow), var(--neon-blue);
  border-color: rgba(14, 165, 233, 0.3);
}

/* --- Glass Dark Card --- */
.glass-dark {
  background: var(--dark-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.glass-dark:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow), 0 0 30px rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.25);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::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: var(--transition);
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.3);
}

.btn-coming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: not-allowed;
  text-decoration: none;
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 50%, #0a0e1a 100%);
}

/* --- Particle Canvas --- */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Cyber Grid --- */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* --- Floating Glow Orbs --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}
.glow-orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, 0.12);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.glow-orb:nth-child(2) {
  width: 300px;
  height: 300px;
  background: rgba(37, 99, 235, 0.1);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}
.glow-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  75% {
    transform: translate(40px, 20px) scale(1.05);
  }
}

/* --- Hero Content --- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, #2563eb, #06b6d4);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: 1rem;
  text-shadow: none;
  position: relative;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(226, 232, 240, 0.8);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.9;
}

/* --- Typewriter cursor --- */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary-light);
  margin-right: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Section Styling --- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin-top: 8px;
}
.section-subtitle {
  color: rgba(226, 232, 240, 0.6);
  font-size: 1.05rem;
  max-width: 600px;
}

/* --- Service Cards --- */
.service-card {
  padding: 2rem;
  text-align: center;
  cursor: default;
  height: 100%;
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: rgba(226, 232, 240, 0.65);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* --- Feature Cards --- */
.feature-card {
  padding: 2rem;
  text-align: center;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.9rem;
}

/* --- About Section --- */
.about-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #0a0e1a);
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
  padding: 0.6rem 0;
}
.navbar .logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar .logo span {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  color: rgba(226, 232, 240, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(14, 165, 233, 0.15);
  z-index: 1001;
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu .nav-link {
  font-size: 1.15rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Hamburger --- */
.hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 4px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -8px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-desktop {
    display: none !important;
  }
}

/* --- Footer --- */
.footer {
  background: rgba(10, 14, 26, 0.95);
  border-top: 1px solid rgba(14, 165, 233, 0.1);
  padding: 3rem 0 1.5rem;
}
.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}
.footer-logo span {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-link {
  color: rgba(226, 232, 240, 0.6);
  text-decoration: none;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--primary-light);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(14, 165, 233, 0.5);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
}

/* --- Scale on hover --- */
.scale-hover {
  transition: var(--transition);
}
.scale-hover:hover {
  transform: scale(1.03);
}

/* --- Glow border --- */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--accent));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}
.glow-border:hover::before {
  opacity: 1;
}

/* --- Service Page --- */
.service-page {
  min-height: 100vh;
  padding-top: 100px;
  background: linear-gradient(135deg, #0a0e1a, #0f172a);
}
.service-page .service-hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.service-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
}
.service-page .coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 12px;
  color: #facc15;
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Contact Form --- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-input::placeholder {
  color: rgba(226, 232, 240, 0.35);
}
textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

/* --- Stats Counter --- */
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.95rem;
}

/* --- Responsive tweaks --- */
@media (max-width: 576px) {
  .hero-content {
    padding: 1.5rem;
  }
  .service-card {
    padding: 1.5rem;
  }
  .footer {
    text-align: center;
  }
}
