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

:root {
  --bg-primary: #050505;
  --bg-surface: #0a0a0a;
  --c-text-primary: #FFFFFF;
  --c-text-secondary: #C9C9C9;
  --c-teal: #FDA29B;
  --c-emerald: #FDA29B;
  --c-orange: #FDA29B;
  --c-border: rgba(255, 255, 255, 0.08);

  --font-body: 'Inter', sans-serif;
  --font-title: 'Inter', sans-serif;
}

html[lang="ar"] {
  --font-body: 'Alexandria', sans-serif;
  --font-title: 'Alexandria', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--c-text-primary);
  font-family: var(--font-body);
  height: 100vh;
  overflow: hidden;
  position: relative;
  line-height: 1.6;
}

.mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.15; /* Base opacity */
  transform: scale(var(--mesh-scale, 1));
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px); /* Heavy blur on individual blobs for better performance and visibility */
}

.blob-1 {
  width: 80vw; height: 80vh;
  top: -20vh; left: -20vw;
  background: var(--c-teal);
  animation: drift1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 90vw; height: 90vh;
  bottom: -30vh; right: -10vw;
  background: #D97974; /* Secondary Accent */
  animation: drift2 30s infinite alternate ease-in-out;
}

.blob-3 {
  width: 70vw; height: 70vh;
  top: 20vh; left: 40vw;
  background: #111111; /* Neutral */
  animation: drift3 28s infinite alternate ease-in-out;
}

.blob-4 {
  width: 60vw; height: 60vh;
  bottom: 10vh; left: 10vw;
  background: var(--c-teal);
  animation: drift4 35s infinite alternate ease-in-out;
}

@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25vw, 25vh) scale(1.3); }
}
@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30vw, -20vh) scale(1.4); }
}
@keyframes drift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25vw, 25vh) scale(1.2); }
}
@keyframes drift4 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30vw, -25vh) scale(1.5); }
}

/* UI Elements */
.logo {
  position: absolute;
  top: 4rem;
  inset-inline-start: 4rem;
  height: 45px;
  z-index: 100;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo.logo-centered {
  inset-inline-start: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.lang-switcher {
  position: absolute;
  top: 2rem;
  right: 3rem; /* Fixed position, unaffected by RTL */
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  background: transparent;
  padding: 0.25rem;
  border-radius: 4px;
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: var(--c-text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher button.active {
  background: var(--c-text-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

html:not([lang="ar"]) .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-emerald));
  width: 0%;
  transition: width 0.3s ease;
  z-index: 100;
}

.pagination-container {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 100;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--c-text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  color: var(--c-teal);
}

.slide-number {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-primary);
  letter-spacing: 0.1em;
}

/* Presentation Container */
#presentation {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Slide Setup */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 6rem 8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.center-content {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Typography */
h1 {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--c-text-primary);
}

h2 {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--c-text-primary);
  line-height: 1.2;
}

h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--c-text-primary);
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-text-primary);
}

p {
  font-size: 1.1rem;
  max-width: 800px;
  color: var(--c-text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--c-border);
}

/* Cards & Containers */
.glass-card {
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 3rem;
  transition: border-color 0.5s ease;
}

.glass-card:hover {
  border-color: rgba(253, 162, 155, 0.4);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Text Colors */
.text-teal { color: var(--c-teal); }
.text-emerald { color: var(--c-emerald); }
.text-orange { color: var(--c-orange); }
.text-gray { color: var(--c-text-secondary); }

/* Financial Table */
.fin-table {
  width: 100%;
  border-collapse: collapse;
}

.fin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-secondary);
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.fin-table td {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-primary);
  font-size: 1.1rem;
}

.fin-table .metric-val {
  font-weight: 600;
}



/* Utilities */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* Split Slide Layout */
.split-slide {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  align-items: center;
  margin: auto;
}

.split-slide .left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: start;
}

.split-slide .right-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
