/* ==========================================================================
   Insta Work Premium Supplementary Styles (Tailwind CSS Extension - Dark Theme)
   ========================================================================== */

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

/* Global scroll offsets for fixed header navigation target sections */
section[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 64px;
    }
}

/* --------------------------------------------------------------------------
   1. Typography System (Clamp Sizing)
   -------------------------------------------------------------------------- */
.hero-title {
    /* Responsive sizing scaling from 2.1rem (mobile) up to 3.75rem (desktop) */
    font-size: clamp(2.1rem, 4.5vw + 1.1rem, 3.75rem);
}

.section-title {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.75rem);
}

/* --------------------------------------------------------------------------
   2. Sticky Header Transitions
   -------------------------------------------------------------------------- */
#main-header.scrolled {
    background-color: rgba(9, 13, 26, 0.85);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    height: 70px;
}

#main-header.scrolled .max-w-7xl {
    height: 70px;
}

/* Active Nav link underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #7C3AED, #A855F7);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   3. Mobile Drawer Controls
   -------------------------------------------------------------------------- */
.mobile-navigation-drawer.open {
    transform: translateX(0);
}

/* Base Hamburger button styling */
.mobile-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
}

.mobile-toggle-btn .bar {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hamburger active transformation using translateY centering */
.mobile-toggle-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Floating Badge Animations (Fallback for GSAP or passive float)
   -------------------------------------------------------------------------- */
.floating-social-icon {
    animation: floatBadge 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* --------------------------------------------------------------------------
   5. Glassmorphism Utilities (Dark Theme overrides)
   -------------------------------------------------------------------------- */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   6. Custom Input Slider overrides (Dark Theme tracks)
   -------------------------------------------------------------------------- */
input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7C3AED;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   7. Modals backdrop-filter control
   -------------------------------------------------------------------------- */
.modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop.open .modal-content-box {
    transform: scale(1);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   8. Timeline Connectors (Desktop / Mobile adaptations)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    /* Stacked vertical steps on mobile */
    .timeline-card-item {
        position: relative;
    }
    
    /* Connecting line for vertical timeline */
    .timeline-card-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 48px;
        left: 24px;
        width: 2px;
        height: calc(100% + 24px); /* flows down to next item circle */
        background-color: rgba(255, 255, 255, 0.05);
        z-index: -1;
    }

    .timeline-card-item.active:not(:last-child)::after {
        background-color: #7C3AED; /* highlighted connection */
    }
}

.timeline-card-item.active .timeline-number-circle {
    border-color: #7C3AED;
    background-color: #7C3AED;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.timeline-card-item.active .timeline-inner-card {
    border-color: rgba(124, 58, 237, 0.3);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 35px -10px rgba(124, 58, 237, 0.2);
}

/* --------------------------------------------------------------------------
   9. Touch Area Optimization
   -------------------------------------------------------------------------- */
button, 
a.btn-whatsapp,
input,
.faq-question-btn {
    min-height: 48px;
    touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   10. Scrollbar customization (Dark theme)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #090D1A;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   11. Conversion Platform Extensions
   -------------------------------------------------------------------------- */

/* Tighter vertical sections (25% reduction in padding heights) */
.section-tight {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Live Payout Toast Popup (Bottom Left) */
.payout-popup {
    position: fixed;
    bottom: 80px; /* offset standard mobile inputs */
    left: 16px;
    z-index: 100;
    max-width: 320px;
    width: calc(100% - 32px);
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
    .payout-popup {
        bottom: 24px;
        left: 24px;
        width: 320px;
    }
}

.payout-popup.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Sticky Mobile CTA Bottom Bar (Hidden on desktop) */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    background: rgba(9, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-mobile-cta.visible {
    transform: translateY(0);
}

/* Scrolling Ticker Tape */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #090D1A, transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, #090D1A, transparent);
}

.ticker-container {
    display: flex;
    width: max-content;
    animation: tickerMove 40s linear infinite;
    will-change: transform;
}

@keyframes tickerMove {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-item .accent-val {
    color: #25D366;
    font-weight: 700;
}

