﻿/* CSS Reset and Variables */
:root {
    --primary-color: #007bff;
    --text-color: #e0e0e0;
    /* Light Gray for Dark Mode */
    --bg-color: #050505;
    /* Deep Black Base */
    --hero-overlay-color: rgba(0, 0, 0, 0.7);
    --curve-radius: 15vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Dubai', 'Dubai Medium', 'Dubai-Medium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

body {
    font-family: 'Dubai', 'Dubai Medium', 'Dubai-Medium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: clip;
}

html {
    overflow-x: clip;
}

/* --- Contrast Aurora Background (Magic Hit) --- */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* Behind everything */
    background: #02040a;
    /* Darker than pure black, slight blue tint base */
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    filter: blur(100px);
    /* Strong blur for magic feel */
    opacity: 0.5;
    animation: floatAurora 20s infinite alternate;
}

/* Blob 1: Brand Blue Hit (Top Right) */
.aurora-1 {
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.3) 0%, transparent 70%);
}

/* Blob 2: Cyan Hit (Bottom Left) */
.aurora-2 {
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(77, 171, 247, 0.25) 0%, transparent 70%);
    animation-delay: -5s;
    animation-duration: 25s;
}

/* Blob 3: Deep Navy Shadow (Center - Moving) */
.aurora-3 {
    top: 30%;
    left: 30%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(10, 17, 40, 0.6) 0%, transparent 80%);
    animation-delay: -10s;
}

@keyframes floatAurora {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* --- Menu Styles from Index --- */
/* Hamburger Button */
.hamburger-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 12px 4px rgba(255, 255, 255, 0.22);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s, background 0.3s ease;
}

.hamburger-btn::before,
.hamburger-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hamburger-btn::before {
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.hamburger-btn::after {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn.active {
  transform: rotate(135deg);
  transition-delay: 0.2s;
}

.hamburger-btn .bar {
  position: absolute;
  left: 15px;
  width: 30px;
  height: 3px;
  background-color: #7a7f87;
  border-radius: 2px;
  transition: top 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s,
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s,
    opacity 0s linear 0.4s;
}

.hamburger-btn .bar:nth-child(1) {
  top: 19px;
}

.hamburger-btn .bar:nth-child(2) {
  top: 29px;
}

.hamburger-btn .bar:nth-child(3) {
  top: 39px;
}

.hamburger-btn.active .bar {
  transition: top 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0s,
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s,
    opacity 0s linear 0.2s;
}

.hamburger-btn.active .bar:nth-child(1) {
  top: 29px;
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
  top: 29px;
  transform: rotate(90deg);
}

body.menu-open>*:not(.menu-overlay):not(.hamburger-btn) {
  filter: blur(5px);
  pointer-events: none;
  /* Prevent clicks on blurred content */
}

.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 80%;
  height: 100%;
  background-color: #1f2f5f;
  z-index: 1999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.menu-overlay.active {
  visibility: visible;
  transform: translateX(0);
}

.menu-content {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  width: 100%;
  /* Ensure full width for centering */
}

.menu-overlay.active .menu-content {
  opacity: 1;
  transform: translateY(0);
}

.menu-logo {
  max-width: 210px;
  margin-top: 3rem;
  /* Lower logo */
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  /* Separator Line */
  filter: none;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Tighter spacing */
  align-items: center;
  /* Center items */
}

.menu-link {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.25rem;
  /* Smaller, cleaner font size */
  font-weight: 500;
  /* Slightly lighter weight */
  color: #f3f6ff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center content */
  gap: 12px;
  /* Reduced gap */
  width: auto;
  /* Allow width to fit content */
  min-width: 180px;
  /* Reduced min-width */
  /* Minimum width for touch target */
  padding: 0.8rem 15px;
  /* Reduced padding */
  /* Reduced padding */
  box-sizing: border-box;
}

.menu-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.menu-link:hover svg,
.menu-link.active svg {
  transform: scale(1.1) rotate(-5deg);
}

.menu-link::after,
.menu-link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #4dabf7, #fdfcf5);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.menu-link::before {
  top: 0;
  bottom: auto;
  transform-origin: left;
}

.menu-link:hover,
.menu-link.active {
  color: #ffffff;
  transform: scale(1.05);
}

.menu-link:hover::after,
.menu-link:hover::before,
.menu-link.active::after,
.menu-link.active::before {
  transform: scaleX(1);
}

/* Glassy Header */
/* Hero Section */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    overflow-x: clip;
    background-color: #050505;
    /* Deep Black Base */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    /* Centering */
    z-index: 1;
    will-change: transform;
    /* Optimize for parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glassmorphism gradient */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: none;
    /* Glass effect */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: -100px;
    /* Shift content up */
    /* Animation for content */
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 1.5s;
}

.hero-logo {
    max-width: 1050px;
    /* Reduced from 1200px */
    width: 95%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease-out;
    /* Smooth fast transition */
}

.hero-logo.scrolled {
    transform: translateY(-100px) scale(0.95);
    /* Prepare to exit up */
    opacity: 0;
}

.hero-text-wrapper {
    margin-top: -150px;
    /* Moved from title to wrapper */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease-out;
    position: relative;
    z-index: 2;
    /* Ensure it layers correctly */
}

.hero-text-wrapper.scrolled {
    transform: translateY(-100px) scale(0.95);
    opacity: 0;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    /* opacity: 0;  Removed base opacity from parent */
    /* animation: fadeIn 1.5s ease-out forwards; Removed base animation from parent */
    /* animation-delay: 2.5s; Removed */

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    /* Space between words */
}

.word-span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animations */
@keyframes fadeIn {

    /* Kept for other elements if needed */
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 200px;
    }
}

/* Placeholder Sections */
.content-section {
    padding: 100px 20px;
    min-height: 100vh;
    /* Make them tall enough to scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-section h2 {
    font-size: 3rem;
    color: var(--text-color);
    opacity: 0.5;
}

/* Curved Section Logic */
:root {
    --curve-radius: 15vw;
    --curve-radius: 15vw;
    --sec-2-bg: #1a2c5a;
    /* High contrast radial gradient: Darker Center (#233b76) -> Lighter Edges (#4a6fa5) to simulate reflection */
    --sec-2-gradient: radial-gradient(circle, #233b76 30%, #4a6fa5 100%);
    --sec-3-bg: #f8f9fa;
    /* Changed from Dark Blue to Light Gray for Services */
    --hero-bottom-color: #050505;
}

/* Base Stacking & Curve Setup */
.hero-section,
.content-section {
    position: relative;
    border-bottom-right-radius: var(--curve-radius);
}

/* Layering & Overlap */
.hero-section {
    z-index: 10;
}

/* Legacy sec-1 removed to fix overlap */

/* Legacy sec-2 removed */

.sec-3 {
    z-index: 7;
    margin-top: calc(var(--curve-radius) * -1);
    padding-top: calc(var(--curve-radius) * 2);
    /* For the last section, we might not need the curve at the bottom,
       but we keep the top overlap logic. */
    border-bottom-right-radius: 0;
    /* Remove bottom curve for last section */
    /* Reset for the last section if it has no follower?
   If Sec 3 is the last, it shouldn't have an ::after mask
   unless there is a footer with a specific color.
   Assuming white/footer color. Disable for now if unknown. */
}

.sec-3::after {
    display: none;
}

/* --- Section 2: What is Franchise Styles --- */

.sec-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* For 3D element bounds */
}

.glass-container {
    position: relative;
    width: 90%;
    /* Widened */
    max-width: 1400px;
    /* Increased max-width */
    padding: 0;
    margin-top: 0;
    /* Reset margin */
    /* background, border, shadow removed */
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    /* Increased gap since no padding */
    flex-wrap: wrap;
    /* Responsive */
}

.glass-content {
    flex: 1;
    text-align: right;
    /* RTL */
    z-index: 2;
}

/* Typography Breakdown */
.franchise-def {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff !important;
    /* Restoring Hero Blue */
    opacity: 1 !important;
    /* Restoring Opacity */
    margin-bottom: 0.5rem;
    /* Reduced from 1.5rem */
    line-height: 1.3;
}

.highlight-blue {
    position: relative;
    display: inline-block;
    color: inherit;
    z-index: 1;
    /* Ensure text is on top */
}

.highlight-blue::after {
    content: '';
    position: absolute;
    bottom: 2px;
    /* moved down slightly */
    left: 0;
    width: 100%;
    height: 12px;
    /* Thicker line */
    background-color: #4dabf7;
    opacity: 0.4;
    /* More visible opacity */
    z-index: -1;
    /* Behind text */
    border-radius: 4px;
}

.franchise-val {
    font-family: 'Almarai', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #000000 !important;
    /* Black Forced */
    margin-bottom: 0;
    line-height: 1.8;
}

.franchise-result {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4dabf7;
    /* Light Blue accent */
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.franchise-result:hover {
    transform: translateX(-10px);
    /* Move left because RTL */
}

/* 3D Abstract Element (Floating Cube) */
.abstract-shape {
    position: relative;
    width: 180px;
    height: 180px;
    perspective: 1000px;
}

.key-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure image fits */
    filter: drop-shadow(0 10px 15px rgba(191, 165, 125, 0.3));
    animation: floatKey 6s ease-in-out infinite;
    transform-origin: center center;
}

/* Keyframes */
@keyframes rotateKey {
    0% {
        transform: rotateY(0deg) rotateZ(0deg);
    }

    50% {
        transform: rotateY(180deg) rotateZ(10deg);
    }

    100% {
        transform: rotateY(360deg) rotateZ(0deg);
    }
}

@keyframes floatKey {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .glass-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .glass-content {
        text-align: center;
    }

    .abstract-shape {
        width: 100px;
        height: 100px;
    }
}

/* Left Side Downward Curve (Extensions) */
/* The pattern: Extend the UPPER section DOWN using ::before (solid)
   and mask it with ::after (next section color + radius) */

/* Hero -> Sec 1 */
.hero-section::before {
    content: "";
    position: absolute;
    top: 100%;
    /* Extend downwards */
    left: 0;
    width: var(--curve-radius);
    height: var(--curve-radius);
    background-color: #050505;
    z-index: 1;
    /* Behind the mask */
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--curve-radius);
    height: var(--curve-radius);
    background-color: #050505;
    /* Next section color */
    border-top-left-radius: var(--curve-radius);
    z-index: 2;
    /* Sits on top of the extend square */
}

/* Sec 1 -> Sec 2 */
.sec-1::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--curve-radius);
    height: var(--curve-radius);
    background-color: #050505;
    z-index: 1;
}

.sec-1::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--curve-radius);
    height: var(--curve-radius);
    background-color: #050505;
    /* Sec-2 is now Black too */
    border-top-left-radius: var(--curve-radius);
    z-index: 2;
}

/* Sec 2 -> Sec 3 */
.sec-2::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--curve-radius);
    height: var(--curve-radius);
    background: var(--sec-2-gradient);
    /* Must be background, not background-color */
    z-index: 1;
}

.sec-2::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--curve-radius);
    height: var(--curve-radius);
    background-color: #ffffff;
    /* Corrected to White to match footer/body */
    border-top-left-radius: var(--curve-radius);
    z-index: 2;
}

/* Sec 3 (Last) - No extension needed */
.sec-3::before,
.sec-3::after {
    display: none;
}

/* --- Section 3: Why Us Styles --- */
.why-us-container {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 5;
}

.section-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-family: 'Almarai', sans-serif;
    font-size: 1.3rem;
    color: #000000;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #233b76;
    /* Branding Blue */
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    /* Reduced from 50px */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 59, 118, 0.3);
}

.cta-button:hover {
    background-color: #1a2c5a;
    /* Darker Navy */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(35, 59, 118, 0.4);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(-5px);
    /* Move arrow left for RTL */
}

/* --- Section 2: Brands Grid Styles --- */
/* Overrides for Sec 2 when it's the Brands Section */
.sec-2 .section-title {
    color: #fdfcf5 !important;
    /* Pearl White */
}

.sec-2 .section-desc {
    color: #fdfcf5 !important;
    /* Pearl White */
}

.brands-container {
    max-width: 1400px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 5;
    margin-top: -8rem;
    /* Lifted higher (-3rem -> -8rem) */
    /* Lift content up into the curve */
}

.brands-grid {
    display: flex;
    /* Horizontal Layout as requested */
    justify-content: center;

    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    /* Allow wrap on small screens */
}

.brand-card {
    flex: 1;
    min-width: 180px;
    /* Minimum width for readability */
    max-width: 250px;
    background: rgba(255, 255, 255, 0.03);
    /* Very transparent */
    /* Slight transparent bg */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(77, 171, 247, 0.4);
    /* Blue Glow */
}

.brand-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: bold;
}

.brand-name {
    font-family: 'Almarai', sans-serif;
    font-size: 1.1rem;
    color: #fdfcf5;
    /* Pearl White */
    margin: 0;
}

/* Button Variant for Dark Background */
.cta-button.btn-light {
    background-color: #fff;
    color: #233b76;
}

.cta-button.btn-light:hover {
    background-color: #f8f9fa;
    color: #1a2c5a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cta-button.btn-light svg {
    stroke: #233b76;
}

.cta-button.btn-light:hover svg {
    stroke: #1a2c5a;
}

/* --- Section 3: Services Zig-Zag Styles --- */
.services-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 4rem;
    /* Spacing */
    z-index: 5;
    position: relative;
    padding-top: 4rem;
    margin-top: -8rem;
    /* Lift content significantly */
}

.text-dark {
    color: #1a2c5a !important;
}

.text-gray {
    color: #000000 !important;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* Minimum gap */
    margin-bottom: 0;
    /* Zero margin */
    width: 100%;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
    text-align: right;
    padding: 0 1rem;
    /* Inner padding for text safety */
}

.service-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.service-image {
    flex: 1;
    position: relative;
}

/* Services Visuals */
.service-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    /* Reduced from 400px to bring rows closer */
}

.service-3d-icon {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
    animation: floatIcon 6s ease-in-out infinite;
}

.service-row:hover .service-3d-icon {
    transform: scale(1.05) rotate(2deg);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.watermark-number {
    position: absolute;
    font-size: 15rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: rgba(35, 59, 118, 0.1);
    /* Extremely faint brand blue */
    z-index: 1;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Scroll Reveal Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.delay-100 {
    transition-delay: 0.1s;
}

.reveal-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

.reveal-on-scroll.delay-300 {
    transition-delay: 0.3s;
}

.reveal-on-scroll.delay-400 {
    transition-delay: 0.4s;
}

.service-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a2c5a;
    margin-bottom: 1rem;
}

.service-text {
    font-family: 'Almarai', sans-serif;
    font-size: 1.15rem;
    color: #000000;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.text-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #233b76;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: #4dabf7;
    margin-right: 5px;
}

@media (max-width: 992px) {

    .service-row,
    .service-row.reverse {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .service-content {
        text-align: center;
    }

    .placeholder-img {
        height: 250px;
    }
}

/* Consultation CTA Card */
.consultation-cta {
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.consultation-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(26, 44, 90, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-bg-icon {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 250px;
    height: 250px;
    opacity: 0.05;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
    stroke: #233b76;
    /* Use stroke for SVG */
    fill: none;
}

.consultation-card>*:not(.card-bg-icon) {
    position: relative;
    z-index: 2;
}

.consultation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #233b76;
    /* Brand Blue */
}

.cta-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1.8rem;
    color: #1a2c5a;
    margin-bottom: 1rem;
}

.cta-desc {
    font-family: 'Almarai', sans-serif;
    color: #000000;
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.input-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.input-group.full-width {
    width: 100%;
    flex-basis: 100%;
}

.cta-input {
    width: 100%;
    /* Fill the group */
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: 'Almarai', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: transparent;
    /* allow label to show through if needed, though usually label is on top */
}

.cta-input.subject-input {
    resize: vertical;
    min-height: 100px;
}

.input-label {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: #a0aec0;
    font-family: 'Almarai', sans-serif;
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: rgba(255, 255, 255);
    /* Hide border line behind label */
    padding: 0 0.5rem;
}

/* Floating Label Logic */
.cta-input:focus~.input-label,
.cta-input:not(:placeholder-shown)~.input-label {
    top: -0.8rem;
    right: 0.8rem;
    font-size: 0.85rem;
    color: #233b76;
    font-weight: 600;
}

.cta-input:focus {
    border-color: #233b76;
    box-shadow: 0 0 0 3px rgba(35, 59, 118, 0.1);
}

.cta-submit {
    background: #233b76;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    /* Reduced radius */
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-submit:hover {
    background: #1a2c5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(35, 59, 118, 0.2);
}

/* Ensure Sec 2 tail flows into Sec 3 color */
.sec-2::after {
    background-color: var(--sec-3-bg) !important;
}

/* Cinematic Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    animation: none;
}

@keyframes noiseAnimation {
    0% {
        background-position: 0 0;
    }

    20% {
        background-position: 20px -20px;
    }

    40% {
        background-position: -20px 20px;
    }

    60% {
        background-position: 20px 20px;
    }

    80% {
        background-position: -20px -20px;
    }

    100% {
        background-position: 0 0;
    }
}

/* --- Background Pattern --- */
.bg-pattern-left {
    position: absolute;
    top: 70%;
    left: -5%;
    /* Percentage relative to container width */
    transform: translateY(-50%);
    width: 30%;
    /* Responsive width */
    min-width: 350px;
    /* Minimum size */
    z-index: 0;
    /* Behind content (glass-container is 5, sec-1 is section) */
    pointer-events: none;
    opacity: 0.08;
    /* Very subtle transparency */
    mix-blend-mode: multiply;
}

.bg-pattern-left img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ensure glass container stays on top */
.glass-container {
    z-index: 5;
    position: relative;
}

@media (max-width: 768px) {
    .bg-pattern-left {
        left: -20%;
        width: 60%;
        opacity: 0.05;
    }
}

/* --- Swapped Hero Styles from Why Us Page --- */
.hero {
    position: relative;
    z-index: 5;
    background-color: #0e2a47;
    border-bottom-right-radius: 15vw;
    width: 100%;
    min-height: 700px;
    height: 100vh;
    /* Adjusted for index */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: "";
    background-color: #0e2a47;
    position: absolute;
    top: 100%;
    left: 0;
    width: 15vw;
    height: 15vw;
    z-index: 1;
    /* Match z-index logic */
}

/* Ensure continuity with next section if needed, though index.html has its own curve logic.
   In index.html, sec-1 has negative margin-top.
   The original hero-section had z-index 10.
   We should probably give .hero z-index 10 to match.
*/
.hero {
    z-index: 10;
}

.video-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-bottom-right-radius: 15vw;
    pointer-events: none;
    top: 0;
    left: 0;
}

#video-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    min-width: 100%;
    background-position: center center;
    background-size: cover;
    object-fit: cover;
    transform: rotate(180deg);
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(33, 33, 33, 0) 0%, #0e2a47 50%);
    z-index: 1;
    border-bottom-right-radius: 15vw;
    pointer-events: none;
}

.hero .content {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
    /* mb-5 approx */
    z-index: 2;
}

.hero-title.blend {
    font-size: 5rem;
    /* Large size */
    line-height: 1em;
    font-weight: 900;
    mix-blend-mode: difference;
    color: #efefef;
    position: relative;
    z-index: 2;
    font-family: 'Dubai', 'Almarai', sans-serif;
    /* Prioritize desired font */
}

@media screen and (max-width: 767px) {
    .hero .hero-title.blend {
        font-size: 15vw;
    }
}

/* --- Section 2: Why Will You Succeed? (Glassmorphism Grid) --- */
.success-grid {
    display: grid;
    /* Use auto-fit with smaller minmax to allow cards to be smaller */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
    max-width: 1100px;
    /* Constrain width to keep cards from getting too huge */
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    /* Very transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.glass-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #233b76;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(77, 171, 247, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    color: #4dabf7;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.glass-card:hover .card-icon-box {
    background: #233b76;
    color: #ffffff;
    transform: scale(1.06);
    border-color: #233b76;
    box-shadow: 0 8px 20px rgba(35, 59, 118, 0.35);
}

.glass-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.glass-text {
    font-family: 'Outfit', sans-serif;
    /* Using Outfit for cleaner modern look even for Arabic if supported, else fallback */
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* --- CEO Message / Support Services Style Image --- */
.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    display: block;
    /* Changed from inline-block to block for margin auto to work */
    width: 100%;
    max-width: 450px;
    /* Moved max-width here */
    margin: 0 auto;
    /* Center the wrapper in the column */
}

/* --- Statistics Section (Parallax) --- */
.stats-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    top: -25%;
    /* Start higher to allow more movement */
    left: 0;
    width: 100%;
    height: 150%;
    /* Much taller for stronger parallax */
    /* Using 2.png as it exists in Media folder */
    background: url('../Media/prxbg.png') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    /* Disable fixed to allow JS transform */
    opacity: 1;
    z-index: 1;
    will-change: transform;
}

/* Dark overlay for readability */
.stats-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 44, 90, 0.85);
    /* Dark Brand Blue Overlay */
}

.stats-item {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-5px);
}

.stats-icon svg {
    width: 48px;
    height: 48px;
    /* stroke: #4dabf7; */
    stroke: #fff;
    opacity: 0.9;
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(35, 59, 118, 0.9), transparent);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-img {
    width: 100%;
    /* max-width removed here as it's controlled by wrapper */
    height: auto;
    object-fit: cover;
    border-radius: 20px !important;
    display: block;
    /* Animation derived from index.html */
    animation: breathingZoom 8s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes breathingZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.ceo-signature {
    margin-top: 1.5rem;
    font-weight: 700;
    color: #1a2c5a;
}

/* --- Projects Journey (Bento Grid) --- */
.projects-section {
    position: relative;
    z-index: 6;
    overflow: hidden;
    overflow-x: clip;
    /* Contain magic glows */
    /* Below sec-3 (z-index 7) */
    /* Ensure it acts as a curved container */
    padding: 6rem 0 8rem 0;
    /* Extra padding bottom for the curve visual balance if needed, but the border radius handles shape */
    background: linear-gradient(to bottom, transparent 0%, #050505 80%, #050505 100%);
    /* Gradient: Solid black earlier to ensure seamless blending */
    border-bottom-left-radius: var(--curve-radius);
    /* Flipped to LEFT */
    border-bottom-right-radius: 0;
    /* padding-bottom: 8rem; Removed to respect 15vw */
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    grid-auto-rows: 250px;
    /* Base height for standard items */
}

/* --- Consultation CTA Section (Curved Integration) --- */
/* --- Consultation CTA Section (Curved Integration) --- */
.cta-section {
    position: relative;
    z-index: 5;
    overflow: hidden;
    overflow-x: clip;
    /* Contain magic glows */
    margin-top: calc(var(--curve-radius) * -1);
    /* Overlap previous section */
    padding-top: calc(var(--curve-radius) * 1.35);
    /* Adjusted to 1.35 for balanced spacing */
    /* Push content down past overlap */
    padding-bottom: 6rem;
    background: #050505;
    /* Deep Black with Magic Strikes */
    color: #ffffff;
    /* White Text */
    border-bottom-right-radius: 0;
    /* Last section usually flat, or curved if desired */
    /* Optional: Curve the bottom of CTA too? Defaulting to flat as it hits footer. */
}

.cta-content {
    /* Container styling is handled by section, focusing on text layout */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ddd;
    /* Skeleton color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover Effects */
.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.bento-item:hover img {
    transform: scale(1.1);
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

/* Overlay Styling */
.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(26, 44, 90, 0.9), transparent);
    color: #fff;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* .bento-overlay h3 removed as per user request */

.bento-overlay p {
    font-size: 1.1rem;
    /* Increased size for better visibility */
    font-weight: 700;
    /* Bold */
    color: #fff;
    /* White */
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Grid Spans */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    /* Reset spans on mobile for simple stack */
    .item-large,
    .item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- Shared Typography --- */
h2.section-title,
.section-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    opacity: 1;
    /* Override default opacity of 0.5 from .content-section */
}

/* --- Section 1: Black & Blue Magic --- */
.sec-1 {
    background-color: #050505;
    /* Deep Black Force */
    position: relative;
    overflow: hidden;
    z-index: 5;
    /* Restored visibility (was 2, now 5) */
    padding-top: 6rem;
    padding-bottom: 10rem;
    /* Reduced from 20rem to fix empty space */
    margin-top: 0 !important;
    /* Force reset */
}

/* Blue Blur Hit (Top Left) - Tamed */
.sec-1::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* Cyan Blur Hit (Bottom Right) - Tamed */
/* Cyan Blur Hit (Bottom Right) - Removed */
.sec-1::after {
    display: none;
}

.sec-1 .glass-container {
    z-index: 2;
    /* Content above glow */
}

/* Typography Overrides for Sec-1 */
.sec-1 .franchise-def {
    color: #ffffff !important;
    /* White Title */
}

.sec-1 .franchise-val {
    color: #e0e0e0 !important;
    /* Light Gray Text */
}

.sec-1 .highlight-blue {
    /* Ensure the blue underline/text pops */
    color: #fff !important;
    text-shadow: none;
}

/* --- Section 2: Why You Will Succeed (Royal Blue & Black Magic) --- */
.sec-2 {
    background-color: #050505;
    /* Deep Black to match Sec-1 */
    position: relative;
    z-index: 6;
    /* Below Sec-1 */
    padding: 8rem 0 10rem 0;
    margin-top: -8rem;
    /* Pull up slightly less to account for reduced padding in sec-1 */
    /* Pull up to overlap with Sec-1's bottom padding */
    overflow: hidden;
    overflow-x: clip;
}

/* Black Blur Hit (Top Right) - The "Black Touch" */
.sec-2::before {
    display: none;
}

/* Cyan/Blue Blur Hit (Bottom Left) - Removed to fix "White Spot" */
.sec-2::after {
    display: none;
}

.sec-2 .container {
    position: relative;
    z-index: 2;
}

.sec-2 .container {
    position: relative;
    z-index: 2;
}

/* --- Magic Glow Hits (Random Blue Strikes) --- */
/* --- Magic Glow Hits (Random Blue Strikes) --- */
.magic-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 1;
    /* Above bg, below content */
    pointer-events: none;
    opacity: 0.6;
    /* Restored to original */
    mix-blend-mode: screen;
    /* Light additive effect */
}

.glow-blue {
    background: radial-gradient(circle, rgba(0, 123, 255, 0.5) 0%, transparent 70%);
    /* Restored alpha */
}

.glow-cyan {
    background: radial-gradient(circle, rgba(77, 171, 247, 0.4) 0%, transparent 70%);
    /* Restored alpha */
}

.glow-indigo {
    background: radial-gradient(circle, rgba(66, 99, 235, 0.45) 0%, transparent 70%);
    /* Restored alpha */
}
/* Social Circle Icons: Matching index.html */
.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #233b76;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.social-circle:hover {
  background-color: #233b76;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(35, 59, 118, 0.2);
}

.social-circle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.main-footer {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  border-top: none !important;
}

.site-footer {
  position: relative;
  background: linear-gradient(to bottom, #050505 0%, #050505 100%);
  padding-top: 6rem;
}

.main-footer .footer-text-group a,
.main-footer .footer-text-group span {
  color: #ffffff !important;
}




