/********** Template CSS **********/
:root {
    --primary:#37B7FE ;
    --secondary: #004AAC;
    --light: #F7F7F7;
    --dark: #37B7FE;;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold {
    font-weight: 700 !important;
}

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

.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#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;
}
.container-fluid{
    background-color: #37B7FE;
}
.container-fluid2{
    background-color: white;
}
.me-2 {
    background-color: white;
    color: #37B7FE;
}
.me-3{
    color: white;
}
.me-4{
    color: black;
}
.container-fluid3{
    background-color: white;
    color: black;
}
.container-fluid7 {
    background-color: #37B7FE;
    color: white;
}
.copyright-1{
    color: black;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #37B7FE;
}

.btn-secondary,
.btn-outline-secondary:hover {
    color:  #37B7FE;
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
.btn11{
    color: white;
}


/*** Header Animations ***/
/* Topbar fade-in animation */
.container-fluid {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar slide-down animation */
.navbar {
    animation: slideDown 1s ease-out;
}

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

/* Logo animation */
.navbar-brand {
    animation: logoSlide 1.2s ease-out;
    transition: all 0.3s ease;
}

@keyframes logoSlide {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.navbar-brand:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo hover glow effect */
.navbar-brand {
    position: relative;
    overflow: hidden;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #37B7FE, #004AAC, #37B7FE);
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

.navbar-brand:hover::before {
    opacity: 0.6;
    animation: logoGlow 0.6s ease-out;
}

@keyframes logoGlow {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Logo pulse animation on hover */
.navbar-brand:hover {
    animation: logoPulse 0.8s ease-in-out;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Logo bounce effect on hover */
.navbar-brand:hover {
    animation: logoBounce 0.6s ease;
}

@keyframes logoBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.1);
    }
    40% {
        transform: translateY(-8px) scale(1.15);
    }
    60% {
        transform: translateY(-4px) scale(1.12);
    }
}

/* Logo hover glow class for JavaScript */
.logo-hover-glow {
    animation: logoHoverGlow 0.8s ease-in-out;
}

@keyframes logoHoverGlow {
    0% {
        box-shadow: 0 0 5px rgba(55, 183, 254, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(55, 183, 254, 0.8), 0 0 30px rgba(55, 183, 254, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(55, 183, 254, 0.5);
    }
}

/* Navigation links animation */
.navbar-nav .nav-item {
    animation: navItemFade 1.5s ease-out;
    animation-fill-mode: both;
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }
.navbar-nav .nav-item:nth-child(6) { animation-delay: 0.6s; }
.navbar-nav .nav-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes navItemFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced navigation link hover effects with underline animation */
.navbar .navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 25px 0;
}

/* Underline animation */
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #37B7FE, #004AAC);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar .navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Background slide effect */
.navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 254, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.navbar .navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar .navbar-nav .nav-link:hover {
    color: #37B7FE;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(55, 183, 254, 0.3);
}

/* Dropdown animation */
.navbar .nav-item .dropdown-menu {
    animation: dropdownSlide 0.3s ease-out;
    transform-origin: top;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: scaleY(0) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

/* Sticky navbar enhanced animation */
.navbar.sticky-top {
    top: -100px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.sticky-top.show {
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile menu animation */
.navbar-toggler {
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(55, 183, 254, 0.25);
}

/* Social links animation */
.container-fluid .btn-link {
    transition: all 0.3s ease;
    animation: socialFade 1.8s ease-out;
    animation-fill-mode: both;
}

.container-fluid .btn-link:nth-child(1) { animation-delay: 0.2s; }
.container-fluid .btn-link:nth-child(2) { animation-delay: 0.4s; }

@keyframes socialFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.container-fluid .btn-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: #37B7FE !important;
}

/* Contact info animation */
.container-fluid .me-2,
.container-fluid .me-4 {
    animation: contactSlide 1.5s ease-out;
    animation-fill-mode: both;
}

.container-fluid .me-2 { animation-delay: 0.3s; }
.container-fluid .me-4 { animation-delay: 0.5s; }

@keyframes contactSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional header animation classes */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link-hover {
    transform: translateY(-2px) !important;
    color: #37B7FE !important;
    text-shadow: 0 2px 4px rgba(55, 183, 254, 0.3);
}

.logo-click {
    animation: logoBounce 0.3s ease;
}

@keyframes logoBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile menu enhanced animations */
.navbar-toggler {
    border: 2px solid transparent;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(55, 183, 254, 0.25);
    outline: none;
}

.navbar-collapse.show {
    animation: mobileMenuSlide 0.5s ease-out;
}

/* Smooth transitions for all header elements */
.container-fluid,
.navbar,
.navbar-brand,
.navbar-nav .nav-item,
.navbar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced dropdown animations - only for desktop */
@media (min-width: 992px) {
    .navbar .nav-item:hover .dropdown-menu {
        animation: dropdownSlide 0.3s ease-out;
        transform-origin: top;
    }
}

/* Loading animation for header */
@keyframes headerLoad {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-loaded {
    animation: headerLoad 1s ease-out;
}

/* Additional underline animation styles */
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Underline animation from center */
.navbar .navbar-nav .nav-link.underline-center::after {
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .navbar-nav .nav-link.underline-center:hover::after {
    width: 100%;
}

/* Underline animation from right */
.navbar .navbar-nav .nav-link.underline-right::after {
    left: auto;
    right: 0;
    width: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .navbar-nav .nav-link.underline-right:hover::after {
    width: 100%;
}

/* Pulsing underline animation */
.navbar .navbar-nav .nav-link.underline-pulse::after {
    animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* JavaScript interaction classes */
.navbar .navbar-nav .nav-link.underline-active::after {
    width: 100%;
    animation: underlineGlow 0.6s ease-out;
}

@keyframes underlineGlow {
    0% {
        box-shadow: 0 0 0px rgba(55, 183, 254, 0);
    }
    50% {
        box-shadow: 0 0 10px rgba(55, 183, 254, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(55, 183, 254, 0.3);
    }
}

.navbar .navbar-nav .nav-link.underline-click::after {
    animation: underlineClick 0.3s ease-out;
}

@keyframes underlineClick {
    0% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.2);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Active page underline */
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
    background: linear-gradient(90deg, #37B7FE, #004AAC);
    box-shadow: 0 0 8px rgba(55, 183, 254, 0.4);
}

/* Responsive animations */
@media (max-width: 991.98px) {
    .navbar-nav {
        animation: mobileMenuSlide 0.5s ease-out;
    }
    
    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar .navbar-nav .nav-link {
        animation: mobileNavFade 0.6s ease-out;
        animation-fill-mode: both;
        padding: 10px 0;
    }
    
    .navbar .navbar-nav .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .navbar .navbar-nav .nav-link:nth-child(2) { animation-delay: 0.15s; }
    .navbar .navbar-nav .nav-link:nth-child(3) { animation-delay: 0.2s; }
    .navbar .navbar-nav .nav-link:nth-child(4) { animation-delay: 0.25s; }
    .navbar .navbar-nav .nav-link:nth-child(5) { animation-delay: 0.3s; }
    .navbar .navbar-nav .nav-link:nth-child(6) { animation-delay: 0.35s; }
    .navbar .navbar-nav .nav-link:nth-child(7) { animation-delay: 0.4s; }
    
    @keyframes mobileNavFade {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Mobile underline adjustments */
    .navbar .navbar-nav .nav-link::after {
        height: 2px;
        bottom: 5px;
    }
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: #37B7FE;
    font-size: 20px;
    font-weight: 500;
    outline: none;
    font-weight: bold;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color:  #37B7FE;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
#moving-text {
    overflow: hidden; /* Hide scrollbar */
    white-space: nowrap; /* Ensure text does not wrap */
    position: relative;
}

#moving-text .con {
    display: inline-block;
    white-space: nowrap;
  
    animation: move 55s linear infinite;
}

@keyframes move {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 600px) {
    #moving-text h6 {
        font-size: 15vw;
    }

    .gola {
        height: 20px;
        width: 20px;
    }
}
.moving-heading{
    color: #37B7FE;
    font-size:40px;
   font-weight: bold;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
    
    /* Mobile dropdowns - only show on click, not hover */
    .navbar .nav-item .dropdown-menu {
        display: none;
        border: none;
        margin-top: 0;
        padding: 0;
        background-color: #f8f9fa;
    }
    
    .navbar .nav-item.dropdown.show .dropdown-menu,
    .navbar .nav-item .dropdown-menu.show {
        display: block;
        animation: dropdownSlide 0.3s ease-out;
    }
    
    /* Remove hover effect on mobile */
    .navbar .nav-item:hover .dropdown-menu {
        display: none;
    }
    
    /* Fix spacing after dropdown items */
    .navbar .nav-item.dropdown {
        margin-bottom: 0;
        margin-right: 0;
    }
    
    .navbar .nav-item.dropdown .nav-link {
        padding-right: 15px;
        margin-right: 0;
        white-space: nowrap;
    }
    
    /* Remove extra spacing between dropdown items */
    .navbar .nav-item.dropdown + .nav-item.dropdown {
        margin-left: 0;
    }
    
    /* Fix spacing in dropdown menu items */
    .navbar .dropdown-menu .dropdown-item {
        padding: 8px 15px;
        margin: 0;
        white-space: normal;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: url(../img/about-22.jpeg) center center no-repeat;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header5{
    background: url(../img/product33.png) center center no-repeat;
    background-size: cover;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-header5 .page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header5 .container {
    position: relative;
    z-index: 2;
}
.page-header8{
    background: url(../img/dairy\ audit.jpeg) center center no-repeat;
    background-size: cover;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-header8 .page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header8 .container {
    position: relative;
    z-index: 2;
}
.farmimg-1 {
    background: url(../img/dairy\ -farm-9.jpeg) center center no-repeat;
    background-size: cover;
   
}
.page-header10 {
    background: url(../img/banner.jpg) center center no-repeat;
    background-size: cover;
}
.page-header11{
    background: url(../img/btoc7.jpg) center center no-repeat;
    background-size: cover;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-header11 .page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header11 .container {
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}
.para1{
    color:white;
    width: 700px;
    font-weight:bolder;
    font-size:22px;
    
}
.page-header2{
    background: url(../img/banner-1.jpg) center center no-repeat;
    background-size: cover;
   
}
.page-header2 .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}
.page-header12{
    background: url(../img/exportimg1.jpeg) center center no-repeat;
    background-size: cover;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-header12 .page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header12 .container {
    position: relative;
    z-index: 2;
}
.page-header16{
    background: url(../img/contactus1.jpeg) center center no-repeat;
    background-size: cover;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-header16 .page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header16 .container {
    position: relative;
    z-index: 2;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    display: none;
}

.feature-001{
    color: #37B7FE;
}
.feature-002{
    color: black;
}
.hea1{
    color: black;
    font-size: 20px;
    font-weight: bold;
}


/*** About ***/
.about-experience {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -45px;
    bottom: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.about22{
    background-color: #404A3D;
}
/*** Service ***/
.service-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    border-radius: 10px;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    z-index: 1;
}

.service-item .service-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s ease-out;
    z-index: 2;
}

.service-item:hover .service-img::after {
    width: 0;
    left: auto;
    right: 0;
}

.service-item .service-text .service-icon {
    width: 140px;
    height: 140px;
    padding: 15px;
    margin-top: -70px;
    margin-bottom: 40px;
    background: #FFFFFF;
    border-radius: 140px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, .1);
}

.service-item .service-text h5,
.service-item .service-text p {
    transition: .5s;
}

.service-item:hover .service-text h5,
.service-item:hover .service-text p {
    color: #FFFFFF;
}

.service-item .service-text .btn {
    color: var(--secondary);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .25);
}

.service-item .service-text .btn:hover {
    color: var(--dark);
    background: var(--secondary);
}


/*** Product ***/
.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.product-item:hover .product-overlay {
    opacity: 1;
    padding-top: 0;
}
.product-1{
    color: black;
    font-weight: bold;
    font-size: 20px;
}
.pro{
    color: black;
}
.heading-001{
    color: black;
    font-size: 18px;
    font-weight: bold;
}
.pro-4{
    color: black;
}
.hide{
    display: none;
    font-weight: bold;
}
.tmr:hover + .hide{
    display: block;
    font-weight: bold;
}





/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .btn {
    border-color: transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
}

.testimonial-img::after {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 200px;
    color: #EEEEEE;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.testimonial-img img {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-img img:nth-child(1) {
    top: 0;
    left: 0;
}

.testimonial-img img:nth-child(2) {
    top: 60%;
    left: 20%;
}

.testimonial-img img:nth-child(3) {
    top: 20%;
    left: 60%;
}

.testimonial-img img:nth-child(4) {
    bottom: 0;
    right: 0;
}

.testimonial-img img .animated.pulse {
    animation-duration: 2s;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 45px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    color: var(--dark);
}



.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 12px;
}

/* Image zoom on hover */
.image-container:hover img {
    transform: scale(1.05);
    filter: brightness(0.6); /* darkens image slightly */
}

/* Overlay container */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* modern white overlay */
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 15px;
    text-align: center;
    transform: scale(0.95);
    border-radius: 12px;
}

/* Show overlay smoothly on hover */
.image-container:hover .product-overlay {
    opacity: 1;
    transform: scale(1);
}





/*** Footer ***/
.footer {
    color: white;
    background-color:#37B7FE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color:  white;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color:  white;
    letter-spacing: 1px;
    box-shadow: none;
}
.about1{
    color: white;
    width: 700px;
    font-weight: bold;
   margin-left: 150px;

}
.about2{
    color: white;
    width: 600px;
    font-weight: bold;
    text-align: center;

    margin-left: 300px;

}
.about3{
    color: white;

    font-weight: bold;
    margin-left: 10%;
    text-align: center;


}
.container-fluid99 {
    background-color:white;
    color:#37B7FE;
    font-size: 25px;

 margin-left: auto;

    display: flex;
    text-align: center;
}

.img1{
    border-radius: 60%;
    vertical-align: middle;
    height: 100px;
    width: 100px;
}
.alied1{
    background: url(../img/banner.jpg) center center no-repeat;
    background-size: cover;
}
.about22{
background-color: #404A3D;
}
.about555{
    display: flex;
    text-align: center;
    margin-left: 500px;
    width:900px ;
}
.audit2{
    color: white;
    font-weight: bold;
    margin-left: 10%;
    text-align: center;

}
.alied1{
    color: white;
    width: 600px;
    font-weight: bold;
    text-align: center;

    margin-left: 300px;  
}
.product1{
    color: white;
    width: 400px;
    font-weight: bold;
    text-align: center;
    font-size: small;

    margin-left: 300px
}
.about25{
    background-color: white;
    color:#37B7FE;
}

/* Mission & Vision Section Animations */
.mission-vision-section {
    position: relative;
    overflow: hidden;
}

.mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.mission-card, .vision-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.mission-card::before, .vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(55, 183, 239, 0.05) 0%, rgba(55, 183, 239, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

.mission-card:hover::before, .vision-card:hover::before {
    opacity: 1;
}

.icon-circle {
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.mission-card:hover .icon-circle, .vision-card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(55, 183, 239, 0.3);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(55, 183, 239, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(55, 183, 239, 0.4);
    }
}

.feature-dot {
    transition: all 0.3s ease;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.mission-features .d-flex, .vision-features .d-flex {
    transition: all 0.3s ease;
    padding: 8px 0;
    border-radius: 8px;
}

.mission-features .d-flex:hover, .vision-features .d-flex:hover {
    background: rgba(55, 183, 239, 0.05);
    transform: translateX(10px);
}

.cta-section {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.cta-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(55, 183, 239, 0.3);
}

/* Floating animation for background icons */
.mission-card .position-absolute i, .vision-card .position-absolute i {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(30px, -30px) rotate(0deg);
    }
    50% {
        transform: translate(30px, -40px) rotate(5deg);
    }
}

/* Text reveal animation */
.mission-card h2, .vision-card h2 {
    position: relative;
    overflow: hidden;
}

.mission-card h2::after, .vision-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #37B7EF, #37B7EF);
    transition: width 0.6s ease;
}

.mission-card:hover h2::after, .vision-card:hover h2::after {
    width: 100%;
}

/* Responsive animations */
@media (max-width: 768px) {
    .mission-card, .vision-card {
        margin-bottom: 2rem;
        padding: 1.5rem !important;
    }
    
    .icon-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .icon-circle i {
        font-size: 1.25rem !important;
    }
    
    .mission-card h2, .vision-card h2 {
        font-size: 1.5rem;
    }
    
    .mission-card .lead, .vision-card .lead {
        font-size: 0.9rem;
    }
    
    .feature-dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .mission-card .position-absolute i,
    .vision-card .position-absolute i {
        font-size: 4rem !important;
    }
    
    /* About page responsive */
    .page-header {
        min-height: 400px;
        padding: 3rem 0;
    }
    
    .hero-text {
        font-size: 1rem !important;
        padding: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 350px;
        padding: 2rem 0;
    }
    
    .hero-text {
        font-size: 0.9rem !important;
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
    
    .display-2 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
}



/* Modern Gallery Styles */
.modern-gallery-item {
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.gallery-image-container:hover {
    box-shadow: 0 15px 50px rgba(55, 183, 239, 0.2);
    transform: scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    display: block;
}

.gallery-image-container:hover .gallery-img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.gallery-image-container:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: black;
    padding: 20px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-image-container:hover .overlay-content {
    transform: translateY(0);
}

.overlay-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    animation: icon-bounce 0.6s ease 0.2s both;
}

@keyframes icon-bounce {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.overlay-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: title-slide 0.4s ease 0.4s both;
    color:white;
}

@keyframes title-slide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay-text {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    animation: text-slide 0.4s ease 0.6s both;
    color: black;
}

@keyframes text-slide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery CTA Section */
.gallery-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.gallery-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(55, 183, 239, 0.3);
}

/* Gallery Loading Animation */
.modern-gallery-item {
    animation: gallery-fade-in 0.8s ease both;
}

.modern-gallery-item:nth-child(1) { animation-delay: 0.1s; }
.modern-gallery-item:nth-child(2) { animation-delay: 0.2s; }
.modern-gallery-item:nth-child(3) { animation-delay: 0.3s; }
.modern-gallery-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes gallery-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Hover Effects */
.gallery-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.gallery-image-container:hover::before {
    transform: translateX(100%);
}

/* Gallery Responsive Styles - Comprehensive */
/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .gallery-image-container {
        height: 280px;
    }
}

/* Large Devices (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .gallery-image-container {
        height: 260px;
    }
}

/* Medium-Large Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-image-container {
        height: 240px;
    }
    
    .overlay-icon {
        font-size: 2.2rem;
    }
    
    .overlay-title {
        font-size: 1.1rem;
    }
    
    .overlay-text {
        font-size: 0.85rem;
    }
}

/* Tablet Devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-image-container {
        height: 220px;
    }
    
    .modern-gallery-item {
        margin-bottom: 1.5rem;
    }
    
    .overlay-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .overlay-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .overlay-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .overlay-content {
        padding: 18px;
    }
    
    .modern-gallery-item:hover {
        transform: translateY(-8px);
    }
    
    /* Gallery Header */
    .container-xxl.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Gallery CTA */
    .gallery-cta {
        padding: 3rem 2rem !important;
    }
    
    .gallery-cta h3 {
        font-size: 1.5rem;
    }
    
    .gallery-cta p {
        font-size: 0.95rem;
    }
}

/* Small Tablets and Large Phones (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-image-container {
        height: 200px;
    }
    
    .modern-gallery-item {
        margin-bottom: 1.5rem;
    }
    
    .overlay-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .overlay-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .overlay-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .overlay-content {
        padding: 15px;
    }
    
    .modern-gallery-item:hover {
        transform: translateY(-5px);
    }
    
    /* Gallery Header */
    .container-xxl.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 0.95rem !important;
    }
    
    .section-title {
        font-size: 0.9rem !important;
        padding: 0.4rem 1rem !important;
    }
    
    /* Gallery CTA */
    .gallery-cta {
        padding: 2.5rem 1.5rem !important;
    }
    
    .gallery-cta h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem !important;
    }
    
    .gallery-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
    }
    
    .gallery-cta .btn {
        padding: 0.75rem 2rem !important;
        font-size: 0.9rem;
    }
}

/* Mobile Devices (up to 575px) */
@media (max-width: 575.98px) {
    .gallery-image-container {
        height: 220px;
        border-radius: 12px;
    }
    
    .modern-gallery-item {
        margin-bottom: 1.25rem;
    }
    
    .overlay-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .overlay-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
        font-weight: 600;
    }
    
    .overlay-text {
        font-size: 0.75rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .overlay-content {
        padding: 12px;
    }
    
    .modern-gallery-item:hover {
        transform: translateY(-3px);
    }
    
    .gallery-image-container:hover {
        transform: scale(1.01);
    }
    
    /* Gallery Header */
    .container-xxl.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .divider {
        width: 60px !important;
        height: 3px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Gallery CTA */
    .gallery-cta {
        padding: 2rem 1.25rem !important;
        border-radius: 12px !important;
    }
    
    .gallery-cta h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem !important;
    }
    
    .gallery-cta p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem !important;
        line-height: 1.5;
    }
    
    .gallery-cta .btn {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.85rem;
        border-radius: 25px !important;
    }
    
    .gallery-cta .btn i {
        font-size: 0.9rem;
    }
    
    /* Page Header */
    .page-header {
        min-height: 250px !important;
        padding: 2rem 0 !important;
    }
    
    .page-header .display-3 {
        font-size: 1.75rem !important;
    }
    
    /* Gallery Grid Spacing */
    .row.gx-4 {
        --bs-gutter-x: 1rem !important;
    }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
    .gallery-image-container {
        height: 200px;
        border-radius: 10px;
    }
    
    .overlay-content {
        padding: 10px;
    }
    
    .overlay-icon {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    
    .overlay-title {
        font-size: 0.85rem;
    }
    
    .overlay-text {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Gallery Header */
    .display-4 {
        font-size: 1.35rem !important;
    }
    
    .lead {
        font-size: 0.85rem !important;
    }
    
    /* Gallery CTA */
    .gallery-cta {
        padding: 1.75rem 1rem !important;
    }
    
    .gallery-cta h3 {
        font-size: 1.1rem;
    }
    
    .gallery-cta p {
        font-size: 0.8rem;
    }
    
    .gallery-cta .btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-image-container:hover {
        transform: none;
    }
    
    .gallery-image-container:active {
        transform: scale(0.98);
    }
    
    .gallery-overlay {
        opacity: 0.7;
    }
    
    .gallery-image-container:active .gallery-overlay {
        opacity: 1;
    }
    
    .modern-gallery-item:hover {
        transform: none;
    }
    
    .modern-gallery-item:active {
        transform: translateY(-2px);
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .gallery-image-container {
        height: 180px;
    }
    
    .page-header {
        min-height: 200px !important;
        padding: 1.5rem 0 !important;
    }
}

/* Print Styles */
@media print {
    .gallery-overlay {
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .modern-gallery-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Gallery Section Container Responsive */
@media (max-width: 991.98px) {
    .container-xxl.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .container-xxl.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Gallery Row Spacing Improvements */
@media (max-width: 767.98px) {
    .row.gx-4 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .row.gx-4 {
        --bs-gutter-x: 0.75rem !important;
        --bs-gutter-y: 0.75rem !important;
    }
}

/* Ensure images are responsive */
.gallery-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* Improve gallery item spacing on all devices */
@media (max-width: 991.98px) {
    .modern-gallery-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .modern-gallery-item {
        margin-bottom: 1.25rem;
    }
}

/* Modern Features Section */
.modern-features-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    animation: sectionFadeIn 1s ease-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-features-section::before {
    display: none;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.modern-features-content {
    position: relative;
    z-index: 2;
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
    animation: titleSlideIn 1.2s ease-out;
}

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

.modern-title::after {
    display: none;
}

@keyframes underlineGrow {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.modern-features-list {
    margin-top: 0;
    padding-top: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.8s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.feature-item::before {
    display: none;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(55, 183, 254, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(55, 183, 254, 0.6);
    }
}

.feature-item:hover::before {
    width: 6px;
}

.feature-item:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: none;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(55, 183, 254, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(55, 183, 254, 0);
    }
}

.feature-icon::before {
    display: none;
}

.feature-item:hover .feature-icon::before {
    opacity: 1;
    animation: iconShine 0.8s ease;
}

@keyframes iconShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.feature-icon i {
    color: #37B7FE;
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

.feature-item:hover .feature-icon {
    transform: none;
    box-shadow: none;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-title {
    color: #2c3e50;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-description {
    color: #495057;
}

/* Modern Gallery Grid */
.modern-features-gallery {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 600px;
    align-items: start;
}

.gallery-grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 500px;
}

/* Three-item grid layout */
.gallery-grid-three .gallery-item:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.gallery-grid-three .gallery-item:nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.gallery-grid-three .gallery-item:nth-child(3) {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    max-width: 50%;
    justify-self: center;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    animation: imageSlideIn 1s ease-out;
}

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    animation-delay: 0.3s;
}

.gallery-item:nth-child(3) {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    animation-delay: 0.5s;
}

.gallery-item:nth-child(4) {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    animation-delay: 0.7s;
}

.gallery-card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(55, 183, 254, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 183, 254, 0.9), rgba(0, 74, 172, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: iconBounce 0.6s ease 0.2s both;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.overlay-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: titleSlide 0.4s ease 0.4s both;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
    .gallery-grid,
    .gallery-grid-three {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-grid-three .gallery-item:nth-child(3) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
        max-width: 100%;
        justify-self: stretch;
    }
    
    .modern-title {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .modern-title {
        font-size: 1.8rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 1rem auto;
    }
    
    .gallery-grid,
    .gallery-grid-three {
        grid-template-columns: 1fr 1fr;
        height: 400px;
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 190px;
    }
    
    .gallery-grid-three .gallery-item:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 1 / 3;
        max-width: 50%;
        justify-self: center;
    }
}

@media (max-width: 576px) {
    .gallery-grid,
    .gallery-grid-three {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .gallery-grid-three .gallery-item:nth-child(3) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
        max-width: 100%;
        justify-self: stretch;
    }
    
    .modern-title {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
}

/* Modern Services Section */
.modern-services-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

/* 4-column layout adjustments */
.modern-services-section .row {
    max-width: 1200px;
    margin: 0 auto;
}

/* Smaller service cards for 4-column layout */
.modern-services-section .modern-service-card {
    height: 100%;
    min-height: 280px;
}

.modern-services-section .service-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-services-section .service-image-container {
    height: 180px;
    flex-shrink: 0;
}

.modern-services-section .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
}

.modern-services-section .service-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.modern-services-section .service-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    flex: 1;
}

.modern-services-section .service-features {
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.modern-services-section .feature-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.modern-services-section .service-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    margin-top: auto;
}

/* Responsive adjustments for 4-column layout */
@media (max-width: 1199.98px) {
    .modern-services-section .row {
        max-width: 100%;
    }
    
    .modern-services-section .modern-service-card {
        min-height: 260px;
    }
    
    .modern-services-section .service-image-container {
        height: 120px;
    }
}

@media (max-width: 991.98px) {
    .modern-services-section .modern-service-card {
        min-height: 240px;
    }
    
    .modern-services-section .service-image-container {
        height: 110px;
    }
    
    .modern-services-section .service-content {
        padding: 1rem;
    }
    
    .modern-services-section .service-title {
        font-size: 1rem;
    }
    
    .modern-services-section .service-description {
        font-size: 0.85rem;
    }
}

.modern-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="services-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="%2337B7FE" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23services-dots)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.modern-services-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.modern-services-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #37B7FE, #004AAC);
    border-radius: 2px;
}

.services-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 400;
}

/* Modern Service Cards */
.modern-service-card {
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(55, 183, 254, 0.2);
}

.service-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.modern-service-card:hover .service-main-image {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 183, 254, 0.9), rgba(0, 74, 172, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.modern-service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon-large {
    font-size: 4rem;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #37B7FE, #004AAC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.modern-service-card:hover .service-icon::before {
    opacity: 1;
    animation: iconShine 0.8s ease;
}

.modern-service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(55, 183, 254, 0.3);
}

.service-icon i {
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.modern-service-card:hover .service-title {
    color: #37B7FE;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    transition: color 0.3s ease;
}

.modern-service-card:hover .service-description {
    color: #495057;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #37B7FE, #004AAC);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-service-card:hover .feature-tag {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(55, 183, 254, 0.3);
}

.service-cta {
    margin-top: auto;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #37B7FE, #004AAC);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(55, 183, 254, 0.3);
}

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

.service-btn:hover::before {
    left: 100%;
}

.service-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(55, 183, 254, 0.5);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #004AAC, #37B7FE);
}

.service-btn i {
    transition: all 0.4s ease;
    font-size: 0.8rem;
}

.service-btn:hover i {
    transform: translateX(5px) scale(1.1);
    color: #fff;
}

/* Button pulse animation */
.service-btn {
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(55, 183, 254, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(55, 183, 254, 0.4);
    }
}

/* Button focus and active states */
.service-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 183, 254, 0.3);
}

.service-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(55, 183, 254, 0.4);
}

/* Button loading state */
.service-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.service-btn.loading i {
    animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modern Software Section Styles */
.modern-software-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.modern-software-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="software-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="%2337B7EF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23software-dots)"/></svg>');
    pointer-events: none;
    z-index: 1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

.modern-software-title {
    color: #2c3e50;
    font-weight: 700;
    animation: titleSlideIn 1.2s ease-out;
}

.modern-software-description {
    color: #6c757d;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.software-check-icon {
    color: #37B7EF;
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.software-feature-text {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.software-contact-icon {
    background: linear-gradient(135deg, #37B7EF, #004AAC);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: iconBounce 2s ease-in-out infinite;
}

.software-contact-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(55, 183, 239, 0.3);
}

.software-contact-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.software-contact-text {
    color: #37B7EF;
    font-weight: 500;
}

/* Modern Software Services Section */
.modern-software-services {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.modern-services-main-title {
    color: #2c3e50;
    font-weight: 700;
    animation: titleSlideIn 1.2s ease-out;
}

.modern-services-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.modern-software-service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(55, 183, 239, 0.1);
    animation: cardSlideIn 0.8s ease-out;
}

.modern-software-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.1), transparent);
    transition: left 0.6s ease;
}

.modern-software-service-card:hover::before {
    left: 100%;
}

.modern-software-service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(55, 183, 239, 0.2);
    border-color: rgba(55, 183, 239, 0.3);
}

.service-icon-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon-large {
    font-size: 3rem;
    color: #37B7EF;
    transition: all 0.3s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

.modern-software-service-card:hover .service-icon-large {
    transform: scale(1.1) rotate(5deg);
    color: #004AAC;
}

.service-card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.modern-software-service-card:hover .service-card-title {
    color: #37B7EF;
}

.service-card-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.modern-software-service-card:hover .service-card-description {
    color: #495057;
}

/* Animations */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Service Card Hover Effects */
.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(55, 183, 254, 0.05), rgba(0, 74, 172, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: -1;
}

.modern-service-card:hover::before {
    opacity: 1;
}

/* Responsive Design for Services */
@media (max-width: 991.98px) {
    .modern-services-title {
        font-size: 2.2rem;
    }
    
    .service-image-container {
        height: 200px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.2rem;
    }
}

/* =============================
   Modern About Us Page Styling
   ============================= */

/* Modern Page Header */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="about-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23about-dots)"/></svg>');
    animation: backgroundFloat 20s ease-in-out infinite;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(55, 183, 239, 0.1), rgba(0, 74, 172, 0.1));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Modern Team Section */
.team-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(55, 183, 239, 0.15);
    backdrop-filter: blur(10px);
    height: 100%;
}

.team-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.1), transparent);
    transition: left 0.6s ease;
}

.team-item:hover::before {
    left: 100%;
}

.team-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(55, 183, 239, 0.25);
    border-color: rgba(55, 183, 239, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

/* Team Member Images */
.team-item .img1 {
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 5px solid rgba(55, 183, 239, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(55, 183, 239, 0.15);
}

.team-item .img1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(55, 183, 239, 0.1), rgba(0, 74, 172, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-item:hover .img1::before {
    opacity: 1;
}

.team-item:hover .img1 {
    transform: scale(1.08) rotate(2deg);
    border-color: rgba(55, 183, 239, 0.6);
    box-shadow: 0 12px 30px rgba(55, 183, 239, 0.4);
}

/* Team Member Names */
.team-item h5 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    position: relative;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-item:hover h5 {
    color: #37B7EF;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(55, 183, 239, 0.3);
}

.team-item h5::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #37B7EF, #004AAC);
    transform: translateX(-50%);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.team-item:hover h5::after {
    width: 80%;
}

/* Team Member Roles */
.team-item p {
    color: #6c757d;
    transition: all 0.4s ease;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-item:hover p {
    color: #495057;
    transform: translateY(-1px);
}

/* Team Member Descriptions */
.team-item .feature-002 {
    color: #6c757d;
    transition: all 0.4s ease;
    line-height: 1.7;
    font-size: 0.95rem;
}

.team-item:hover .feature-002 {
    color: #495057;
    transform: translateY(-1px);
}

/* Social Media Buttons */
.team-item .btn-square {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(55, 183, 239, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.team-item .btn-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.2), transparent);
    transition: left 0.6s ease;
}

.team-item .btn-square:hover::before {
    left: 100%;
}

.team-item .btn-square:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 12px 25px rgba(55, 183, 239, 0.4);
    border-color: rgba(55, 183, 239, 0.6);
    background: rgba(55, 183, 239, 0.1);
}

.team-item .btn-square i {
    transition: all 0.3s ease;
}

.team-item .btn-square:hover i {
    transform: scale(1.1);
    color: #37B7EF;
}

/* Mission & Vision Section */
.mission-vision-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mission-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="%2337B7EF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23mission-dots)"/></svg>');
    animation: backgroundFloat 25s ease-in-out infinite;
}

.mission-vision-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(55, 183, 239, 0.05), rgba(0, 74, 172, 0.05));
    animation: missionGlow 8s ease-in-out infinite;
}

@keyframes missionGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Modern Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    transition: none;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
    backdrop-filter: none !important;
    animation: none !important;
    box-shadow: none !important;
}

.section-title:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    background: none !important;
}

@keyframes titleGlow {

}

/* Mission & Vision Main Heading */
.mission-vision-section h1 {
    position: relative;
    z-index: 2;
    animation: titleSlideIn 1.2s ease-out;
    transition: all 0.3s ease;
}

.mission-vision-section h1:hover {
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(55, 183, 239, 0.3);
}



/* Mission & Vision Section Container */
.mission-vision-section .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Mission & Vision Cards */
.mission-card, .vision-card {
    position: relative;
    z-index: 2;
}

/* Mission Card - Slide from Left */
.mission-card {
    animation: missionSlideIn 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* Vision Card - Slide from Right */
.vision-card {
    animation: visionSlideIn 1s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

@keyframes missionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes visionSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern Team Section Title */
.modern-title {
    position: relative;
    font-weight: 700;
    color: #2c3e50;
    transition: all 0.4s ease;
}

.modern-title::before {
    display: none;
}

@keyframes titleGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(55, 183, 239, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(55, 183, 239, 0.6);
    }
}

/* Modern Cards */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(55, 183, 239, 0.15);
    backdrop-filter: blur(10px);
    height: 100%;
}

/* Mission Card Theme - Blue & Professional */
.mission-card {
    background: linear-gradient(135deg, rgba(55, 183, 239, 0.05) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(0, 74, 172, 0.05) 100%);
    border-left: 6px solid #37B7EF;
    border-top: 3px solid rgba(55, 183, 239, 0.3);
    position: relative;
    box-shadow: 0 10px 30px rgba(55, 183, 239, 0.1);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.15), transparent);
    transition: left 0.8s ease;
}

.mission-card:hover::before {
    left: 100%;
}

.mission-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(55, 183, 239, 0.25);
    border-left-color: #004AAC;
    border-top-color: #37B7EF;
    background: linear-gradient(135deg, rgba(55, 183, 239, 0.08) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(0, 74, 172, 0.08) 100%);
}

/* Vision Card Theme - Blue & Growth (Different Pattern) */
.vision-card {
    background: linear-gradient(135deg, rgba(55, 183, 239, 0.08) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(0, 74, 172, 0.08) 100%);
    border-left: 6px solid #37B7EF;
    border-right: 3px solid rgba(55, 183, 239, 0.3);
    position: relative;
    box-shadow: 0 10px 30px rgba(55, 183, 239, 0.1);
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.2), transparent);
    transition: left 0.8s ease;
}

.vision-card:hover::before {
    left: 100%;
}

.vision-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(55, 183, 239, 0.25);
    border-left-color: #004AAC;
    border-right-color: #37B7EF;
    background: linear-gradient(135deg, rgba(55, 183, 239, 0.12) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(0, 74, 172, 0.12) 100%);
}

/* Mission & Vision Icons */
.mission-icon, .vision-icon {
    position: relative;
    z-index: 2;
}

/* Mission Icon - Blue Theme */
.mission-card .icon-circle {
    background: linear-gradient(135deg, #37B7EF, #004AAC) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(55, 183, 239, 0.3);
}

.mission-card .icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.mission-card:hover .icon-circle::before {
    transform: scale(1);
}

.mission-card:hover .icon-circle {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 40px rgba(55, 183, 239, 0.5);
}

/* Vision Icon - Blue Theme (Different Pattern) */
.vision-card .icon-circle {
    background: linear-gradient(135deg, #37B7EF, #004AAC) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(55, 183, 239, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.vision-card .icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.vision-card:hover .icon-circle::before {
    transform: scale(1);
}

.vision-card:hover .icon-circle {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 15px 40px rgba(55, 183, 239, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mission & Vision Content */
.mission-card h2, .vision-card h2 {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Mission Content - Blue Theme */
.mission-card h2,
.mission-card h2.fw-bold {
    color: #37B7EF !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(55, 183, 239, 0.2);
}

.mission-card:hover h2,
.mission-card:hover h2.fw-bold {
    color: #37B7EF !important;
    transform: translateX(5px);
    text-shadow: 0 4px 12px rgba(55, 183, 239, 0.4);
}

.mission-card p,
.mission-card p.lead {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    color: #37B7EF !important;
    font-weight: 500;
}

.mission-card:hover p,
.mission-card:hover p.lead {
    color: #37B7EF !important;
    transform: translateX(3px);
    text-shadow: 0 1px 3px rgba(55, 183, 239, 0.2);
}

/* Mission description text styling */
.mission-card .lead {
    color: #37B7EF !important;
    font-weight: 500;
    line-height: 1.6;
}

.mission-card:hover .lead {
    color: #37B7EF !important;
    text-shadow: 0 1px 3px rgba(55, 183, 239, 0.2);
}

/* Vision Content - Blue Theme (Different Pattern) */
.vision-card h2,
.vision-card h2.fw-bold {
    color: #37B7EF !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(55, 183, 239, 0.2);
}

.vision-card:hover h2,
.vision-card:hover h2.fw-bold {
    color: #37B7EF !important;
    transform: translateX(5px);
    text-shadow: 0 4px 12px rgba(55, 183, 239, 0.4);
}

.vision-card p,
.vision-card p.lead {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    color: #37B7EF !important;
    font-weight: 500;
}

.vision-card:hover p,
.vision-card:hover p.lead {
    color: #37B7EF !important;
    transform: translateX(3px);
    text-shadow: 0 1px 3px rgba(55, 183, 239, 0.2);
}

/* Vision description text styling */
.vision-card .lead {
    color: #37B7EF !important;
    font-weight: 500;
    line-height: 1.6;
}

.vision-card:hover .lead {
    color: #37B7EF !important;
    text-shadow: 0 1px 3px rgba(55, 183, 239, 0.2);
}

/* Mission & Vision Features */
.mission-features, .vision-features {
    position: relative;
    z-index: 2;
}

/* Mission Feature Dots - Blue Theme */
.mission-card .feature-dot {
    background: #37B7EF !important;
    transition: all 0.3s ease;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(55, 183, 239, 0.3);
}

.mission-card:hover .feature-dot {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(55, 183, 239, 0.6);
    background: #004AAC !important;
}

/* Mission Feature Text */
.mission-card .mission-features span {
    color: #37B7EF;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mission-card:hover .mission-features span {
    color: #37B7EF;
    font-weight: 600;
}

/* Vision Feature Dots - Blue Theme (Different Pattern) */
.vision-card .feature-dot {
    background: #37B7EF !important;
    transition: all 0.3s ease;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(55, 183, 239, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.vision-card:hover .feature-dot {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(55, 183, 239, 0.6);
    background: #37B7EF !important;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Vision Feature Text */
.vision-card .vision-features span {
    color: #37B7EF;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vision-card:hover .vision-features span {
    color: #37B7EF;
    font-weight: 600;
}

/* Additional Override Rules for Bootstrap Conflicts */
.mission-vision-section .mission-card h2,
.mission-vision-section .mission-card h2.fw-bold,
.mission-vision-section .vision-card h2,
.mission-vision-section .vision-card h2.fw-bold {
    color: #37B7EF !important;
}

.mission-vision-section .mission-card p,
.mission-vision-section .mission-card p.lead,
.mission-vision-section .vision-card p,
.mission-vision-section .vision-card p.lead {
    color: #37B7EF !important;
}

.mission-vision-section .mission-features span,
.mission-vision-section .vision-features span {
    color: #37B7EF !important;
}

/* Override any green colors from Bootstrap or other sources */
.mission-vision-section * {
    color: #37B7EF !important;
}

/* Specific overrides for all text elements in Mission & Vision */
.mission-vision-section p,
.mission-vision-section .lead,
.mission-vision-section span,
.mission-vision-section small,
.mission-vision-section .mission-card p,
.mission-vision-section .vision-card p,
.mission-vision-section .mission-card .lead,
.mission-vision-section .vision-card .lead {
    color: #37B7EF !important;
}

/* Override any remaining black text */
.mission-vision-section .mission-card *,
.mission-vision-section .vision-card * {
    color: #37B7EF !important;
}

.mission-vision-section .section-title {
    color: #2c3e50 !important;
}

.mission-vision-section h1 {
    color: #2c3e50 !important;
}

/* Remove any potential green lines or borders */
.mission-vision-section::before,
.mission-vision-section::after,
.mission-vision-section *::before,
.mission-vision-section *::after {
    background: none !important;
    border: none !important;
}

/* Remove underlines from all section titles */
.section-title::before,
.section-title::after {
    display: none !important;
}

/* Force remove all background colors from section titles */
.section-title,
.section-title:hover,
.section-title:focus,
.section-title:active {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
}

/* Additional override for any remaining blue backgrounds */
p.section-title,
p.section-title:hover,
p.section-title:focus,
p.section-title:active {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    color: #000000 !important;
}

/* Specific override for team section */
.container-xxl .section-title::before,
.container-xxl .section-title::after {
    display: none !important;
}

/* Enhanced Team Main Heading */
.team-main-heading {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    text-align: center;
    margin-bottom: 2rem !important;
    position: relative;
    background: transparent;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    animation: none;
    text-shadow: none;
    letter-spacing: 1px;
    line-height: 1.2;
}

.team-main-heading::before {
    display: none;
}

.team-main-heading::after {
    display: none;
}

/* Team Heading Animations */
@keyframes teamHeadingAnimation {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        filter: blur(5px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) scale(0.9);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes topLineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

@keyframes bottomLineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 150px;
        opacity: 1;
    }
}

/* Hover effects for team heading */
.team-main-heading:hover {
    transform: none;
    text-shadow: none;
    transition: none;
}

.team-main-heading:hover::before {
    display: none;
}

.team-main-heading:hover::after {
    display: none;
}

/* Ensure Mission & Vision section has same animations and colors */
.mission-vision-section .team-main-heading {
    animation: teamHeadingAnimation 2s ease-out !important;
}

.mission-vision-section .team-main-heading::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #37B7EF, #004AAC, #37B7EF) !important;
    border-radius: 3px;
    animation: topLineGrow 1.8s ease-out 0.5s both !important;
    box-shadow: 0 2px 10px rgba(55, 183, 239, 0.3) !important;
}

.mission-vision-section .team-main-heading::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, #004AAC, #37B7EF, #004AAC) !important;
    border-radius: 3px;
    animation: bottomLineGrow 1.8s ease-out 1s both !important;
    box-shadow: 0 2px 10px rgba(0, 74, 172, 0.3) !important;
}

/* Hover effects for Mission & Vision section */
.mission-vision-section .team-main-heading:hover::before {
    width: 140px !important;
    box-shadow: 0 4px 15px rgba(55, 183, 239, 0.5) !important;
    transition: all 0.3s ease;
}

.mission-vision-section .team-main-heading:hover::after {
    width: 170px !important;
    box-shadow: 0 4px 15px rgba(0, 74, 172, 0.5) !important;
    transition: all 0.3s ease;
}

/* Responsive adjustments for team heading */
@media (max-width: 768px) {
    .team-main-heading {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .team-main-heading {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Modern Mission & Vision Section */
.modern-mission-vision-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.modern-mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mv-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%2337B7EF" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23mv-dots)"/></svg>');
    animation: backgroundFloat 25s ease-in-out infinite;
    pointer-events: none;
}

.modern-mission-content,
.modern-vision-content {
    position: relative;
    z-index: 2;
}

.mission-header,
.vision-header {
    text-align: center;
    position: relative;
}

.mission-icon-wrapper,
.vision-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #37B7EF, #004AAC);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(55, 183, 239, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mission-icon-wrapper:hover,
.vision-icon-wrapper:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(55, 183, 239, 0.4);
}

.mission-icon-wrapper::before,
.vision-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.mission-icon-wrapper:hover::before,
.vision-icon-wrapper:hover::before {
    transform: scale(1);
}

.mission-icon-wrapper i,
.vision-icon-wrapper i {
    font-size: 2rem;
    color: white;
    z-index: 1;
    position: relative;
}

.mission-title,
.vision-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    background: linear-gradient(135deg, #2c3e50, #37B7EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.mission-title::after,
.vision-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #37B7EF, #004AAC);
    border-radius: 2px;
    animation: underlineGrow 1.5s ease-out 0.5s both;
}

.mission-description,
.vision-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6c757d;
    text-align: center;
    font-weight: 400;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .mission-title,
    .vision-title {
        font-size: 1.6rem;
    }
    
    .mission-description,
    .vision-description {
        font-size: 1rem;
    }
    
    .mission-icon-wrapper,
    .vision-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .mission-icon-wrapper i,
    .vision-icon-wrapper i {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .mission-title,
    .vision-title {
        font-size: 1.4rem;
    }
    
}

/* Dairy Farm Consultancy Page Header */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Ensure about page background is always visible */
.about-page .page-header {
    background-image: url('../img/banner.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Ensure consultancy page background is always visible */
.consultancy-page .page-header {
    background-image: url('../img/img-222.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 100vh !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

/* Ensure audit page background is always visible */
.audit-page .page-header8 {
    background-image: url('../img/dairy audit.jpeg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Responsive background adjustments */
@media (max-width: 768px) {
    .page-header {
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 80vh;
        background-size: cover;
        background-position: center center;
    }
}

/* Hide Export Links */
.hide-export {
    display: none !important;
}

/* Force consultancy page background to be visible */
body.consultancy-page .page-header {
    background-image: url('../img/img-222.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 100vh !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

/* Override any conflicting background rules */
body.consultancy-page .page-header::before {
    display: none !important;
}

body.consultancy-page .page-header::after {
    display: none !important;
}

/* Why Choose Us Section */
.why-choose-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="why-choose-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="%2337B7EF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23why-choose-dots)"/></svg>');
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.why-choose-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(55, 183, 239, 0.05), rgba(0, 74, 172, 0.05));
    animation: whyChooseGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes whyChooseGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Why Choose Cards */
.why-choose-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(55, 183, 239, 0.15);
    backdrop-filter: blur(10px);
    height: 100%;
    z-index: 2;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.1), transparent);
    transition: left 0.8s ease;
}

.why-choose-card:hover::before {
    left: 100%;
}

.why-choose-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(55, 183, 239, 0.2);
    border-color: rgba(55, 183, 239, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

/* Why Choose Icons */
.why-choose-icon {
    position: relative;
    z-index: 2;
}

.why-choose-card .icon-circle {
    background: linear-gradient(135deg, #37B7EF, #004AAC) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(55, 183, 239, 0.3);
}

.why-choose-card .icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.why-choose-card:hover .icon-circle::before {
    transform: scale(1);
}

.why-choose-card:hover .icon-circle {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 40px rgba(55, 183, 239, 0.5);
}

/* Why Choose Content */
.why-choose-card h3 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.why-choose-card:hover h3 {
    color: #37B7EF;
    transform: translateX(5px);
    text-shadow: 0 2px 8px rgba(55, 183, 239, 0.3);
}

.why-choose-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.why-choose-card:hover p {
    color: #495057;
    transform: translateX(3px);
}

/* Background Decorative Elements */
.why-choose-card .position-absolute {
    transition: all 0.5s ease;
    animation: floatElement 6s ease-in-out infinite;
    color: #37B7EF !important;
    opacity: 0.1;
}

.why-choose-card:hover .position-absolute {
    transform: translate(10px, -10px) rotate(5deg);
    opacity: 0.2;
}

/* Staggered Animation Delays */
.why-choose-card:nth-child(1) {
    animation-delay: 0.1s;
}

.why-choose-card:nth-child(2) {
    animation-delay: 0.2s;
}

.why-choose-card:nth-child(3) {
    animation-delay: 0.3s;
}

.why-choose-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Modern Consultancy Section */
.modern-consultancy-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.modern-consultancy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="consultancy-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="%2337B7EF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23consultancy-dots)"/></svg>');
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.modern-consultancy-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(55, 183, 239, 0.05), rgba(0, 74, 172, 0.05));
    animation: consultancyGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes consultancyGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Modern Consultancy Cards */
.modern-consultancy-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(55, 183, 239, 0.15);
    backdrop-filter: blur(10px);
    height: 100%;
    z-index: 2;
}

.modern-consultancy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.1), transparent);
    transition: left 0.8s ease;
}

.modern-consultancy-card:hover::before {
    left: 100%;
}

.modern-consultancy-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(55, 183, 239, 0.2);
    border-color: rgba(55, 183, 239, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

/* Consultancy Icons */
.consultancy-icon {
    position: relative;
    z-index: 2;
}

.modern-consultancy-card .icon-circle {
    background: linear-gradient(135deg, #37B7EF, #004AAC) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(55, 183, 239, 0.3);
}

.modern-consultancy-card .icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.modern-consultancy-card:hover .icon-circle::before {
    transform: scale(1);
}

.modern-consultancy-card:hover .icon-circle {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 40px rgba(55, 183, 239, 0.5);
}

/* Consultancy Content */
.modern-consultancy-card h3 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.modern-consultancy-card:hover h3 {
    color: #37B7EF;
    transform: translateX(5px);
    text-shadow: 0 2px 8px rgba(55, 183, 239, 0.3);
}

.modern-consultancy-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modern-consultancy-card:hover p {
    color: #495057;
    transform: translateX(3px);
}

/* Modern Subtitle */
.modern-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Staggered Animation Delays */
.modern-consultancy-card:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-consultancy-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-consultancy-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Why Choose Consultancy Section */
.why-choose-consultancy-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.why-choose-consultancy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="why-consultancy-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="%2337B7EF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23why-consultancy-dots)"/></svg>');
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.why-choose-consultancy-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(55, 183, 239, 0.05), rgba(0, 74, 172, 0.05));
    animation: whyConsultancyGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes whyConsultancyGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Why Choose Consultancy Cards */
.why-choose-consultancy-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(55, 183, 239, 0.15);
    backdrop-filter: blur(10px);
    height: 100%;
    z-index: 2;
}

.why-choose-consultancy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.1), transparent);
    transition: left 0.8s ease;
}

.why-choose-consultancy-card:hover::before {
    left: 100%;
}

.why-choose-consultancy-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(55, 183, 239, 0.2);
    border-color: rgba(55, 183, 239, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

/* Why Choose Consultancy Icons */
.why-choose-consultancy-icon {
    position: relative;
    z-index: 2;
}

.why-choose-consultancy-card .icon-circle {
    background: linear-gradient(135deg, #37B7EF, #004AAC) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(55, 183, 239, 0.3);
}

.why-choose-consultancy-card .icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.why-choose-consultancy-card:hover .icon-circle::before {
    transform: scale(1);
}

.why-choose-consultancy-card:hover .icon-circle {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 40px rgba(55, 183, 239, 0.5);
}

/* Why Choose Consultancy Content */
.why-choose-consultancy-card h3 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.why-choose-consultancy-card:hover h3 {
    color: #37B7EF;
    transform: translateX(5px);
    text-shadow: 0 2px 8px rgba(55, 183, 239, 0.3);
}

.why-choose-consultancy-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.why-choose-consultancy-card:hover p {
    color: #495057;
    transform: translateX(3px);
}

/* Background Decorative Elements */
.why-choose-consultancy-card .position-absolute {
    transition: all 0.5s ease;
    animation: floatElement 6s ease-in-out infinite;
    color: #37B7EF !important;
    opacity: 0.1;
}

.why-choose-consultancy-card:hover .position-absolute {
    transform: translate(10px, -10px) rotate(5deg);
    opacity: 0.2;
}

/* Staggered Animation Delays */
.why-choose-consultancy-card:nth-child(1) {
    animation-delay: 0.1s;
}

.why-choose-consultancy-card:nth-child(2) {
    animation-delay: 0.2s;
}

.why-choose-consultancy-card:nth-child(3) {
    animation-delay: 0.3s;
}

.why-choose-consultancy-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Why Choose Hero (Consultancy) */
.why-choose-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
}
.why-choose-hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wc-dots" width="24" height="24" patternUnits="userSpaceOnUse"><circle cx="12" cy="12" r="1.3" fill="%2337B7EF" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23wc-dots)"/></svg>');
    animation: backgroundFloat 22s ease-in-out infinite;
    pointer-events: none;
}
.why-choose-hero .modern-title { margin-bottom: .5rem; }
.why-choose-hero-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.why-choose-hero-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(55,183,239,0.18);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.08);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
}
.why-choose-hero-card::before{
    content: '';
    position: absolute; inset: 0; left: -100%;
    background: linear-gradient(90deg, transparent, rgba(55,183,239,.12), transparent);
    transition: left .6s ease;
}
.why-choose-hero-card:hover::before{ left: 100%; }
.why-choose-hero-card:hover{
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 48px rgba(55,183,239,0.22);
    border-color: rgba(55,183,239,0.35);
}
.why-choose-hero-card h3{
    color: #2c3e50;
    font-weight: 700; font-size: 1.1rem;
}
.why-choose-hero-card p{ color: #6c757d; }

.why-choose-hero .icon-circle{
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #37B7EF, #004AAC);
    box-shadow: 0 8px 24px rgba(55,183,239,.35);
    position: relative; overflow: hidden;
}
.why-choose-hero .icon-circle i{ font-size: 1.35rem; }
.why-choose-hero .icon-circle::after{
    content: '';
    position: absolute; inset: 0; transform: scale(0);
    background: linear-gradient(45deg, rgba(255,255,255,.35), transparent);
    border-radius: 50%; transition: transform .3s ease;
}
.why-choose-hero-card:hover .icon-circle::after{ transform: scale(1); }

/* Floating shapes */
.why-choose-hero .shape{ position: absolute; display:block; border-radius: 50%; opacity: .15; filter: blur(2px); }
.why-choose-hero .shape-1{ width: 140px; height: 140px; background:#37B7EF; top: -30px; right: 10%; animation: floatElement 8s ease-in-out infinite; }
.why-choose-hero .shape-2{ width: 90px; height: 90px; background:#004AAC; bottom: 10%; left: 8%; animation: floatElement 10s ease-in-out infinite reverse; }
.why-choose-hero .shape-3{ width: 70px; height: 70px; background:#37B7EF; top: 20%; left: 40%; animation: floatElement 12s ease-in-out infinite; }

@media (max-width: 991.98px){
  .why-choose-hero-card{ padding: 1.25rem; }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Background Decorative Elements */
.mission-card .position-absolute,
.vision-card .position-absolute {
    transition: all 0.5s ease;
    animation: floatElement 6s ease-in-out infinite;
}

/* Mission Background Elements - Blue Theme */
.mission-card .position-absolute {
    color: #37B7EF !important;
    opacity: 0.1;
}

.mission-card:hover .position-absolute {
    transform: translate(15px, -15px) rotate(8deg);
    opacity: 0.2;
    color: #004AAC !important;
}

/* Vision Background Elements - Blue Theme (Different Pattern) */
.vision-card .position-absolute {
    color: #37B7EF !important;
    opacity: 0.1;
}

.vision-card:hover .position-absolute {
    transform: translate(-15px, -15px) rotate(-8deg);
    opacity: 0.2;
    color: #004AAC !important;
}

@keyframes floatElement {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(5px, -5px) rotate(2deg);
    }
    66% {
        transform: translate(-3px, 3px) rotate(-1deg);
    }
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 183, 239, 0.1), transparent);
    transition: left 0.6s ease;
}

.modern-card:hover::before {
    left: 100%;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(55, 183, 239, 0.2);
    border-color: rgba(55, 183, 239, 0.3);
}

/* Call to Action Section */
.cta-section {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-section:hover::before {
    opacity: 1;
}

.cta-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(55, 183, 239, 0.3);
}

/* Animations */
@keyframes teamFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes teamPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 20px 50px rgba(55, 183, 239, 0.15);
    }
}

@keyframes imageGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(55, 183, 239, 0.15);
    }
    50% {
        box-shadow: 0 12px 25px rgba(55, 183, 239, 0.25);
    }
}

.team-item:nth-child(odd) {
    animation: teamFloat 8s ease-in-out infinite, teamPulse 6s ease-in-out infinite;
}

.team-item:nth-child(even) {
    animation: teamFloat 8s ease-in-out infinite 4s, teamPulse 6s ease-in-out infinite 3s;
}

.team-item .img1 {
    animation: imageGlow 4s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .team-item {
        margin-bottom: 2rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .team-item {
        text-align: center;
    }
    
    .modern-card {
        padding: 1rem;
    }
}

/* =============================
   Modern Footer Enhancements
   (keeps existing colors)
   ============================= */
.footer {
    position: relative;
    overflow: hidden;
    /* keep background/color as-is; add subtle depth */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18) inset;
}

/* animated soft diagonal shine sweep without changing color */
.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        1200px 600px at 0% 0%,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: rotate(10deg);
    pointer-events: none;
    animation: footerShine 12s linear infinite;
}

@keyframes footerShine {
    0% { transform: translateX(-10%) rotate(10deg); opacity: 0.7; }
    50% { transform: translateX(10%) rotate(10deg); opacity: 0.9; }
    100% { transform: translateX(-10%) rotate(10deg); opacity: 0.7; }
}

/* columns: gentle float on hover */
.footer .row > [class*='col-'] {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.footer .row > [class*='col-']:hover {
    transform: translateY(-6px);
}

/* section headings: underline reveal */
.footer h5 {
    position: relative;
    display: inline-block;
}
.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: rgba(255, 255, 255, 0.6); /* neutral light line */
    transition: width 0.35s ease;
}
.footer h5:hover::after { width: 100%; }

/* footer links: slide underline + slight lift */
.footer .btn-link {
    position: relative;
    padding-left: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}
.footer .btn-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: currentColor; /* respect existing color */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    opacity: 0.5;
}
.footer .btn-link:hover { transform: translateX(4px); }
.footer .btn-link:hover::before { transform: scaleX(1); }

/* social buttons: lift and glow without color change */
.footer .btn-square {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer .btn-square:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

/* newsletter input: subtle focus ring */
.footer .form-control {
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.footer .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

/* signup button: pulse shimmer on hover */
.footer .btn.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer .btn.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.25), rgba(255,255,255,0));
    transition: left 0.6s ease;
}
.footer .btn.btn-secondary:hover::after { left: 140%; }
.footer .btn.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* subtle animated top border glow that preserves color */
.footer .container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
    opacity: 0.5;
    animation: borderGlow 3.5s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}

@media (max-width: 768px) {
    .modern-services-title {
        font-size: 1.8rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .service-image-container {
        height: 180px;
    }
    
    .service-content {
        padding: 1.2rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .modern-services-title {
        font-size: 1.5rem;
    }
    
    .service-image-container {
        height: 160px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
    }
    
    .service-icon i {
        font-size: 1rem;
    }
    
    .service-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES FOR ALL DEVICES
   ============================================ */

/* Mobile First Approach - Base Styles */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.25rem !important; }
    h4, .h4 { font-size: 1.1rem !important; }
    h5, .h5 { font-size: 1rem !important; }
    h6, .h6 { font-size: 0.9rem !important; }
    
    .display-1 { font-size: 2rem !important; }
    .display-2 { font-size: 1.75rem !important; }
    .display-3 { font-size: 1.5rem !important; }
    .display-4 { font-size: 1.25rem !important; }
    .display-5 { font-size: 1.1rem !important; }
    .display-6 { font-size: 1rem !important; }
    
    /* Containers */
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Navigation */
    .navbar-brand img {
        max-width: 150px !important;
        height: auto !important;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Text */
    p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables */
    .table {
        font-size: 0.875rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 { font-size: 2rem !important; }
    h2, .h2 { font-size: 1.75rem !important; }
    h3, .h3 { font-size: 1.5rem !important; }
    
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2rem !important; }
    .display-3 { font-size: 1.75rem !important; }
    
    /* Containers */
    .container {
        max-width: 540px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1, .h1 { font-size: 2.25rem !important; }
    h2, .h2 { font-size: 2rem !important; }
    h3, .h3 { font-size: 1.75rem !important; }
    
    .display-1 { font-size: 3rem !important; }
    .display-2 { font-size: 2.5rem !important; }
    .display-3 { font-size: 2rem !important; }
    
    /* Containers */
    .container {
        max-width: 720px;
    }
    
    /* Grid adjustments */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .row > * {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Containers */
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Containers */
    .container {
        max-width: 1140px;
    }
}

/* Common Responsive Utilities */
@media (max-width: 991.98px) {
    /* Hide on mobile/tablet */
    .d-lg-none {
        display: none !important;
    }
    
    /* Show on mobile/tablet */
    .d-md-block {
        display: block !important;
    }
    
    /* Stack columns */
    .row > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    /* Navigation */
    .navbar-collapse {
        background-color: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    /* Page headers */
    .page-header {
        min-height: 300px !important;
        padding: 2rem 0 !important;
    }
    
    /* Carousel */
    .carousel-item {
        min-height: 400px !important;
    }
    
    /* Sections */
    section {
        padding: 3rem 0 !important;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Two column layouts on tablet */
    .row .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Navigation */
    .navbar-nav {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Mobile specific (576px and below) */
@media (max-width: 575.98px) {
    /* Full width columns on mobile */
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Single column layout */
    .row .col-sm-12,
    .row .col-md-6,
    .row .col-lg-4,
    .row .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Hide desktop only elements */
    .d-none.d-md-block,
    .d-lg-block {
        display: none !important;
    }
    
    /* Show mobile only elements */
    .d-md-none {
        display: block !important;
    }
    
    /* Carousel adjustments */
    .carousel-item {
        min-height: 300px !important;
    }
    
    .carousel-caption {
        padding: 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Cards stack vertically */
    .card-deck,
    .card-group {
        flex-direction: column;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Tables */
    .table {
        font-size: 0.75rem;
    }
    
    /* Buttons full width on mobile */
    .btn-block {
        width: 100%;
        display: block;
    }
}

/* Landscape phone orientation */
@media (max-width: 991.98px) and (orientation: landscape) {
    .page-header {
        min-height: 250px !important;
    }
    
    .carousel-item {
        min-height: 350px !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem !important;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
}
