/* ==========================================================================
   === 00. GLOBAL VARIABLES & BASE STYLES ===
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

:root {
   /* Primary Brand Colors */
    --veeplex-blue: #1e71b7;       
    --veeplex-light-blue: #477eaa; 
    --veeplex-orange: #f4bc3b;
    
    /* Secondary/Accent Colors */
    --veeplex-dark-blue: #0a1f35;
    --veeplex-light-orange: #d0820c;
    --veeplex-dark-orange: #a65c00;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0px; 
}

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 0 !important;
}

/* Utility Classes */
.text-veeplex-blue { color: var(--veeplex-blue) !important; }
.text-veeplex-orange { color: var(--veeplex-orange) !important; }

/* ==========================================================================
   === 01. NAVIGATION & HEADER ===
   ========================================================================== */
.custom-logo {
    height: 150px; 
    object-fit: contain; 
}

.custom-nav-link {
    transition: color 0.3s ease-in-out;
}

.custom-nav-link:hover {
    color: var(--veeplex-orange) !important;
}

@media (max-width: 991px) {
    #mainNavbar {
        background-color: rgba(27, 108, 179, 0.95); 
        padding: 15px;
        border-radius: 10px;
        margin-top: 15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
}


/* ==========================================================================
   === 02. HERO SECTION ===
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; 
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(1, 32, 59, 0.7); 
    z-index: 1;
}

.content-above {
    z-index: 2; 
}

/* Cinematic Animations */
.cinematic-elem {
    opacity: 0; 
    animation: fadeUpCinematic 1.2s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; } 
.delay-2 { animation-delay: 0.6s; } 
.delay-3 { animation-delay: 0.9s; } 

@keyframes fadeUpCinematic {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   === 03. ABOUT US SECTION ===
   ========================================================================== */
#about {
    padding-bottom: 0 !important;
    margin-bottom: -1px !important;
}

.about-section-bg {
    position: relative;
    background: url('Uploads/AboutUsBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.about-section-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65) !important; 
    z-index: 2;
}

.glass-panel {
    background-color: rgba(0, 0, 0, 0.45); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
}

.veeplex-glass-box {
    background-color: rgba(0, 0, 0, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    transition: all 0.3s ease;
}

.veeplex-glass-box:hover {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: var(--veeplex-orange);
}

.leaf-card-left { border-radius: 0 40px 0 40px !important; }
.leaf-card-right { border-radius: 40px 0 40px 0 !important; }

/* Flow Lines */
.flow-line-h {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, var(--veeplex-orange), var(--veeplex-blue), var(--veeplex-orange));
    background-size: 200% 100%;
    animation: flowPulseH 2s linear infinite;
    -webkit-mask-image: repeating-linear-gradient(to right, black 0, black 10px, transparent 10px, transparent 20px);
    filter: drop-shadow(0 0 6px var(--veeplex-orange));
}

.flow-line-v {
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, var(--veeplex-orange), var(--veeplex-blue), var(--veeplex-orange));
    background-size: 100% 200%;
    animation: flowPulseV 2s linear infinite;
    -webkit-mask-image: repeating-linear-gradient(to bottom, black 0, black 10px, transparent 10px, transparent 20px);
    filter: drop-shadow(0 0 6px var(--veeplex-blue));
}

.trunk-line { height: 50px; left: 50%; top: 0; transform: translateX(-50%); }
.branch-horizontal { width: 58%; left: 21%; top: 50px; }
.drop-left { height: 50px; left: 21%; top: 50px; }
.drop-right { height: 50px; right: 21%; top: 50px; }

@keyframes flowPulseH {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes flowPulseV {
    0% { background-position: 0 100%; }
    100% { background-position: 0 -100%; }
}

/* Glowing Effects */
.glowing-card {
    animation: cardBreathe 3s infinite alternate;
}

@keyframes cardBreathe {
    0% { box-shadow: 0 0 15px rgba(229, 149, 0, 0.2); border-color: rgba(229, 149, 0, 0.4); }
    100% { box-shadow: 0 0 35px rgba(27, 108, 179, 0.6); border-color: var(--veeplex-blue); }
}

/* Vision & Mission Cards */
.modern-vm-card {
    background: rgba(13, 22, 32, 0.45); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden; 
    z-index: 1;
}

.modern-vm-card:hover {
    transform: translateX(-10px);
    background: rgba(13, 22, 32, 0.65);
}

.modern-vm-card:nth-child(1) { border-left: 4px solid var(--veeplex-blue); }
.modern-vm-card:nth-child(2) { border-left: 4px solid var(--veeplex-orange); }

.modern-vm-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(229, 149, 0, 0.15), 
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1; 
    pointer-events: none;
}

.modern-vm-card:hover::before { opacity: 1; }

.icon-box {
    width: 65px; height: 65px; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
}

.vision-icon { filter: drop-shadow(0 0 10px rgba(27, 108, 179, 0.8)); }
.mission-icon { filter: drop-shadow(0 0 10px rgba(229, 149, 0, 0.8)); }

/* ==========================================================================
   === 04. CLIENTS TICKER ===
   ========================================================================== */
.glass-ticker-capsule {
    background-color: rgba(13, 22, 32, 1); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); 
    padding: 12px 0;
    margin-top: 200px !important;
    margin-bottom: -40px !important; 
    width: 100%; 
}

.ticker-capsule-header {
    display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 15px;
}

.ticker-capsule-header .line {
    height: 1px; width: 40px; background-color: rgba(255, 255, 255, 0.2);
}

.client-ticker-wrapper {
    width: 100%; overflow: hidden; display: flex; align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.client-ticker-track {
    display: flex; width: max-content; animation: scrollTicker 35s linear infinite reverse;
}

.client-ticker-track:hover { animation-play-state: paused; }

.client-logo-box {
    width: 320px; height: 65px; display: flex; align-items: center; justify-content: center;
    border-right: 5px solid rgba(255, 255, 255, 0.1); padding: 0 40px; 
}

.client-logo-box img {
    max-width: 200px; max-height: 60px; object-fit: contain; transition: all 0.3s ease;
}

.client-logo-box:hover img { transform: scale(1.1); }

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); }
}

/* ==========================================================================
   === MOBILE FIXES FOR TICKER ===
   ========================================================================== */

@media (max-width: 991px) {
    .glass-ticker-capsule {
        margin-top: 40px !important;  
        margin-bottom: -5px !important; 
        border-radius: 15px;
    }

    #about .container.py-5 {
        padding-bottom: 10px !important;
    }

    .ticker-capsule-header {
        gap: 10px;
    }
    .ticker-capsule-header h6 {
        font-size: 0.65rem !important;
        letter-spacing: 1px !important;
    }
    .ticker-capsule-header .line {
        width: 20px;
    }

    .client-logo-box {
        width: 200px;
        height: 55px;
        padding: 0 15px;
    }
    .client-logo-box img {
        max-width: 120px;
        max-height: 40px;
    }
}

/* ==========================================================================
   === 05. OUR SERVICES (TIMELINE) ===
   ========================================================================== */
   
.timeline-container { position: relative; padding: 20px 0; }

.timeline-line {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: rgba(255, 255, 255, 0.1); margin-left: -1px; z-index: 1; 
}

.timeline-progress {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%; 
    background: var(--veeplex-orange); box-shadow: 0 0 10px var(--veeplex-orange); 
    transition: height 0.1s ease-out; 
}

/* Base Service Card Style */
.service-card {
    opacity: 0.35; filter: grayscale(100%); background: rgba(46, 52, 64, 0.4); 
    border: 1px solid transparent; box-shadow: none; transition: all 0.5s ease-out; cursor: pointer;
}

#service-1 .service-card, #service-3 .service-card { transform: translateX(100px); }
#service-2 .service-card, #service-4 .service-card { transform: translateX(-100px); }

.service-card .d-flex.justify-content-center.mt-3 { margin-top: auto !important; }
.service-card img { height: 250px; object-fit: cover; width: 100%; }
.service-card p { text-align: justify; text-justify: inter-word; }

/* Timeline Dots */
.timeline-dot {
    width: 45px; height: 45px; border-radius: 12px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); 
    color: rgba(255, 255, 255, 0.3); font-size: 1.2rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center; z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
    .service-row + .service-row { margin-top: -150px !important; }
    .service-row { position: relative; z-index: 10; }
}

/* Connector Lines */
.connector-line {
    position: absolute; top: 50%; height: 0; border-bottom: 3px dashed var(--veeplex-orange); 
    width: 0; z-index: 1; transition: width 0.3s ease-out; opacity: 0.8;
    filter: drop-shadow(0px 0px 6px var(--veeplex-orange)); 
}

.connector-line.line-left { right: 50%; }
.connector-line.line-right { left: 50%; }

/* Timeline Activation States */
.service-row.active { z-index: 50 !important; margin-bottom: 1.5rem !important; }

.service-row.active .timeline-dot {
    background: linear-gradient(135deg, var(--veeplex-orange), #ff6b00); color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 25px rgba(229, 149, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.4);
    transform: scale(1.15) rotate(5deg); transition: all 0.3s ease 0s;
}

.service-row.active .connector-line { width: 140px; transition: width 0.3s ease-out 0.2s; }

.service-row.active .service-card {
    opacity: 1; filter: grayscale(0%); background: rgba(255, 255, 255, 0.08); 
    border: 1px solid var(--veeplex-orange); 
    box-shadow: 0 15px 35px rgba(229, 149, 0, 0.15), inset 0 0 20px rgba(229, 149, 0, 0.05);
    transition: all 0.5s ease-out 0.5s; 
}

.service-row .col-lg-5.order-lg-1 { padding-right: 130px; }
.service-row .col-lg-5.order-lg-3 { padding-left: 130px; }

/* ==========================================================================
   === 05. OUR SERVICES Mobile (TIMELINE) ===
   ========================================================================== */

   .mobile-service-card {
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid var(--veeplex-orange); 
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 320px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(229, 149, 0, 0.15), inset 0 0 20px rgba(229, 149, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
}

.mobile-service-card img {
    height: 300px;
    min-height: 300px;
    object-fit: cover;
    width: 100%;
    border-radius: 0.5rem;
    
}

#mobileServicesCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--veeplex-orange);
    height: 4px;
    border-radius: 2px;
}

/* ==========================================================================
   === 06. MODALS & SCROLLBARS ===
   ========================================================================== */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.modal-body::-webkit-scrollbar-thumb { background: var(--veeplex-orange); border-radius: 10px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--veeplex-light-orange); }

.modal-body > img.w-100 { max-height: 280px; object-fit: cover; width: 100%; }
.carousel-item .p-4 { min-height: 140px; display: flex; flex-direction: column; justify-content: center; }

/* ==========================================================================
   === 07. PARTNERS ECOSYSTEM ===
   ========================================================================== */
.partners-ticker-container {
    width: 100%; overflow: hidden; padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-ticker-track {
    display: flex; gap: 1.5rem; width: max-content; animation: scrollRight 25s linear infinite;
}

.partners-ticker-track:hover { animation-play-state: paused; }

.partner-box {
    /* width: 240px; height: 110px; padding: 1.5rem; background: var(--veeplex-orange, #eea8058a); */
    width: 240px; height: 110px; padding: 1.5rem; background-color: #e59500; 
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex;
    align-items: center; justify-content: center; transition: all 0.3s ease;
    text-decoration: none; flex-shrink: 0; 
}

.partner-box img { max-height: 100%; max-width: 100%; object-fit: contain; opacity: 0.85; transition: all 0.3s ease; }
.partner-box:hover { transform: translateY(-5px); filter: brightness(1.1); border-color: #ffffff; box-shadow: 0 10px 20px rgba(244, 188, 59, 0.4); }
.partner-box:hover img { opacity: 1; }

@keyframes scrollRight {
    0% { transform: translateX(calc(-50% - 0.75rem)); }
    100% { transform: translateX(0); }
}

@media (max-width: 768px) {
    .partner-box { width: 180px; }
}

/* ==========================================================================
   === 08. MOBILE RESPONSIVE FIXES ===
   ========================================================================== */
@media (max-width: 991px) {
    .hero-section { height: 100vh; }
    .about-section-bg { padding-top: 80px !important; }
    
    .timeline-line, .timeline-dot { display: none !important; }
    .service-card, #service-1 .service-card, #service-2 .service-card, #service-3 .service-card, #service-4 .service-card { 
        text-align: center; opacity: 1; transform: translateY(0) !important;
    }
}

/* ==========================================================================
   === 09. FLOATING SIDE MENU ===
   ========================================================================== */
.floating-side-menu {
    position: fixed; top: 50%; right: 0; transform: translateY(-50%);
    z-index: 1050; display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}

.side-btn {
    width: 55px; height: 55px; background-color: var(--veeplex-blue); color: white;
    font-size: 1.4rem; display: flex; align-items: center; justify-content: flex-start;
    padding-left: 12px; text-decoration: none; border-radius: 25px 0 0 25px; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent; border-right: none; overflow: hidden; 
}

.btn-text {
    font-size: 1rem; font-weight: 700; font-family: 'Montserrat', sans-serif;
    margin-left: 10px; opacity: 0; transform: translateX(15px); 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); white-space: nowrap; 
}

.side-btn:hover {
    width: 140px; background-color: var(--veeplex-orange); color: var(--veeplex-dark-blue);
    border-color: rgba(255, 255, 255, 0.5);
}

.side-btn:hover .btn-text { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   === FOOTER SECTION STYLES ===
   ========================================================================== */
.veeplex-footer {
    background-color: var(--veeplex-dark-blue); 
    border-top: 3px solid var(--veeplex-blue);
    position: relative;
    z-index: 10;
}

.footer-logo {
    height: 150px; 
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}

/* Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px; 
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background-color: var(--veeplex-orange);
    color: var(--veeplex-dark-blue);
    transform: translateY(-5px) rotate(5deg);
    border-color: var(--veeplex-orange);
    box-shadow: 0 5px 15px rgba(229, 149, 0, 0.4);
}

/* Locations Blocks */
.location-block {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 15px;
    transition: border-color 0.3s ease;
}

.location-block:hover {
    border-left-color: var(--veeplex-orange);
}

/* Map Image Hover Effect */
.footer-map-container .map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 31, 53, 0.7); /* لون غامق بيعطي تباين لما تحط الماوس */
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.footer-map-container:hover .map-overlay {
    opacity: 1;
}

.footer-map-container:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.footer-map-container img {
    transition: transform 0.5s ease;
}

