/* :root {
  --primary-color: #72275F;
  --secondary-color: #1D152F;
  --bg-color: #fff;
  --text-color: #10111A;
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(184, 185, 209, 0.9);
} */

/* Lama Sans Font Weights */
@font-face {
    font-family: 'Lama Sans';
    src: url('../Fonts/lama-sans/LamaSans-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lama Sans';
    src: url('../Fonts/lama-sans/LamaSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lama Sans';
    src: url('../Fonts/lama-sans/LamaSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lama Sans';
    src: url('../Fonts/lama-sans/LamaSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lama Sans';
    src: url('../Fonts/lama-sans/LamaSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lama Sans';
    src: url('../Fonts/lama-sans/LamaSans-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lama Sans';
    src: url('../Fonts/lama-sans/LamaSans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Lama Sans', sans-serif;
    direction: rtl;
    text-align: right;
    background: #F4F4F4;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(184, 185, 209, 0.9);
}

/* Base Styles */
/* body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
} */

/* Hero Section with Simple Background */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at center, #1a1b3a 0%, #0a0b1e 50%, #000000 100%);
    overflow: hidden;
}

/* Two Main Color Circles - Controlled by JS */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle 400px at var(--circle1-x, 25%) var(--circle1-y, 30%), rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0.2) 40%, transparent 70%),
        radial-gradient(circle 350px at var(--circle2-x, 75%) var(--circle2-y, 70%), rgba(236, 72, 153, 0.3) 0%, rgba(236, 72, 153, 0.15) 40%, transparent 70%);
    pointer-events: none;
    transition: all 0.1s ease-out;
}

/* Animated mesh background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: meshMove 20s linear infinite;
    pointer-events: none;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
}

/* Force dark navbar on contact page */
.contact-page .navbar {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(30px) !important;
}

.contact-page .nav-links a,
.contact-page .menu-toggle span {
    color: rgba(255, 255, 255, 0.9);
}

.contact-page .nav-links a:hover,
.contact-page .nav-links a.active {
    color: #ffffff;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-direction: row-reverse;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: white;
}

.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.badge::before {
    content: '✨';
    font-size: 1rem;
}

.hero h1 {
    font-size: clamp(3rem, 4vw, 6rem);
    font-weight: 900;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8ff 30%, #d0d0ff 60%, #b8b8ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out 0.4s both;
    letter-spacing: -0.02em;
    padding-top: 120px;
}

.highlight {
    background: linear-gradient(45deg,
            #ffdaf6 0%,
            #8D3176 26%,
            #8D3176 100%);
    background-size: 300% 300%;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    position: relative;
    display: inline-block;
    transition: all 0.1s ease-out;
    font-weight: 900;
}

/* .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(45deg, #8D3176, #C4B9DF, #FFFFFF);
  opacity: 0.3;
  border-radius: 2px;
} */

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
    flex-direction: row;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--glass-bg);
    color: black !important;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8D3176 0%, #412F6A 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(141, 49, 118, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}

.btn-icon {
    margin-right: 8px;
}

/* .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
} */

.btn-primary:hover {
    background: linear-gradient(135deg, #412F6A 0%, #8D3176 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(141, 49, 118, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Floating Elements - Updated with Smooth Animation */
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: floatOrb1 30s linear infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
    bottom: 20%;
    right: -5%;
    animation: floatOrb2 35s linear infinite -12s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
    top: 60%;
    left: 80%;
    animation: floatOrb3 28s linear infinite -8s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 1.2s both;
    cursor: pointer;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes meshMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

/* Remove CSS keyframes - will be handled by JS */

@keyframes floatOrb1 {
    0% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.15;
    }

    25% {
        transform: translate(15px, -8px) scale(1.03);
        opacity: 0.18;
    }

    50% {
        transform: translate(8px, -15px) scale(0.97);
        opacity: 0.12;
    }

    75% {
        transform: translate(-8px, 10px) scale(1.05);
        opacity: 0.20;
    }

    100% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.15;
    }
}

@keyframes floatOrb2 {
    0% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.10;
    }

    20% {
        transform: translate(-12px, 5px) scale(0.95);
        opacity: 0.08;
    }

    40% {
        transform: translate(-8px, -10px) scale(1.08);
        opacity: 0.14;
    }

    60% {
        transform: translate(10px, -12px) scale(0.92);
        opacity: 0.06;
    }

    80% {
        transform: translate(15px, 8px) scale(1.02);
        opacity: 0.12;
    }

    100% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.10;
    }
}

@keyframes floatOrb3 {
    0% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.12;
    }

    30% {
        transform: translate(-6px, -8px) scale(1.06);
        opacity: 0.16;
    }

    60% {
        transform: translate(12px, 6px) scale(0.94);
        opacity: 0.08;
    }

    90% {
        transform: translate(-4px, 12px) scale(1.02);
        opacity: 0.14;
    }

    100% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.12;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1rem;
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        padding: 6rem 1rem 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .orb {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.7rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }
}


/* Social Media Floating Buttons */
.social-float {
    position: fixed;
    z-index: 1000;
    width: 100%;
    bottom: 30px;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    direction: ltr;
}

.social-float a,
.social-float button {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
}

.chat-float {
    position: relative;
}

.whatsapp-float {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    padding: 0 15px;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.whatsapp-text {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    width: 160px;
    border-radius: 30px;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float:hover .whatsapp-content {
    justify-content: flex-start;
    width: auto;
}

.social-float a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Top Navigation Area Container */
.top-nav-area {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    /* max-width: 1200px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    direction: ltr;
}

.consultation-button-container {
    flex-shrink: 0;
    order: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

.language-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-text:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Background-based color changes for language elements */
.consultation-button-container.light-bg .language-separator {
    color: rgba(0, 0, 0, 0.4);
}

.consultation-button-container.light-bg .language-text {
    color: #2B2046;
}

.consultation-button-container.light-bg .language-text:hover {
    color: rgba(43, 32, 70, 0.8);
}

.consultation-button-container.dark-bg .language-separator {
    color: rgba(255, 255, 255, 0.4);
}

.consultation-button-container.dark-bg .language-text {
    color: white;
}

.consultation-button-container.dark-bg .language-text:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 600px !important;
    flex: none;
    margin-right: 0;
    /* direction: rtl; */
    order: 2;
    gap: 2rem;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 28px;
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {

    /* Keep header contents on one line inside the glassy navbar on small screens */
    .top-nav-area {
        width: 95%;
        flex-direction: row;
        /* make single line */
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
    }

    .navbar {
        margin-right: 0;
        width: auto;
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex: 1;
    }

    .consultation-button-container .btn {
        width: auto;
        max-width: 200px;
        justify-content: center;
        padding: 8px 12px;
    }
}

/* Small-screen header alternate style and compact logo */
@media (max-width: 768px) {

    /* make navbar transparent on small screens: no background, no blur, no shadow */
    .navbar {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 !important;
        padding: 0.6rem 1rem !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }

    .top-nav-area {
        top: 1rem;
        left: 0.5rem;
        transform: none;
        width: calc(100% - 1rem);
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    /* Compact logo image size for mobile */
    .logo-image {
        height: 32px;
        width: auto;
    }
}



/* Partners Section */
.partners {
    background-color: transparent;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    max-width: 90%;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.partners-slider::before {
    left: 0;
    /* background: linear-gradient(to right, #03216e, transparent); */
}

.partners-slider::after {
    right: 0;
}

.slider-track {
    display: flex;
    animation: scroll 10s linear infinite;
    width: calc(250px * 12);
    direction: ltr;
    /* Adjust based on number of logos */
}

.slide {
    width: 250px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 6));
        /* Half the width of total slides */
    }
}

@media (max-width: 991.98px) {
    .partners {
        padding: 15px 0;
    }

    .slide {
        width: 220px;
        padding: 0 20px;
    }

    .partner-logo {
        max-height: 70px;
    }

    .slider-track {
        width: calc(220px * 12);
        animation-duration: 40s;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-220px * 6));
        }
    }
}

@media (max-width: 767.98px) {
    .partners {
        padding: 12px 0;
    }

    .slide {
        width: 180px;
        padding: 0 15px;
    }

    .partner-logo {
        max-height: 55px;
    }

    .slider-track {
        width: calc(180px * 12);
        animation-duration: 35s;
    }

    .partners-slider::before,
    .partners-slider::after {
        width: 50px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-180px * 6));
        }
    }
}

.title-with-lines {
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 1px;
    opacity: 0.9;
    position: relative;
    padding: 12px 0;
    margin-top: 20px;
    margin-bottom: 40px;
}

.title-with-lines::before,
.title-with-lines::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C4B9DF, transparent);
}

.title-with-lines::before {
    top: 0;
}

.title-with-lines::after {
    bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .title-with-lines {
        font-size: 1.4rem;
        padding: 25px 0;
    }

    .title-with-lines::before,
    .title-with-lines::after {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .title-with-lines {
        font-size: 1.2rem;
        padding: 20px 0;
    }

    .title-with-lines::before,
    .title-with-lines::after {
        width: 200px;
    }
}

/* Journey Section - Final Code */
.journey-section {
    width: 100%;
    padding: 0 40px;
    text-align: center;
    background: #F4F4F4;
    padding-top: 60px;
    margin-bottom: 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: #ffffff;
    border-radius: 50px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    flex-direction: row-reverse;
    margin: 0 auto 40px auto;
    width: fit-content;
}

.breadcrumb-dot {
    width: 14px;
    height: 14px;
    background: radial-gradient(ellipse, #1D152F 0%, #8D3176 100%);
    border-radius: 50px;
    flex-shrink: 0;
    animation: colorChange 2s ease-in-out infinite alternate;
}

@keyframes colorChange {
    0% {
        background: radial-gradient(ellipse, #1D152F 0%, #8D3176 100%);
    }

    50% {
        background: radial-gradient(ellipse, #8D3176 0%, #1D152F 100%);
    }

    100% {
        background: radial-gradient(ellipse, #1D152F 30%, #8D3176 70%);
    }
}

.breadcrumb-text {
    white-space: nowrap;
    color: #2B2046;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2B2046;
    margin-bottom: 30px;
    line-height: 1.2;
}

.highlight {
    color: #8B5CF6;
}

.description {
    font-size: 1.1rem;
    color: #1A1A1A;
    line-height: 1.6;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.gradient-text {
    background: linear-gradient(90deg, #2B2046 7%, #8972C0 49%, #8D3176 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: 795px 389px;
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.card-1 {
    grid-column: 1;
    grid-row: 1;
}

.card {
    background: linear-gradient(135deg, #2B2046 0%, #563F8D 49%, #2B2046 100%);
    border-radius: 20px;
    padding: 40px 30px;
    color: white;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: right;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.card:hover {
    background: linear-gradient(135deg, #563F8D 0%, #2B2046 49%, #563F8D 100%);
}

.card-icon-container {
    position: relative;
    margin-bottom: 25px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.card-icon-outer {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2B2046;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 12px;
    color: white;
    width: 100%;
    word-wrap: break-word;
    text-align: right;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    width: 100%;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 6;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    text-align: right;
}

/* Card Positioning - عكس الترتيب في الرو التاني */
.card-1 {
    flex: 1 1 calc(65% - 12px) !important;
}

.card-2 {
    flex: 1 1 calc(35% - 12px) !important;
}

.card-3 {
    flex: 1 1 calc(65% - 12px) !important;
}

.card-4 {
    flex: 1 1 calc(35% - 12px) !important;
}

.title-inner {

    display: flex;
    flex-direction: column;
    padding-right: 12px;
}

.star {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.card-icon-container .star-1 {
    top: -20px;
    right: 35px;
}

.card-icon-container .star-2 {
    top: 35px;
    right: -20px;
}

.card-icon-container .star-3 {
    bottom: -20px;
    right: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }

    .card {
        padding: 30px 20px;
        min-height: 200px;
    }

    .card-icon-outer {
        width: 70px;
        height: 70px;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-text {
        font-size: 0.95rem;
        line-clamp: 5;
        -webkit-line-clamp: 5;
    }

    .card-icon-container .star-1 {
        top: -15px;
        right: 30px;
        /* مُصحح لليمين */
    }

    .card-icon-container .star-2 {
        top: 30px;
        right: -15px;
        /* مُصحح لليمين */
    }

    .card-icon-container .star-3 {
        bottom: -15px;
        right: 8px;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 30px 25px;
        min-height: 180px;
        align-items: flex-end;
        text-align: right;
    }

    .card-icon-outer {
        width: 70px;
        height: 70px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-text {
        font-size: 0.9rem;
        line-clamp: 4;
        -webkit-line-clamp: 4;
    }

    .card-icon-container .star-1 {
        top: -12px;
        right: 25px;
        /* مُصحح لليمين */
    }

    .card-icon-container .star-2 {
        top: 25px;
        right: -12px;
        /* مُصحح لليمين */
    }

    .card-icon-container .star-3 {
        bottom: -12px;
        right: 6px;
    }

    .star {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
        min-height: 160px;
    }

    .card-icon-outer {
        width: 60px;
        height: 60px;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.85rem;
        line-clamp: 3;
        -webkit-line-clamp: 3;
    }

    .card-icon-container .star-1 {
        top: -10px;
        right: 20px;
        /* مُصحح لليمين */
    }

    .card-icon-container .star-2 {
        top: 20px;
        right: -10px;
        /* مُصحح لليمين */
    }

    .card-icon-container .star-3 {
        bottom: -10px;
        right: 5px;
    }

    .star {
        font-size: 7px;
    }
}


/* services */

.services-section {
    position: relative;
    padding: 80px 0 120px 0;
    min-height: 100vh;
}

.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 32, 70, 0.95) 0%, rgba(89, 63, 141, 0.9) 50%, rgba(43, 32, 70, 0.95) 100%);
    z-index: 1;
    display: none;
}

.services-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.service-box {
    background: linear-gradient(180deg, #2B2046 0%, #8D3176 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    backdrop-filter: none;
}

.service-box::before {
    display: none;
}

.service-box:hover::before {
    opacity: 1;
}


.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(141, 49, 118, 0.4);
}


.service-front,
.service-back {
    transition: all 0.5s ease;
}


.service-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #2B2046;
    padding: 30px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.service-box:hover .service-front {
    opacity: 0;
    transform: scale(0.9);
}

.service-box:hover .service-back {
    opacity: 1;
    transform: scale(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
    color: #2B2046;
    border-radius: 20px;
    transition: all 0.3s ease;
}


.service-box:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;

}

.service-back-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2B2046;
    margin-bottom: 15px;
}


.service-back-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
}

/* More Section */
.more-section {
    text-align: center;
}

.more-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.more-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.more-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.more-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .services-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0 80px 0;
    }

    .services-content {
        padding: 0 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .service-box {
        padding: 30px 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 0 60px 0;
    }

    .services-content {
        padding: 0 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .services-title {
        font-size: 1.5rem;
    }

    .services-description {
        font-size: 1rem;
    }

    .service-box {
        padding: 25px 15px;
    }

    .more-box {
        padding: 30px 20px;
    }

    .more-title {
        font-size: 1.6rem;
    }
}


/* gallery */
.gallery-section {
    padding: 80px 0;
    background: #ffffff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2B2046;
    text-align: center;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 600px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Grid Layout */
.gallery-item-1 {
    grid-column: 1;
    grid-row: 1;
}

.gallery-item-2 {
    grid-column: 1;
    grid-row: 2;
}

.gallery-item-3 {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
}

/* Bottom Row */
.gallery-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    height: 200px;
}

/* Overlay for main image */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item-3:hover .gallery-overlay {
    transform: translateY(0);
}

.overlay-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.overlay-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

#consultationForm {
    color: black !important;
}

.modal-title {
    color: black;
}

.modal-footer .btn-secondary {
    background: #2B2046 !important;
    border: none !important;
}

.modal-header .btn-close {
    margin: 0 !important;
}

#consultationForm input,
#consultationForm textarea {
    border: 1px solid black !important;
    background: transparent !important;
    color: black !important;
}

/* Gallery image modal (scoped to #imageModal to avoid colliding with Bootstrap) */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

#imageModal .modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

#imageModal .modal-image {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

#imageModal .modal-info {
    padding: 30px;
    text-align: center;
}

#imageModal .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2B2046;
    margin-bottom: 10px;
}

#imageModal .modal-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

#imageModal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

#imageModal .close:hover {
    color: #c30000;
    transform: scale(1.2);
}

/* Navigation arrows */
#imageModal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#imageModal .modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

#imageModal .prev {
    left: 20px;
}

#imageModal .next {
    right: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        padding: 0 20px;
    }

    .gallery-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 15px;
    }

    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3 {
        grid-column: 1;
        height: 200px;
    }

    .gallery-item-3 {
        grid-row: auto;
        height: 250px;
    }

    .gallery-bottom {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-bottom .gallery-item {
        height: 200px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-image {
        height: 50vh;
    }

    .modal-info {
        padding: 20px;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-container {
        padding: 0 15px;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .modal-content {
        margin: 15% auto;
    }

    .modal-image {
        height: 40vh;
    }
}

/* packages */



.pricing-section {
    padding: 20px 0;
    background: #ffffff;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.pricing-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2B2046;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: #161023;
    margin-bottom: 60px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 48px;
    padding-top: 22px;
}

.pricing-card {
    background: linear-gradient(135deg, #2B2046 0%, #563F8D 100%);
    border-radius: 20px;
    padding: 40px 30px;
    color: white;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

.pricing-card:hover {
    background: linear-gradient(135deg, #8D3176 0%, #2B2046 100%);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #8D3176 0%, #563F8D 100%);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(141, 49, 118, 0.4);
}

.pricing-card.featured:hover {
    background: linear-gradient(135deg, #2B2046 0%, #8D3176 100%);
    transform: scale(1.05) translateY(-10px);
}

.plan-header-inner {
    position: relative;
    gap: 12px;
    display: flex;
    flex-direction: row;
    align-content: center !important;
    position: relative;
}

.plan-badge {
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    height: fit-content;
    width: fit-content;
}

.plan-header {
    margin-bottom: 30px;
    text-align: center;
}

.plan-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}

.features-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: right;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-align: right;
    justify-content: flex-start;
}

.features-list li::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 12px;
    flex-shrink: 0;
}

.cta-button {
    background: rgba(255, 255, 255, 0.9);
    color: #2B2046;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-direction: row-reverse;
}

.cta-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Custom Package - منفصلة */
.custom-package {
    background: linear-gradient(135deg, #2B2046 0%, #563F8D 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 40px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.custom-package:hover {
    background: linear-gradient(135deg, #8D3176 0%, #2B2046 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.custom-content {
    text-align: right;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 62px;
}

.custom-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.custom-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.custom-features .feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.95rem;
}

.custom-features .feature-item::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
    flex-shrink: 0;
}

.custom-cta {
    text-align: center;
}

.custom-button {
    background: rgba(255, 255, 255, 0.9);
    color: #2B2046;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.custom-button:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.custom-button::before {
    content: '◀';
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-grid {
        gap: 20px;
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }

    .pricing-card.featured:hover {
        background: linear-gradient(135deg, #2B2046 0%, #8D3176 100%);
        transform: scale(1.05) translateY(-10px);
    }

    .custom-package {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .custom-content {
        text-align: center;
    }

    .custom-features {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .pricing-container {
        padding: 0 20px;
    }

    .pricing-title {
        font-size: 2.2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 25px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .custom-package {
        padding: 30px 25px;
    }

    .custom-features {
        grid-template-columns: 1fr;
    }



    /* Make custom header stack vertically on mobile and right-align features */
    .custom-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* keep title/desc starting from right in RTL layout */
        gap: 8px;
        text-align: right;
    }

    .contact-page .navbar {
        background: transparent !important;
        backdrop-filter: none !important;
    }

    .services-section {
        min-height: fit-content;
    }

    .custom-features {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        /* visually right-align feature items */
        text-align: right;
        gap: 10px;
        margin-bottom: 16px;
    }

    .custom-cta {
        width: 100%;
        display: flex;
        justify-content: center;
        /* keep button centered under features on mobile */
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-container {
        padding: 0 15px;
    }

    .pricing-title {
        font-size: 1.8rem;
    }

    .pricing-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .pricing-card {
        padding: 25px 20px;
    }

    .custom-package {
        padding: 25px 20px;
    }

    .custom-title {
        font-size: 1.6rem;
    }

    .custom-description {
        font-size: 1rem;
    }
}

/* Specific heights for each card */
.pricing-card:nth-child(1) {
    min-height: 220px;
    /* الكارد الأول قصير */
}

.pricing-card:nth-child(2) {
    min-height: 520px;
    /* الكارد الأوسط طويل */
    margin-top: -30px;
}

.pricing-card:nth-child(3) {
    min-height: 220px;
    /* الكارد التالت قصير */
}

.pricing-card:nth-child(1),
.pricing-card:nth-child(3) {
    background: radial-gradient(ellipse at top right, #412F6A 0%, #563F8D 50%, #2B2046 100%);
}

.pricing-card:nth-child(1):hover,
.pricing-card:nth-child(3):hover {
    background: radial-gradient(ellipse at top right, #2B2046 0%, #563F8D 50%, #412F6A 100%);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(65, 47, 106, 0.3);
}

/* testimonials */

.testimonials-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

.testimonials-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

.testimonials-breadcrumb {
    position: absolute;
    top: 40px;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.testimonials-breadcrumb-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.testimonials-breadcrumb-dot {
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
}

.testimonials-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 60px;
    z-index: 5;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;

}

.testimonials-slider {
    position: relative;
    direction: ltr;
    z-index: 5;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testimonial-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 14%;
}

.testimonial-card .testimonial-content {
    width: 100%;
    background: url('../Images/Card_2.svg') no-repeat center center;
    background-size: cover;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    overflow: hidden;
}

.testimonial-card.active .testimonial-content {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card .testimonial-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    z-index: 1;
    pointer-events: none;
}

.testimonial-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-client-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.testimonial-client-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-btn-prev {
    left: -206px;
}

.testimonial-nav-btn-next {
    right: -206px;
}

.testimonial-nav-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.testimonials-dots-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    z-index: 5;
    position: relative;
}

.testimonials-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dot.active {
    background: #8D3176;
    transform: scale(1.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 0 8%;
    }

    .testimonial-card .testimonial-content {
        padding: 30px;
        min-height: 250px;
    }

    .testimonials-main-title {
        font-size: 2.5rem;
    }

    .testimonials-breadcrumb {
        top: 20px;
        right: 20px;
        padding: 10px 20px;
    }

    .testimonial-nav-btn-prev {
        left: -50px;
    }

    .testimonial-nav-btn-next {
        right: -50px;
    }

    .testimonial-client-name {
        font-size: 1.5rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 0 2.5%;
    }

    .testimonial-card .testimonial-content {
        padding: 25px;
        min-height: 220px;
    }

    .testimonials-main-title {
        font-size: 2rem;
    }

    .testimonial-client-name {
        font-size: 1.3rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* Tranc Content within Testimonials */
.tranc-content-in-testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0 40px;
    text-align: center;
}

.tranc-logo-container {
    position: relative;
    z-index: 2;
}

.tranc-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.tranc-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.tranc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    line-height: 1.4;
    text-align: center;
    z-index: 9999;
    margin-top: -131px;
}

.tranc-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 9999;
    margin-top: 20px;
}

/* Smaller button variant */
.btn-small {
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: 40px;
}

.btn-small .btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tranc-content-in-testimonials {
        padding: 0 20px;
        gap: 30px;
        margin-top: 40px;
    }

    .tranc-logo {
        max-width: 150px;
    }

    .tranc-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .tranc-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-small {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .tranc-title {
        font-size: 1.5rem;
    }

    .tranc-logo {
        max-width: 120px;
    }
}

/* Contact Us Section */
.contact-section {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 100vh;
}

/* Extra spacing below fixed header on contact page */
.contact-page .contact-section {
    padding-top: 160px;
}

@media (max-width: 768px) {
    .contact-page .contact-section {
        padding-top: 130px;
    }
}

@media (max-width: 480px) {
    .contact-page .contact-section {
        padding-top: 110px;
    }
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-main-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2B2046;
    line-height: 1.3;
    margin: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 12px;
    align-items: stretch;
}

/* Form Section */
.contact-form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    min-height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: right;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8D3176;
    box-shadow: 0 0 0 3px rgba(141, 49, 118, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.phone-input-group:focus-within {
    border-color: #8D3176;
    box-shadow: 0 0 0 3px rgba(141, 49, 118, 0.1);
    background: #ffffff;
}

.country-flag {
    padding: 12px 12px;
    font-size: 16px;
    border-right: 1px solid #e5e7eb;
    background: #ffffff;
}

.phone-input-group input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 12px 14px;
}

.phone-input-group input:focus {
    box-shadow: none;
    border: none;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #8D3176 0%, #2B2046 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: center;
    margin: 10px auto 0 auto;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #2B2046 0%, #8D3176 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(141, 49, 118, 0.3);
}

.contact-submit-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Contact Info Section */
.contact-info-section {
    background: #1D152F;
    border-radius: 16px;
    padding: 24px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    direction: rtl;
    position: relative;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.copy-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.copy-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.copy-btn:hover img {
    filter: brightness(0) invert(1) opacity(0.8);
}

.link-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.link-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.link-btn:hover img {
    filter: brightness(0) invert(1) opacity(0.8);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.contact-value {
    font-size: 15px;
    color: white;
    font-weight: 600;
    line-height: 1.4;
}

.contact-social {
    margin-top: 24px;
    text-align: center;
}

.social-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 20px;
    }

    .contact-main-title {
        font-size: 1.3rem;
    }

    .contact-form-section {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-info-section {
        padding: 20px;
    }

    .contact-info-item {
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-container {
        padding: 0 15px;
    }

    .contact-main-title {
        font-size: 1.2rem;
    }

    .contact-form-section {
        padding: 20px;
    }

    .contact-info-section {
        padding: 20px;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2B2046 0%, #8D3176 50%, #2B2046 100%);
    color: white;
    padding: 40px 0 15px 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 78px;
    margin-bottom: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 400;
    color: white;
    margin: 0 0 15px 0;
    text-align: right;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: right;
}

.footer-link:hover {
    color: white;
    font-weight: bold;
    transform: translateX(-5px);
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: right;
    direction: rtl;
}

/* Social Media Icons */
.footer-social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    direction: ltr;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-logo-image {
    height: 120px;
    width: auto;
    filter: brightness(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }

    .footer-logo-section {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px 0;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-link,
    .footer-contact-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-title,
    .footer-link,
    .footer-contact-item {
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-logo-image {
        height: 60px;
    }
}

/* -----------------------------
   Additional responsive tweaks
   (non-layout-changing, small overrides)
   ----------------------------- */

/* Make cards grid a bit more flexible on mid/large screens */
@media (max-width: 1600px) {
    .cards-grid {
        grid-template-columns: 2fr 1fr;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Gradually reduce the hero top padding so the heading doesn't push content off-screen */
@media (max-width: 1400px) {
    .hero h1 {
        padding-top: 100px;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        padding-top: 80px;
    }

    .hero-content {
        max-width: 92%;
        padding: 5rem 1rem 2rem;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        padding-top: 60px;
    }

    .hero-content {
        max-width: 96%;
        padding: 4rem 1rem 2rem;
    }

    /* Partners slider: keep the continuous animation on smaller devices so it moves like large screens.
     Use a flexible track that can adapt to viewport width. */
    .partners-slider .slider-track {
        display: flex;
        gap: 8px;
        will-change: transform;
        /* Keep any animation defined for large screens so it continues to auto-scroll */
    }

    .partners-slider .slide {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {

    /* Avoid very tall fixed heights for the middle pricing card on small screens */
    .pricing-card:nth-child(2) {
        min-height: auto !important;
        margin-top: 0 !important;
    }

    /* Social floating controls: keep them on the right on narrow viewports */
    .social-float {
        justify-content: flex-start;
        padding: 0 18px 0 0;
    }

    /* Make WhatsApp float slightly smaller and visible by default to avoid overlap */
    .whatsapp-float {
        width: 140px;
        border-radius: 28px;
    }

    .whatsapp-text {
        opacity: 1;
    }
}

/* Compact logo for small screens: hidden by default and shown via JS/CSS */
.logo-image-compact {
    display: none;
    width: 130px;
    height: auto;
}

/* Partners slider prev/next controls */
.logo-image {
    display: inline-block;
}

.logo-image-compact {
    display: none;
}

/* Mobile overflow fixes: ensure no child forces page wider than viewport */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* double-ensure */
}

/* Make images and svgs responsive by default */
img,
svg,
picture,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Allow flex/grid items to shrink instead of forcing overflow */
.nav-center,
.nav-right,
.nav-links,
.hero-content,
.cards-grid,
.partners-slider,
.slider-track,
.pricing-container,
.gallery-container,
.footer-container,
.contact-container {
    min-width: 0;
}

/* Ensure slider-track doesn't force a wide layout on remaining breakpoints */
.slider-track {
    max-width: 100%;
    box-sizing: border-box;
}

/* If any element still overflows on very small screens, allow internal scroll instead of page scroll */
@media (max-width: 600px) {
    .partners-slider {
        overflow-x: none;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        padding-top: 20px;
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .btn {
        padding: 12px 20px;
    }

    .top-nav-area {
        top: 1rem;
    }

    .tranc-title {
        margin-top: 0;
    }

    /* Ensure gallery items stack cleanly on very small screens */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        height: auto;
    }

    .gallery-bottom {
        grid-template-columns: 1fr;
    }
}

/* Mobile-only: make the custom-package look exactly like the pricing cards */
@media (max-width: 767.98px) {

    /* Ensure pricing items stack nicely on mobile */
    .pricing-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Copy canonical pricing-card appearance onto custom-package on mobile */
    .pricing-card,
    .custom-package {
        background: linear-gradient(135deg, #2B2046 0%, #563F8D 100%);
        border-radius: 20px;
        padding: 30px 25px;
        color: white;
        position: relative;
        transition: all 0.4s ease;
        cursor: pointer;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }

    /* Keep hover behavior consistent (no visual change required for touch but keep rules) */
    .custom-package:hover {
        background: linear-gradient(135deg, #8D3176 0%, #2B2046 100%);
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
    }

    /* Flatten internal container so content spacing matches pricing cards */
    .custom-package .custom-content {
        background: transparent;
        padding: 0;
        gap: 12px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    /* Header formatting to match .plan-header */
    .custom-package .custom-header {
        margin-bottom: 30px;
        text-align: right;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .custom-package .custom-title {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .custom-package .custom-description {
        font-size: 1rem;
        opacity: 0.9;
        line-height: 1.5;
        margin: 0;
        text-align: right;
    }

    /* Make features list match the visual style of .features-list */
    .custom-features {
        display: block;
        margin-bottom: 30px;
    }

    .custom-features .feature-item {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        font-size: 0.95rem;
        text-align: right;
        justify-content: flex-start;
    }

    .custom-features .feature-item::before {
        content: '✓';
        background: rgba(255, 255, 255, 0.2);
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        margin-left: 12px;
        flex-shrink: 0;
    }

    /* Use the same CTA style as pricing cards */
    .custom-package .cta-button,
    .custom-package .custom-button {
        background: rgba(255, 255, 255, 0.9);
        color: #2B2046;
        border: none;
        padding: 15px 30px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-direction: row-reverse;
    }

    .custom-package .cta-button:hover,
    .custom-package .custom-button:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}