/* ===================================================================
   AFKAR — Split Landing Page Stylesheet
   Two divisions: Screens (cyan accent) | Solar (warm accent)
   =================================================================== */

:root {
  --bg: #0a0e1a;
  --bg-2: #050810;
  --text: #ffffff;
  --muted: #9ba3b4;
  --border: rgba(255, 255, 255, 0.10);

  --screens-accent: #00d4ff;
  --screens-gradient: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  --screens-glow: 0 0 80px rgba(0, 212, 255, 0.45);

  --solar-accent: #ffb800;
  --solar-gradient: linear-gradient(135deg, #ffb800 0%, #ff5e3a 100%);
  --solar-glow: 0 0 80px rgba(255, 184, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
html[dir="rtl"] body { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }

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

/* ===== Floating Language Button ===== */
.lang-btn-floating {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}
html[dir="rtl"] .lang-btn-floating { right: auto; left: 1.25rem; }
.lang-btn-floating:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* ===== Hero Container ===== */
.split-hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #0e1426 0%, var(--bg) 60%, var(--bg-2) 100%);
  display: flex;
  flex-direction: column;
}

/* ===== Top Brand Strip ===== */
.brand-strip {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
  z-index: 10;
}
.brand-logo {
  display: block;
  margin: 0 auto;
  width: min(280px, 60vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 212, 255, 0.25));
}
.brand-tag {
  margin-top: 0.85rem;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== Split Grid ===== */
.split-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  position: relative;
  min-height: 60vh;
}

/* ===== Panels (the two halves) ===== */
.split-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  min-height: 480px;
  cursor: pointer;
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Background image layer */
.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.4s ease;
  filter: saturate(0.85) contrast(1.05);
}
.panel-bg-solar {
  /* Placeholder gradient until Bilal uploads a solar hero image
     (assets/images/solar/solar-hero.jpg) */
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255, 200, 0, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 80, 0, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #2a1a08 0%, #0f0a05 100%);
  background-size: cover;
  background-position: center;
}
/* Once Bilal uploads assets/images/solar/solar-hero.jpg, the line below
   will activate (uncomment by removing /* */
/*
.panel-bg-solar {
  background-image: url('../assets/images/solar/solar-hero.jpg') !important;
}
*/

/* Dark overlay for legibility */
.panel-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.panel-overlay-screens {
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.25) 0%, rgba(8, 12, 22, 0.85) 100%),
    radial-gradient(ellipse at center, rgba(0, 102, 255, 0.18) 0%, transparent 60%);
}
.panel-overlay-solar {
  background:
    linear-gradient(180deg, rgba(20, 12, 5, 0.25) 0%, rgba(20, 12, 5, 0.85) 100%),
    radial-gradient(ellipse at center, rgba(255, 138, 0, 0.18) 0%, transparent 60%);
}

/* Content block */
.panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 440px;
}

.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  font-size: 2.5rem;
  color: var(--screens-accent);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.icon-solar {
  background: rgba(255, 184, 0, 0.12);
  border-color: rgba(255, 184, 0, 0.4);
  color: var(--solar-accent);
}

.panel-title {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--screens-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--screens-accent); /* fallback */
}
.panel-solar .panel-title {
  background: var(--solar-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--solar-accent);
}

.panel-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  background: var(--screens-gradient);
  color: #001020;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 14px 40px -12px rgba(0, 212, 255, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
}
.cta-solar {
  background: var(--solar-gradient);
  color: #1a0a00;
  box-shadow: 0 14px 40px -12px rgba(255, 138, 0, 0.55);
}
.cta-arrow {
  transition: transform 0.25s ease;
}
html[dir="rtl"] .cta-arrow { transform: scaleX(-1); }

/* ===== Hover behavior ===== */
.split-panel:hover .panel-bg {
  transform: scale(1.12);
  filter: saturate(1.1) contrast(1.1);
}
.split-panel:hover .panel-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: var(--screens-glow);
}
.split-panel.panel-solar:hover .panel-icon {
  box-shadow: var(--solar-glow);
}
.split-panel:hover .panel-cta {
  transform: translateY(-3px);
  gap: 1rem;
}
.split-panel:hover .cta-arrow {
  transform: translateX(4px);
}
html[dir="rtl"] .split-panel:hover .cta-arrow {
  transform: translateX(-4px) scaleX(-1);
}

/* Dim opposite panel on hover */
.split-grid:has(.panel-screens:hover) .panel-solar,
.split-grid:has(.panel-solar:hover) .panel-screens {
  filter: brightness(0.55) saturate(0.7);
}

/* ===== Vertical Divider ===== */
.split-divider {
  position: relative;
  width: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.divider-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 20%,
    rgba(0, 212, 255, 0.45) 50%,
    rgba(255, 184, 0, 0.45) 50%,
    rgba(255, 255, 255, 0.18) 80%,
    transparent 100%
  );
}
.divider-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.25), 0 0 60px rgba(255, 184, 0, 0.18);
  position: relative;
  margin: 0.75rem 0;
  z-index: 3;
}
.divider-logo {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.4));
}

/* ===== Footer ===== */
.brand-footer {
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
  z-index: 10;
  text-align: center;
}
.footer-stats {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 1.25rem;
}
.footer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.footer-stat strong {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff 0%, #ffb800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-stat span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ===== Responsive: stack on mobile ===== */
@media (max-width: 880px) {
  .split-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 1fr;
  }
  .split-divider {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    padding: 0.5rem 0;
  }
  .divider-line {
    flex: 1;
    width: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 212, 255, 0.45) 50%,
      rgba(255, 184, 0, 0.45) 50%,
      transparent 100%
    );
  }
  .divider-orb {
    margin: 0 0.75rem;
    width: 72px;
    height: 72px;
  }
  .split-panel {
    padding: 3rem 1.5rem;
    min-height: 360px;
  }
  .brand-strip { padding-top: 5rem; }
}

@media (max-width: 480px) {
  .split-panel { min-height: 320px; padding: 2.5rem 1rem; }
  .panel-icon { width: 70px; height: 70px; font-size: 2rem; }
  .footer-stats { gap: 1.5rem; }
}

/* ===== Subtle on-load animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-strip { animation: fadeUp 0.8s ease-out 0.1s both; }
.panel-screens { animation: fadeUp 0.8s ease-out 0.3s both; }
.panel-solar { animation: fadeUp 0.8s ease-out 0.5s both; }
.split-divider { animation: fadeUp 0.8s ease-out 0.4s both; }
.brand-footer { animation: fadeUp 0.8s ease-out 0.7s both; }
