/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    box-shadow: none;
}

/* All buttons - rounded corners (8px) to match icon containers */
.btn {
    border-radius: 8px !important;
}

/* Primary buttons - match navbar CTA (transparent with full blue border/text) */
.btn-primary {
    background-color: transparent !important;
    border: 1px solid #2196F3 !important;
    color: #2196F3 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgba(33, 150, 243, 0.1) !important;
    border-color: #2196F3 !important;
    color: #2196F3 !important;
}

/* Back-to-top button should match primary button style */
.btn.btn-lg-square.back-to-top {
    background-color: transparent !important;
    border: 1px solid #2196F3 !important;
    color: #2196F3 !important;
}

.btn.btn-lg-square.back-to-top:hover,
.btn.btn-lg-square.back-to-top:focus {
    background-color: rgba(33, 150, 243, 0.1) !important;
    border-color: #2196F3 !important;
    color: #2196F3 !important;
}

/* Navbar CTA sizing and visibility */
.navbar .btn-primary {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    border: 1px solid #2196F3 !important; /* Full blue to match card text */
    color: #2196F3 !important; /* Full blue to match card text */
}

.navbar .btn-primary:hover,
.navbar .btn-primary:focus {
    background-color: rgba(33, 150, 243, 0.1) !important;
    border-color: #2196F3 !important;
    color: #2196F3 !important;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar {
    position: relative;
    z-index: 100;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 18px 0; /* smaller height */
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

/* Removed sticky-specific nav-link padding to keep consistent appearance */

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #2196F3;
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    background-color: transparent !important;
    border: 1px solid #2196F3 !important;
    color: #2196F3 !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* Keep transparent on active/clicked states - no solid background */
.navbar-dark .navbar-toggler:active,
.navbar-dark .navbar-toggler:focus,
.navbar-dark .navbar-toggler:focus-visible {
    background-color: transparent !important;
    border-color: #2196F3 !important;
    color: #2196F3 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Only show light blue background on hover */
.navbar-dark .navbar-toggler:hover {
    background-color: rgba(33, 150, 243, 0.1) !important;
    border-color: #2196F3 !important;
    color: #2196F3 !important;
    transform: translateY(-2px);
}

/* Hamburger to X animation */
.navbar-toggler .fa-bars {
    transition: all 0.3s ease;
    color: #2196F3 !important;
}

/* When navbar is expanded, change icon to X */
.navbar-toggler[aria-expanded="true"] .fa-bars:before {
    content: "\f00d" !important; /* Font Awesome X (times) icon */
}

.navbar-toggler[aria-expanded="true"] {
    transform: rotate(90deg);
    background-color: transparent !important;
}

/* Keep transparent when expanded and clicked */
.navbar-toggler[aria-expanded="true"]:active,
.navbar-toggler[aria-expanded="true"]:focus,
.navbar-toggler[aria-expanded="true"]:focus-visible {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Only show hover effect when expanded */
.navbar-toggler[aria-expanded="true"]:hover {
    background-color: rgba(33, 150, 243, 0.1) !important;
    transform: rotate(90deg) translateY(-2px);
}

@media (max-width: 991.98px) {
    /* Make navbar always have solid background on mobile */
    .navbar-dark {
        background: #243447 !important;
        position: relative !important;
    }
    
    .sticky-top.navbar-dark {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        background: #243447 !important;
        z-index: 999 !important;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show {
        padding: 10px 0;
        color: #FFFFFF;
    }

    .navbar-dark .navbar-brand h1 {
        color: #FFFFFF;
    }
    
    /* Collapsed menu styling - solid background */
    .navbar-dark .navbar-collapse {
        background: #243447 !important;
        padding: 1rem;
        margin: 0 -1rem;
    }
    
    /* brand image consistent size on small screens */
    .navbar-dark .navbar-brand img { height: 56px !important; }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #243447; /* solid background for visibility */
        width: 100%;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: #2196F3;
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar-dark .navbar-brand h1 {
        color: #FFFFFF;
    }
    /* keep brand image consistent size */
    .navbar-dark .navbar-brand img { height: 60px !important; }
}

/* Reduce default vertical padding on navbars that use Bootstrap's py-3 utility */
.navbar.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}


/*** Carousel ***/
/* Hero parallax effect - hero stays fixed, content scrolls over it */
#header-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

#header-carousel .carousel-inner,
#header-carousel .carousel-item {
    height: 100vh;
    position: relative;
}

/* Blue tint overlay for hero video - subtle to keep video visible */
#header-carousel .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 30, 62, 0.35); /* 35% opacity - same blue as header but lighter */
    z-index: 1;
    pointer-events: none;
}

#header-carousel video {
    height: 100vh;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2; /* Above the overlay */
}

/* Subtle readability boost for hero headings over video */
.carousel-caption h1,
.carousel-caption h5 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Mobile hero adjustments - make sticky like desktop */
@media (max-width: 991.98px) {
    #header-carousel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 0 !important;
    }
    
    #header-carousel .carousel-inner,
    #header-carousel .carousel-item {
        height: 100vh !important;
    }
    
    #header-carousel video {
        height: 100vh !important;
        object-fit: cover !important;
    }
    
    /* Ensure page content starts after hero */
    #page-content {
        margin-top: 100vh !important;
    }
    
    /* Better text visibility on mobile */
    .carousel-caption {
        padding: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .carousel-caption h5 {
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        margin-bottom: 0.75rem !important;
    }

    .carousel-caption h1 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }

    .carousel-caption h1 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .carousel-caption > div {
        padding: 0.5rem !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: #2196F3;
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 1001; /* above footer and other layers */
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* Footer about card - rounded corners */
.footer-about .bg-light {
    border-radius: 15px !important;
}

/* Rounded logo styling for navbar and footer */
.navbar-dark .navbar-brand img,
.footer-about img {
    border-radius: 12px;
    background-color: #243447; /* blend with dark blue-grey theme */
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Slight emphasis on hover/focus */
.navbar-dark .navbar-brand:hover img,
.footer-about a:hover img {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Topbar positioning - must appear above fixed hero */
.container-fluid.bg-dark {
    position: relative;
    z-index: 200;
}

/* Topbar social media icons styling */
.container-fluid.bg-dark .btn-primary.btn-square {
    background-color: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.container-fluid.bg-dark .btn-primary.btn-square:hover,
.container-fluid.bg-dark .btn-primary.btn-square:focus {
    background-color: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    opacity: 0.7 !important;
    transform: scale(1.1);
}

/*** Modern Scroll Animations - Replace WOW.js ***/
/* Fade + subtle slide up animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Force immediate reveal for above-the-fold elements */
.reveal-immediate {
    opacity: 1 !important;
    transform: none !important;
}

/* Stagger timing for professional polish */
.fade-in-up:nth-child(1) { transition-delay: 0s; }
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.fade-in-up:nth-child(6) { transition-delay: 0.5s; }

/* Micro-interactions for cards */
.bg-light.shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-light.shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Icon border color shift on hover */
.bg-light.shadow:hover [style*="border: 2px solid"] {
    border-color: rgba(33, 150, 243, 0.6) !important;
}

/* Hover animation for all shadow cards (including WhatsApp card) */
.shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Icon border color shift on hover for WhatsApp card */
.shadow:hover [style*="border: 2px solid rgba(255, 255, 255"] {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Button hover micro-interaction */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* CTA button subtle pulse */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(33, 150, 243, 0); }
}

.navbar .btn-primary {
    animation: pulse-glow 3s infinite;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .bg-light.shadow,
    .btn,
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .fade-in-up {
        opacity: 1 !important;
    }
}

/* Success Modal Styling */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.modal-content {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Mobile App Section Styling */
.mobile-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #243447;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Text animation - same smooth curve as card */
.mobile-app-section .mobile-text {
    opacity: 0;
    transform: scale(0.85);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.mobile-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for horizontal video */
    background: #000;
    overflow: hidden;
}

.mobile-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stagger animation for mobile section */
.mobile-mockup-container {
    animation-delay: 0.2s;
}

/* Mobile service card improvements */
@media (max-width: 767.98px) {
    /* Fix service card display on mobile */
    .bg-light.shadow {
        min-height: 240px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Ensure service cards stack properly */
    .service-item {
        margin-bottom: 1.5rem;
    }
    
    /* Adjust service card padding for mobile */
    .bg-light.shadow.p-3 {
        padding: 1.5rem !important;
    }
    
    /* Fix icon container sizing on mobile */
    .bg-light.shadow [style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Adjust heading sizes in service cards */
    .bg-light.shadow h4 {
        font-size: 1.1rem !important;
    }
    
    /* Adjust list items in service cards */
    .bg-light.shadow .list-unstyled li {
        font-size: 0.85rem !important;
    }
    
    /* Carousel caption mobile adjustments */
    .carousel-caption {
        padding: 1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
    }
    
    /* Topbar mobile improvements */
    .container-fluid.bg-dark small {
        font-size: 0.75rem !important;
    }
    
    /* Footer mobile improvements */
    .footer-about {
        margin-bottom: 0 !important;
    }
    
    /* About section image fix for mobile */
    .col-lg-5[style*="min-height: 400px"] {
        min-height: 300px !important;
    }
    
    /* Contact page feature cards - make more compact on mobile */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center {
        padding: 0.75rem !important;
        min-height: auto !important;
    }
    
    /* Reduce icon size on contact feature cards for mobile */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center [style*="width: 60px"] {
        width: 45px !important;
        height: 45px !important;
        margin-right: 0.75rem !important;
    }
    
    /* Reduce icon font size on contact feature cards */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center .fs-4 {
        font-size: 1rem !important;
    }
    
    /* Reduce text sizes on contact feature cards */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center small {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* Free Consultation CTA card - make more compact on mobile */
    .bg-light.shadow.p-3.p-md-4.rounded-4 {
        padding: 0.75rem !important;
    }
    
    /* Reduce icon size in Free Consultation card */
    .bg-light.shadow.p-3.p-md-4.rounded-4 [style*="width: 60px"] {
        width: 45px !important;
        height: 45px !important;
        margin-right: 0.75rem !important;
    }
    
    /* Reduce icon font in Free Consultation card */
    .bg-light.shadow.p-3.p-md-4.rounded-4 .fs-4 {
        font-size: 1rem !important;
    }
    
    /* Reduce heading size in Free Consultation card */
    .bg-light.shadow.p-3.p-md-4.rounded-4 h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Reduce spacing in Free Consultation card icon container */
    .bg-light.shadow.p-3.p-md-4.rounded-4 .d-flex.align-items-center.mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Reduce description text in Free Consultation card */
    .bg-light.shadow.p-3.p-md-4.rounded-4 p.small {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
}

/* Extra small screens - make contact cards even more compact */
@media (max-width: 576px) {
    /* Contact page feature cards - extra compact on phones */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center {
        padding: 0.6rem !important;
    }
    
    /* Further reduce icon size on very small screens */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center [style*="width: 60px"] {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0.6rem !important;
    }
    
    /* Smaller icon font */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center .fs-4 {
        font-size: 0.9rem !important;
    }
    
    /* Smaller text on phones */
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center h6 {
        font-size: 0.8rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .container-fluid.py-5 .bg-light.shadow.d-flex.align-items-center small {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }
    
    /* Free Consultation CTA card - extra compact on phones */
    .bg-light.shadow.p-3.p-md-4.rounded-4 {
        padding: 0.6rem !important;
    }
    
    /* Further reduce icon size in Free Consultation card on phones */
    .bg-light.shadow.p-3.p-md-4.rounded-4 [style*="width: 60px"] {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0.6rem !important;
    }
    
    /* Smaller icon font on phones */
    .bg-light.shadow.p-3.p-md-4.rounded-4 .fs-4 {
        font-size: 0.9rem !important;
    }
    
    /* Smaller heading on phones */
    .bg-light.shadow.p-3.p-md-4.rounded-4 h5 {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Reduce spacing in Free Consultation card icon container on phones */
    .bg-light.shadow.p-3.p-md-4.rounded-4 .d-flex.align-items-center.mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    /* Smaller description on phones */
    .bg-light.shadow.p-3.p-md-4.rounded-4 p.small {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .mobile-mockup-container {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .mobile-card {
        max-width: 100%;
    }
    
    .mobile-app-section .mobile-text h2 {
        font-size: 2rem !important;
    }
}