/* ====================================================
   URBA EVENTS - RESPONSIVE MOBILE FIXES
   ==================================================== */

/* --------- TABLET & MOBILE SCREENS (Max 991px) --------- */
@media (max-width: 991px) {
    /* 1. Global Typography & Spacing Fixes */
    h1, h2, h3, .fz-100, .fz-120 {
        font-size: clamp(32px, 6vw, 55px) !important;
        line-height: 1.2 !important;
        letter-spacing: -1px !important;
    }
    
    p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* Reduce global large margins and paddings */
    .mt-100, .mb-100 { margin-top: 50px !important; margin-bottom: 50px !important; }
    .mt-80, .mb-80 { margin-top: 40px !important; margin-bottom: 40px !important; }
    .pt-100, .pb-100 { padding-top: 50px !important; padding-bottom: 50px !important; }
    
    /* 2. Fix Services Page: Stats Section */
    .services-stats .stat-box {
        aspect-ratio: auto !important; /* Remove perfect square to avoid clipping */
        height: auto !important;
        padding: 40px 30px !important;
        margin-bottom: 20px !important;
    }
    .services-stats .stat-box h3 {
        font-size: 70px !important;
    }
    .services-stats .stat-box h3 span {
        font-size: 35px !important; /* The 'K' in 15K */
    }

    /* 3. Fix Services Page: Process Section */
    .services-process .step-card {
        padding: 30px 20px !important;
        flex-direction: column !important; /* Stack number and text vertically */
        align-items: flex-start !important;
    }
    .services-process .step-num {
        font-size: 60px !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        text-align: left !important;
    }

    /* 4. Fix Services Page: Gallery Grid */
    .services-gallery .row > div {
        margin-bottom: 30px !important;
    }
    .services-gallery .d-flex.flex-column {
        height: auto !important;
        gap: 20px !important;
    }
    .services-gallery img {
        height: 100% !important;
        min-height: 250px !important;
        object-fit: cover;
    }

    /* 5. Fix Services Page: Get In Touch (CTA) */
    .services-cta .container > .row > div > div {
        padding: 40px 20px !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .services-cta h2 {
        margin: 0 0 20px 0 !important;
        font-size: 35px !important;
    }
    .services-cta a {
        margin: 20px auto !important;
    }
    .services-cta p {
        text-align: center !important;
        max-width: 100% !important;
    }

    /* 6. Footer Fixes */
    .footer {
        padding: 50px 0 !important;
    }
    .footer .item {
        margin-bottom: 30px !important;
    }
}

/* --------- SMALL MOBILE PHONES (Max 767px) --------- */
@media (max-width: 767px) {
    h1, h2, h3 {
        font-size: clamp(28px, 8vw, 40px) !important;
    }
    
    .services-stats .stat-box h3 {
        font-size: 55px !important;
    }
    
    .services-cta h2 {
        font-size: 28px !important;
    }
    
    /* Ensure no horizontal scrolling */
    body {
        overflow-x: hidden !important;
    }
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


/* ====================================================
   URBA EVENTS - FIXES PLAN (LOADER, LOGO, TYPO, RADIUS)
   ==================================================== */

/* 1. Loader Modernization */
.urba-loader-wrap svg {
    display: none !important; /* Enlève la courbe SVG qui bug sur mobile */
}
.urba-loader-wrap {
    background-color: #f6f3f0 !important; /* Fond beige premium */
}
.urba-loader-wrap-heading .load-text {
    color: #1f3565 !important; /* Texte bleu Urba */
    font-weight: 700 !important;
}

/* 2. Logo Fixes (Force dark logo on light backgrounds for mobile if needed) */
@media (max-width: 991px) {
    .navbar .logo-light {
        display: none !important;
    }
    .navbar .logo-dark {
        display: block !important;
    }
}

@media (max-width: 991px) {
    /* 3. Typography "Notre engagement" */
    .hero-mst .main-text h2 {
        font-size: 22px !important;
        line-height: 1.5 !important;
        margin-top: 15px !important;
    }
    .hero-mst .sub-head {
        font-size: 14px !important;
        letter-spacing: 2px !important;
    }
    
    /* 4. GSAP 3D Cards Section Fix (Mobile) */
    /* Empêche le chevauchement 3D illisible sur mobile */
    .floating-image {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px !important;
        left: 0 !important;
        top: 0 !important;
    }
    /* Masquer certaines images secondaires pour alléger la vue mobile */
    .floating-image:nth-child(n+4) {
        display: none !important; 
    }
    .floating-image img {
        border-radius: 15px !important;
        width: 100% !important;
    }
    
    /* 5. Border-radius géants (Ovals) */
    section, .bg-white, .works-ds, .radius-30, .bord-thin-top {
        border-radius: 20px !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        border-bottom-left-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
    }

    /* 6. Nos Services Grid & Icons */
    .services .row, .serv-box {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    .services .item-box {
        width: 100% !important;
        margin-bottom: 25px !important;
        padding: 30px 20px !important;
        text-align: center !important;
    }
    .services .item-box .icon {
        margin: 0 auto 20px auto !important;
        float: none !important;
    }
    .services .item-box h5 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    .services .item-box p {
        font-size: 15px !important;
    }
}


/* 7. Header Slider Height Fix (Force identical height on all slides) */
.header-slider {
    height: 100vh !important; /* Plein écran */
    min-height: 650px !important;
}
@supports (height: 100dvh) {
    .header-slider {
        height: 100dvh !important; /* Plein écran dynamique pour mobile */
    }
}
.header-slider .swiper-slide {
    height: 100% !important;
}
.header-slider .header-mst {
    height: 100% !important;
    padding: 0 !important; /* Enlever le padding fixe */
    display: flex !important;
    align-items: center !important; /* Centrage vertical du contenu */
}
@media (max-width: 991px) {
    .header-slider {
        min-height: 500px !important;
        height: 100vh !important; /* Un peu moins haut sur mobile pour voir la suite */
    }
    @supports (height: 100dvh) {
        .header-slider {
            height: 100dvh !important;
        }
    }
    .header-slider .header-mst {
        padding-top: 80px !important; /* Espace pour la navbar mobile */
    }
}

/* ====================================================
   1. Loader Modernization (2026 Edition)
   ==================================================== */

.urba-loader-wrap {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #f6f3f0 !important; /* Fond beige premium */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
    overflow: hidden;
}

/* Touch Mghribya : Animation dyal Nejma */
.moroccan-star-container {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    animation: spinSlow 15s linear infinite; /* Kador bchwiya */
}

.moroccan-star rect {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawStar 2.5s cubic-bezier(0.64, 0, 0.78, 0) forwards infinite alternate;
}

/* Texte URBA EVENTS */
.urba-loader-wrap-heading {
    text-align: center;
    overflow: hidden;
}

.load-text {
    color: #1f3565 !important; /* Bleu URBA */
    font-size: 3rem; /* T9der tbdlha 3la hsab l design */
    font-weight: 800 !important;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    letter-spacing: 2px;
}

.load-text .letter {
    transform: translateY(100%);
    opacity: 0;
}

.load-text .space {
    width: 15px; /* L'espace bin Urba o Events */
}

.sub-text {
    color: #b70f80; /* Doré/Cuivre Mghribi */
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0;
    font-weight: 500;
}

/* Keyframes */
@keyframes drawStar {
    to { stroke-dashoffset: 0; }
}
@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

/* Responsive l mobile */
@media (max-width: 768px) {
    .load-text { font-size: 2rem; }
    .sub-text { font-size: 0.7rem; letter-spacing: 4px; }
    .moroccan-star-container { width: 45px; height: 45px; }
}


/* --- New 9-Dot CodePen Loader --- */
.urba-loader-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f6f3f0 !important; /* Fond beige premium */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999 !important;
  overflow: hidden;
}

.pl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 8rem;
  height: 8rem;
  margin-bottom: 30px; /* Space for text below */
}
.pl__dot {
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem inset;
  width: 100%;
  height: 100%;
  animation-duration: 1.5s;
  animation-timing-function: cubic-bezier(0.33, 0, 0.67, 1);
  animation-iteration-count: infinite;
}
.pl__dot:nth-child(1) {
  animation-name: dot1;
  animation-delay: 0.75s;
  color: #b70f80;
}
.pl__dot:nth-child(2) {
  animation-name: dot2;
  animation-delay: 1.125s;
  color: #1f3565;
}
.pl__dot:nth-child(3) {
  animation-name: dot3;
  animation-delay: 1.5s;
  color: #b70f80;
}
.pl__dot:nth-child(4) {
  animation-name: dot4;
  animation-delay: 1.125s;
  color: #1f3565;
}
.pl__dot:nth-child(5) {
  animation-name: dot5;
  animation-delay: 0.75s;
  color: #b70f80;
}
.pl__dot:nth-child(6) {
  animation-name: dot6;
  animation-delay: 1.125s;
  color: #1f3565;
}
.pl__dot:nth-child(7) {
  animation-name: dot7;
  animation-delay: 1.5s;
  color: #b70f80;
}
.pl__dot:nth-child(8) {
  animation-name: dot8;
  animation-delay: 1.125s;
  color: #1f3565;
}
.pl__dot:nth-child(9) {
  animation-name: dot9;
  animation-delay: 0.75s;
  color: #b70f80;
}

/* Animations */
@keyframes dot1 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  37.5% {
    box-shadow: 0 0 0 500% inset;
    transform: scale(0);
  }
}
@keyframes dot2 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 167% inset;
    transform: scale(0);
  }
}
@keyframes dot3 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  62.5% {
    box-shadow: 0 0 0 167% inset;
    transform: scale(0);
  }
}
@keyframes dot4 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 167% inset;
    transform: scale(0);
  }
}
@keyframes dot5 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  37.5% {
    box-shadow: 0 0 0 500% inset;
    transform: scale(0);
  }
}
@keyframes dot6 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 167% inset;
    transform: scale(0);
  }
}
@keyframes dot7 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  62.5% {
    box-shadow: 0 0 0 167% inset;
    transform: scale(0);
  }
}
@keyframes dot8 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 167% inset;
    transform: scale(0);
  }
}
@keyframes dot9 {
  0%, 12.5%, 100% {
    box-shadow: 0 0 0 0.25rem inset;
    transform: scale(1);
  }
  37.5% {
    box-shadow: 0 0 0 500% inset;
    transform: scale(0);
  }
}
/* Texte URBA EVENTS */
.urba-loader-wrap-heading {
  text-align: center;
  overflow: hidden;
}

.load-text {
  color: #1f3565 !important; /* Bleu URBA */
  font-size: 2.5rem;
  font-weight: 800 !important;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  letter-spacing: 2px;
}

.load-text .letter {
  transform: translateY(100%);
  opacity: 0;
}

.load-text .space {
  width: 15px; /* L'espace bin Urba o Events */
}

.sub-text {
  color: #b70f80; /* Rose/Magenta */
  font-size: 0.85rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 15px;
  opacity: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .load-text {
    font-size: 1.8rem;
  }
  .sub-text {
    font-size: 0.65rem;
    letter-spacing: 4px;
  }
  .pl {
    width: 6rem;
    height: 6rem;
    gap: 1rem;
  }
}

/*# sourceMappingURL=loader.css.map */

.header-slider .header-swiper,
.header-slider .swiper-wrapper {
    height: 100% !important;
}


/* FORCE SLIDER TO 100VH ON ALL DEVICES */
.header-slider,
.header-slider .header-swiper,
.header-slider .swiper-wrapper,
.header-slider .swiper-slide,
.header-slider .header-mst {
    height: 100vh !important;
    min-height: 100vh !important;
}
@supports (height: 100dvh) {
    .header-slider,
    .header-slider .header-swiper,
    .header-slider .swiper-wrapper,
    .header-slider .swiper-slide,
    .header-slider .header-mst {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }
}

/* ==================== 3D STACK SHOWCASE ==================== */
.urba-3d-stack-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: #f6f3f0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.stack-3d-container {
    position: relative;
    width: 100%;
    height: 65vh;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.stack-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transform-origin: bottom center;
    will-change: transform, opacity;
}

.stack-card img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

/* Initial styling before JS kicks in */
.stack-card-0 { z-index: 3; transform: scale(1) translateY(0); }
.stack-card-1 { z-index: 2; transform: scale(0.9) translateY(40px); opacity: 0.8; }
.stack-card-2 { z-index: 1; transform: scale(0.8) translateY(80px); opacity: 0.6; }

@media (max-width: 991px) {
    .urba-3d-stack-section {
        height: auto;
        padding: 100px 0;
    }
    .stack-3d-container { height: 45vh; margin-top: 50px !important; }
    .urba-3d-stack-section h2 { font-size: 2.5rem !important; }
}

/* --- Footer Badge Responsive Fix --- */
footer.footer-mp {
    position: relative;
    z-index: 99 !important;
    background-color: #ffffff;
}
.footer-circle-badge {
    width: 220px;
    z-index: 10;
}
@media (min-width: 992px) {
    .footer-mp .footer-circle-badge {
        position: absolute;
        bottom: 50px;
        left: 5%;
        animation: spin 15s linear infinite;
    }
}
@media (max-width: 991px) {
    .footer-mp .circle {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .footer-mp .footer-circle-badge {
        position: relative;
        display: block;
        margin: 0 auto;
        animation: spin 15s linear infinite;
    }
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==================== PREMIUM MOBILE MENU REDESIGN ==================== */
.hamenu {
    background-color: #f6f3f0 !important; /* Premium Beige */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.hamenu .close-menu {
    top: 40px !important;
    right: 40px !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #b70f80 !important; /* Magenta close button */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 28px !important;
    opacity: 1 !important;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(183, 15, 128, 0.3);
    transition: all 0.3s ease;
}
.hamenu .close-menu:hover {
    transform: rotate(90deg);
}

.hamenu .menu-links {
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hamenu .menu-links .main-menu {
    padding: 0;
    margin: 0;
}

.hamenu .menu-links .main-menu > li {
    margin-bottom: 25px;
}

.hamenu .menu-links .main-menu > li > .o-hidden > .link {
    font-size: 3rem !important;
    font-family: 'Playfair Display', serif !important;
    color: #1f3565 !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease !important;
}

/* Remove old fill-text effect */
.hamenu .menu-links .main-menu > li > .o-hidden > .link .fill-text {
    background: none !important;
    -webkit-text-fill-color: #1f3565 !important;
    -webkit-text-stroke: 0px transparent !important;
    transition: all 0.3s ease !important;
}

.hamenu .menu-links .main-menu > li > .o-hidden > .link:hover .fill-text,
.hamenu .menu-links .main-menu > li > .o-hidden > .link.active .fill-text {
    -webkit-text-fill-color: #b70f80 !important;
    transform: scale(1.1);
}

.menu-footer {
    position: relative;
    z-index: 1;
}

.menu-footer .social-icons a {
    width: 45px;
    height: 45px;
    background: #1f3565;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.menu-footer .social-icons a:hover {
    background: #b70f80;
    transform: translateY(-5px);
}

/* ==================== STRICT MOBILE MENU FIX ==================== */
/* Force Beige background everywhere in the menu */
.hamenu,
.hamenu .container-fluid,
.hamenu .menu-links,
.hamenu .cont-info,
.hamenu.open .cont-info,
.hamenu .cont-info.valign {
    background-color: #f6f3f0 !important;
    background: #f6f3f0 !important;
}

/* Fix the layout for mobile to prevent overlapping */
@media (max-width: 991px) {
    .hamenu .container-fluid.d-flex {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-top: 100px !important;
        height: 100vh;
        overflow-y: auto;
    }
    
    .hamenu .menu-links {
        width: 100% !important;
        margin-bottom: 40px !important;
    }
    
    .hamenu .cont-info {
        width: 100% !important;
        padding-left: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
}

/* Font and text styling (No Playfair, No duplicates) */
.hamenu .menu-links .main-menu > li > .o-hidden > .link {
    font-family: 'Outfit', sans-serif !important; /* Modern sans-serif */
    font-size: 2.2rem !important;
    color: #1f3565 !important;
    font-weight: 600 !important;
    letter-spacing: -0.5px !important;
}

.hamenu .menu-links .main-menu > li > .o-hidden > .link:hover,
.hamenu .menu-links .main-menu > li > .o-hidden > .link.active {
    color: #b70f80 !important;
    transform: translateX(10px);
}

/* Ensure Contact Info text is readable and correctly colored */
.hamenu .cont-info .item p,
.hamenu .cont-info .item span,
.hamenu .cont-info h6 {
    color: #1f3565 !important;
}

/* Social icons in cont-info */
.hamenu .cont-info .social-icon a {
    color: #fff !important;
    background-color: #1f3565 !important;
    border: none !important;
    transition: all 0.3s ease;
}
.hamenu .cont-info .social-icon a:hover {
    background-color: #b70f80 !important;
}

/* Close button fix */
.hamenu .close-menu {
    top: 30px !important;
    right: 30px !important;
    background-color: #1f3565 !important; /* Blue looks more pro */
    color: #fff !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
}
.hamenu .close-menu:hover {
    background-color: #b70f80 !important;
}

/* ==================== MENU COLOR & ICON FIXES ==================== */
/* Remove any watermark completely */
.hamenu::before {
    display: none !important;
}

/* Ensure ALL text in cont-info is Blue, overriding any theme defaults */
.hamenu .cont-info h5,
.hamenu .cont-info h5 a,
.hamenu .cont-info p,
.hamenu .cont-info span {
    color: #1f3565 !important;
    font-family: 'Outfit', sans-serif !important;
}
.hamenu .cont-info h5 a:hover {
    color: #b70f80 !important;
}

/* Make social icons perfect circles */
.hamenu .cont-info .social-icon {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.hamenu .cont-info .social-icon a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background-color: #1f3565 !important;
    color: #fff !important;
    text-decoration: none;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}
.hamenu .cont-info .social-icon a:hover {
    background-color: #b70f80 !important;
    transform: translateY(-5px);
}

/* Space out the contact info properly */
.hamenu .cont-info .item {
    margin-top: 25px !important;
}
.hamenu .cont-info .item h5 {
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ==================== SERVICES LIST RESPONSIVE FIX ==================== */
@media (max-width: 991px) {
    .services-ds .item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 30px 15px !important;
    }
    .services-ds .item .title {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .services-ds .item .title h2 {
        font-size: 28px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    .services-ds .item .text {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .services-ds .item .text > .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    .services-ds .item .text p {
        width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
        font-size: 15px !important;
    }
    .services-ds .item .icon {
        margin-left: 0 !important;
        align-self: flex-start !important;
    }
}



/* ==================== UNIFIED NAVBAR FIX (ALL SIZES) ==================== */

/* 1. Global Navbar Container (Desktop & Mobile) */
.navbar {
    display: flex !important;
    align-items: center !important;
    padding: 20px 0 !important;
}

.navbar .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* 2. Global Logo Container */
.navbar .logo {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* 3. Global Logo Image Size Constraints */
.navbar .logo img {
    display: block !important;
    width: 200px !important;
    height: 48px !important; /* Force exact height, no auto */
    max-height: 48px !important;
    object-fit: contain !important;
    object-position: left center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Topnav (Right Icons) */
.navbar .topnav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.navbar .topnav .theme-toggle,
.navbar .topnav .menu-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 45px !important;
    width: 45px !important;
    margin: 0 0 0 15px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* 5. Mobile Adjustments */
@media (max-width: 991px) {
    .navbar {
        padding: 15px 0 !important;
    }
    
    .navbar .logo img {
        width: 180px !important;
        height: 42px !important;
        max-height: 42px !important;
    }

    /* HIDE DARK MODE TOGGLE ON MOBILE AS REQUESTED */
    .navbar .topnav .theme-toggle {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .navbar .logo img {
        width: 160px !important;
        height: 38px !important;
        max-height: 38px !important;
    }
    
    .navbar .topnav .theme-toggle,
    .navbar .topnav .menu-icon {
        height: 40px !important;
        width: 40px !important;
        margin-left: 10px !important;
    }
}


/* ==================== CONTACT SIMPLE FIXES ==================== */
.urba-bottom-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    color: #1f3565 !important;
    font-size: 1rem;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.urba-bottom-input:focus {
    border-bottom: 2px solid #b70f80 !important;
    outline: none !important;
}
.urba-bottom-input::placeholder {
    color: #888 !important;
}

@media (max-width: 991px) {
    .contact-pg .col-lg-5 {
        margin-bottom: 60px !important;
    }
}


/* ==================== URBA ANIMATED BACKGROUND ==================== */
.urba-animated-bg {
    background-color: #fcfbf9; /* Very light beige */
}

.urba-blob {
    position: absolute;
    filter: blur(90px);
    z-index: 1;
    opacity: 0.7;
    animation: urba-float 15s infinite alternate ease-in-out;
}

.urba-blob-1 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: rgba(183, 15, 128, 0.12); /* Magenta soft */
    top: -10%;
    left: -10%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.urba-blob-2 {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: rgba(31, 53, 101, 0.08); /* Dark Blue soft */
    bottom: -20%;
    right: -10%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

.urba-blob-3 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: rgba(183, 15, 128, 0.08); /* Magenta soft */
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation-delay: -10s;
}

@keyframes urba-float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(3vw, -5vw) scale(1.1) rotate(10deg); }
    66% { transform: translate(-2vw, 2vw) scale(0.9) rotate(-5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* ==================== PORTFOLIO MODERN INTRO ==================== */
.portfolio-dark-features .feat-card:hover {
    transform: translateY(-10px);
    background-color: #222 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
@media (max-width: 991px) {
    .portfolio-modern-intro svg {
        display: none !important;
    }
    .portfolio-modern-intro h1 {
        margin-bottom: 40px;
    }
    .portfolio-modern-intro .col-lg-6.position-relative {
        justify-content: flex-start !important;
    }
    .portfolio-modern-intro .col-lg-6.position-relative div {
        margin-left: 0 !important;
        font-size: 200px !important;
    }
}

/* Dynamic Navbar Active Link Colors (Global) */
.navbar.navbar-dark-bg .navbar-nav .nav-link.active {
    background-color: #b70f80 !important; /* Magenta pop on dark background */
    color: #fff !important;
}

/* ==================== GLOBAL PARALLAX STACK FIXES ==================== */
@media (min-width: 992px) {
    /* For the parallax stack scrolling up and down to work correctly, 
       all pinned sections MUST be at least 100vh tall to fully cover the previous one. */
    .urba-parallax-stack {
        position: relative;
        min-height: 100vh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Exceptions for sections that handle their own complex layouts */
    .urba-parallax-stack.header-slider {
        display: block; 
    }

    .urba-parallax-stack > .container {
        width: 100%;
    }
}

/* Fix broken dark gradient box appearing in hero-mst due to flexbox */
.hero-mst::before {
    display: none !important;
}

/* ==================== BOX DARK: FORCE URBA BLUE ==================== */
.box-dark .box,
.box-dark .box .layers,
.box-dark .box .layers:after {
    background-color: #1f3565 !important;
}

.box-dark .box,
.box-dark .box h4,
.box-dark .box p,
.box-dark .box span,
.box-dark .box h6,
.box-dark .clients-ds .sec-head .sub-head {
    color: #ffffff !important;
}

.box-dark .qoute-icon .text img,
.box-dark .qoute-icon .icon img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Pagination dots for testimonials */
.box-dark .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
}
.box-dark .swiper-pagination-bullet-active {
    background: #b70f80 !important;
}

/* Partners section inside box-dark */
.box-dark .clients-ds .sec-head span {
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.box-dark .clients-ds .item {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.box-dark .clients-ds .item img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
}

.box-dark .clients-ds .item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.box-dark .clients-ds .item:hover img {
    opacity: 1 !important;
}

/* Separator line */
.box-dark .bord-thin-top-light {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ==================== PARALLAX STACK SEPARATION ==================== */
@media (min-width: 992px) {
    /* Adds a subtle top border and soft shadow to white sections so they stand out when sliding over each other */
    section[data-theme="light"].urba-parallax-stack {
        border-top: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 -15px 40px rgba(0,0,0,0.03);
    }

    /* Ensure no border on the very first section just in case */
    section[data-theme="light"].urba-parallax-stack:first-of-type {
        border-top: none;
        box-shadow: none;
    }
}
