/*
Theme Name: Company Theme
Author: Santosh Metha
Version: 1.0
*/

body,
button,
input,
textarea,
select {
    font-family: 'Google Sans', Arial, sans-serif;
}

/* Keep anchored sections visible below the sticky 6rem navigation bar. */
[id] {
    scroll-margin-top: 6rem;
}

/* Tailwind applies font-sans directly throughout the Hero and other sections. */
.font-sans,
.hero-pattern,
.hero-pattern h1,
.hero-pattern p,
.hero-pattern a,
.hero-pattern button {
    font-family: 'Google Sans', Arial, sans-serif !important;
}

.gradient-text {
    background: linear-gradient(to right, #2EC4B6, #FF9F1C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#cbf3f0 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}

/* ───── Phone mockup ───── */
.phone-mockup {
    border: 12px solid #0f172a;
    border-radius: 2.5rem;
    overflow: hidden;
    background: #efeae2;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

.wa-header {
    background: #075e54;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-bubble {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wa-received {
    background: #ffffff;
    border-top-left-radius: 0;
    align-self: flex-start;
}

.wa-sent {
    background: #d9fdd3;
    border-top-right-radius: 0;
    align-self: flex-end;
    margin-left: auto;
}

.wa-button {
    background: #ffffff;
    color: #0ea5e9;
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid #f1f5f9;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.wa-button:hover {
    background: #f8fafc;
}

/* ═══════════════════════════════════════════
   SCROLL-DRIVEN PANEL REVEAL
   ═══════════════════════════════════════════ */
#scroll-showcase {
    min-height: 750vh;
    position: relative;
}

#scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #E5F9F8;
}

/* Eyebrow + heading that stay above the panel stack */
#scroll-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 2.5rem 2rem 0;
    text-align: center;
    pointer-events: none;
}

/* The panel stack lives in the lower part of the viewport */
#panel-stack {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* top = header area height */
    top: 130px;
    overflow: visible;
    /* Let stack grow upwards slightly without clipping */
}

.scroll-panel {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1100px;
    height: 82%;
    top: 9%;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
    will-change: transform;
    /* GSAP force3D handles GPU compositing for each panel */
}

/* depth shadow for layering feel */
.scroll-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    pointer-events: none;
    z-index: 5;
    border-radius: 24px;
}

/* inner layout */
.panel-inner {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    #scroll-showcase {
        min-height: auto;
        padding: 4rem 0;
        background: #E5F9F8;
    }

    #scroll-sticky {
        position: relative;
        top: auto;
        height: auto;
        overflow: visible;
        background: transparent;
    }

    #scroll-header {
        position: relative;
        padding: 0 1.25rem 2rem;
    }

    #showcase-heading {
        display: none;
    }

    #scroll-header > span {
        margin-bottom: 0;
        font-size: 1.75rem;
        line-height: 1.2;
        letter-spacing: -0.025em;
        text-transform: none;
        color: #0f172a;
    }

    #panel-stack {
        position: relative;
        inset: auto;
        display: grid;
        gap: 1rem;
        padding: 0 1rem;
    }

    .scroll-panel {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        border-radius: 1.25rem;
        overflow: hidden;
        visibility: visible !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .panel-inner {
        height: auto;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .panel-content {
        padding: 1.5rem 1.25rem !important;
        gap: 0.75rem !important;
        justify-content: flex-start !important;
    }

    .panel-visual {
        display: none !important;
    }

    #panel-dots,
    #scroll-progress-bar,
    #scroll-hint,
    #ambient-glow {
        display: none;
    }
}

.panel-content {
    min-height: 0;
    padding: 2.25rem 2.25rem 2.25rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.panel-visual {
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep every slide fully inside the card on shorter desktop screens. */
@media (min-width: 769px) and (max-height: 800px) {
    #scroll-header {
        padding-top: 1.5rem;
    }

    #panel-stack {
        top: 105px;
    }

    .scroll-panel {
        height: 88%;
        top: 6%;
    }

    .panel-content {
        padding: 1.25rem 1.5rem 1.25rem 2rem;
        gap: 0.65rem;
    }

    .panel-content .icon-badge {
        width: 2.75rem;
        height: 2.75rem;
    }

    .panel-content .rounded-xl {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
}

/* Progress dots */
#panel-dots {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.2);
    transition: all 0.4s ease;
}

.dot.active {
    background: #2EC4B6;
    height: 22px;
}

/* Progress bar at the very top */
#scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, #2EC4B6, #FF9F1C);
    width: 0%;
    z-index: 40;
    transition: width 0.05s linear;
}

/* panel colours */
.panel-0 {
    background: #CBF3F0;
}

.panel-1 {
    background: #FFDFB4;
}

.panel-2 {
    background: #D8F6F4;
}

.panel-3 {
    background: #FFBF69;
}

.panel-4 {
    background: #D8F6F4;
}

/* icon badge */
.icon-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Feature card inside panel-visual */
.visual-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    width: 85%;
    max-width: 340px;
    backdrop-filter: blur(12px);
}

/* Floating badge animation */
@keyframes floatY {

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

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

.float-badge {
    animation: floatY 3s ease-in-out infinite;
}

.float-badge-slow {
    animation: floatY 4.5s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* smooth scroll indicator */
#scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 1;
    transition: opacity 0.4s;
    pointer-events: none;
}

#scroll-hint.hidden {
    opacity: 0;
}

.scroll-wheel {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    position: relative;
}

.scroll-wheel::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(14px);
        opacity: 0;
    }
}

/* ───── problem/solution cards ───── */
.solution-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ───── pricing card hover ───── */
.pricing-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
}


/* The source logo has generous artwork padding, so render it larger in-place. */
.site-header-logo {
    transform: scale(1.2);
    transform-origin: left center;
}

@media (max-width: 640px) {
    .site-header-logo {
        transform: scale(1.05);
    }
}

/* ───── nav link underline ───── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B5CF6;
    transition: width 0.25s ease;
    border-radius: 999px;
}

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

/* ───── reduced-motion override ───── */
@media (prefers-reduced-motion: reduce) {
    .scroll-panel {
        transition: none !important;
    }

    .float-badge,
    .float-badge-slow {
        animation: none;
    }
}

/* ═══════════════════════════════════════════
   APPLICATIONS CARD STACK LAYOUT
   ═══════════════════════════════════════════ */
#apps-sticky-container {
    background-color: #ffffff;
}

#apps-card-stack {
    perspective: 1200px;
}

.app-card {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transform-origin: center top;
    will-change: transform;
}

/* Indicators styling */
.app-dot {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.app-dot:hover {
    opacity: 1;
}

.app-dot.active {
    opacity: 1;
}

/* Applications Showcase - Text Blocks */
.app-text-block {
    display: none !important;
}
.app-text-block.active {
    display: block !important;
}

/* Applications Showcase - Mobile Slides */
.app-mobile-slide {
    opacity: 0;
    pointer-events: none;
}
.app-mobile-slide.active {
    opacity: 1;
    pointer-events: auto;
}
