*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1e3a8a;
  --navy-dark: #0f1d45;
  --cyan: #06b6d4;
  --cyan-hover: #0891b2;
  --green: #22c55e;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1f2937; line-height: 1.6; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(30, 58, 138, 0.95); backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.nav-logo svg { width: 32px; height: 32px; color: var(--cyan); }
.nav-logo span { color: white; font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s; padding: 0.5rem 0; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--cyan); border-radius: 1px;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger svg { width: 24px; height: 24px; color: white; }
.mobile-menu {
  display: none; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: rgba(255,255,255,0.9); padding: 0.75rem 1rem;
  border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { background: rgba(6,182,212,0.15); color: var(--cyan); }

/* Page Sections */
.page { display: none; }
.page.active { display: block; }

/* Hero */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image: url('../images/hero-bg.jpg');
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,58,138,0.82) 0%, rgba(30,58,138,0.72) 50%, rgba(15,29,69,0.92) 100%);
}
.hero-content { position: relative; z-index: 10; text-align: center; padding: 2rem 1rem; max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem; border-radius: 9999px; margin-bottom: 1.5rem;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--cyan); }
.hero-badge span { color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; color: white; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--cyan); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--cyan); color: white; padding: 1rem 2rem; border-radius: 9999px;
  font-weight: 600; font-size: 1.05rem; border: none; cursor: pointer;
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--cyan-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,182,212,0.3); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.3); color: white; padding: 1rem 2rem;
  border-radius: 9999px; font-weight: 600; font-size: 1.05rem; background: transparent;
  cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { border-color: white; transform: translateY(-2px); }

/* Section Styles */
.section { padding: 5rem 1.5rem; }
.section-container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.section-header p { color: var(--gray-600); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.bg-white { background: white; }
.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy); }

/* Page Hero (inner pages) */
.page-hero {
  padding: 8rem 1.5rem 4rem; background: var(--navy); text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before, .page-hero::after {
  content: ''; position: absolute; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.page-hero::before { width: 200px; height: 200px; top: 2rem; left: 2rem; }
.page-hero::after { width: 300px; height: 300px; bottom: 1rem; right: 1rem; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: white; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }

/* Cards Grid */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
  background: white; border: 1px solid var(--gray-100); border-radius: 1rem;
  padding: 2rem; transition: all 0.3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.card-icon {
  width: 64px; height: 64px; border-radius: 1rem; display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: all 0.3s;
}
.card-icon svg { width: 32px; height: 32px; transition: color 0.3s; }
.card-icon.navy { background: rgba(30,58,138,0.1); }
.card-icon.navy svg { color: var(--navy); }
.card:hover .card-icon.navy { background: var(--navy); }
.card:hover .card-icon.navy svg { color: white; }
.card-icon.cyan { background: rgba(6,182,212,0.1); }
.card-icon.cyan svg { color: var(--cyan); }
.card:hover .card-icon.cyan { background: var(--cyan); }
.card:hover .card-icon.cyan svg { color: white; }
.card-icon.green { background: rgba(34,197,94,0.1); }
.card-icon.green svg { color: var(--green); }
.card:hover .card-icon.green { background: var(--green); }
.card:hover .card-icon.green svg { color: white; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.card p { color: var(--gray-600); line-height: 1.7; }
.card-border-navy { border-bottom: 4px solid var(--navy); }
.card-border-cyan { border-bottom: 4px solid var(--cyan); }
.card-border-green { border-bottom: 4px solid var(--green); }

/* CTA Section */
.cta { padding: 5rem 1.5rem; background: var(--navy); text-align: center; }
.cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: white; margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }
.btn-cta {
  background: var(--cyan); color: white; padding: 1rem 2.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 1.05rem; border: none; cursor: pointer;
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-cta:hover { background: var(--cyan-hover); box-shadow: 0 8px 25px rgba(6,182,212,0.3); }

/* Product Page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.product-detail img { border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.1); width: 100%; }
.product-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(6,182,212,0.08); padding: 0.5rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem;
}
.product-badge svg { width: 16px; height: 16px; color: var(--cyan); }
.product-badge span { color: var(--cyan-hover); font-size: 0.875rem; font-weight: 600; }
.product-detail h2 { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.product-detail .desc { color: var(--gray-600); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--gray-700); }
.check-icon {
  width: 24px; height: 24px; background: var(--cyan); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.check-icon svg { width: 12px; height: 12px; color: white; }

/* Applications */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.app-card {
  background: white; border-radius: 0.75rem; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.3s;
}
.app-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.app-card-icon {
  width: 48px; height: 48px; background: rgba(30,58,138,0.1); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.app-card-icon svg { width: 24px; height: 24px; color: var(--navy); }
.app-card h3 { font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.app-card p { color: var(--gray-600); font-size: 0.875rem; }

/* Product in Action */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.action-grid img { border-radius: 1rem; box-shadow: 0 8px 25px rgba(0,0,0,0.1); width: 100%; height: 280px; object-fit: cover; }

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.project-card {
  background: white; border-radius: 1rem; overflow: hidden; border: 1px solid var(--gray-100);
  transition: all 0.3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.project-card .img-wrap { overflow: hidden; height: 220px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover img { transform: scale(1.05); }
.project-card .info { padding: 1.5rem; }
.project-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.project-card p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.6; }

/* About Page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-grid h2 { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.about-grid .text p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }
.about-grid img { border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.1); width: 100%; }

/* Vision & Mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.vm-card {
  background: white; border-radius: 1rem; padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: relative;
}
.vm-card.vision { border-left: 4px solid var(--navy); }
.vm-card.mission { border-left: 4px solid var(--cyan); }
.vm-icon {
  width: 56px; height: 56px; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.vm-icon.navy-bg { background: rgba(30,58,138,0.1); }
.vm-icon.cyan-bg { background: rgba(6,182,212,0.1); }
.vm-icon svg { width: 28px; height: 28px; }
.vm-icon.navy-bg svg { color: var(--navy); }
.vm-icon.cyan-bg svg { color: var(--cyan); }
.vm-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.vm-card p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.8; }

/* Services & Goals */
.sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.sg-grid h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.sg-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.sg-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--gray-600); line-height: 1.6; }
.sg-list li svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; margin-top: 3px; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.contact-info > p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  width: 48px; height: 48px; background: rgba(30,58,138,0.1); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--navy); }
.contact-item h4 { font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.contact-item p { color: var(--gray-600); font-size: 0.95rem; }
.arabic-box {
  margin-top: 2.5rem; padding: 1.5rem; background: var(--gray-50);
  border-radius: 0.75rem; text-align: right; direction: rtl;
}
.arabic-box h4 { font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.arabic-box p { color: var(--gray-600); }

/* Contact Form */
.contact-form-wrap {
  background: var(--gray-50); border-radius: 1rem; padding: 2.5rem;
}
.contact-form-wrap h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-200);
  border-radius: 0.5rem; font-size: 0.95rem; font-family: inherit;
  transition: all 0.2s; outline: none; background: white;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,138,0.1); }
.form-group textarea { resize: none; min-height: 130px; }
.btn-submit {
  width: 100%; background: var(--navy); color: white; padding: 1rem;
  border-radius: 0.5rem; font-weight: 600; font-size: 1.05rem; border: none;
  cursor: pointer; transition: all 0.3s;
}
.btn-submit:hover { background: #162d6e; box-shadow: 0 8px 20px rgba(30,58,138,0.2); }

/* Footer */
.footer { background: var(--navy-dark); color: white; padding: 3.5rem 1.5rem 0; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo svg { width: 24px; height: 24px; color: var(--cyan); }
.footer-logo span { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.footer p.desc { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.7; }
.footer h4 { font-weight: 600; margin-bottom: 1rem; color: var(--cyan); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }
.footer-bottom {
  max-width: 1280px; margin: 2.5rem auto 0; padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-detail, .about-grid, .contact-grid, .sg-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .vm-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .apps-grid { grid-template-columns: 1fr; }
}
