/* Custom Styles for Garg Threads - Industrial Luxury Theme */

/* Glassmorphism Effect for Navbar */
.navbar-glass {
    background: rgba(212, 212, 212, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Bento Grid Layout - Handled by Tailwind Grid Classes now */

/* The blinking cursor animation */
.cursor {
    display: inline-block;
    /* Saffron Color handled by class bg-saffron */
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Stats Marquee Animation */
.stats-marquee {
    overflow: hidden;
    position: relative;
}

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

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

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

/* Pause animation on hover */
.stats-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Live Ticker Marquee Animation */
.live-ticker-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.live-ticker-content {
    display: flex;
    width: fit-content;
}

/* Pause animation on hover (works with Tailwind animate-scroll) */
.live-ticker-marquee:hover .live-ticker-content {
    animation-play-state: paused;
}

/* Star Product Card Image Hover Effect */
.product-image {
    transition: transform 0.3s ease;
}

/* Hero Text Animation Container */
.hero-text-container {
    position: relative;
    z-index: 10;
}

.hero-line-1,
.hero-line-2,
.hero-line-3 {
    overflow: hidden;
}

/* Compliance Badge Hover Effects */
.badge-placeholder {
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge-placeholder:hover {
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.3);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b45309;
}

/* Additional Glassmorphism Utilities */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Ensure text is readable on light background */
body {
    color: #0f172a;
    background-color: #fdfbf7;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Loading state for animations */
.hero-line-1,
.hero-line-2,
.hero-line-3 {
    opacity: 0;
}

/* Hide Scrollbar for Horizontal Scroll */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Magnetic Particle Animation */
.floating-part {
    transform-origin: center center;
}

.center-image {
    transform-origin: center center;
    will-change: transform;
    transform: translateZ(0);
}

/* Story Points Initial State */
.story-point {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    will-change: transform, opacity;
}

/* Particle GPU Acceleration */
.particle-1,
.particle-2,
.particle-3,
.particle-4 {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Mobile Optimizations for Product Orbit */
/* Mobile Optimizations for Product Orbit */
@media (max-width: 1024px) {

    /* Allow sticky behavior on mobile, but maybe adjust top/height if needed */
    #product-orbit .sticky {
        /* position: relative !important;  <-- REMOVED to allow sticky */
        /* height: auto !important;       <-- REMOVED */
        /* top: 0 !important; */
    }

    #ambient-bg-stack {
        display: none !important;
        /* Keep bg stack hidden if too heavy, but show images */
    }

    /* SHOW IMAGES */
    .lens-img-1,
    .lens-img-2,
    .lens-img-3,
    .lens-img-4,
    .lens-img-5,
    .lens-img-6,
    .lens-img-7 {
        display: block !important;
    }

    /* Adjust layout for mobile */
    #product-orbit {
        background: #0c0a09;
        /* padding-top: 4rem; */
        padding-bottom: 4rem;
    }

    .product-node {
        min-height: 80vh !important;
        /* Ensure enough scroll space */
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border: none !important;
        /* Add background to text for readability over image */
        pointer-events: none;
        /* Let clicks pass through if needed, or... */
    }

    .product-node>div {
        width: 100% !important;
        text-align: center !important;
        padding: 1.5rem !important;
        border: none !important;
        background: rgba(0, 0, 0, 0.6);
        /* Semi-transparent bg for readability */
        backdrop-filter: blur(4px);
        border-radius: 12px;
        pointer-events: auto;
    }

    .product-node h3 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
    }
}

/* Mobile Industries Grid Optimization */
@media (max-width: 768px) {
    .mobile-h-screen {
        height: 80vh;
        /* Fit in one view */
    }

    /* Hide the detailed hover content on mobile to save space, or style it simpler */
    .group:hover h3 {
        font-size: 1.5rem !important;
        /* Smaller text */
    }

    .group:hover p {
        display: none;
        /* Hide description on mobile to fit */
    }

    .group:hover button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .group:hover .p-12 {
        padding: 1rem !important;
        /* Reduce padding */
    }


    /* =========================================
   Client Marquee Optimization
   ========================================= */

    /* Rail Container: Overflow hidden, no gap on parent loop */
    .marquee-rail {
        display: flex;
        overflow: hidden;
        width: 100%;
        user-select: none;
        /* ensure no gap here, gap is inside track padding */
    }

    /* Track: Moves continuously */
    .marquee-track {
        display: flex;
        flex-shrink: 0;
        gap: 1.5rem;
        /* gap-6 equivalent */
        padding-right: 1.5rem;
        /* CRITICAL: Adds spacing at the end so it matches the start of the next track */
        min-width: 100%;
    }

    /* Base Tag Style */
    .client-tag {
        flex-shrink: 0;
        padding: 0.75rem 2rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        color: #a8a29e;
        /* Stone-400 */
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
        transition: all 0.3s ease;
        cursor: default;
    }

    /* Hover Effect: Glow Saffron */
    .client-tag:hover {
        border-color: #ea580c;
        color: white;
        background: rgba(234, 88, 12, 0.1);
        box-shadow: 0 0 15px rgba(234, 88, 12, 0.3);
    }

    /* Outline Tag Style */
    .client-tag-outline {
        flex-shrink: 0;
        padding: 0.75rem 2rem;
        border: 1px dashed rgba(255, 255, 255, 0.15);
        border-radius: 2px;
        color: #57534e;
        /* Stone-600 */
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .client-tag-outline:hover {
        border-style: solid;
        border-color: white;
        color: white;
    }

    /* Animations */
    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

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

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

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

    .animate-scroll-left {
        animation: scroll-left 40s linear infinite;
    }

    .animate-scroll-right {
        animation: scroll-right 40s linear infinite;
    }

    .group:hover .marquee-track {
        animation-play-state: paused;
    }
}


/* ----------------------------------------------------------- */
/* GT HERO � 80/20 Split                                       */
/* ----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=JetBrains+Mono:wght@400;700&display=swap');

.gt-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
}

/* -- Left: Video Panel ------------------------------------ */
.gt-hero__video-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 95vh;
    overflow: hidden;
    z-index: 0;
}

.gt-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gt-hero__brand {
    position: absolute;
    bottom: 10%;
    left: 6%;
    z-index: 10;
}

.gt-hero__brand-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gt-hero__brand-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 0.04em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.gt-hero__brand-title span {
    color: #ea580c;
}

.gt-hero__brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    margin-top: 1rem;
    padding-left: 3px;
}

/* -- Right: Data Dashboard -------------------------------- */
.gt-hero__data-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 22%;
    height: 95vh;
    background: rgba(255, 255, 255, 0.497);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(234, 88, 12, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    z-index: 10;
}

/* Header */
.gt-data__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 2.5rem;
    width: 100%;
    justify-content: center;
}

.gt-data__dot--live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 0 8px #ea580c;
    animation: gt-pulse 1.4s ease-in-out infinite;
    display: inline-block;
}

@keyframes gt-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #ea580c;
    }

    50% {
        opacity: 0.35;
        box-shadow: 0 0 2px #ea580c;
    }
}

.gt-data__header-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: rgb(0, 0, 0);
    text-transform: uppercase;
}

/* -- Flip Card -------------------------------------------- */
.gt-data__flip-card {
    width: 100%;
    text-align: center;
    perspective: 800px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #161a22;
    border-radius: 4px;
    padding: 1.5rem 0.75rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gt-data__label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    color: #ea580c;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    transition: opacity 0.15s;
}

.gt-data__number {
    font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(234, 88, 12, 0.35);
    transition: opacity 0.15s;
}

.gt-data__sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    margin-top: 0.2rem;
    transition: opacity 0.15s;
}

/* Flip animation */
@keyframes gt-flip-out {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }

    50% {
        transform: rotateX(-90deg);
        opacity: 0;
    }

    100% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
}

@keyframes gt-flip-in {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }

    50% {
        transform: rotateX(90deg);
        opacity: 0;
    }

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

.gt-data__flip-card.flipping-out {
    animation: gt-flip-out 0.3s ease-in forwards;
}

.gt-data__flip-card.flipping-in {
    animation: gt-flip-in 0.3s ease-out forwards;
}

/* Dot indicators */
.gt-data__dots {
    display: flex;
    gap: 0.45rem;
    margin-top: 1.25rem;
}

.gt-data__dot-ind {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

.gt-data__dot-ind.active {
    background: #ea580c;
    box-shadow: 0 0 6px #ea580c;
}

/* Divider & static rows */
.gt-data__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 1.75rem 0 1.25rem;
}

.gt-data__static {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-bottom: 0.6rem;
}

.gt-data__static-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}

.gt-data__static-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
}

/* -- Responsive ------------------------------------------- */

/* Tablet (≤ 1024px): shrink panel width slightly */
@media (max-width: 1024px) {
    .gt-hero__data-panel {
        width: 28%;
        padding: 2rem 1rem;
    }

    .gt-panel__logo {
        width: 100%;
        padding: 10px;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .gt-panel__logo-img {
        height: 5rem;
    }

    .gt-tw__dynamic {
        font-size: 0.95rem;
    }

    .gt-data__number {
        font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    }
}

/* Mobile (≤ 768px): typewriter centred over video, monitoring bar at bottom */
@media (max-width: 768px) {
    .gt-hero {
        height: 100svh;
        min-height: 500px;
        overflow: hidden;
        position: relative;
    }

    /* Video fills entire hero */
    .gt-hero__video-panel {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
    }

    /* Data panel = full overlay, transparent top → dark bottom */
    .gt-hero__data-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: unset;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0;
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.15) 0%,
                rgba(0, 0, 0, 0.10) 45%,
                rgba(10, 12, 18, 0.80) 72%,
                rgba(10, 12, 18, 0.95) 100%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-left: none;
        border-top: none;
    }

    /* Hide logo and br spacers — not needed */
    .gt-panel__logo,
    .gt-hero__data-panel br {
        display: none !important;
    }

    /* ── Typewriter: full-width horizontal band centred on video ── */
    .gt-tw__wrapper {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 100%;
        padding: 0.55rem 1.5rem;
        margin-bottom: 0;
        border-bottom: none;
        text-align: center;
        background: rgba(10, 12, 18, 0.65);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(234, 88, 12, 0.2);
        border-bottom: 1px solid rgba(234, 88, 12, 0.2);
    }

    .gt-tw__static {
        color: #ffffff !important;
        font-size: 0.68rem;
        letter-spacing: 0.22em;
    }

    .gt-tw__dynamic {
        font-size: clamp(1.4rem, 5vw, 2rem);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }

    /* ── Monitoring section: pinned to bottom ── */
    .gt-data__header {
        margin-bottom: 0.4rem;
        flex-shrink: 0;
        padding: 0 1.25rem;
    }

    .gt-data__header-text {
        font-size: 0.52rem;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.6);
    }

    .gt-data__flip-card {
        min-height: unset;
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 1.25rem;
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        justify-content: center;
    }

    .gt-data__label {
        font-size: 0.5rem;
        letter-spacing: 0.18em;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .gt-data__number {
        font-size: 1.45rem;
        white-space: nowrap;
    }

    .gt-data__sub {
        font-size: 0.55rem;
        margin-top: 0;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.45);
    }

    .gt-data__dots {
        margin-top: 0.2rem;
        flex-shrink: 0;
        padding-bottom: 1rem;
    }

    .gt-data__dot-ind {
        width: 6px;
        height: 6px;
    }

    .gt-data__divider,
    .gt-data__static {
        display: none !important;
    }
}


/* Very small phones (≤ 400px) */
@media (max-width: 400px) {
    .gt-hero__data-panel {
        padding: 0.7rem 1rem;
        gap: 0.5rem;
    }

    .gt-data__flip-card {
        min-width: 140px;
        padding: 0.5rem 0.75rem;
    }

    .gt-data__number {
        font-size: 1.15rem;
    }
}

/* -- GT Typewriter Block (right panel) -------------------- */
.gt-tw__wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gt-tw__static {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: rgb(0, 0, 0);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.gt-tw__dynamic {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ea580c;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 1.6rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.gt-tw__cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #ea580c;
    border-radius: 1px;
    margin-left: 2px;
    vertical-align: middle;
    animation: gt-blink 0.75s step-end infinite;
}

@keyframes gt-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* -- GT Panel Logo ---------------------------------------- */
.gt-panel__logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gt-panel__logo-img {
    height: 6.5rem;
    width: auto;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0px 5px 10px rgb(0 0 0));
    border-radius: 30%;
    background-color: #00000021;
    padding: 5px;

}