/* ============================================
   TIER 1: GLOBAL UI/UX ENHANCEMENTS
   ============================================ */

/* 1.3 Typography & Color System */
:root {
    --primary-color: #004685;
    --secondary-color: #29afe3;
    --text-color: #333333;
    --heading-color: #000000;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --body-bg: #ffffff;
    --border-color: #eeeeee;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Martel', serif;
}

[data-theme="dark"] {
    --primary-color: #29afe3;
    /* Lighter blue for dark mode contrast */
    --secondary-color: #004685;
    /* Darker blue for accents */
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --bg-light: #1a1a1a;
    --white: #252525;
    /* Card backgrounds */
    --body-bg: #121212;
    --border-color: #333333;
}

body {
    background-color: var(--body-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Dark Mode Specific Overrides */
[data-theme="dark"] .site-header .main-bar {
    background: #1e1e1e !important;
    border-bottom: 1px solid #333;
}

[data-theme="dark"] .logo-header img {
    filter: brightness(0) invert(1);
    /* Make logo white */
}

/* Global Backgrounds */
[data-theme="dark"] .bg-gray {
    background-color: #1a1a1a !important;
}

[data-theme="dark"] .bg-white {
    background-color: #121212 !important;
}

/* Card & Box Overrides */
[data-theme="dark"] .wt-box,
[data-theme="dark"] .blog-post .wt-post-info,
[data-theme="dark"] .wt-icon-box-wraper,
[data-theme="dark"] .pricingtable-wrapper,
[data-theme="dark"] .service-box-style-1,
[data-theme="dark"] .about-section-two,
[data-theme="dark"] .project-detail-containt .bg-white {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

/* Typography Overrides */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .wt-title,
[data-theme="dark"] .counter,
[data-theme="dark"] strong,
[data-theme="dark"] b {
    color: var(--heading-color) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span,
[data-theme="dark"] .wt-small-separator {
    color: var(--text-color);
}

[data-theme="dark"] .text-black {
    color: var(--heading-color) !important;
}

/* Form Elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control {
    background-color: #252525 !important;
    border-color: #444 !important;
    color: #fff !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--primary-color) !important;
}

/* Tables */
[data-theme="dark"] .table {
    color: var(--text-color);
}

[data-theme="dark"] .table-bordered,
[data-theme="dark"] .table-bordered td,
[data-theme="dark"] .table-bordered th {
    border-color: #333 !important;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Accordions & Tabs */
[data-theme="dark"] .wt-accordion .panel {
    background-color: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .wt-accordion .acod-head .acod-title a {
    background-color: #252525;
    color: #fff;
}

/* Footer & Dark Sections */
[data-theme="dark"] .site-footer {
    background-color: #0d0d0d !important;
    /* Very dark for footer */
}

[data-theme="dark"] .footer-bottom {
    background-color: #000 !important;
    border-top: 1px solid #222;
}

/* Separators */
[data-theme="dark"] .wt-separator-outer .wt-separator {
    border-color: #444;
}

/* Specific Component Fixes */
[data-theme="dark"] .owl-prev,
[data-theme="dark"] .owl-next {
    background: #333 !important;
    color: #fff !important;
}

[data-theme="dark"] .pagination>li>a {
    background-color: #1e1e1e;
    border-color: #333;
    color: #fff;
}

[data-theme="dark"] .pagination>.active>a {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}



body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
}

/* 1.1 Navigation Enhancement - Sticky Header with Shrink Effect */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
}

.sticky-header.is-fixed {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff !important;
}

.sticky-header.is-fixed .main-bar {
    padding: 10px 0;
    transition: padding 0.3s ease-in-out;
}

.sticky-header.is-fixed .logo-header img {
    height: 40px;
    transition: height 0.3s ease-in-out;
}

/* Nav Hover Underline Animation */
.header-nav .nav>li>a {
    position: relative;
    transition: color 0.3s ease-in-out;
}

.header-nav .nav>li>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.header-nav .nav>li>a:hover::after,
.header-nav .nav>li.active>a::after {
    width: 100%;
}

/* Smooth Dropdown Transitions */
.header-nav .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    border-top: 3px solid var(--secondary-color);
}

.header-nav .nav>li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Mobile Menu Slide-in Effect */
@media (max-width: 991px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 1000;
    }

    .header-nav.show {
        right: 0;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Responsiveness Improvements */
    .section-full {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .wt-bnr-inr-entry h2 {
        font-size: 32px !important;
    }
}

@media (max-width: 767px) {
    .quick-contact-widget {
        bottom: 15px;
        left: 15px;
    }

    .site-footer .widget {
        margin-bottom: 30px;
    }
}

/* Dark Mode Footer Specifics */
[data-theme="dark"] .site-footer .widget-title {
    color: #ffffff !important;
}

/* ============================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   ============================================ */

@media (max-width: 767px) {

    /* Global Mobile Padding */
    .section-full {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Heading Sizes */
    h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    /* Hero Section Text */
    .tp-caption {
        font-size: 24px !important;
        line-height: 30px !important;
        white-space: normal !important;
        width: 90% !important;
        left: 5% !important;
        text-align: center !important;
    }

    /* Client Carousel Centering */
    .home-client-carousel-2 .item {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ow-client-logo {
        width: 100%;
        text-align: center;
    }

    /* Footer Widget Stacking */
    .site-footer .widget {
        margin-bottom: 30px;
    }

    .footer-top .row>div {
        margin-bottom: 20px;
    }

    /* Image Responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 575px) {

    /* Smaller Mobile Adjustments */
    .wt-header-left,
    .wt-header-center,
    .wt-header-right {
        display: block;
        width: 100%;
        text-align: center;
    }

    .logo-header {
        float: none;
        display: inline-block;
        margin-bottom: 10px;
    }

    .site-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

[data-theme="dark"] .site-footer a {
    color: #bbbbbb !important;
}

[data-theme="dark"] .site-footer a:hover {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .site-footer p,
[data-theme="dark"] .site-footer li {
    color: #aaaaaa !important;
}

[data-theme="dark"] .site-footer .widget_address li {
    color: #aaaaaa !important;
}

[data-theme="dark"] .header-nav {
    background-color: #1e1e1e;
}

[data-theme="dark"] .header-nav .nav>li>a {
    color: #e0e0e0;
}


/* 1.4 Global Button & Link Animations */
.site-button,
.btn,
a {
    transition: all 0.3s ease-in-out;
}

.site-button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(41, 175, 227, 0.3);
}

.site-button-link {
    position: relative;
    display: inline-block;
}

.site-button-link::after {
    content: '→';
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
}

.site-button-link:hover::after {
    transform: translateX(5px);
}

/* 1.2 Footer Redesign */
.site-footer {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    overflow: hidden;
}

/* Animated Wave Background */
.site-footer .overlay-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

.site-footer .container {
    position: relative;
    z-index: 1;
}



.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Performance Optimization */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ============================================
   TIER 2: HOMEPAGE ENHANCEMENTS
   ============================================ */

/* 2.1.1 Hero Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    display: block;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* 2.1.2 Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2.1.3 Product Card Hover Effects */
.hover-zoom-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.hover-zoom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hover-zoom-card img {
    transition: transform 0.5s ease;
}

.hover-zoom-card:hover img {
    transform: scale(1.05);
}

/* 2.1.5 Testimonial Pulse */
.testimonial-quote-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* 2.1.6 Blog Card Hover */
.blog-post:hover .wt-post-media img {
    transform: scale(1.1);
}

.blog-post .wt-post-media {
    overflow: hidden;
}

.blog-post .wt-post-media img {
    transition: transform 0.5s ease;
}

/* ============================================
   TIER 3: NEW SECTIONS
   ============================================ */

/* 3.1 Statistics Counter */
.wt-icon-box-wraper.center.text-white .icon-cell {
    transition: all 0.3s ease;
}

.wt-icon-box-wraper.center.text-white:hover .icon-cell {
    transform: scale(1.1) rotate(5deg);
}

.wt-icon-box-wraper .counter {
    font-family: var(--font-secondary);
}

/* 3.2 Client Logo Carousel */
.home-client-carousel-2 .item img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.home-client-carousel-2 .item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}


/* ============================================
   TIER 2.2.2: SERVICES PAGE ENHANCEMENTS
   ============================================ */

/* Service Card Hover Effects */
.wt-icon-box-wraper {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.wt-icon-box-wraper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.wt-icon-box-wraper:hover .icon-cell {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Tab Content Animation */
.tab-content .tab-pane {
    display: none;
    /* Default hidden */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.tab-content .tab-pane.active {
    display: block;
    /* Bootstrap handles this, but we ensure animation works */
    opacity: 1;
    transform: translateY(0);
    animation: fadeInTab 0.5s ease-out forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Nav Item Hover */
.nav-tabs .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-tabs .nav-link:hover::after,

/* ============================================
   TIER 2.2.3: CONTACT PAGE ENHANCEMENTS
   ============================================ */

/* Contact Form Input Animation */
.input-animate {
    position: relative;
    overflow: hidden;
}

.input-animate input,
.input-animate textarea {
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    transition: all 0.3s ease;
}

.input-animate input:focus,
.input-animate textarea:focus {
    border-bottom-color: var(--primary-color);
    padding-left: 10px;
}

.input-animate label {
    transition: all 0.3s ease;
    color: #999;
}

.input-animate input:focus+label,
.input-animate textarea:focus+label,
.input-animate input:valid+label,
.input-animate textarea:valid+label {
    transform: translateY(-25px);
    font-size: 12px;
    color: var(--primary-color);
}

/* Map Section Pulse */
.google-map {
    position: relative;
    overflow: hidden;
}

.google-map::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(0, 70, 133, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: mapPulse 2s infinite;
    pointer-events: none;
}

@keyframes mapPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
}

/* Contact Info Box Hover */
.contact-info-section .wt-icon-box-wraper {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.contact-info-section .wt-icon-box-wraper:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* ============================================
   TIER 2.2.4: CAREERS PAGE ENHANCEMENTS
   ============================================ */

/* Job Accordion Enhancements */
.wt-accordion .panel {
    border: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wt-accordion .panel:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.wt-accordion .acod-head .acod-title a {
    background-color: #fff;
    color: var(--primary-color);
    padding: 15px 20px;
    display: block;
    font-weight: 600;
    position: relative;
}

.wt-accordion .acod-head .acod-title a .indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wt-accordion .acod-head .acod-title a:not(.collapsed) .indicator {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-50%) rotate(180deg);
}

/* Apply Button Animation */
.apply-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 70, 133, 0.3);
}


/* ============================================
   TIER 2.2.5: CASE STUDIES PAGE ENHANCEMENTS
   ============================================ */

/* Masonry Item Hover Effects */
.masonry-item .wt-box {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.masonry-item .wt-box img {
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.masonry-item:hover .wt-box img {
    transform: scale(1.1);
}

.masonry-item .work-hover-grid {
    position: relative;
    overflow: hidden;
}

.masonry-item .work-hover-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 70, 133, 0.8);
    /* Primary color overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.masonry-item:hover .work-hover-grid::before {
    opacity: 1;
}

.masonry-item .work-hover-discription {
    position: absolute;
    bottom: -50px;
    left: 20px;
    right: 20px;
    z-index: 2;
    transition: all 0.4s ease;
    opacity: 0;
}

.masonry-item:hover .work-hover-discription {
    bottom: 20px;
    opacity: 1;
}

.masonry-item .work-hover-discription h4 {
    color: #fff;
    margin-bottom: 5px;
}


/* ============================================
   TIER 2.2.6: RESOURCES PAGE ENHANCEMENTS
   ============================================ */

/* Resource Card Hover Effects */
.resource-card-hover {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.resource-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.resource-card-hover:hover .icon-cell {
    color: var(--secondary-color);
    transform: scale(1.1);
    display: inline-block;
    transition: all 0.3s ease;
}

.resource-card-hover .site-button-link {
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
}

.resource-card-hover:hover .site-button-link {
    padding-right: 30px;
    color: var(--secondary-color);
}

.resource-card-hover .site-button-link::after {
    content: '\f105';
    font-family: 'FontAwesome';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.resource-card-hover:hover .site-button-link::after {
    right: 5px;
}





/* ============================================
   QUICK CONTACT WIDGET
   ============================================ */
.quick-contact-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.quick-contact-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 70, 133, 0.4);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-contact-toggle:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.quick-contact-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qc-item {
    width: 50px;
    height: 50px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.qc-item:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateX(5px);
}

/* Tooltip for QC Items */
.qc-item::after {
    content: attr(title);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.qc-item:hover::after {
    opacity: 1;
    visibility: visible;
    left: 65px;
}

/* Specific Colors */
.qc-item.whatsapp {
    color: #25D366;
}

.qc-item.whatsapp:hover {
    background: #25D366;
    color: #fff;
}

.qc-item.phone {
    color: #004685;
}

.qc-item.phone:hover {
    background: #004685;
    color: #fff;
}

.qc-item.email {
    color: #EA4335;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.dark-mode-toggle-header {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle-header:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dark-mode-toggle-header i {
    transition: transform 0.5s ease;
}

[data-theme="dark"] .dark-mode-toggle-header i {
    transform: rotate(180deg);
    content: '\f186';
    /* Moon icon */
}

/* Override for specific elements in Dark Mode */
[data-theme="dark"] .bg-gray {
    background-color: #1a1a1a !important;
}

[data-theme="dark"] .bg-white {
    background-color: #1e1e1e !important;
}

[data-theme="dark"] .text-black {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .wt-separator .sep-line-one {
    color: var(--primary-color);
}


/* ============================================
   LIGHTBOX ZOOM BUTTON
   ============================================ */
.zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(0, 70, 133, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.work-hover-grid:hover .zoom-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.zoom-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* 1.4 Global Border Radius & Brand Colors */
:root {
    --border-radius-base: 5px;
}

/* Global Border Radius Enforcement */
.site-button,
.btn,
.form-control,
.wt-box,
.wt-icon-box-wraper,
.service-box-style-1,
.pricingtable-wrapper,
.blog-post,
.ow-img-entry img,
.wt-media img,
.wt-thum-bx img,
.img-responsive,
.modal-content,
.panel,
.alert {
    border-radius: var(--border-radius-base) !important;
}

/* Button Color Enforcements */
.site-button {
    background-color: var(--primary-color);
    color: #fff;
}

.site-button:hover,
.site-button:active,
.site-button:focus {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.site-button.white {
    background-color: #fff;
    color: var(--primary-color);
}

.site-button.white:hover {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.site-button.outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.site-button.outline:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Text Selection Color */
::selection {
    background: var(--secondary-color);
    color: #fff;
}

::-moz-selection {
    background: var(--secondary-color);
    color: #fff;
}

/* Scroll to Top Button */
button.scroltop {
    background-color: var(--primary-color) !important;
    border-radius: var(--border-radius-base) !important;
}

button.scroltop:hover {
    background-color: var(--secondary-color) !important;
}

/* Pagination */
.pagination>li>a {
    border-radius: var(--border-radius-base) !important;
    color: var(--primary-color);
}

.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:hover,
.pagination>.active>span:hover,
.pagination>.active>a:focus,
.pagination>.active>span:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination>li>a:hover,
.pagination>li>span:hover,
.pagination>li>a:focus,
.pagination>li>span:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

/* Owl Carousel Dots */
.owl-theme .owl-dots .owl-dot span {
    background: var(--primary-color) !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--secondary-color) !important;
}

/* Icon Box Hover */
.wt-icon-box-wraper:hover {
    border-color: var(--secondary-color) !important;
}

.wt-icon-box-wraper:hover .icon-content .wt-tilte {
    color: var(--primary-color);
}

/* Link Hover Colors */
a:hover,
a:focus,
a:active {
    color: var(--secondary-color);
    text-decoration: none;
}

.site-text-primary {
    color: var(--primary-color) !important;
}

.site-bg-primary {
    background-color: var(--primary-color) !important;
}

.site-text-secondary {
    color: var(--secondary-color) !important;
}

.site-bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* ============================================
   URGENT OVERRIDES: LIGHT MODE HEADER & CONTACT
   ============================================ */

/* 1. Header Dropdown - Light Mode */
.header-nav .nav>li .sub-menu,
.nav-dark.header-nav .nav>li .sub-menu,
.nav-dark .nav>li .sub-menu {
    background-color: #004685 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.header-nav .nav>li .sub-menu>li>a,
.nav-dark.header-nav .nav>li .sub-menu>li>a,
.nav-dark .nav>li .sub-menu>li>a,
.nav-dark.header-nav .nav>li .sub-menu li a {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Hover state */
.header-nav .nav>li .sub-menu>li>a:hover,
.nav-dark.header-nav .nav>li .sub-menu>li>a:hover,
.nav-dark .nav>li .sub-menu>li>a:hover,
.nav-dark.header-nav .nav>li .sub-menu li a:hover {
    background-color: #29afe3 !important;
    color: #ffffff !important;
}

/* 2. Contact Slide-out Panel - Light Mode */
.contact-slide-hide,
.contact-nav,
.contact-nav-form {
    background-color: #ffffff !important;
}

.contact-nav h4,
.contact-nav h5,
.contact-nav .section-head h4,
.contact-nav-form h4 {
    color: #1a1a2e !important;
}

/* Labels must be dark vs white bg */
.contact-nav label,
.contact-nav-form label,
.contact-nav .input-animate label,
.input-animate label {
    color: #333333 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

.contact-nav p,
.contact-nav .icon-content p {
    color: #333333 !important;
}

/* Input fields */
.contact-nav input,
.contact-nav textarea,
.contact-nav-form input,
.contact-nav-form textarea,
.input-animate input,
.input-animate textarea {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
    border-bottom: 2px solid #29afe3 !important;
}

.contact_close {
    color: #1a1a2e !important;
}

/* Ensure these don't break dark mode */
[data-theme="dark"] .contact-nav label,
[data-theme="dark"] .contact-nav-form label,
[data-theme="dark"] .input-animate label {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .contact-nav input,
[data-theme="dark"] .contact-nav textarea {
    background-color: #252525 !important;
    color: #ffffff !important;
    border-color: #444 !important;
}

/* Ensure breadcrumbs remain white on dark banners in dark mode */
[data-theme="dark"] .wt-breadcrumb li,
[data-theme="dark"] .wt-breadcrumb li a {
    color: #ffffff !important;
}

[data-theme="dark"] .wt-breadcrumb li a:hover {
    color: var(--secondary-color) !important;
}
/* ============================================
   MODERN ANIMATIONS - SCOPED TO HOMEPAGE
   ============================================ */

/* 1. Global Interactive Elements */

/* Button Shine Effect */
.site-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.site-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
    z-index: -1;
}

.site-button:hover::before {
    left: 100%;
}

/* Magnetic Link Underline */
.site-button-link.hover-underline {
    position: relative;
    text-decoration: none;
}

.site-button-link.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--secondary-color, #29afe3);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.site-button-link.hover-underline:hover::after {
    width: 100%;
}

/* 2. Hero Section */

/* Scroll Indicator Bounce */
.scroll-indicator {
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Text Blur-in Effect (Applied to existing fade-in elements if needed) */
.fade-in-blur {
    animation: blurIn 1s ease-out forwards;
    opacity: 0;
}

@keyframes blurIn {
    0% {
        filter: blur(10px);
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. About & Gallery Section */

/* Gallery Image Hover - Zoom & Rotate */
.wt-thum-bx {
    overflow: hidden;
    border-radius: 5px; /* Ensure border radius matches global */
}

.wt-thum-bx img {
    transition: transform 0.5s ease;
}

.hover-zoom-card:hover .wt-thum-bx img {
    transform: scale(1.1) rotate(1deg);
}

/* Accordion Animation */
.wt-accordion .panel {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.wt-accordion .panel:hover,
.wt-accordion .panel.active {
    border-left-color: var(--primary-color, #004685);
    background-color: #f9f9f9;
}

/* 4. Cleanroom Products Section */

/* Product Card Levitate & Shadow */
.wt-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

.hover-box-effect:hover .wt-box {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
    z-index: 2;
}

/* Icon Wobble Animation */
.v-icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.hover-box-effect:hover .v-icon {
    animation: wobble 1s ease-in-out;
    color: var(--secondary-color, #29afe3);
}

@keyframes wobble {
    0%, 100% { transform: translateX(0%); transform-origin: 50% 50%; }
    15% { transform: translateX(-6px) rotate(-6deg); }
    30% { transform: translateX(3px) rotate(6deg); }
    45% { transform: translateX(-3px) rotate(-3.6deg); }
    60% { transform: translateX(2px) rotate(2.4deg); }
    75% { transform: translateX(-1px) rotate(-1.2deg); }
}

/* 5. Clients & Testimonials */

/* Client Logos - Grayscale to Color & Pop */
.client-logo-box {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.client-logo-box:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Testimonial Card Float */
.testimonial-box {
    transition: transform 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 6. General Utility Animations */

/* Pulse Effect for Call to Actions */
.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 175, 227, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(41, 175, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(41, 175, 227, 0);
    }
}
/* Scoped Animations for 'Who We Are' Section */

/* 1. Background Wave Animation */
#who-we-are-section {
    position: relative;
    overflow: hidden; /* Contain the waves */
    z-index: 1; /* Ensure content is above waves */
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Increased height for more visibility */
    z-index: -1; /* Behind content */
    opacity: 0.1; /* Subtle effect */
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Seamless Wave 1 (Dark Blue) */
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path fill="%23004685" fill-opacity="1" d="M0,32L60,42.7C120,53,240,75,360,74.7C480,75,600,53,720,48C840,43,960,53,1080,64L1200,75L1200,120L1080,120C960,120,840,120,720,120C600,120,480,120,360,120C240,120,120,120,60,120L0,120Z"></path></svg>');
    background-size: 2400px 100%; /* Large width for long waves */
    background-repeat: repeat-x;
    animation: wave-move 60s linear infinite; /* Very slow and majestic */
}

.wave:nth-child(2) {
    bottom: 5px;
    opacity: 0.4;
    /* Seamless Wave 2 (Light Blue) - Offset phase */
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path fill="%2329afe3" fill-opacity="1" d="M0,64L60,69.3C120,75,240,85,360,80C480,75,600,53,720,58.7C840,64,960,96,1080,101.3L1200,107L1200,120L1080,120C960,120,840,120,720,120C600,120,480,120,360,120C240,120,120,120,60,120L0,120Z"></path></svg>');
    background-size: 2000px 100%; /* Different width for parallax effect */
    background-repeat: repeat-x;
    animation: wave-move-2 45s linear infinite;
}

@keyframes wave-move {
    0% { background-position-x: 0; }
    100% { background-position-x: -2400px; } /* Must match background-size width */
}

@keyframes wave-move-2 {
    0% { background-position-x: 0; }
    100% { background-position-x: 2000px; } /* Move opposite direction */
}

/* 2. Floating Particles Animation */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2; /* Behind everything */
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(41, 175, 227, 0.1); /* Light Blue, very transparent */
    border-radius: 50%;
    animation: float-up linear infinite;
}

/* Hexagon shape variant */
.particle.hex {
    border-radius: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: rgba(0, 70, 133, 0.05); /* Dark Blue, extremely subtle */
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* 3. Accordion Hover Effects */
#who-we-are-section .wt-accordion .panel {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

#who-we-are-section .wt-accordion .panel:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 70, 133, 0.1);
    z-index: 2;
}

#who-we-are-section .acod-head .acod-title a {
    position: relative;
    display: block;
    transition: color 0.3s ease;
}

#who-we-are-section .acod-head .acod-title a .indicator i {
    transition: transform 0.5s ease;
}

#who-we-are-section .acod-head .acod-title a:hover .indicator i {
    transform: rotate(180deg);
    color: #29afe3;
}

/* 4. Gallery Hover Effects */
#who-we-are-section .welcome-block-three {
    perspective: 1000px;
}

#who-we-are-section .wt-box.hover-zoom-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 5px;
}

#who-we-are-section .wt-box.hover-zoom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
    transition: none;
}

#who-we-are-section .wt-box.hover-zoom-card:hover::before {
    left: 125%;
    transition: left 0.7s ease;
}

/* 5. Responsive Adjustments */
@media only screen and (max-width: 767px) {
    .wave-container {
        height: 80px;
    }
    
    .wave {
        animation-duration: 15s; /* Faster on mobile? Or keep slow. Let's keep it majestic. */
    }

    #who-we-are-section .wt-accordion .panel:hover {
        transform: none;
    }
}
/* 6. Master UI Polish (Scoped) */

/* Background Texture (Noise) */
#who-we-are-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Typography Hierarchy - Responsive */
#who-we-are-section .section-head h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #004685; /* Brand Dark Blue */
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Fluid typography */
}

#who-we-are-section .section-head h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #29afe3; /* Brand Light Blue */
    margin-top: 10px;
    border-radius: 2px;
}

#who-we-are-section p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: #444;
    font-weight: 400;
    margin-bottom: 30px;
}

#who-we-are-section p strong {
    color: #004685;
    font-weight: 700;
}

/* Glassmorphism Accordion */
#who-we-are-section .wt-accordion .panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#who-we-are-section .wt-accordion .panel:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(41, 175, 227, 0.3);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 70, 133, 0.08);
}

#who-we-are-section .acod-head .acod-title a {
    font-weight: 600;
    color: #333;
    padding: 15px 20px;
}

#who-we-are-section .acod-head .acod-title a:hover {
    color: #004685;
}

#who-we-are-section .acod-content {
    color: #555;
    padding: 0 20px 20px 20px;
}

/* Gallery Frame */
#who-we-are-section .welcome-block-three {
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Mobile Specific Adjustments */
@media only screen and (max-width: 767px) {
    #who-we-are-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #who-we-are-section .section-head {
        margin-bottom: 30px;
    }

    #who-we-are-section .wt-accordion .panel {
        margin-bottom: 10px;
    }
    
    /* Ensure gallery stacks nicely */
    #who-we-are-section .welcome-block-three {
        margin-top: 30px;
    }
}
