/* Custom CSS for About Us page inspired by Nexi Theme */

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */

:root {
    --primary-color: #8982EE;
    /* Indigo */
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #06b6d4;
    /* Cyan */

    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;

    --font-primary: 'Space Grotesk', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.4);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

/* Button Styles */
.btn-demo {
    background-color: #8982EE !important;
    border: 1px solid #8982EE !important;
    color: #ffffff !important;
    padding: 12px 29px !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-demo:hover {
    background-color: transparent !important;
    color: #0f172a !important;
    border-color: #8982EE !important;
}

/* Typography & Layout Utils */
.max-w-700 {
    max-width: 700px;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Navigation Indicator Styles */
.nav-active-indicator {
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    border-radius: 50rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 1px solid #dee2e6;
    z-index: 0;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
    will-change: transform, width, height, opacity;
}

.nav-link {
    color: #0f172a !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #8982EE !important;
}

.nav-link::after {
    display: none;
}

/* Hero Section */
.about-hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    background: linear-gradient(135deg, rgba(164, 150, 248, 0.85) 0%, rgba(74, 60, 142, 0.9) 100%), url('../images/about-banner.webp') center/cover no-repeat;
    position: relative;
    z-index: 1;
}

.about-hero-section::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.about-hero-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.about-hero-section .breadcrumb-item+.breadcrumb-item::before {
    content: "\F285";
    /* Bootstrap Icons chevron-right */
    font-family: "bootstrap-icons";
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    vertical-align: middle;
    display: inline-block;
}

/* Hero Animations */
.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Innovation Section */
.innovation-img-wrapper {
    min-height: 450px;
}

/* Mission Tabs Section */
.custom-mission-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0;
    gap: 4rem;
}

.custom-mission-tabs .nav-link {
    color: #475569;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background-color: transparent !important;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.custom-mission-tabs .nav-link:hover {
    color: #0f172a;
}

.custom-mission-tabs .nav-link.active {
    color: #0f172a;
    border-bottom: 3px solid transparent;
    box-shadow: none;
}

/* Sliding Tab Indicator */
.mission-tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    background-color: #8982EE;
    border-radius: 3px 3px 0 0;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    pointer-events: none;
}

/* Smooth Tab Content Animation */
#mission-tabs-content .tab-pane.fade {
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

#mission-tabs-content .tab-pane.fade.show {
    transform: translateY(0);
}

/* Custom Link Hover */
.custom-link-hover {
    transition: all 0.3s ease;
}

.custom-link-hover:hover {
    gap: 5px;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}



/* Features Marquee Banner */


.marquee-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: scroll-marquee 25s linear infinite;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Based on 2 groups */
}

/* Hover effect on marquee to pause */
.features-banner:hover .marquee-content {
    animation-play-state: paused;
}

/* Physics Shapes (Matter.js) */
.wgl-physics_item {
    position: absolute;
    pointer-events: auto;
    /* So they can be interacted with */
    cursor: grab;
    will-change: transform;
    z-index: 2;
    /* Ensure they appear above the background but below text if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.wgl-physics_item:active {
    cursor: grabbing;
}

.shape--pill {
    border-radius: 500px;
    padding: 12px 32px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.pill--cyan {
    background-color: #5eead4;
    /* Teal-ish cyan */
}

.pill--blue {
    background-color: #38bdf8;
    /* Sky blue */
}

.pill--purple {
    background-color: #a78bfa;
    /* Light purple */
}

.pill--indigo {
    background-color: #818cf8;
    /* Indigo */
}

/* ==========================================================================
   Navbar Toggler Icons
   ========================================================================== */

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler[aria-expanded="true"] .menu-icon {
    display: none !important;
}

.navbar-toggler[aria-expanded="true"] .close-icon {
    display: inline-block !important;
}

.navbar-toggler[aria-expanded="false"] .menu-icon {
    display: inline-block !important;
}

.navbar-toggler[aria-expanded="false"] .close-icon {
    display: none !important;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */

@media (max-width: 991.98px) {
    /* .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1.5rem;
        border-radius: 1.25rem;
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    } */

    .navbar-collapse {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .navbar-collapse>.d-flex {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
        align-items: stretch !important;
    }

    .navbar-collapse .btn-demo {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .navbar-nav {
        gap: 0.5rem !important;
        align-items: stretch !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: left !important;
    }

    .nav-link {
        justify-content: flex-start !important;
        width: 100%;
        padding-left: 0.5rem !important;
        text-align: left !important;
    }

    #main-navbar {
        padding: 12px 12px !important;
    }

    .navbar-brand img {
        height: 35px !important;
        width: auto;
    }
}

/* ==========================================================================
   Tablet Specific Adjustments
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-collapse .btn-demo {
        width: max-content !important;
        margin-left: 0.5rem !important;
    }
}

/* ==========================================================================
   Footer Styles (From index.html)
   ========================================================================== */

.footer-social-icon-light {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
}

.footer-social-icon-light:hover {
    background: var(--primary-color);
    border-color: transparent;
    transform: translateY(-3px);
    color: white !important;
}

.footer-link {
    color: #ffffff;
}

.footer-link:hover {
    color: #0ea5e9;
    transform: translateX(5px);
}

.footer-bottom-link {
    color: #64748b;
}

.footer-bottom-link:hover {
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .custom-mission-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        display: flex !important;
    }

    .custom-mission-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Override global .nav-item 100% width on mobile */
    .custom-mission-tabs .nav-item {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .custom-mission-tabs .nav-link {
        white-space: nowrap;
        padding: 0.75rem 1.25rem !important;
        width: auto !important;
        font-size: 16px !important;
    }
}

@media (max-width: 661.98px) {
    .custom-mission-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        display: flex !important;
        gap: 0.5rem !important;
        /* Reduced gap for smaller screens */
    }

    .custom-mission-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Override global .nav-item 100% width on mobile */
    .custom-mission-tabs .nav-item {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .custom-mission-tabs .nav-link {
        white-space: nowrap;
        padding: 0.6rem 1rem !important;
        /* Smaller padding */
        width: auto !important;
        font-size: 15px !important;
        /* Smaller font-size */
    }
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color) !important;
    color: white;
    border-radius: 50%;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal[data-reveal="bottom"] {
    transform: translateY(50px);
}

.scroll-reveal[data-reveal="left"] {
    transform: translateX(-50px);
}

.scroll-reveal[data-reveal="right"] {
    transform: translateX(50px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color) !important;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 99;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(137, 130, 238, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.whatsapp-float:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(137, 130, 238, 0.6);
}