/* Vision & Mission + CEO Message Sections Styling */

.vision-mission-section {
  position: relative;
  background: #111326;
  /* fallback */
  background-image: url("../../images/about-us-section-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: clamp(4rem, 8vw, 7rem) 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Waved network and Grid background elements */
.vision-mission-section .grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: 1;
}



.vision-mission-section .wavy-flow-bg {
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  height: 90%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.vision-mission-section .container {
  width: 100%;
  max-width: none;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  position: relative;
  z-index: 3;
}

.ceo-message-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  z-index: 3;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .vision-grid {
    grid-template-columns: minmax(0, 0.5fr) 1fr minmax(0, 0.5fr);
    gap: 2.5rem;
  }
}

/* Titles and Text formatting */
.vision-title {
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 2.5rem;
  text-align: center;
  width: 100%;
  background: linear-gradient(90deg, #8CB5FF 0%, #FFFFFF 38%, #739CE2 72%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: text-glow-flow 8s ease-in-out infinite;
  padding-bottom: 5rem;
  /* border-right: 1px solid #3E3E3E; */
}

@keyframes text-glow-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.vision-content-left {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vision-desc {
  font-size: clamp(1.4rem, 0.4vw + 1.25rem, 1.6rem);
  line-height: 1.7;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

/* Custom Bullet List */
.vision-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.vision-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.95rem;
  font-size: clamp(1.4rem, 0.3vw + 1.15rem, 1.5rem);
  color: #FFFFFF;
  line-height: 1.6;
}

.vision-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background-color: #00aeef;
  border-radius: 50%;
  box-shadow: 0 0 8px #00aeef;
}

html[dir="rtl"] .vision-list li {
  padding-left: 0;
  padding-right: 1.85rem;
}

html[dir="rtl"] .vision-list li::before {
  left: auto;
  right: 0.25rem;
}

/* Center Cube Container */
.cube-column {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  align-self: center;
}

.cube-viewport {
  perspective: 1000px;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cube-3d {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  animation: auto-rotate 16s infinite linear;
  transition: transform 0.5s ease-out;
}

/* Rotate Cube continuously */
@keyframes auto-rotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

/* Speed up rotation on hover */
.cube-viewport:hover .cube-3d {
  animation-duration: 6s;
  cursor: pointer;
}

.cube-face {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 174, 239, 0.7);
  box-shadow: inset 0 0 25px rgba(0, 174, 239, 0.25), 0 0 15px rgba(0, 174, 239, 0.15);
  background: rgba(2, 8, 18, 0.55);
  backdrop-filter: blur(4px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-face video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* Face transforms */
.cube-face.front {
  transform: rotateY(0deg) translateZ(75px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(75px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(75px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(75px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(75px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(75px);
}

/* Right Column: Skyline & Secondary copy */
.skyline-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

.riyadh-skyline-container {
  width: 100%;
  height: auto;
  margin-top: 0;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.vision-content-right {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vision-content-right .vision-list {
  display: block;
  text-align: left;
  margin: 0 0 2rem 0;
}

.riyadh-skyline-svg {
  width: 100% !important;
  height: auto !important;
  display: block;
  opacity: 0;
  animation: fade-in-skyline 2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.riyadh-skyline-svg path {
  fill: rgba(0, 174, 239, 0.22);
  stroke: rgba(0, 174, 239, 0.45);
  stroke-width: 0.75px;
  transition: all 0.4s ease;
}

.riyadh-skyline-svg:hover path {
  fill: rgba(0, 174, 239, 0.45);
  stroke: rgba(0, 174, 239, 0.9);
  filter: drop-shadow(0 0 4px rgba(0, 174, 239, 0.6));
}

@keyframes fade-in-skyline {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skyline-slider-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
  padding: 0 5px;
}

.skyline-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  animation: pulse-arrow 2s infinite ease-in-out;
}

@keyframes pulse-arrow {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

/* CEO Message Section */
.ceo-message-section {
  position: relative;
  background: #111326;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: clamp(4rem, 8vw, 6rem) 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ceo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ceo-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.ceo-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.ceo-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.ceo-text {
  font-size: clamp(1.4rem, 0.4vw + 1.25rem, 1.6rem);
  line-height: 1.75;
  color: #FFFFFF;
  margin: 0;
}

.ceo-signature {
  display: inline-block;
  font-size: clamp(1.4rem, 0.3vw + 1.2rem, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #00aeef;
  text-decoration: none;
  margin-top: 1.5rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.ceo-signature:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 174, 239, 0.5);
}

/* CEO Portrait Image side */
.ceo-portrait-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ceo-image-wrapper {
  position: relative;
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ceo-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 12, 0.8) 0%, rgba(2, 6, 12, 0) 35%);
  pointer-events: none;
}

.ceo-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ceo-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .cube-column {
    min-height: 250px;
    margin: 2rem 0;
  }
}