/* ==========================================================================
   AOF Redesign Stylesheet (Space-universe theme)
   ========================================================================== */

/* --- ROOT VARIABLES & COMMON HEADER STYLING --- */
:root {
    --bg-deep-blue: #030914;
    --accent-blue: #529ff1;
    --text-gray: #94a3b8;
    --text-light: #f8fafc;
    --text-dark: #f8fafc;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-header {
    width: 100%;
    background: #030914;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.top-bar {
    background-color: #02060e;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.top-bar-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 35px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-info-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.top-info-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    white-space: nowrap;
}

.top-info-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.top-info-list a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.main-bar-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 50px 8px 25px;
    margin-left: -20px;
    margin-top: -5px;
    margin-bottom: -5px;
    z-index: 10;
}

.brand-logo-bg {
    position: absolute;
    top: 0;
    left: -2000px;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: -2;
    clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%);
}

.brand-logo-border {
    position: absolute;
    top: 0;
    left: -2000px;
    right: -4px;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue), #c084fc);
    z-index: -3;
    clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%);
}

.brand-logo img {
    height: 60px;
    width: auto;
    display: block;
    position: relative;
    z-index: 5;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-item {
    position: relative;
    padding: 18px 14px;
}

.menu-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.menu-link:hover {
    color: var(--accent-blue);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.menu-item:hover>.menu-link::after {
    width: 100%;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(3, 9, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 230px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(3, 9, 20, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-link {
    padding: 10px 20px;
    display: block;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.dropdown-link:hover {
    background-color: rgba(82, 159, 241, 0.1);
    color: #ffffff;
    padding-left: 24px;
}

.desktop-header-shell {
    display: block;
}

.mobile-header-shell {
    display: none;
    background: #030914;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-between;
    align-items: center;
}

.desktop-header-shell.fixed-header,
.mobile-header-shell.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #030914;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-tagline h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    line-height: 1.2;
}

.trigger-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trigger-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition-smooth);
    pointer-events: none;
}


/* --- HOMEPAGE SPECIFIC LAYOUTS & ANIMATIONS --- */

.home-new {
    background-color: #030914 !important;
    color: #f8fafc;
    overflow-x: hidden;
}

.site-content {
    background-color: #030914 !important;
}

/* Animations */
@keyframes svcBlobFloat1 {

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

    33% {
        transform: translate(34px, -24px) scale(1.08);
    }

    66% {
        transform: translate(-18px, 16px) scale(0.95);
    }
}

@keyframes svcBlobFloat2 {

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

    33% {
        transform: translate(-28px, 20px) scale(1.06);
    }

    66% {
        transform: translate(20px, -14px) scale(0.93);
    }
}

@keyframes orbFloat {

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

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

@keyframes orbHalo1 {

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

    50% {
        opacity: 0.70;
        transform: scale(1.09);
    }
}

@keyframes orbRing1 {
    from {
        transform: rotateX(72deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(72deg) rotateZ(360deg);
    }
}

@keyframes orbRing2 {
    from {
        transform: rotateX(55deg) rotateZ(45deg);
    }

    to {
        transform: rotateX(55deg) rotateZ(-315deg);
    }
}

@keyframes orbCorePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.88;
        box-shadow: 0 0 28px rgba(82, 159, 241, 0.92), 0 0 60px rgba(82, 159, 241, 0.46);
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
        box-shadow: 0 0 42px rgba(82, 159, 241, 1), 0 0 96px rgba(6, 182, 212, 0.62);
    }
}

@keyframes aiPulseFlow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -206;
    }
}

@keyframes svcShine {
    from {
        transform: translateX(-130%) translateY(-35%) skewX(-22deg);
    }

    to {
        transform: translateX(230%) translateY(35%) skewX(-22deg);
    }
}

@keyframes svcArrowBounce {

    0%,
    35%,
    100% {
        transform: translateX(0);
    }

    70% {
        transform: translateX(8px);
    }
}

/* Hero section styling */
.hero-ai {
    position: relative;
    height: 85vh;
    min-height: 560px;
    overflow: hidden;
    background: #030914;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 30%, rgba(82, 159, 241, 0.15), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.12), transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.4rem;
    max-width: 820px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: #529ff1;
    background: linear-gradient(135deg, #529ff1, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 2rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 14px 36px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1e59cc, #529ff1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-hero-cta:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 28px rgba(30, 89, 204, 0.4);
    transform: translateY(-2px);
}

.btn-hero-cta:hover::before {
    opacity: 1;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.45;
}

.hero-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(3, 9, 20, 0.85) 0%, rgba(3, 9, 20, 0.5) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Bento Grid */
.section-padding {
    padding: 100px 0;
    position: relative;
}

.svc-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(220px, auto));
    gap: 20px;
    z-index: 2;
}

.svc-card-link {
    display: block;
    text-decoration: none !important;
    height: 100%;
    border-radius: 24px;
    padding: 1.5px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease;
}

.svc-card-link:hover {
    background: linear-gradient(135deg, rgba(82, 159, 241, 0.5), rgba(167, 139, 250, 0.5));
}

.svc-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22.5px;
    padding: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.svc-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.svc-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 75%;
    height: 200%;
    background: linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, 0.15) 47%, rgba(255, 255, 255, 0.05) 52%, transparent 70%);
    transform: translateX(-130%) translateY(-35%) skewX(-22deg);
    pointer-events: none;
    z-index: 4;
}

.svc-card:hover::after {
    animation: svcShine 0.75s ease-in forwards;
}

.svc-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.svc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.svc-desc {
    font-size: 13.5px;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.svc-cta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #529ff1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.svc-card:hover .svc-cta i {
    animation: svcArrowBounce 0.75s ease-in-out infinite;
}

.svc-item-wide {
    grid-column: span 2;
}

.svc-item-high {
    grid-row: span 2;
}

/* Orbital SVG Universe components */
.svc-orb-outer {
    position: absolute;
    right: 0%;
    top: 10%;
    width: 450px;
    height: 450px;
    z-index: 1;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-ambient-1 {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(82, 159, 241, 0.18) 0%, transparent 60%);
    filter: blur(20px);
    animation: orbHalo1 4s ease-in-out infinite;
}

.orb-ring-outer-1 {
    position: absolute;
    inset: 40px;
    border: 2px solid rgba(82, 159, 241, 0.4);
    border-radius: 50%;
    transform: rotateX(72deg);
    animation: orbRing1 12s linear infinite;
}

.orb-ring-outer-2 {
    position: absolute;
    inset: 60px;
    border: 2.5px solid rgba(167, 139, 250, 0.3);
    border-radius: 50%;
    transform: rotateX(55deg) rotateZ(45deg);
    animation: orbRing2 16s linear infinite reverse;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(82, 159, 241, 0.9) 50%, rgba(30, 89, 204, 0.8) 100%);
    animation: orbCorePulse 3s ease-in-out infinite;
}

/* Subcontracting Credentials / Capability list */
.capability-list-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.capability-list-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(82, 159, 241, 0.2);
}

.list-check-icon {
    color: #529ff1;
    font-size: 16px;
}

.capability-card-text {
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* Industries Section Styles */
.industries-section {
    background: #f8fafc;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.ind-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.ind-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ind-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 22px;
    transition: 0.3s;
}

.ind-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #0f172a;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ind-card p {
    font-size: 11px;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}


/* --- COMMON FOOTER SPECIFIC STYLES --- */

.site-footer.footer-v1 {
    background: #02060e !important;
    color: #94a3b8 !important;
    padding: 80px 0 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-family: 'Inter', sans-serif;
}

.floating-btn {
    position: fixed;
    right: 0;
    top: 30%;
    background: #02060e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
    color: #fdfcfc;
    text-decoration: none;
    padding: 6px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: 0.3s ease;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: bottom right;
    white-space: nowrap;
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.5);
}

.floating-btn:hover {
    background: #529ff1;
    color: #ffffff;
    border-color: #529ff1;
}


/* --- RESPONSIVE MEDIA QUERIES --- */
@media(max-width: 991px) {
    /* --- Switch to mobile header --- */
    .desktop-header-shell {
        display: none !important;
    }

    .mobile-header-shell {
        display: flex !important;
    }

    /* Hide top bar on tablet/mobile to avoid clutter */
    .top-bar {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* --- Mobile Padding: prevent content from touching screen edges --- */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .svc-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .svc-item-wide,
    .svc-item-high {
        grid-column: span 2;
        grid-row: auto;
    }

    .svc-orb-outer {
        display: none;
    }

    .ind-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 767px) {
    .ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-header-shell {
        padding: 10px 16px;
    }
}

@media(max-width: 575px) {
    .svc-bento-grid {
        grid-template-columns: 1fr;
    }

    .svc-item-wide,
    .svc-item-high {
        grid-column: auto;
    }
}

@media(max-width: 480px) {
    .ind-grid {
        grid-template-columns: 1fr;
    }

    .mobile-tagline h6 {
        font-size: 13px;
    }

    /* Extra tight padding for very small phones */
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .widget-credentials-card {
        padding: 24px 18px !important;
        border-radius: 16px !important;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* --- Global Mobile Safe-Zone: prevent any content from touching screen edges --- */
@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    section {
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Light Section overrides */
.bg-light-section {
    background: #ffffff !important;
    color: #0f172a !important;
}

.bg-light-section h2 {
    color: #0f172a !important;
}

.bg-light-section h2 span {
    color: #1e59cc !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.bg-light-section h5 {
    color: #334155 !important;
}

.bg-light-section p {
    color: #475569 !important;
}

.bg-light-section .capability-list-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.bg-light-section .capability-list-card:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.bg-light-section .capability-card-text {
    color: #0f172a !important;
}

.bg-light-section .capability-list-card p {
    color: #64748b !important;
}

/* Procurement credentials widget */
.bg-light-section .widget-credentials-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.bg-light-section .widget-credentials-card h4 {
    color: #0f172a !important;
}

.bg-light-section .widget-credentials-card span {
    color: #334155 !important;
}

/* Testimonials items inside light section */
.bg-light-section .testi-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.bg-light-section .testi-item p {
    color: #475569 !important;
}

.bg-light-section .testi-item h4 {
    color: #0f172a !important;
}

/* Move Scroll to Top button to left side to prevent conflict with chatbot */
#scroll-top {
    left: 20px !important;
    right: auto !important;
}
#scroll-top.show {
    left: 20px !important;
    right: auto !important;
}

/* --- Procurement Identifiers Responsive Rows --- */
.proc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
    gap: 12px;
}

.proc-label {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    flex-shrink: 0;
}

.proc-value {
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    color: inherit;
    word-break: break-word;
}

@media (max-width: 575px) {
    .proc-row {
        flex-direction: column;
        gap: 4px;
        padding-bottom: 14px;
    }

    .proc-value {
        text-align: left;
        font-size: 13px;
        font-weight: 600;
        color: #334155;
    }

    .proc-label {
        font-size: 12px;
        font-weight: 500;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}