:root {
  --pool-primary: #0071C2;
  --pool-primary-dark: #005A9C;
  --pool-secondary: #FFB300;
  --pool-dark: #121A2F;
  --pool-gray: #F8F9FA;
  --pool-gray-dark: #EEF2F6;
  --pool-text: #64748B;
  --pool-heading: #0F172A;
  --pool-white: #FFFFFF;
  --pool-radius-lg: 24px;
  --pool-radius-md: 16px;
  --pool-radius-pill: 50px;
  --pool-shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.04);
  --pool-shadow-hover: 0 25px 50px rgba(0, 113, 194, 0.12);
}

/* Fix global overflow hiding that breaks position: sticky */
html, body {
  overflow-x: clip !important;
}

.pool-landing {
  background-color: var(--pool-white);
  color: var(--pool-text);
  font-family: 'Tajawal', 'Cairo', 'Almarai', sans-serif;
  overflow-x: clip;
  line-height: 1.8;
}

.pool-landing h1, .pool-landing h2, .pool-landing h3, .pool-landing h4, .pool-landing h5, .pool-landing h6 {
  color: var(--pool-heading);
  font-weight: 800;
  margin-top: 0;
  letter-spacing: -0.5px;
}

.pool-landing section {
  padding: 120px 0;
}

.pool-landing .gray-bg {
  background-color: var(--pool-gray);
}

/* Section Headings */
.pool-landing .section_heading {
  margin-bottom: 60px;
  position: relative;
}

.pool-landing .section_heading_title_small {
  display: inline-block;
  color: var(--pool-primary);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  padding: 8px 20px;
  background: rgba(0, 113, 194, 0.08);
  border-radius: var(--pool-radius-pill);
}

.pool-landing .section_heading_title_big {
  font-size: 46px;
  line-height: 1.25;
}

/* Premium Buttons */
.pool-landing .btn-1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 45px;
  background-color: var(--pool-primary);
  color: var(--pool-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--pool-radius-pill);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 113, 194, 0.2);
  transition: all 0.5s ease;
  border: none;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.pool-landing .btn-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--pool-secondary);
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pool-landing .btn-1:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 179, 0, 0.3);
  color: var(--pool-heading);
}

.pool-landing .btn-1:hover::before {
  width: 100%;
}

.pool-landing .btn-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 45px;
  background-color: transparent;
  color: var(--pool-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--pool-radius-pill);
  text-decoration: none;
  transition: all 0.5s ease;
  border: 2px solid var(--pool-white);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pool-landing .btn-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--pool-white);
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pool-landing .btn-2:hover {
  transform: translateY(-5px);
  color: var(--pool-primary);
  border-color: var(--pool-white);
}

.pool-landing .btn-2:hover::before {
  width: 100%;
}

/* Scroll Video Hero Section */
.pool-hero-scroll-container {
  /* Height defines how long the scroll animation lasts. 
     300vh means the user scrolls for 3 screens before moving past the hero. */
  height: 400vh;
  position: relative;
  background-color: var(--pool-dark);
  padding: 0 !important;
  margin: 0 !important;
}

.pool-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.pool-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(0, 113, 194, 0.4) 100%);
  z-index: 2;
}

.pool-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100%;
}

.hero-text-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-text-slide h1 {
  font-size: 68px;
  color: var(--pool-white);
  margin-bottom: 30px;
  line-height: 1.15;
}

.hero-text-slide p.lead {
  font-size: 22px;
  color: #F1F5F9;
  margin-bottom: 50px;
  font-weight: 400;
}

/* Feature Cards (Icons) */
.pool-feature-card {
  background-color: var(--pool-white);
  border-radius: var(--pool-radius-lg);
  box-shadow: var(--pool-shadow-soft);
  padding: 50px 40px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0,0,0,0.02);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pool-feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--pool-primary), var(--pool-secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pool-feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--pool-shadow-hover);
}

.pool-feature-card:hover::after {
  opacity: 1;
}

.pool-feature-card .icon-box {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #F0F7FF 0%, #E0F0FF 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  transition: all 0.5s ease;
}

.pool-feature-card:hover .icon-box {
  background: var(--pool-primary);
  transform: scale(1.05) rotate(5deg);
}

.pool-feature-card i {
  font-size: 38px;
  color: var(--pool-primary);
  transition: all 0.5s ease;
}

.pool-feature-card:hover i {
  color: var(--pool-white);
}

.pool-feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

/* Premium Solution Cards */
.pool-solution-card {
  position: relative;
  border-radius: var(--pool-radius-lg);
  overflow: hidden;
  height: 420px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--pool-shadow-soft);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: flex-end;
  padding: 40px 30px;
  z-index: 1;
}

.pool-solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 50%, transparent 100%);
  z-index: -1;
  transition: all 0.5s ease;
}

.pool-solution-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--pool-shadow-hover);
}

.pool-solution-card:hover::before {
  background: linear-gradient(to top, rgba(0, 113, 194, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.pool-solution-card-content {
  color: var(--pool-white);
  transition: transform 0.5s ease;
  transform: translateY(45px);
  width: 100%;
}

.pool-solution-card:hover .pool-solution-card-content {
  transform: translateY(0);
}

.pool-solution-card .icon-box {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--pool-secondary);
  margin-bottom: 25px;
  transition: all 0.5s ease;
}

.pool-solution-card:hover .icon-box {
  background: var(--pool-secondary);
  color: var(--pool-heading);
  transform: scale(1.1);
}

.pool-solution-card h3 {
  color: var(--pool-white);
  font-size: 26px;
  margin-bottom: 0;
  transition: all 0.5s ease;
}

.pool-solution-card:hover h3 {
  margin-bottom: 15px;
}

.pool-solution-card p {
  opacity: 0;
  color: #E2E8F0;
  transition: all 0.5s ease;
  font-size: 16px;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.pool-solution-card:hover p {
  opacity: 1;
  max-height: 100px;
}
.pool-service-card {
  border-radius: var(--pool-radius-lg);
  overflow: hidden;
  box-shadow: var(--pool-shadow-soft);
  background: var(--pool-white);
  height: 100%;
  transition: all 0.5s ease;
}

.pool-service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--pool-shadow-hover);
}

.pool-service-card .img-box {
  position: relative;
  overflow: hidden;
}

.pool-service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pool-service-card:hover img {
  transform: scale(1.08);
}

.pool-service-card .content-box {
  padding: 35px;
}

.pool-service-card h4 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* Steps (How it works) */
.pool-step-box {
  text-align: center;
  position: relative;
  padding: 30px 20px;
  transition: transform 0.4s ease;
}

.pool-step-box:hover {
  transform: translateY(-8px);
}

.pool-step-box .step-number {
  width: 70px;
  height: 70px;
  background: var(--pool-white);
  color: var(--pool-primary);
  border: 2px dashed var(--pool-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
}

.pool-step-box:hover .step-number {
  background: var(--pool-primary);
  color: var(--pool-white);
  border-style: solid;
  box-shadow: 0 10px 25px rgba(0,113,194,0.3);
}

.pool-step-box h4 {
  font-size: 22px;
  margin-bottom: 15px;
}

/* Form Wrapper */
.pool-form-wrapper {
  background-color: var(--pool-white);
  padding: 60px;
  border-radius: var(--pool-radius-lg);
  box-shadow: 0 25px 70px rgba(0,0,0,0.06);
}

.pool-form-wrapper .form-control, .pool-form-wrapper .form-select {
  background-color: var(--pool-gray-dark);
  border: 1px solid transparent;
  padding: 15px 25px;
  border-radius: var(--pool-radius-md);
  height: 60px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.pool-form-wrapper textarea.form-control {
  height: auto;
  border-radius: var(--pool-radius-md);
}

.pool-form-wrapper .form-control:focus, .pool-form-wrapper .form-select:focus {
  border-color: var(--pool-primary);
  background-color: var(--pool-white);
  box-shadow: 0 0 0 4px rgba(0,113,194,0.1);
}

.pool-form-wrapper label {
  font-weight: 700;
  color: var(--pool-heading);
  margin-bottom: 10px;
  font-size: 15px;
}

/* FAQ Accordion */
.pool-accordion .accordion-item {
  border: none;
  border-radius: var(--pool-radius-md) !important;
  margin-bottom: 20px;
  background-color: var(--pool-white);
  box-shadow: var(--pool-shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
}

.pool-accordion .accordion-button {
  font-weight: 800;
  color: var(--pool-heading);
  padding: 25px;
  background-color: var(--pool-white);
  box-shadow: none;
  font-size: 18px;
}

.pool-accordion .accordion-button:not(.collapsed) {
  background-color: var(--pool-primary);
  color: var(--pool-white);
}

.pool-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.pool-accordion .accordion-body {
  padding: 25px;
  color: var(--pool-text);
  background-color: var(--pool-white);
  font-size: 16px;
}

/* About Section Image */
.pool-about-img {
  position: relative;
  border-radius: var(--pool-radius-lg);
}

.pool-about-img::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--pool-primary);
  border-radius: var(--pool-radius-lg);
  z-index: 0;
  opacity: 0.1;
}

.pool-about-img img {
  border-radius: var(--pool-radius-lg);
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: var(--pool-shadow-soft);
}
