/* 
  ===================================================================
  OFFICIAL EXECUTIVE LANDING PAGE STYLES — PRIME MINISTER'S OFFICE
  جمهورية مصر العربية - المنظومة الوطنية للمتابعة الاستراتيجية
  ===================================================================
*/

/* Glassmorphic Ultra-Clean Floating Navbar */
.floating-executive-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-glass-capsule {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 16px;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(10, 25, 47, 0.1), 0 0 20px rgba(184, 134, 11, 0.12);
  transition: all 0.3s ease;
}

body.dark-theme .header-glass-capsule {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.brand-emblem-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.egypt-flag-icon {
  width: 38px;
  height: 26px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.gold-eagle-emblem-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(184, 134, 11, 0.4));
}

.clean-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(241, 245, 249, 0.7);
  padding: 0.3rem 0.5rem;
  border-radius: 99px;
  border: 1px solid rgba(203, 213, 225, 0.6);
}

body.dark-theme .clean-nav-links {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(51, 65, 85, 0.6);
}

.clean-nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.clean-nav-link:hover, .clean-nav-link.active {
  background: var(--navy-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 54, 93, 0.25);
}

body.dark-theme .clean-nav-link:hover, body.dark-theme .clean-nav-link.active {
  background: var(--gold-primary);
  color: #ffffff;
}

/* Logos Showcase Carousel Section */
.logos-showcase-section {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

body.dark-theme .logos-showcase-section {
  background: var(--bg-secondary);
}

.logos-title-badge {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--navy-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

body.dark-theme .logos-title-badge {
  color: var(--gold-primary);
}

.ministry-logo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 220px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ministry-logo-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ministry-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ministry-logo-text {
  display: flex;
  flex-direction: column;
}

.ministry-name {
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--navy-primary);
}

body.dark-theme .ministry-name {
  color: #ffffff;
}

.ministry-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hero Container & Background */
.hero-landing {
  position: relative;
  background: linear-gradient(135deg, #0a192f 0%, #1b365d 60%, #0f2744 100%);
  color: #ffffff;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-primary);
}

.hero-landing::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(27, 54, 93, 0.4) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(184, 134, 11, 0.22);
  border: 1px solid rgba(254, 240, 138, 0.6);
  color: #fef08a;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight-gold {
  background: linear-gradient(135deg, #fef08a 0%, #b8860b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  font-weight: 600;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #b8860b 0%, #8c6607 100%);
  color: #ffffff;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(184, 134, 11, 0.35);
  transition: all 0.3s ease;
  border: 1px solid rgba(254, 240, 138, 0.4);
  cursor: pointer;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(184, 134, 11, 0.5);
  background: linear-gradient(135deg, #d49b0d 0%, #9e7308 100%);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Stats Row */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  backdrop-filter: blur(16px);
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
}

.hero-stat-card:hover {
  background: rgba(27, 54, 93, 0.7);
  border-color: rgba(254, 240, 138, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: 'Outfit', 'Cairo', sans-serif;
  color: #fef08a;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-stat-lbl {
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 800;
}

/* Hero Interactive Mockup Box */
.hero-mockup-wrapper {
  position: relative;
}

.mockup-frame {
  background: #0f172a;
  border: 2px solid rgba(184, 134, 11, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(184, 134, 11, 0.2);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: #1e293b;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
  display: flex;
  gap: 0.4rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title-bar {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-body {
  padding: 1.5rem;
  background: #091322;
}

.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.mockup-kpi-box {
  background: #111e33;
  border: 1px solid #1e2e4a;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.mockup-kpi-title {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
}

.mockup-kpi-number {
  font-size: 1.45rem;
  font-weight: 900;
  color: #38bdf8;
  margin: 0.2rem 0;
}

.mockup-live-map-preview {
  height: 160px;
  background: #14243b;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(184, 134, 11, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.mockup-overlay-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
  background: var(--navy-primary);
  border: 1px solid var(--gold-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.mockup-overlay-btn:hover {
  background: var(--gold-primary);
  color: #ffffff;
}

/* Strategic Pillars Section */
.pillars-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-header-center h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-primary);
  margin-top: 0.4rem;
}

body.dark-theme .section-header-center h2 {
  color: #ffffff;
}

.section-header-center p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pillars-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

body.dark-theme .pillar-card {
  background: var(--bg-card);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1b365d 0%, #0a192f 100%);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(184, 134, 11, 0.4);
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy-primary);
  margin-bottom: 0.75rem;
}

body.dark-theme .pillar-title {
  color: #ffffff;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Feature Matrix & System Capabilities */
.features-section {
  padding: 5rem 2rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

body.dark-theme .features-section {
  background: var(--bg-secondary);
}

.features-container {
  max-width: 1440px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: all 0.25s ease;
}

.feature-box:hover {
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-md);
}

.feature-box-icon {
  font-size: 1.6rem;
  color: var(--gold-primary);
  background: rgba(184, 134, 11, 0.1);
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-box-content h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy-primary);
  margin-bottom: 0.35rem;
}

body.dark-theme .feature-box-content h3 {
  color: #ffffff;
}

.feature-box-content p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Sectors Spotlight Carousel / Grid in Landing Page */
.landing-sectors-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

/* Executive Access Banner Section */
.executive-cta-banner {
  max-width: 1440px;
  margin: 4rem auto 5rem;
  background: linear-gradient(135deg, #0a192f 0%, #1b365d 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-primary);
  padding: 3.5rem 3rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.executive-cta-banner::before {
  content: '';
  position: absolute;
  right: -50px; bottom: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-text h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.cta-banner-text p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 650px;
}

.cta-banner-actions {
  display: flex;
  gap: 1rem;
}

/* Login Modal Custom Styling */
.login-tabs-header {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.login-tab-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.login-tab-btn.active {
  color: var(--navy-primary);
  border-bottom-color: var(--gold-primary);
}

body.dark-theme .login-tab-btn.active {
  color: var(--gold-primary);
}

.form-group-official {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group-official label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy-primary);
}

body.dark-theme .form-group-official label {
  color: #ffffff;
}

.form-group-official input, .form-group-official select {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Mobile Adjustments deferred to mobile.css */

/* Executive 2.5-Second Landing Page Preloader Overlay */
.landing-preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 40%, #0a192f 0%, #050c1a 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  overflow: hidden;
  will-change: opacity, visibility;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.landing-preloader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-preloader-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(184, 134, 11, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(0);
}

.preloader-emblem-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-orbit-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #d9a01b;
  border-right-color: #fef08a;
  animation: preloaderSpin 1.2s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

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

.preloader-eagle-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b365d 0%, #0a192f 100%);
  border: 2px solid #d9a01b;
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.4);
  animation: emblemPulse 2s ease-in-out infinite;
  will-change: transform, box-shadow;
  transform: translateZ(0);
}

@keyframes emblemPulse {
  0%, 100% { transform: scale(1) translateZ(0); box-shadow: 0 0 15px rgba(184, 134, 11, 0.4); }
  50% { transform: scale(1.04) translateZ(0); box-shadow: 0 0 30px rgba(250, 204, 21, 0.7); }
}

.preloader-brand-title {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.2px;
}

.preloader-brand-sub {
  font-size: clamp(0.74rem, 2vw, 0.85rem);
  color: #facc15;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.preloader-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(184, 134, 11, 0.25);
  margin-bottom: 1rem;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #bf953f 0%, #fcf6ba 50%, #d9a01b 100%);
  box-shadow: 0 0 12px rgba(217, 160, 27, 0.6);
  transition: width 0.05s linear;
}

.preloader-status-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
}

.preloader-status-text {
  color: #cbd5e1;
  font-weight: 700;
}

.preloader-counter-text {
  color: #fef08a;
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-weight: 900;
}
