/* Font Definitions */
@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('/manzour_tanmawi/static/src/fonts/alfont_com_AlFont_com_Neo-Sans-W23-l-1.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('/manzour_tanmawi/static/src/fonts/alfont_com_AlFont_com_Neo-Sans-W23.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('/manzour_tanmawi/static/src/fonts/alfont_com_AlFont_com_Neo-Sans-W23-m-1.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('/manzour_tanmawi/static/src/fonts/alfont_com_AlFont_com_Neo-Sans-W23-u-1.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-color: #0056b3;
    --secondary-color: #002d62;
    --accent-color: #00bcd4;
    --text-color: #ffffff;
    --gradient-body: linear-gradient(180deg, #000c24 0%, #001f54 100%);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Neo Sans Arabic', sans-serif;
    direction: rtl;
    background: var(--gradient-body);
    /* keep gradient behind particles */
    color: var(--text-color);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hide Odoo Website Default Elements - More comprehensive */
.o_main_navbar,
.o_website_navbar,
.o_footer,
.o_header_standard,
nav.o_main_navbar,
.o_menu_systray,
.o_website_preview,
.o_we_customize_panel,
.o_we_website_top_actions,
.o_we_website_navbar,
.o_website_navbar,
header.o_main_navbar,
header.o_header_standard,
.o_user_menu,
.o_switch_company_menu,
.o_mail_systray_item,
.o_MessagingMenu,
.o_ActivityMenu,
.o_SearchBar,
.o_main_navbar .o_menu_brand,
.o_main_navbar .navbar-brand,
.o_main_navbar,
.o_action_manager .o_main_navbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide Odoo website editor elements */
.o_website_preview,
.o_we_customize_panel,
.o_we_website_top_actions,
.o_we_website_navbar {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure content divs have proper styling */
.homepage-body,
div[style*="direction: rtl"] {
    font-family: 'Neo Sans Arabic', sans-serif;
    direction: rtl;
    background: transparent;
    color: var(--text-color);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure full width and height */
#wrapwrap {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

#wrap {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Make sure our content is visible */
.homepage-body>*,
div[style*="direction: rtl"]>* {
    position: relative;
    z-index: 1;
}

/* Fix scroll issue */
html,
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}

/* Ensure our custom header is visible and on top (ONLY site header) */
header#top {
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    display: flex !important;
}

/* Hide Odoo's default header completely */
#wrapwrap>header.o_main_navbar,
#wrapwrap>header.o_header_standard,
#wrapwrap>nav.o_main_navbar {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

#particles-js {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
    /* behind content, above body background */
    pointer-events: none !important;
    background: transparent !important;
}

/* Make particles visible on dark hero backgrounds */
#particles-js canvas {
    opacity: 0.9 !important;
    filter: brightness(1.6) contrast(1.25) !important;
}


/* Ensure website content stays above particles */
#wrapwrap,
#wrap,
main,
header,
footer {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* Make ALL page content transparent to show particles */
main,
.oe_structure,
.o_main,
.container,
.row,
section {
    background: transparent !important;
}

/* Override any white/colored backgrounds from other modules */
.s_cover, .s_text_block, .s_banner, .pt96, .pb96 {
    background: transparent !important;
}

/* Target specific Odoo page wrappers only (not all elements) */
#wrap > main,
#wrap > .oe_structure,
.o_website_preview,
.s_parallax_bg,
.s_parallax_no_overflow_hidden {
    background: transparent !important;
}

/* Specific fix for SaaS Pricing page - minimal approach */
.s_saas_pricing section,
[class*="s_odoo_saas"] section {
    background: transparent !important;
}

/* Ensure text is visible on dark background */
.s_cover h1, .s_cover h2, .s_cover p,
.s_text_block h1, .s_text_block h2, .s_text_block p {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Header - Transparent */
header#top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    backdrop-filter: none;
    z-index: 9999 !important;
    /* Extremely high to stay above pinned sections */
}

/* --- Manzour header layout hardening (prevents menu overlap) --- */
header#top nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* allows flex items to shrink without overlap */
}

header#top nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: nowrap;
}

header#top nav ul li {
    margin: 0;
    padding: 0.5rem 0.8rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

header#top nav ul li a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

header#top .cta-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.logo img {
    height: 90px;
    width: auto;
}

header#top nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    perspective: 1000px;
}

header#top nav li {
    position: relative;
    padding: 0.5rem 1rem;
}

header#top nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* 3D Lift & Glow Effect */
header#top nav a:hover,
nav a.active {
    opacity: 1;
    color: var(--accent-color);
    transform: translateZ(30px) translateY(-3px);
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}

/* --- Jumper Orb styles --- */
header#top nav {
    position: relative;
}

header#top nav .nav-jumper-orb {
    position: absolute;
    top: -15px;
    /* Positioned above the text */
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy movement */
    opacity: 0;
    z-index: 10;
}

header#top nav a::after {
    display: none;
    /* Disabling old underline to focus on the orb */
}

/* Enhancing nav a for clear jump targets */
header#top nav a {
    position: relative;
    padding: 0 5px;
}

/* Glass Hover Background */
header#top nav li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: 0.3s;
    z-index: 0;
}

header#top nav li:hover::before {
    opacity: 1;
    transform: scale(1);
}

.cta-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
    filter: brightness(1.1);
}

/* Page Hero - General (Secondary Pages) */
.page-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed header */
}

/* Hero Content */
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.hero-btn {
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    animation: fadeInUp 1.4s ease-out;
    display: inline-block;
}

.hero-btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

/* Flex Container for Section Slides */
.container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 90%;
    margin: 0 auto;
}

.container-flex.reverse {
    flex-direction: row-reverse;
}

.text-col {
    flex: 1;
    text-align: right;
}

.text-col h2 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.text-col p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #e0e0e0;
}

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

.img-col img {
    width: 100%;
    max-width: 550px;
    filter: drop-shadow(0 0 30px rgba(0, 188, 212, 0.2));
    transition: transform 0.1s ease-out;
}

/* Cards & Grids */
.features-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 10%;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    /* Dark Glass */
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    color: var(--accent-color);
    transform: translateZ(20px);
}

.feature-card p {
    transform: translateZ(10px);
    color: #e0e0e0;
    line-height: 1.6;
}

.feature-icon-img {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.3));
}

.feature-icon i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* SECTION TITLE (Common) */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--accent-color);
}

/* FLIP CARDS (For About Page) */
.flip-card-container {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card-container:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.flip-card-front i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.flip-card-back {
    background: var(--accent-color);
    color: white;
    transform: rotateY(180deg);
}

/* Animations */
@keyframes float-code {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
}

.code-symbol {
    position: absolute;
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

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

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

.reveal-right {
    animation: fadeInRight 1s ease-out forwards;
}

.reveal-left {
    animation: fadeInLeft 1s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

/* --- Impact Stories (قصص أثر) Horizontal Section --- */
.impact-stories-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
    /* Above everything else when active */
}

.impact-track-container {
    width: 100%;
    padding: 0 5%;
    display: flex;
    align-items: center;
}

.impact-cards-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    padding: 50px 0;
    will-change: transform;
}

.impact-card {
    flex: 0 0 400px;
    /* Fixed width, no shrinking */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.impact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-color);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 188, 212, 0.1);
}

.impact-card h4 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.problem-text {
    color: #ff5252;
    /* Stress the suffering */
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

.solution-text {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
}

.impact-action-btn {
    margin-top: auto;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transform: translateY(100px);
    /* Hidden below */
    opacity: 0;
    transition: all 0.4s ease;
}

.impact-card:hover .impact-action-btn {
    transform: translateY(0);
    opacity: 1;
}

.impact-card .icon-seal {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: -10px;
    transform: rotate(-15deg);
}

/* Integration Section Styles */
.integration-section {
    position: relative;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    z-index: 2;
    margin-bottom: 200px;
    /* Base level */
}

.integration-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.chaos-title {
    font-size: 3.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
    margin-bottom: 2rem;
    z-index: 10;
}

.icons-scatter-area {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.integration-icon-wrapper {
    position: absolute;
    width: 180px;
    height: 140px;
    perspective: 1000px;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Fallback توزيع: 3 يمين + 3 شمال (لو GSAP ما اشتغلش) */
.icons-scatter-area > .scatter-icon:nth-child(1) { transform: translate(220px, -140px); }
.icons-scatter-area > .scatter-icon:nth-child(2) { transform: translate(320px,   0px); }
.icons-scatter-area > .scatter-icon:nth-child(3) { transform: translate(220px,  140px); }

.icons-scatter-area > .scatter-icon:nth-child(4) { transform: translate(-220px, -140px); }
.icons-scatter-area > .scatter-icon:nth-child(5) { transform: translate(-320px,   0px); }
.icons-scatter-area > .scatter-icon:nth-child(6) { transform: translate(-220px,  140px); }


.icon-box {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform: rotateX(10deg) rotateY(-10deg);
    /* Removed transition for GSAP performance */
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
}

.icon-box span {
    font-size: 1.1rem;
    font-weight: 500;
}

.integration-status {
    position: absolute;
    bottom: 10%;
    width: 100%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    z-index: 10;
}

.loading-text {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #fff;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.final-platform-card {
    position: relative;
    width: 90%;
    max-width: 380px;
    /* Even smaller for elegance */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 2.5rem 2rem;
    text-align: center;
    opacity: 0;
    z-index: 20;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 188, 212, 0.1);
}

.final-logo {
    height: 80px;
    /* Reduced from 120px */
    margin-bottom: 1.5rem;
}

.final-platform-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.final-platform-card p {
    font-size: 1.4rem;
    color: #ccc;
    line-height: 1.6;
}

/* 3D Floating Animation for Objects */
@keyframes float-slow {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.floating-3d-obj {
    animation: float-slow 6s ease-in-out infinite;
    transition: transform 0.3s;
    /* Smooth overrides for mouse parallax */
}

/* Footer */
footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
}

/* Forms */
input,
textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

form {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .container-flex,
    .container-flex.reverse {
        flex-direction: column-reverse;
        text-align: center;
    }

    .text-col {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    header {
        padding: 1rem;
    }

    nav {
        display: none;
    }
}

/* 3D Flip Cards Section (Exact Pattern from 3d-animation-page) */
.flip-cards-section {
    width: 100%;
    overflow: hidden;
    perspective: 1000px;
    position: relative;
    z-index: 3;
    /* Above integration */
    background: transparent;
    /* Changed to transparent to show global particles */
}

.cards-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 2rem 5%;
    width: 100%;
}

.card-3d-wrapper {
    width: 100%;
    height: 450px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d-wrapper:hover {
    transform: scale(1.02);
}

/* Ensure VanillaTilt works on all cards */
.card-3d-wrapper[data-tilt],
.flip-card-container[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
}

.content-inner {
    width: 100%;
    height: 100%;
    color: #fff;
    position: relative;
    transform-style: preserve-3d;
    transition: 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.content-inner .content-front,
.content-inner .content-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-front {
    background: #1a1a1a;
    background-color: #1a1a1a;
    /* Solid color cover */
    z-index: 2;
    transform: rotateY(0deg);
}

.content-back {
    background-color: #1a1a1a;
    /* Solid color cover */
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
    z-index: 1;
}

/* THE MAGIC: rotateY on hover */
.card-3d-wrapper:hover .content-inner {
    transform: rotateY(-180deg);
}

/* Improve mouse interaction */
.content-inner {
    pointer-events: auto;
}

.cf-inner {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    position: relative;
}

.cf-inner .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: 20px;
}

.cf-inner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    border-radius: 20px;
}

/* THE DEPTH EFFECT: Inner element moves on Z axis */
.cf-inner .inner {
    transform: translateZ(95px) scale(0.9);
    /* Deep 3D offset */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    text-align: center;
    position: relative;
    z-index: 3;
    width: 100%;
    transition: 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cf-inner .inner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--accent-color);
    transform: translateZ(50px);
    /* Sub-layer depth */
}

.content-front ul li {
    font-size: 1.1rem;
    margin: 10px 0;
    transform: translateZ(30px);
}

.dec-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transform: translateZ(60px);
}

.cf-inner:before,
.cf-inner:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    border-color: var(--accent-color);
    z-index: 10;
    opacity: 0.5;
    transform: translateZ(40px);
    transition: 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cf-inner:before {
    top: 20px;
    left: 20px;
    border-left: 2px solid;
    border-top: 2px solid;
}

.cf-inner:after {
    bottom: 20px;
    right: 20px;
    border-right: 2px solid;
    border-bottom: 2px solid;
}

.serv-price-wrap {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    transform: translateZ(20px);
}

.serv-price-wrap span {
    margin-left: 10px;
    color: var(--accent-color);
}

/* --- Global Floating Social Hub --- */
.social-floating-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    pointer-events: none;
    /* Container doesn't block */
    width: 60px;
    /* Explicit tight width */
}

.social-icon-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    /* Inner buttons ARE interactive */
}

.social-icon-btn:hover {
    background: var(--accent-color);
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 0 20px var(--accent-color);
    color: #000;
}

/* Specific Social Colors on Hover */
.social-icon-btn.facebook:hover {
    background: #1877F2;
    color: #fff;
}

.social-icon-btn.twitter:hover {
    background: #000000;
    color: #fff;
}

.social-icon-btn.tiktok:hover {
    background: #000000;
    color: #fff;
    box-shadow: 0 0 15px #ff0050, 0 0 15px #00f2ea;
}

.social-icon-btn.snapchat:hover {
    background: #FFFC00;
    color: #000;
    text-shadow: none;
}

/* Dedicated Pulsing WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.7;
    animation: pulse-out 2s infinite;
    z-index: -1;
}

@keyframes pulse-out {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .social-floating-bar {
        right: 10px;
    }

    .social-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* --- Partners 3D Wave Track --- */
.partners-liquid-section {
    perspective: 2000px;
    position: relative;
    overflow: hidden;
}

.scene-3d {
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.wave-track {
    display: flex;
    white-space: nowrap;
    animation: track-infinite-scroll 45s linear infinite;
    /* Adjusted speed for cinematic feel */
    padding: 120px 0;
    /* Increased to allow larger logos space to breathe */
    width: max-content;
}

@keyframes track-infinite-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }

    /* Perfect 50% for 2 sets infinite loop */
}

.partner-floating-card {
    flex: 0 0 300px;
    /* Reduced from 350px */
    height: 160px;
    /* Reduced from 200px */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    /* Adjusted spacing */
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.partner-floating-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    transform: scale(1.08) translateZ(60px);
    box-shadow: 0 45px 90px rgba(0, 188, 212, 0.4);
}

.partner-floating-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.4);
    /* Balanced size - reduced from 2.2 */
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-inner-anim {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    animation: floating-wave 5s ease-in-out infinite alternate;
    overflow: visible;
    /* Allow large logos to pop slightly */
}

@keyframes floating-wave {
    0% {
        transform: translateY(-15px) rotateX(8deg);
    }

    100% {
        transform: translateY(15px) rotateX(-8deg);
    }
}

.bg-blur-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}
/* ===== Force Manzour Header Layout (fix sidebar navbar) ===== */
header#top{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  padding: 18px 28px !important;
  z-index: 99999 !important;
}

/* Make sure nav itself is not positioned to the side */
header#top > nav{
  position: static !important;
  width: auto !important;
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Keep logo + button at edges */
header#top .logo{ flex: 0 0 auto !important; }
header#top .cta-btn{ flex: 0 0 auto !important; white-space: nowrap !important; }

/* MAIN TOP NAV */
header#top > nav ul{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 22px !important;
  flex-wrap: nowrap !important;

  position: static !important;
  transform: none !important;
}

header#top > nav ul li{
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

header#top > nav ul li a{
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}
/* Hide duplicated headers (keep only our main header#top) */
body .homepage-body header:not(#top),
body .manzour-page header:not(#top),
body [data-manzour-root] header:not(#top){
  display: none !important;
}
/* Hide duplicated header (keep only header#top) across all pages */
header:not(#top):has(nav):has(a[href="/about"]),
header:not(#top):has(nav):has(a[href="/services"]),
header:not(#top):has(nav):has(a[href="/partners"]),
header:not(#top):has(nav):has(a[href="/contact"]){
  display: none !important;
}
