/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
    border-radius: 6px;
    /* Removed overflow: hidden so the badge doesn't get cut off */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 6px;
    /* Added here so image stays rounded */
}

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

.about-eyebrow {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 16px;
    display: inline-block;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-title span {
    color: var(--color-primary);
}

.about-description {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.7;
}

/* Decorative Elements (matching the image layout) */
.about-decor-top {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    z-index: 1;
    pointer-events: none;
    /* Optional: filter to make it blend well */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.about-decor-bottom {
    position: absolute;
    bottom: -100px;
    right: 50px;
    width: 280px;
    z-index: 1;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    overflow: hidden;
}

.about-decor-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 1199px) {
    .about-title {
        font-size: 44px;
    }

    .about-decor-top {
        width: 280px;
        right: -30px;
    }
}

@media (max-width: 991px) {
    .about-content {
        padding-top: 24px;
    }

    .about-title {
        font-size: 36px;
    }

    .about-decor-top,
    .about-decor-bottom {
        display: none;
        /* Hide absolute decors on mobile to prevent overflow issues */
    }
}

@media (max-width: 767px) {
    .about-title {
        font-size: 32px;
    }

    .about-description {
        font-size: 16px;
    }

    .about-eyebrow {
        font-size: 16px;
    }

    .about-image-wrapper {
        border-radius: 16px;
    }
}

/* ==========================================================================
   ABOUT EXPERIENCE BADGE
   ========================================================================== */
.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -40px;
    /* Slight adjustment so it doesn't overflow screen on small devices */
    /* Overlaps horizontally outside the image to the right */
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 24px 30px;
    border-radius: 12px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-experience-badge h3 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: var(--color-white);
}

.about-experience-badge p {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1199px) {
    .about-experience-badge {
        right: -20px;
    }
}

@media (max-width: 991px) {
    .about-experience-badge {
        right: 20px;
        /* Stay inside on mobile/tablet */
        bottom: -30px;
        /* Overlap vertically on mobile/tablet */
        padding: 20px 24px;
    }
}

@media (max-width: 767px) {
    .about-experience-badge {
        right: 15px;
        bottom: -20px;
        padding: 16px 20px;
        border-radius: 10px;
    }

    .about-experience-badge h3 {
        font-size: 36px;
    }

    .about-experience-badge p {
        font-size: 13px;
    }
}

/* ==========================================================================
   MISSION VISION VALUES SECTION (VERTICAL TABS)
   ========================================================================== */
.mvv-custom-layout {
    gap: 30px;
    /* Space between tabs and content */
}

.mvv-tabs-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    height: auto;
    gap: 15px;
}

.mvv-tab {
    background: var(--color-primary) !important;
    border: none;
    border-radius: 5px !important;
    padding: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    gap: 15px;
}

.mvv-tab-icon {
    font-size: 24px;
    color: var(--color-white);
    transition: all 0.4s ease;
}

.mvv-tab:last-child {
    border-right: none;
}

.mvv-tab .mvv-tab-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white) !important;
    white-space: nowrap;
    padding: 10px 0;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.mvv-tab.active {
    background: var(--color-navy) !important;
}

.mvv-tab.active .mvv-tab-text {
    color: var(--color-white) !important;
}

.mvv-tab:hover:not(.active) {
    background: var(--color-navy) !important;
    opacity: 0.9;
}

.mvv-content-container {
    padding: 25px 40px;
    background: var(--color-white);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mvv-content {
    position: relative;
    z-index: 1;
}

.mvv-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 200px;
    color: #818181;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
    line-height: 1;
}

.mvv-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-deep-navy);
    margin-bottom: 12px;
}

.mvv-content p:last-child {
    margin-bottom: 0;
}

.mvv-content p strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* Minimum Height Rules for Consistent Tab Sizing */
@media (min-width: 992px) and (max-width: 1099px) {
    .mvv-custom-layout {
        min-height: 335px;
    }
}

@media (min-width: 1100px) and (max-width: 1200px) {
    .mvv-custom-layout {
        min-height: 278px;
    }
}

@media (min-width: 1201px) {
    .mvv-custom-layout {
        min-height: 250px;
    }
}

/* Responsive Styles for Tabs */
@media (max-width: 991px) {
    .mvv-custom-layout {
        flex-direction: column !important;
        min-height: auto;
    }

    .mvv-tabs-container {
        flex-direction: column !important;
        border-bottom: none;
        gap: 15px;
    }

    .mvv-tab {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: none;
        flex-direction: row;
        justify-content: center;
        padding: 18px 25px;
        gap: 10px;
    }

    .mvv-tab .mvv-tab-text {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0;
        font-size: 18px;
    }

    .mvv-content-container {
        padding: 30px 25px;
    }
}

.mvv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mvv-list li {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mvv-list li:last-child {
    margin-bottom: 0;
}

.mvv-list li i {
    color: var(--color-primary);
    font-size: 18px;
    line-height: 1.4;
}

.mvv-list li strong {
    color: var(--color-navy);
}

.mvv-section {
    background-color: var(--color-background);
}

/* Staggered MVV Cards on Desktop */
@media (min-width: 992px) {
    .mvv-grid>div:nth-child(1) .mvv-card {
        margin-top: 60px;
    }

    .mvv-grid>div:nth-child(2) .mvv-card {
        margin-top: 30px;
    }
}

@media (min-width: 992px) {
    .mvv-grid {
        padding-bottom: 60px;
        /* Fixes bottom spacing for staggered cards */
    }
}

/* ==========================================================================
   COUNTER SECTION
   ========================================================================== */
.counter-item-wrapper {
    background-color: var(--color-deep-navy);
    position: relative;
    z-index: 2;
}

.counter-text {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    font-size: 14px;
}

.finox-responsive-video {
    width: 100%;
    object-fit: cover;
    height: 40vh;
    /* Mobile screens */
}

@media (min-width: 768px) {
    .finox-responsive-video {
        height: auto;
        min-height: unset;
        max-height: 75vh;
    }

    /* Tablets */
}

@media (min-width: 1024px) {
    .finox-responsive-video {
        max-height: 85vh;
    }

    /* Laptops */
}

@media (min-width: 1440px) {
    .finox-responsive-video {
        max-height: 88vh;
    }

    /* 1920px & Large desktops */
}

/* ==========================================================================
   VIDEO HERO SECTION OVERLAY
   ========================================================================== */
.video-hero-wrapper {
    background-color: transparent;
}

/* Scroll Down Mouse Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-down-indicator:hover {
    opacity: 1;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

.video-inner {
    width: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.video-hero-content {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.video-hero-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.video-hero-title span {
    color: var(--color-primary);
}

.video-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.custom-outline-btn {
    border: 1px solid #ffffff;
    color: #ffffff;
    background: transparent;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-outline-btn:hover {
    background: #ffffff;
    color: var(--color-navy, #000);
}

/* Mobile specifically (Up to 767px) */
@media (max-width: 767.98px) {
    .video-inner {
        margin-bottom: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .video-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%), rgba(0, 0, 0, 0.4);
    }

    .video-hero-content {
        padding: 0 10px;
    }

    .video-hero-title {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 16px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    }

    .video-hero-description {
        display: none !important;
    }

    .video-hero-actions .btn-secondary {
        display: none !important;
    }

    .video-hero-actions {
        margin-top: 0;
    }

    .video-hero-actions .btn-primary {
        box-shadow: 0 4px 14px rgba(32, 110, 247, 0.4);
    }
}

/* Tablet & Desktop Content (768px and above) */
@media (min-width: 768px) {
    .video-hero-title {
        font-size: 34px;
    }

    .video-hero-description {
        display: block;
        font-size: 16px;
        margin-bottom: 30px;
    }
}

/* Large Screens */
@media (min-width: 992px) {
    .video-hero-title {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .video-hero-description {
        font-size: 18px;
        margin-bottom: 40px;
        max-width: 85%;
    }
}

/* ==========================================================================
   AUTOCAD DESIGN SECTION
   ========================================================================== */
.autocad-wrapper {
    background-color: var(--color-deep-navy, #11141a);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.autocad-glow-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(32, 110, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.autocad-glow-2 {
    position: absolute;
    bottom: -150px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(32, 110, 247, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.autocad-title {
    font-family: var(--font-heading);
    font-size: 32px;
}

.autocad-title span {
    color: var(--color-primary);
}

.autocad-desc {
    font-size: 16px;
}

.autocad-feature-box {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.autocad-feature-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(32, 110, 247, 0.3);
}

.autocad-feature-box .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: rgba(32, 110, 247, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.autocad-feature-box:hover .feature-icon {
    background: var(--color-primary);
    color: #fff;
}

.fs-sm {
    font-size: 14px;
}

@media (min-width: 768px) {
    .autocad-title {
        font-size: 42px;
    }

    .autocad-desc {
        font-size: 17px;
    }
}

/* Mobile Responsiveness for AutoCAD Section */
@media (max-width: 767px) {
    .autocad-title {
        font-size: 28px;
    }

    .autocad-desc {
        font-size: 15px;
    }

    .autocad-feature-box {
        padding: 16px !important;
    }

    .autocad-feature-box .feature-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        margin-right: 15px !important;
    }

    .autocad-feature-box h4 {
        font-size: 18px !important;
    }
}

/* ==========================================================================
   CORE CAPABILITIES SECTION (HOVER CARDS)
   ========================================================================== */

.capability-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.capability-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 110, 247, 0.02) 0%, rgba(32, 110, 247, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
    border-color: rgba(32, 110, 247, 0.1);
}

.capability-card:hover::before {
    opacity: 1;
}

/* --- BORDER ANIMATION (SVG) --- */
.border-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    pointer-events: none;
    z-index: 10;
}

.border-svg rect {
    stroke: var(--color-primary);
    /* Blue color */
    stroke-width: 2px;
    /* Since overflow is hidden, half of this (2px) will be visible */
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.6s ease-in-out;
}

.capability-card:hover .border-svg rect {
    stroke-dashoffset: 0;
}

.capability-card .card-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(32, 110, 247, 0.1);
    color: var(--color-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.capability-card:hover .card-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.capability-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
}

.capability-desc {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .capability-card {
        padding: 30px 20px;
    }

    .capability-title {
        font-size: 22px;
    }

    .capability-card .card-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }
}

/* --------------------------------------------------------------------------
   GLOBAL FOOTPRINT (3D GLOBE)
   -------------------------------------------------------------------------- */

/* Globe Tooltip Premium Design */
.globe-tooltip {
    position: absolute;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transform: translate(-50%, -100%);
    margin-top: -15px;
    backdrop-filter: blur(5px);
    transition: opacity 0.2s ease, margin-top 0.2s ease;
}

.globe-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-navy) transparent transparent transparent;
}

/* Location Icon Animation */
@keyframes bounceMarker {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.animated-marker {
    animation: bounceMarker 1.5s infinite ease-in-out;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(0.5);
        opacity: 0.15;
    }
}

.animated-shadow {
    animation: shadowPulse 1.5s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   FOUNDER MESSAGE SECTION
   -------------------------------------------------------------------------- */
.founder-message-section {
    background-color: var(--color-background);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.founder-quote {
    font-family: var(--font-heading);
    font-size: 34px;
    /* Scaled down slightly for better fit */
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
    position: relative;
    display: inline-block;
    padding: 0 50px;
    z-index: 1;
}

.founder-quote i.quote-icon-top {
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 50px;
    color: var(--color-primary);
    opacity: 0.15;
    z-index: -1;
}

.founder-quote i.quote-icon-bottom {
    position: absolute;
    bottom: -15px;
    right: 0;
    font-size: 50px;
    color: var(--color-primary);
    opacity: 0.15;
    transform: rotate(180deg);
    z-index: -1;
}

.founder-content-row .border-start-lg {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.founder-signoff {
    position: relative;
}

.founder-name {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 34px;
    color: var(--color-primary);
    font-weight: normal;
    margin-bottom: 2px;
}

.founder-designation {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.founder-welcome-text {
    font-size: 20px;
}

@media (max-width: 1199px) {
    .founder-quote {
        font-size: 30px;
        padding: 0 40px;
    }
}

@media (max-width: 991px) {
    .founder-quote {
        font-size: 26px;
        padding: 0 30px;
    }

    .founder-quote i.quote-icon-top {
        font-size: 36px;
        left: -5px;
        top: -10px;
    }

    .founder-quote i.quote-icon-bottom {
        font-size: 36px;
        right: -5px;
        bottom: -20px;
    }

    .founder-content-row .border-start-lg {
        border-left: none !important;
        margin-top: 15px;
    }

    .founder-welcome-text {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .founder-quote {
        font-size: 22px;
        line-height: 1.5;
        padding: 0 25px;
        /* Added padding to prevent touching edges */
    }

    .founder-quote i.quote-icon-top {
        font-size: 26px;
        left: 0px;
        top: -5px;
    }

    .founder-quote i.quote-icon-bottom {
        font-size: 26px;
        right: 0px;
        bottom: -10px;
    }

    .founder-name {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .founder-quote {
        font-size: 20px;
        padding: 0 20px;
    }

    .founder-quote i.quote-icon-top {
        font-size: 24px;
        top: -2px;
    }

    .founder-quote i.quote-icon-bottom {
        font-size: 24px;
        bottom: -5px;
    }

    .founder-welcome-text {
        font-size: 17px;
    }

    .founder-name {
        font-size: 26px;
    }

    .founder-designation {
        font-size: 12px;
    }
}