/* ============================================
   WORLD SPRING INVESTMENT — STYLESHEET
   Design: Deep Midnight Navy / Champagne Gold
   Fonts: Cormorant Garamond (Display) + DM Sans (Body) + Cairo (Arabic)
============================================ */

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

:root {
  --navy: #0A0F1E;
  --navy-mid: #111827;
  --navy-light: #1a2540;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E6B8;
  --white: #FAFAFA;
  --off-white: #F0EDE6;
  --muted: #8A90A0;
  --border: rgba(201,168,76,0.15);
  --border-faint: rgba(255,255,255,0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 8px rgba(0,0,0,0.5), 0 16px 48px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[lang="ar"] body,
body.lang-ar {
  font-family: var(--font-arabic);
  direction: rtl;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- UTILITY ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 7rem 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 4rem;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.26s; }
.reveal[data-delay="4"] { transition-delay: 0.34s; }
.reveal[data-delay="5"] { transition-delay: 0.42s; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary::before { background: var(--gold-light); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); color: var(--navy); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; color: var(--navy); }

.btn-whatsapp {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-whatsapp::before { background: rgba(255,255,255,0.04); }
.btn-whatsapp:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

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

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background 0.4s, padding 0.4s, border-bottom 0.4s;
}
.nav.scrolled {
  background: rgba(10, 15, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-faint);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.lang-toggle {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(300px, 80vw);
  height: 100vh;
  background: var(--navy-mid);
  border-left: 1px solid var(--border-faint);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  gap: 0.5rem;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { right: 0; }
body.lang-ar .mobile-menu { right: auto; left: -100%; border-left: none; border-right: 1px solid var(--border-faint); }
body.lang-ar .mobile-menu.open { left: 0; }
.mobile-link {
  font-size: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-faint);
  color: var(--muted);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--white); }
.mobile-lang { margin-top: 1.5rem; align-self: flex-start; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10rem 2rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,37,64,0.8) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.hero-line-1 { display: block; color: var(--white); }
.hero-line-2 { display: block; color: var(--gold); font-style: italic; }

.hero-sub {
  max-width: 540px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- ABOUT ---- */
.about { background: var(--navy-mid); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.about-right .about-text {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
  line-height: 1.85;
}
.about-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-faint);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--border-faint);
  flex-shrink: 0;
}

/* ---- TECHNOLOGY SERVICES ---- */
.services { background: var(--navy); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25px;
  background: var(--border-faint);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--navy-mid);
  padding: 2.25rem;
  transition: background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover { background: var(--navy-light); }
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: border-color var(--transition), background var(--transition);
}
.service-card:hover .card-icon {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
}
.card-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ---- INVESTMENT ---- */
.investment { background: var(--navy-mid); }
.investment-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.invest-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-faint);
  transition: var(--transition);
}
.invest-card:first-child { border-top: 1px solid var(--border-faint); }
.invest-card:hover { padding-left: 0.5rem; }
body.lang-ar .invest-card:hover { padding-left: 0; padding-right: 0.5rem; }

.invest-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  padding-top: 0.2rem;
  transition: color var(--transition);
}
.invest-card:hover .invest-number { color: var(--gold); }

/* ---- WHY ---- */
.why { background: var(--navy); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-faint);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-card {
  background: var(--navy-mid);
  padding: 2.5rem;
  transition: background var(--transition);
}
.why-card:hover { background: var(--navy-light); }

.why-icon {
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}
.why-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ---- CONTACT ---- */
.contact { background: var(--navy-mid); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}
.contact-detail-item:hover { color: var(--white); }
.detail-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* FORM */
.contact-form {
  background: var(--navy-light);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.form-group:focus-within label { color: var(--gold); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
body.lang-ar .form-group input,
body.lang-ar .form-group textarea {
  font-family: var(--font-arabic);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }

.form-message {
  margin-top: 1rem;
  font-size: 0.82rem;
  text-align: center;
}
.form-message.success { color: #5cb85c; }
.form-message.error { color: #d9534f; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border-faint);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-name {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(138,144,160,0.5);
}

/* ---- FLOATING WHATSAPP ---- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 990;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.lang-ar .whatsapp-float { right: auto; left: 2rem; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.wa-tooltip {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-mid);
  border: 1px solid var(--border-faint);
  color: var(--white);
  font-size: 0.72rem;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
body.lang-ar .wa-tooltip { right: auto; left: 110%; }
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ============================================
   ARABIC (RTL) OVERRIDES
============================================ */
body.lang-ar,
body.lang-ar *,
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar p,
body.lang-ar span,
body.lang-ar a,
body.lang-ar button,
body.lang-ar label,
body.lang-ar input,
body.lang-ar textarea,
body.lang-ar .section-title,
body.lang-ar .section-label,
body.lang-ar .hero-headline,
body.lang-ar .card-title,
body.lang-ar .card-desc,
body.lang-ar .btn,
body.lang-ar .nav-link,
body.lang-ar .logo-text,
body.lang-ar .footer-name {
  font-family: var(--font-arabic) !important;
}
body.lang-ar {
  direction: rtl;
  text-align: right;
}
body.lang-ar .section-label { letter-spacing: 0; }
body.lang-ar .hero-headline { letter-spacing: 0; }
body.lang-ar .hero-scroll-indicator { left: auto; right: 2rem; }
body.lang-ar .btn svg { transform: scaleX(-1); }
body.lang-ar .nav-link::after { left: auto; right: 0; }
body.lang-ar .service-card::before { transform-origin: right; }
body.lang-ar .invest-card { grid-template-columns: 80px 1fr; }
body.lang-ar .contact-form { direction: rtl; }
body.lang-ar .form-group input,
body.lang-ar .form-group textarea { text-align: right; }

/* ---- LOGO IMAGE STYLES ---- */
.logo-img {
  height: 90px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.logo-fallback {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo-fallback {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo-img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .invest-card { grid-template-columns: 60px 1fr; gap: 1.25rem; }
  .contact-form { padding: 1.75rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  body.lang-ar .footer-inner { align-items: flex-end; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 8rem 1.25rem 5rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .mobile-menu { width: 85vw; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 48px; height: 48px; }
  body.lang-ar .whatsapp-float { right: auto; left: 1.25rem; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
