/* 
  GYDR Executive Presentation Engine - Strict Literal Layout Version
  Stage Canvas: 1920x1080 (16:9)
  Target: Boardroom Presentation to GYDR Management
*/

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

:root {
  --stage-width: 1920px;
  --stage-height: 1080px;
  
  /* Brand Colors */
  --gydr-purple: #6C5CE7;
  --gydr-purple-dark: #4C1D95;
  --flux-orange: #E85023;
  --flux-orange-light: #FF6B35;
  
  /* Neutrals */
  --bg-canvas: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-card: #E2E8F0;
  
  /* Typography */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  
  /* Radius & Shadows */
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #07090E;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Stage Scaling Engine */
.stage-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #1E1B4B 0%, #07090E 100%);
}

.slide-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  background-color: var(--bg-canvas);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Base Slide System */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(0.985);
  flex-direction: column;
  background-color: var(--bg-canvas);
  z-index: 1;
}

.slide.active {
  display: flex !important;
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Stage Header Bar */
.stage-header {
  height: 105px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-bottom: 1.5px solid #E2E8F0;
  z-index: 10;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.header-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-slide-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.header-platform-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  padding: 5px 14px;
  border-radius: 30px;
  border: 1.5px solid #CBD5E1;
}

.header-platform-badges img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.header-breadcrumb {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 700;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agency-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FAF5FF;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid #E9D5FF;
}

.agency-badge img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.agency-badge span {
  font-size: 15px;
  font-weight: 800;
  color: var(--gydr-purple-dark);
}

/* Stage Footer Bar */
.stage-footer {
  height: 60px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border-top: 1.5px solid #E2E8F0;
  z-index: 10;
}

.footer-info {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slide-counter-pill {
  background: var(--text-main);
  color: #FFFFFF;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
}

.stage-progress-bar {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: #E2E8F0;
  z-index: 20;
}

.stage-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gydr-purple) 0%, var(--flux-orange) 100%);
  transition: width 0.3s ease;
}

/* Slide Content Area */
.slide-body {
  flex: 1;
  padding: 30px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: calc(1080px - 105px - 60px);
}

/* Content Grid Layouts */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  height: 100%;
  align-items: stretch;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  height: 100%;
  align-items: stretch;
}

.grid-full-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 28px;
  width: 100%;
  height: 100%;
}

.platform-logo-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}

.platform-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.platform-icon-sm {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
}

.grid-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: space-between;
}

.grid-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Cards System */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
  flex: 1;
  transition: all 0.25s ease;
}

.card-filled {
  justify-content: space-between !important;
  padding: 32px 34px !important;
  gap: 18px !important;
}

.social-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #F1F5F9;
}

.card-filled .card-desc {
  font-size: 19px;
  line-height: 1.6;
  color: #334155;
  font-weight: 600;
  background: #F8FAFC;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  margin: 0;
}

.card-filled .card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.card-filled .card-list li {
  font-size: 18px;
  line-height: 1.5;
  color: #1E293B;
  background: #FFFFFF;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.card:hover {
  border-color: var(--gydr-purple);
  box-shadow: var(--shadow-md);
}

.card-accent-purple { border-right: 6px solid var(--gydr-purple); }
.card-accent-orange { border-right: 6px solid var(--flux-orange); }

.card-header-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #F3E8FF;
  color: var(--gydr-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.card-icon-orange {
  background: #FFF7ED;
  color: var(--flux-orange);
}

.card-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.card-desc {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.6;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list li {
  font-size: 19px;
  color: var(--text-body);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-list li::before {
  content: "•";
  color: var(--gydr-purple);
  font-weight: 900;
  font-size: 24px;
}
}

/* ==================== MODERN DEVICE FRAMES & IMAGE CONTAINERS ==================== */

/* 1. Laptop Browser Mockup Frame (ONLY FOR 16:9 DESKTOP SCREENSHOTS) */
.laptop-browser-container {
  width: 100%;
  height: 100%;
  max-height: 780px;
  background: #FFFFFF;
  border-radius: 24px;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.laptop-browser-container:hover {
  border-color: var(--gydr-purple);
  box-shadow: 0 25px 50px -10px rgba(108, 92, 231, 0.18);
}

.browser-header {
  height: 48px;
  background: #F1F5F9;
  border-bottom: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.browser-dot-red { background: #FF5F56; border: 1px solid #E0443E; }
.browser-dot-yellow { background: #FFBD2E; border: 1px solid #DEA123; }
.browser-dot-green { background: #27C93F; border: 1px solid #1AAB29; }

.browser-address {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  direction: ltr;
  font-family: monospace;
}

.browser-body {
  flex: 1;
  width: 100%;
  height: calc(100% - 48px);
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.browser-body img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.laptop-browser-container:hover .browser-body img {
  transform: scale(1.01);
}

/* 2. Primary Mobile Phone Device Frame (FOR MOBILE SCREENSHOTS IN 2-COLUMN SLIDES) */
.phone-device-frame {
  height: 100%;
  max-height: 760px;
  aspect-ratio: 9/18.5;
  width: auto;
  background: #0F172A;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.3), 0 0 0 5px #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #0F172A;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: absolute;
  top: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #FFFFFF;
}

/* 3. Competitor Mobile Phone Frame (FOR 3-COLUMN CARDS SLIDES) */
.competitor-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 20px 22px !important;
  text-align: center;
}

.competitor-phone-frame {
  width: 270px;
  height: 550px;
  background: #0F172A;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.28), 0 0 0 5px #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 auto 10px auto;
  flex-shrink: 0;
}

.competitor-phone-notch {
  width: 80px;
  height: 14px;
  background: #0F172A;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  position: absolute;
  top: 10px;
  z-index: 10;
}

.competitor-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competitor-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #FFFFFF;
  transition: transform 0.3s ease;
}

.card:hover .competitor-phone-screen img {
  transform: scale(1.03);
}

.competitor-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
  text-align: center;
}

.competitor-card-body .card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.competitor-card-body .card-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
  font-weight: 600;
}

.competitor-insight-box {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  margin-top: auto;
}

.insight-red {
  background: #FEF2F2;
  border-right: 4px solid #EF4444;
  color: #991B1B;
}

.insight-green {
  background: #ECFDF5;
  border-right: 4px solid #10B981;
  color: #047857;
}

/* 4. Brand Identity Showcase Card (For Slide 4 Logo) */
.brand-showcase-card {
  width: 100%;
  height: 100%;
  max-height: 760px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF5FF 50%, #F3E8FF 100%);
  border: 2px solid #DDD6FE;
  border-radius: 28px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  box-shadow: 0 20px 40px -10px rgba(108, 92, 231, 0.12);
  text-align: center;
}

.brand-logo-hero-box {
  background: #FFFFFF;
  padding: 40px 80px;
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.15);
  border: 1.5px solid #E9D5FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-hero-box img {
  height: 160px;
  width: auto;
  object-fit: contain;
}

.brand-tags-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
}

.brand-tag-pill {
  background: #FFFFFF;
  border: 1.5px solid #C4B5FD;
  color: var(--gydr-purple-dark);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Clickable Caption Overlay Badge */
.image-caption-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  z-index: 5;
}

.image-caption-badge:hover {
  background: rgba(108, 92, 231, 0.95);
  transform: translateY(-2px);
}

.caption-text {
  display: flex;
  flex-direction: column;
}

.caption-title {
  font-size: 15px;
  font-weight: 800;
}

.caption-url {
  font-size: 12px;
  color: var(--flux-orange-light);
  direction: ltr;
  text-align: right;
  font-family: monospace;
}

.caption-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Cover Slide 1 (No Background Image - Title & GYDR Logo Only) */
.slide-cover-clean {
  background: radial-gradient(circle at center, #1E1B4B 0%, #0F172A 70%, #020617 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 120px;
}

.cover-clean-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
}

.cover-clean-logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 10px 25px rgba(108, 92, 231, 0.4));
}

.cover-clean-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.25;
  color: #FFFFFF;
}

.cover-clean-sub {
  font-size: 28px;
  color: #CBD5E1;
  max-width: 1100px;
  line-height: 1.6;
}

.cover-clean-meta {
  display: flex;
  gap: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px 48px;
  margin-top: 20px;
}

.cover-clean-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

/* Section Divider Cover */
.slide-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #311042 100%);
  color: #FFFFFF;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.section-box {
  max-width: 1100px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.section-pill {
  background: rgba(232, 80, 35, 0.15);
  border: 1.5px solid var(--flux-orange);
  color: var(--flux-orange-light);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 800;
}

.section-title {
  font-size: 58px;
  font-weight: 900;
  color: #FFFFFF;
}

.section-desc {
  font-size: 26px;
  color: #CBD5E1;
  line-height: 1.6;
}

/* Final Slide 17 Cover (Only "شكراً" and FLUX Logo) */
.slide-thankyou-clean {
  background: radial-gradient(circle at center, #1E1B4B 0%, #0F172A 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 48px;
}

.thankyou-logo {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(232, 80, 35, 0.4));
}

.thankyou-title {
  font-size: 96px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -1px;
}

/* Tables */
.table-custom-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  background: #FFFFFF;
}

.table-custom th {
  background: #F1F5F9;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
  padding: 16px 24px;
  border-bottom: 2px solid var(--border-card);
}

.table-custom td {
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-body);
  border-bottom: 1px solid #F1F5F9;
}

.table-custom tr:nth-child(even) { background: #F8FAFC; }

.pill-badge {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
}
.pill-purple { background: #F3E8FF; color: var(--gydr-purple-dark); }
.pill-orange { background: #FFF7ED; color: #C2410C; }
.pill-green { background: #ECFDF5; color: #047857; }
.pill-blue { background: #EFF6FF; color: #1D4ED8; }

/* Controls Floating Bar */
.controls-floating-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  direction: ltr;
}

.control-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--gydr-purple);
  transform: scale(1.1);
}

.control-counter {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  padding: 0 10px;
  font-family: monospace;
}

/* Modal Drawer */
.overview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 50px;
  overflow-y: auto;
}

.overview-modal.active { display: flex; }

.overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  margin-bottom: 30px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.overview-thumb {
  background: #1E293B;
  border: 2px solid #334155;
  border-radius: 14px;
  aspect-ratio: 16/9;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FFFFFF;
}

.overview-thumb:hover {
  border-color: var(--gydr-purple);
  transform: scale(1.03);
}

.overview-thumb-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--flux-orange);
}

.overview-thumb-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}
