/* Selection Styles */
::selection {
    background-color: #FFBD00;
    color: #050603;
}

/* Animated Hero Section Styles */

.hero-bg {
    background: #171717;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://cdn.4born.com/assets/image/4born-home-bg.svg') no-repeat center center / cover;
    opacity: 0.05;
    pointer-events: none;
}

.text-gradient {
    background: linear-gradient(135deg, #FFBD00 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 189, 0, 0.1);
    border-radius: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: #FFBD00;
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 189, 0, 0.1);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Background Paths Animation */
.paths-container {
    position: absolute;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    opacity: 0.9;
    /* Mask to prevent hard cuts at edges */
    -webkit-mask-image: radial-gradient(circle at left center, black 40%, transparent 90%);
    mask-image: radial-gradient(circle at left center, black 40%, transparent 90%);
}

.paths-left {
    top: -20%;
    left: -15%;
    width: 80%;
    height: 140%;
}

.paths-svg {
    width: 100%;
    height: 100%;
    color: #FFBD00;
    overflow: visible !important;
    transform: scale(1.2);
    transform-origin: left center;
}

.paths-svg path {
    stroke: #FFBD00 !important;
}

.about-hero-section {
    position: relative;
    overflow: hidden;
    background: #111111 !important; /* Slightly darker for better path contrast */
}

.about-hero-section .container {
    position: relative;
    z-index: 2; /* Ensure content is above paths */
}

/* Premium Text Animation Classes */
.premium-heading {
    font-size: 2.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.premium-heading span.highlight {
    color: #FFBD00 !important;
}

@media (min-width: 992px) {
    .premium-heading {
        font-size: 3rem; /* text-lg-5xl */
    }
}

.word-span {
    display: inline-block;
    white-space: nowrap;
}

.letter-span {
    display: inline-block;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(50px);
}

/* Ensure yellow text stays yellow */
.premium-heading .text-yellow .letter-span,
.premium-heading .text-primary .letter-span {
    background: #FFBD00;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Button Variant */
.btn-glass-premium {
    background: rgba(255, 189, 0, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 189, 0, 0.2);
    border-radius: 1rem;
    padding: 1rem 2rem;
    color: #FFBD00;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-glass-premium:hover {
    background: rgba(255, 189, 0, 0.1);
    border-color: #FFBD00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 189, 0, 0.15);
    color: #FFBD00;
}

.btn-glass-premium i {
    transition: transform 0.4s ease;
}

.btn-glass-premium:hover i {
    transform: translateX(5px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

/* Tailwind Utility Mappings for Buttons */
.px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-7 {
    padding-left: 2.2rem !important;
    padding-right: 2.2rem !important;
}

.py-2 {
    padding-top: 0.85rem !important;
    padding-bottom: 0.8rem !important;
}

.bg-primary {
    background-color: #FFBD00 !important;
}

.text-dark {
    color: #050603 !important;
}

.text-primary {
    color: #FFBD00 !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

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

.text-sm {
    font-size: 0.875rem !important;
}

.flex {
    display: inline-flex !important;
}

.items-center {
    align-items: center !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.tracking-wide {
    letter-spacing: 0.05em !important;
}

.border {
    border-width: 1.2px !important;
    border-style: solid !important;
}

.border-primary {
    border-color: #FFBD00 !important;
}

/* Spacing Utilities Fix (Bootstrap 5 only goes up to 5) */
.pt-6 {
    padding-top: 1.2rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

/* Advanced Flow Hover Button Logic */
.btn-flow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-flow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #ffffff;
    /* Default flow color */
    border-radius: 100%;
    transform: translate(150%, 150%) scale(2.5);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-flow:hover::before {
    transform: translate(0, 0) scale(2.5);
}

.btn-flow:hover {
    transform: scale(1.05) translateY(-2px);
}

.btn-flow:active {
    transform: scale(0.95);
}

/* Specific Variants */
.btn-premium {
    /* Base styles handled by utilities but keeping logical overrides */
    border-color: #FFBD00 !important;
    font-family: 'Inter', 'Nunito', sans-serif;
    justify-content: center;
    line-height: 1 !important;
    padding-top: 0.6rem !important;
    /* Slightly reduced as requested */
    padding-bottom: 0.6rem !important;
}

.btn-premium::before {
    background: #171717;
    /* Flows with section background color */
}

.btn-premium:hover {
    color: #FFBD00 !important;
    box-shadow: 0 10px 25px rgba(255, 189, 0, 0.25);
}

.btn-outline-premium {
    background-color: transparent !important;
    padding-top: 0.6rem !important;
    /* Slightly reduced as requested */
    padding-bottom: 0.6rem !important;
}

.btn-outline-premium::before {
    background: #FFBD00;
    /* Flows with primary color */
}

.btn-outline-premium:hover {
    color: #050603 !important;
    box-shadow: 0 10px 25px rgba(255, 189, 0, 0.15);
}

/* Spotlight Animation */
.spotlight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0;
    animation: fadeIn 2s ease forwards 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 3D Tech Orbit */
.tech-stack-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 490px;
    height: 490px;
    transform: translate(-50%, -50%) rotateX(15deg);
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbit-3d {
    from {
        transform: rotateZ(0deg);
    }

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

.tech-stack-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: orbit-3d 40s linear infinite;
}

.tech-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55px;
    height: 55px;
    margin: -27.5px;
    background: rgba(255, 189, 0, 0.12);
    border: 2px solid rgba(255, 189, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(255, 189, 0, 0.2);
    transform-style: preserve-3d;
}

.tech-icon-wrapper img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 189, 0, 0.4));
    animation: counter-orbit-3d 40s linear infinite;
}

@keyframes counter-orbit-3d {
    0% {
        transform: rotateZ(0deg) rotateX(-15deg);
    }

    100% {
        transform: rotateZ(-360deg) rotateX(-15deg);
    }
}

.tech-stack-orbit .tech-icon:nth-child(1) {
    transform: rotate(0deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(2) {
    transform: rotate(36deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(3) {
    transform: rotate(72deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(4) {
    transform: rotate(108deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(5) {
    transform: rotate(144deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(6) {
    transform: rotate(180deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(7) {
    transform: rotate(216deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(8) {
    transform: rotate(252deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(9) {
    transform: rotate(288deg) translateY(-215px);
}

.tech-stack-orbit .tech-icon:nth-child(10) {
    transform: rotate(324deg) translateY(-215px);
}

/* Spline Hide Badge */
spline-viewer::part(logo) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#logo,
.spline-watermark,
a[href*="spline.design"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

spline-viewer {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent !important;
}

/* Hide Spline Badge Failsafe */
#spline-badge,
.spline-watermark,
a[href*="spline"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Custom layout adjustments for Animated Hero in Main Website */
.ani-hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 30px 0 0 0;
    overflow: hidden;
}

.ani-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    /* mb-8 */
    font-family: 'Nunito', sans-serif;
    letter-spacing: -0.025em;
}

.ani-hero-content p {
    font-size: 1rem;
    color: #D4D4D4;
    max-width: 600px;
    margin-bottom: 1.5rem;
    /* mb-8 */
    line-height: 1.5rem;
    /* font-weight: 500; */
}

.ani-hero-content h1 span {
    display: block;
    color: #FFBD00;
}

.ani-hero-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.ani-hero-check i {
    color: #FFBD00 !important;
}

@media (max-width: 991px) {
    .ani-hero-content h1 {
        font-size: 2.5rem;
    }

    .ani-hero-section {
        padding-top: 60px;
        text-align: center;
    }

    .ani-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .ani-hero-btns {
        justify-content: center;
    }

    .ani-hero-image {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    /* Robot Smaller on Mobile */
    .ani-hero-image .position-relative.z-10.w-100 {
        height: 380px !important;
    }

    /* Override inline scaling for mobile robot */
    .ani-hero-image .position-relative.z-10.w-100 .position-relative[style*="width: 150%"] {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
    }

    /* Tech Orbit Smaller on Mobile */
    .tech-stack-container {
        width: 300px !important;
        height: 300px !important;
        transform: translate(-50%, -50%) scale(0.75) rotateX(15deg) !important;
    }

    .ani-hero-image {
        min-height: 380px;
        margin-top: 20px;
    }

    /* Target Spline Badge on Mobile ONLY */
    .ani-hero-image .position-absolute.bottom-0.end-0 {
        width: 180px !important;
        height: 80px !important;
        background: #171717 !important; /* Section Background */
        z-index: 1000 !important;
        opacity: 1 !important;
        visibility: visible !important;
        filter: blur(5px) !important;
    }

    /* Spline Internal Hide - Mobile Only */
    spline-viewer::part(logo),
    spline-viewer::part(watermark),
    #spline-badge {
        display: none !important;
        opacity: 0 !important;
    }
}

/* Animated Heading Styles */
.animate-line-stretch {
    animation: line-stretch 3s ease-in-out infinite;
}

@keyframes line-stretch {

    0%,
    100% {
        width: 20px;
        opacity: 0.8;
    }

    50% {
        width: 45px;
        opacity: 1;
    }
}

.shadow-primary-glow {
    box-shadow: 0 0 10px rgba(255, 189, 0, 0.5);
}

.tracking-widest-extra {
    letter-spacing: 0.4em !important;
}

.font-nunito {
    font-family: 'Nunito', sans-serif !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

.leading-tight-extra {
    line-height: 1.1 !important;
}

.text-4xl {
    font-size: 2.25rem !important;
}

.text-5xl {
    font-size: 3rem !important;
}

@media (min-width: 992px) {
    .text-lg-5xl {
        font-size: 3rem !important;
    }
}

.text-white {
    color: #ffffff !important;
}

.rounded-3xl {
    border-radius: 1.5rem !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.hover-scale-110:hover img {
    transform: scale(1.1);
}

.transition-1000 {
    transition: all 1s ease-in-out !important;
}

.icon-box-lg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 189, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-box-lg i {
    transition: color 0.4s ease;
}

.glass-card:hover .icon-box-lg {
    transform: scale(1.15) rotate(5deg);
    background: #FFBD00 !important;
    box-shadow: 0 0 25px rgba(255, 189, 0, 0.4);
}

.glass-card:hover .icon-box-lg i {
    color: #050603 !important;
}

.text-gray-400 {
    color: #9CA3AF !important;
}

.transition-500 {
    transition: all 0.5s ease-in-out !important;
}

.hover-translate-y-2:hover {
    transform: translateY(-8px) !important;
}

.bg-white-soft {
    background: rgba(255, 255, 255, 0.02) !important;
}

.bg-primary-soft {
    background: rgba(255, 189, 0, 0.1) !important;
}

.w-10 {
    width: 40px !important;
}

.h-10 {
    height: 40px !important;
}

.group:hover .fa-arrow-right {
    transform: translateX(3px);
}

.fa-arrow-right {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-icon-circle {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: rgba(255, 189, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-icon-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #FFBD00;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.group:hover .btn-icon-circle::before {
    transform: scale(1);
}

.group:hover .btn-icon-circle {
    background: #FFBD00 !important;
}

.tracking-widest {
    letter-spacing: 0.15em !important;
}

.group:hover .text-primary {
    color: #FFBD00 !important;
    /* Keep text yellow */
}

.group:hover i.text-primary {
    color: #050603 !important;
    /* Arrow becomes dark */
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.hover-translate-y-1:hover {
    transform: translateY(-4px) !important;
}

.tracking-widest-extra {
    letter-spacing: 0.25em !important;
}

.w-12 {
    width: 48px !important;
}

.h-12 {
    height: 48px !important;
}

/* Custom Value Item Hover */
.value-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    /* Reduced padding since no box background */
    border-radius: 1.25rem;
}

.value-item:hover {
    transform: translateX(5px);
    /* Subtle slide instead of box lift */
}

.value-item .w-12 {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.value-item:hover .w-12 {
    transform: scale(1.15) rotate(5deg);
    background: #FFBD00 !important;
    box-shadow: 0 0 25px rgba(255, 189, 0, 0.4);
}

.value-item:hover .w-12 i {
    color: #050603 !important;
}

.text-base {
    font-size: 1rem !important;
}

/* Modern Dropdown Menu */
nav .navbar-nav .dropdown-menu.megamenu-design {
    background: #1A1A1A !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 189, 0, 0.1) !important;
    border-top: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
    margin-top: 0px !important;
}

nav .navbar-nav .dropdown-menu.short-menu {
    min-width: 260px !important;
}

.dropdown-menu .list-unstyled li {
    margin-bottom: 0.25rem;
}

.dropdown-menu .list-unstyled li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.dropdown-menu .list-unstyled li a i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-menu .list-unstyled li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #FFBD00 !important;
    padding-left: 1.25rem !important;
}

.dropdown-menu .list-unstyled li a:hover i {
    color: #FFBD00 !important;
    transform: scale(1.2);
}

.dropdown-menu .title {
    color: #FFBD00;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
    display: block;
    padding-left: 0.5rem;
    opacity: 1;
}

/* Normal style for Technology links (removing background/box) */
.dropdown-menu:not(.short-menu) .list-unstyled li a {
    padding: 0.3rem 0.5rem !important;
    background: transparent !important;
}

.dropdown-menu:not(.short-menu) .list-unstyled li a:hover {
    background: transparent !important;
    color: #FFBD00 !important;
    padding-left: 0.8rem !important;
}

/* Scrollbar for Technology megamenu */
.dropdown-menu.megamenu:not(.short-menu) {
    max-height: 85vh;
    overflow-y: auto;
}

.dropdown-menu.megamenu:not(.short-menu)::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu.megamenu:not(.short-menu)::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-menu.megamenu:not(.short-menu)::-webkit-scrollbar-thumb {
    background: rgba(255, 189, 0, 0.3);
    border-radius: 10px;
}
.dropdown-menu.megamenu:not(.short-menu)::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 189, 0, 0.5);
}