/* ==========================================================================
   Abhimo landing page — scroll-driven layout  (same blue palette as style.css)
   Uses variables from style.css: --primary-color, --primary-gradient,
   --text-main, --text-muted, --glass-bg, --glass-border, --glass-shadow
   ========================================================================== */

:root {
    --lp-blue: #0077ff;
    --lp-blue-deep: #005eff;
    --lp-blue-soft: #dff2ff;
    --lp-ink: #082032;
    --lp-radius: 28px;
}

/* ---------- Motion start-states (only when JS confirms motion is OK) ------- */
html.has-motion [data-reveal],
html.has-motion [data-hero] { opacity: 0; }
html.has-motion .ln > span { transform: translateY(108%); }
html.has-motion .word { opacity: .16; }

.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; will-change: transform; }

/* ---------- Cursor glow / side dots / back to top -------------------------- */
#cursorGlow {
    position: fixed; top: 0; left: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
    border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s ease;
    background: radial-gradient(circle, rgba(0, 119, 255, .15) 0%, rgba(0, 119, 255, 0) 65%);
    will-change: transform;
}
@media (pointer: coarse) { #cursorGlow { display: none; } }

.side-dots {
    position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 14px; z-index: 999;
}
.side-dots a {
    position: relative; width: 12px; height: 12px; border-radius: 50%;
    background: rgba(0, 119, 255, .25); transition: var(--transition-smooth);
}
.side-dots a:hover, .side-dots a.active {
    background: var(--primary-color); transform: scale(1.35);
    box-shadow: 0 0 0 4px rgba(0, 119, 255, .18);
}
.side-dots a::after {
    content: attr(data-label); position: absolute; right: 24px; top: 50%;
    transform: translateY(-50%) translateX(6px); white-space: nowrap;
    background: #fff; color: var(--text-main); font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 20px; box-shadow: var(--glass-shadow);
    opacity: 0; pointer-events: none; transition: all .25s ease;
}
.side-dots a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 1199px) { .side-dots { display: none; } }

.back-top {
    position: fixed; left: 20px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--primary-gradient); color: #fff; box-shadow: var(--glass-shadow); z-index: 999;
    opacity: 0; transform: translateY(20px); transition: var(--transition-smooth); pointer-events: none;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- HERO ---------------------------------------------------------- */
.hero-section { isolation: isolate; min-height: 100vh; display: flex; align-items: center; }
@media (min-width: 769px) { .hero-section { padding-top: 150px; padding-bottom: 110px; } }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-section::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(245, 251, 255, .88) 0%, rgba(245, 251, 255, .4) 55%, rgba(245, 251, 255, 0) 100%);
}
.hero-section .container { position: relative; z-index: 2; }

.hero-section .hero-title {
    font-size: clamp(34px, 5.6vw, 82px); line-height: 1.04; letter-spacing: -.03em; margin-top: 18px !important;
}
.hero-sub {
    font-size: clamp(18px, 2.4vw, 30px); font-weight: 700; color: var(--text-main); margin-top: 18px;
}
.hero-rotator { color: var(--primary-color); display: inline-block; min-width: 1ch; }
.hero-rotator::after { content: "|"; margin-left: 2px; animation: lpBlink 1s steps(1) infinite; }
@keyframes lpBlink { 50% { opacity: 0; } }
.hero-text { text-align: justify; line-height: 1.8; }

.hero-tilt { perspective: 1200px; }
.hero-tilt .carousel {
    transform-style: preserve-3d; transition: transform .18s ease-out;
    border-radius: 35px; padding: 10px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0, 119, 255, .25);
}
.hero-tilt .carousel-inner { border-radius: 28px; }
.hero-float-chip {
    position: absolute; z-index: 3; background: #fff; color: var(--text-main);
    font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 50px;
    box-shadow: var(--glass-shadow); display: flex; align-items: center; gap: 8px;
    animation: float 6s ease-in-out infinite;
}
.hero-float-chip i { color: var(--primary-color); }
.hero-float-chip.chip-a { top: 6%; left: -4%; }
.hero-float-chip.chip-b { bottom: 10%; right: -3%; animation-delay: -2.5s; }
@media (max-width: 768px) {
    .hero-float-chip { display: none; }
    .hero-section { min-height: auto; }
}
.scroll-cue {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid var(--primary-color); border-radius: 20px; opacity: .7;
}
.scroll-cue::after {
    content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
    background: var(--primary-color); border-radius: 4px; animation: lpCue 1.6s ease infinite;
}
@keyframes lpCue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 991px) { .scroll-cue { display: none; } }

/* ---------- Big scrolling marquee ----------------------------------------- */
.mq { overflow: hidden; padding: 26px 0; border-block: 1px solid rgba(0, 119, 255, .14); background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); }
.mq-track { display: flex; width: max-content; animation: lpMq 38s linear infinite; }
.mq.is-js .mq-track { animation: none; }
.mq-item {
    display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
    font-size: clamp(30px, 6vw, 76px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; line-height: 1.1;
    color: transparent; -webkit-text-stroke: 1.5px var(--lp-blue);
}
.mq-item:nth-child(even) { color: var(--lp-blue); -webkit-text-stroke: 0; }
.mq-item i { font-size: .5em; color: var(--lp-blue); -webkit-text-stroke: 0; }
@keyframes lpMq { to { transform: translateX(-50%); } }

/* ---------- Stats --------------------------------------------------------- */
.stats-box { position: relative; }
.stats-box h2 { margin: 0; }
.stats-box span { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--primary-color); }
.stats-box p { margin: 6px 0 0; color: var(--text-muted); font-weight: 500; }

/* ---------- About statement (words light up as you scroll) ---------------- */
.eyebrow {
    display: inline-block; background: var(--lp-blue-soft); color: var(--primary-color);
    padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 14px; margin-bottom: 22px;
}
.statement {
    font-size: clamp(24px, 4.2vw, 56px); line-height: 1.18; font-weight: 700; letter-spacing: -.02em;
    color: var(--lp-ink); text-align: left; max-width: 1100px; margin: 0 auto;
}
.statement .word { display: inline-block; margin-right: .26em; }
.info-box i.bi { font-size: 38px; color: var(--primary-color); display: inline-block; margin-bottom: 14px; }
.info-box h4 { color: var(--text-main); font-weight: 700; }
.info-box p { color: var(--text-muted); }

/* ---------- Industries: stacking cards ------------------------------------ */
.stack { position: relative; margin-top: 50px; }
.stack-card {
    position: sticky; top: calc(96px + var(--i, 0) * 18px);
    min-height: 360px; margin-bottom: 26px; padding: 44px;
    background: #fff; border: 1px solid rgba(0, 119, 255, .12); border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 119, 255, .14);
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; text-align: left;
    transform-origin: 50% 0;
}
.stack-card .num { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--primary-color); }
.stack-card h3 { font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; color: var(--lp-ink); margin: 10px 0 14px; letter-spacing: -.02em; }
.stack-card p { color: var(--text-muted); margin-bottom: 18px; }
.feature-chip {
    display: inline-flex; align-items: center; gap: 8px; background: var(--lp-blue-soft); color: var(--primary-color);
    padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 14px; margin: 5px 8px 5px 0;
}
.stack-visual {
    min-height: 260px; height: 100%; border-radius: 24px; background: var(--primary-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: clamp(70px, 9vw, 120px);
    position: relative; overflow: hidden;
}
.stack-visual::before, .stack-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.stack-visual::before { width: 240px; height: 240px; top: -80px; right: -60px; }
.stack-visual::after { width: 160px; height: 160px; bottom: -50px; left: -40px; }
@media (max-width: 767px) {
    .stack-card { grid-template-columns: 1fr; padding: 26px 22px; min-height: 0; top: calc(84px + var(--i, 0) * 12px); border-radius: 24px; }
    .stack-visual { min-height: 130px; font-size: 64px; order: -1; }
}

/* ---------- Products: horizontal scroll ----------------------------------- */
.hp { position: relative; padding: 0; }
.hp-pin { position: relative; }
.hp-track { display: flex; gap: 26px; padding: 0 24px; will-change: transform; }
.hp-intro { flex: 0 0 auto; width: min(420px, 82vw); display: flex; flex-direction: column; justify-content: center; text-align: left; }
.hp-intro .section-title { text-align: left; margin-bottom: 14px; }
.hp-intro p { color: var(--text-muted); }
.hp-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 600; color: var(--primary-color); font-size: 14px; }
.hp-hint i { animation: lpNudge 1.4s ease-in-out infinite; }
@keyframes lpNudge { 50% { transform: translateX(7px); } }
.hp-card {
    flex: 0 0 auto; width: min(360px, 78vw); padding: 34px 28px; background: var(--glass-bg);
    backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: var(--lp-radius);
    box-shadow: var(--glass-shadow); text-align: left; display: flex; flex-direction: column; gap: 10px;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), background .3s ease, box-shadow .3s ease; position: relative; overflow: hidden;
}
.hp-card:hover { background: #fff; transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0, 119, 255, .18); }
.hp-card .big-num { position: absolute; right: 18px; top: 6px; font-size: 84px; font-weight: 800; color: rgba(0, 119, 255, .08); line-height: 1; }
.hp-card .cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-color); }
.hp-card h4 { font-size: 22px; font-weight: 800; color: var(--lp-ink); margin: 0; }
.hp-card p { color: var(--text-muted); margin: 0; font-size: 15px; flex: 1; }
.hp-card a { color: var(--primary-color); font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.hp-bar { height: 4px; border-radius: 4px; background: rgba(0, 119, 255, .15); margin: 0 24px; overflow: hidden; display: none; }
.hp-bar > i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--primary-gradient); }

/* Default (tablet, mobile, no-JS, reduced motion): a native swipe row */
.hp { padding: 90px 0 40px; }
.hp-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; -webkit-overflow-scrolling: touch; margin-top: 20px; }
.hp-card, .hp-intro { scroll-snap-align: start; }
.hp-intro { width: 100%; flex-basis: 100%; }
.hp-card:hover { transform: none; }
.hp-hint i { animation: none; }
@media (max-width: 575px) { .hp { padding: 64px 0 30px; } .hp-card { padding: 28px 22px; width: 82vw; } }

/* Desktop with motion: section is pinned and the row moves sideways as you scroll */
@media (min-width: 992px) {
    html.has-motion .hp { padding: 0; }
    html.has-motion .hp-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 70px; }
    html.has-motion .hp-track { overflow: visible; scroll-snap-type: none; margin-top: 0; padding-bottom: 0; align-items: stretch;
        padding-left: max(24px, calc((100vw - 1140px) / 2 + 15px)); padding-right: 10vw; }
    html.has-motion .hp-intro { width: min(420px, 82vw); flex: 0 0 auto; }
    html.has-motion .hp-card { min-height: 360px; }
    html.has-motion .hp-card:hover { transform: translateY(-8px); }
    html.has-motion .hp-hint i { animation: lpNudge 1.4s ease-in-out infinite; }
    html.has-motion .hp-bar { display: block; margin-top: 34px; }
}

/* ---------- Services: numbered rows --------------------------------------- */
.svc-list { margin-top: 40px; border-top: 1px solid rgba(0, 119, 255, .18); }
.svc-row {
    display: grid; grid-template-columns: 90px 1.1fr 1.4fr 60px; gap: 24px; align-items: center;
    padding: 30px 14px; border-bottom: 1px solid rgba(0, 119, 255, .18); text-decoration: none; text-align: left;
    position: relative; transition: padding .35s ease; isolation: isolate;
}
.svc-row::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary-gradient);
    transform: scaleY(0); transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.4, 0, .2, 1); border-radius: 18px;
}
.svc-row .n { font-weight: 800; font-size: 20px; color: var(--primary-color); transition: color .3s; }
.svc-row h4 { margin: 0; font-size: clamp(20px, 2.6vw, 32px); font-weight: 800; color: var(--lp-ink); transition: color .3s; letter-spacing: -.01em; }
.svc-row p { margin: 0; color: var(--text-muted); transition: color .3s; }
.svc-row .go {
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--primary-color); color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; transition: all .35s ease; justify-self: end;
}
@media (hover: hover) {
    .svc-row:hover { padding-left: 28px; padding-right: 28px; }
    .svc-row:hover::before { transform: scaleY(1); }
    .svc-row:hover .n, .svc-row:hover h4, .svc-row:hover p { color: #fff; }
    .svc-row:hover .go { background: #fff; transform: rotate(-45deg); }
}
@media (max-width: 767px) {
    .svc-row { grid-template-columns: 44px 1fr 44px; gap: 8px 14px; padding: 22px 6px; }
    .svc-row p { grid-column: 2 / 3; grid-row: 2; font-size: 14px; }
    .svc-row .go { grid-column: 3; grid-row: 1 / 3; width: 40px; height: 40px; }
}

/* ---------- Why choose us: sticky heading + numbered items ---------------- */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; text-align: left; }
.why-sticky { position: sticky; top: 120px; }
.why-sticky .section-title, .why-sticky .section-text { text-align: left; margin-left: 0; }
.why-item { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid rgba(0, 119, 255, .16); }
.why-item .n { font-size: 38px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--lp-blue); }
.why-item h4 { margin: 0 0 6px; font-weight: 800; color: var(--lp-ink); }
.why-item p { margin: 0; color: var(--text-muted); }
@media (max-width: 991px) {
    .why-grid { grid-template-columns: 1fr; gap: 20px; }
    .why-sticky { position: static; }
}

/* ---------- Internship: roadmap ------------------------------------------- */
.roadmap { position: relative; padding-left: 70px; text-align: left; }
.roadmap-line { position: absolute; left: 27px; top: 0; bottom: 0; width: 4px; background: rgba(0, 119, 255, .15); border-radius: 4px; }
.roadmap-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 0; background: var(--primary-gradient); border-radius: 4px; }
html.has-motion .roadmap-fill { transform: scaleY(0); }
.roadmap-step { position: relative; margin-bottom: 24px; }
.roadmap-step .num {
    position: absolute; left: -70px; top: 0; width: 58px; height: 58px; border-radius: 50%;
    background: #fff; border: 3px solid rgba(0, 119, 255, .25); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; transition: var(--transition-smooth);
}
.roadmap-step.reached .num { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgba(0, 119, 255, .15); }
.roadmap-step .info-box h4 { margin-bottom: 6px; }
.roadmap-step .info-box p { margin: 0; }
@media (max-width: 575px) {
    .roadmap { padding-left: 54px; }
    .roadmap-line { left: 19px; }
    .roadmap-step .num { left: -54px; width: 42px; height: 42px; font-size: 16px; }
}
.pz { overflow: hidden; border-radius: 32px; box-shadow: 0 25px 60px rgba(0, 119, 255, .2); }
.pz img { width: 100%; height: 100%; object-fit: cover; display: block; scale: 1.14; }

/* ---------- Clients ------------------------------------------------------- */
.clients-wrap { overflow: hidden; margin-top: 34px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-row { display: flex; width: max-content; gap: 16px; padding: 8px 0; }
.client-pill {
    white-space: nowrap; padding: 16px 30px; border-radius: 50px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow); font-weight: 700; color: var(--lp-ink); font-size: 17px; backdrop-filter: blur(8px);
}
.clients-row.r1 { animation: lpMq 46s linear infinite; }
.clients-row.r2 { animation: lpMqRev 52s linear infinite; margin-top: 8px; }
@keyframes lpMqRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.clients-wrap:hover .clients-row { animation-play-state: paused; }

/* ---------- Reviews ------------------------------------------------------- */
.reviews-marquee-container { width: 100%; overflow: hidden; overflow-x: clip; display: flex; }
.reviews-marquee { display: flex; gap: 24px; animation: lpReviews 60s linear infinite; padding: 20px 0; width: max-content; }
.reviews-marquee:hover { animation-play-state: paused; }
.review-card { width: 380px; flex-shrink: 0; border-radius: 20px; text-align: left; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: blur(10px); transition: transform .3s ease, background .3s ease; }
.review-card:hover { transform: translateY(-8px); background: #fff; }
.review-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); }
.review-text { font-size: .95rem; line-height: 1.6; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.read-more-btn { display: inline-block; color: var(--primary-color); font-size: .85rem; font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
.read-more-btn:hover { text-decoration: underline; }
@keyframes lpReviews { to { transform: translateX(calc(-50% - 12px)); } }
@media (max-width: 768px) { .review-card { width: 300px; } .reviews-marquee { animation-duration: 34s; } }

/* ---------- Gallery ------------------------------------------------------- */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 40px; }
.gal .pz { height: clamp(220px, 28vw, 380px); cursor: zoom-in; }
.gal .pz:nth-child(1) { grid-column: span 5; }
.gal .pz:nth-child(2) { grid-column: span 7; }
.gal .pz:nth-child(3) { grid-column: span 7; }
.gal .pz:nth-child(4) { grid-column: span 5; }
@media (max-width: 767px) {
    .gal { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gal .pz:nth-child(n) { grid-column: span 1; height: 170px; border-radius: 18px; }
}
#lightbox {
    position: fixed; inset: 0; background: rgba(8, 32, 50, .9); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 100001; padding: 24px;
}
#lightbox.open { display: flex; animation: lpFade .3s ease; }
@keyframes lpFade { from { opacity: 0; } to { opacity: 1; } }
#lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
#lightbox button {
    position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px;
    border-radius: 50%; font-size: 22px; cursor: pointer; transition: var(--transition-smooth);
}
#lightbox button:hover { background: var(--primary-color); }
#lbClose { top: 20px; right: 20px; } #lbPrev { left: 16px; top: 50%; } #lbNext { right: 16px; top: 50%; }

/* ---------- FAQ / contact / misc ------------------------------------------ */
.accordion-item.glass-panel { background: var(--glass-bg); border: 1px solid var(--glass-border) !important; border-radius: 20px !important; overflow: hidden; box-shadow: var(--glass-shadow); }
.accordion-button { background: transparent; font-weight: 600; color: var(--text-main); box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--primary-color); background: rgba(0, 119, 255, .06); }
.accordion-body { color: var(--text-muted); text-align: left; }
.section-text { color: var(--text-muted); max-width: 820px; margin-inline: auto; }
.map-box iframe { box-shadow: var(--glass-shadow); }
.section-title { letter-spacing: -.02em; }

@media (max-width: 767px) { .section-padding { padding: 70px 0; } }
@media (prefers-reduced-motion: reduce) {
    .mq-track, .clients-row, .reviews-marquee { animation-duration: 140s !important; }
    .hero-float-chip, .hp-hint i, .scroll-cue::after { animation: none !important; }
}