/* Small additions on top of the original stylesheets (style.css, responsive.css). */

/* Preloader can never get stuck, even without JavaScript */
#preloader { animation: ap-hide-preloader 0s 3s forwards; }
@keyframes ap-hide-preloader { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Menu toggle is now a <button>; keep the original look */
button.nav-icon3 { background: none; border: 0; padding: 0; cursor: pointer; }

/* The one <h1> per page keeps the size/rhythm of the <h2> it replaced */
h1.name { line-height: 1.4444444444444444; }

/* Hero: 3D stage (was inline styles) and photo fallback; the text stays above the model */
.home .hero-box { position: relative; z-index: 2; }
.model-stage { z-index: 0; width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: flex; justify-content: center; align-items: center; }
.has-3d #fallbackImage { display: none; }
.rzp-hero { margin-left: 10px; margin-top: 27px; display: inline-block; }
.star-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#neuro { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Portfolio thumbnails (were inline styles) */
.project-gallery .item-thumbnail img.project-thumb { object-fit: cover; width: 100%; height: 400px; }

/* Contact links keep the muted info colour */
.single-info p a, .paypal-link { color: #94a2c6; text-decoration: none; }
.single-info p a:hover, .paypal-link:hover { color: #fff; }
.rzp-contact { margin-left: 10px; margin-top: 27px; display: inline-block; }
.google_map_wrapper iframe { width: 100%; max-width: 100%; }

/* Service popup points (were inline styles) */
.desc-points { text-align: center; padding-bottom: 20px; }
.desc-points li { font-size: 16px; color: #fff; line-height: 1.625; }
.desc-points .desc-icon { height: 50px; width: auto !important; margin: 0 auto 26px; }
.post-container { max-width: 850px; }
.blog-details .blog-content .content .post-meta li span { color: #94a2c6; margin-right: 18px; }

/* Full pages for projects, services and posts (same look as the popup) */
#main section.single-page { position: relative; transform: none; opacity: 1; min-height: 100vh; overflow: visible; z-index: 1; }
.single-wrap { padding: 90px 0 60px; }
.single-page .ajax-container .header-area .project-title { font-size: 30px; line-height: 40px; }
.ap-breadcrumbs { color: #94a2c6; font-size: 15px; margin-bottom: 10px; }
.ap-breadcrumbs a { color: #94a2c6; }
.ap-breadcrumbs a:hover { color: #fff; }
.single-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.single-cta .mybtn i { margin-right: 8px; }
.page-404 .ajax-container p { color: #94a2c6; }


/* Code blocks in posts */
.blog-content pre { border-radius: 6px; font-size: 14px; }

/* No browser focus ring on mouse click (keyboard focus still shows one) */
#nav-icon3:focus:not(:focus-visible) { outline: 0; }

/* Images now carry width/height attributes (prevents layout shift); keep their natural proportions */
img { height: auto; }
.single-service img { max-width: 100%; object-fit: contain; }

/* Blog cards: uniform thumbnails */
.blogs .blog-box .blog-images { aspect-ratio: 16 / 10; overflow: hidden; background: #1b2138; }
.blogs .blog-box .blog-images img { width: 100%; height: 100%; object-fit: cover; }

/* Hero footer bar */
.home .hero-footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px 0 22px; background: linear-gradient(to top, rgba(3, 0, 20, .85), rgba(3, 0, 20, 0)); }
.home .hero-footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1110px, calc(100% - 30px)); height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .55), rgba(6, 182, 212, .55), transparent); }
.hero-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.hero-copy { margin: 0; font-size: 14px; letter-spacing: .02em; color: #71768e; }
.hero-copy span { color: #c9cde0; font-weight: 600; }
.hero-legal { display: flex; align-items: center; gap: 0; }
.hero-legal a { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #94a2c6; text-decoration: none; padding: 4px 0; transition: color .2s; }
.hero-legal a + a { margin-left: 26px; }
.hero-legal a + a::before { content: ""; position: absolute; left: -15px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #06b6d4); }
.hero-legal a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, #a855f7, #06b6d4); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.hero-legal a:hover, .hero-legal a:focus-visible { color: #fff; }
.hero-legal a:hover::after, .hero-legal a:focus-visible::after { transform: scaleX(1); }

/* Phones and short screens: footer flows after the content, centred */
@media (max-width: 991px), (max-height: 640px) {
	.home .hero-footer { position: relative; margin-top: 30px; background: none; }
	.hero-footer-inner { flex-direction: column-reverse; justify-content: center; text-align: center; }
}

/* Footer bar inside the flow (legal pages) */
.hero-footer.is-static { position: relative; padding: 22px 0 26px; }
.hero-footer.is-static::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1110px, calc(100% - 30px)); height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .55), rgba(6, 182, 212, .55), transparent); }
.hero-legal a.is-current { color: #fff; }
.hero-legal a.is-current::after { transform: scaleX(1); }
@media (max-width: 991px) { .hero-footer.is-static .hero-footer-inner { flex-direction: column-reverse; justify-content: center; text-align: center; } }

/* Legal pages (terms, privacy, refunds) */
#main section.legal-page { display: flex; flex-direction: column; }
.legal-page .single-wrap { flex: 1; padding-bottom: 40px; }
.legal-head { text-align: center; margin: 10px auto 40px; max-width: 760px; }
.legal-head .greeting { display: inline-block; padding: 2px 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #a855f7, #06b6d4); border-radius: 3px; }
.legal-title { font-size: 48px; line-height: 1.15; margin: 16px 0 10px; background: linear-gradient(90deg, #ffffff 30%, #c4b5fd 70%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-meta { font-size: 14px; color: #94a2c6; margin: 0; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.legal-layout.has-toc { grid-template-columns: 240px minmax(0, 1fr); max-width: 1110px; }
.legal-toc { position: sticky; top: 100px; align-self: start; background: rgba(37, 44, 72, .7); border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; padding: 20px 18px; backdrop-filter: blur(6px); }
.legal-toc-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94a2c6; margin: 0 0 12px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin: 0; }
.legal-toc a { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; line-height: 1.4; color: #c9cde0; text-decoration: none; transition: color .2s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 12px; font-weight: 700; color: #a855f7; padding-top: 1px; }
.legal-toc a:hover { color: #fff; }
.legal-card { background: #252c48; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.legal-content { padding: 40px 44px; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.8; color: #c9cde0; text-align: left; }
.legal-content p { margin: 0 0 16px; }
.legal-content h2, .legal-content h3 { color: #fff; text-transform: none; letter-spacing: 0; scroll-margin-top: 100px; }
.legal-content h2 { font-size: 24px; line-height: 1.3; margin: 34px 0 14px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .07); }
.legal-content h3 { font-size: 19px; line-height: 1.35; margin: 26px 0 10px; }
.legal-content > :first-child, .legal-content > div > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content ul, .legal-content ol { margin: 0 0 18px; padding-left: 0; }
.legal-content ul li { position: relative; list-style: none; padding-left: 22px; margin-bottom: 6px; }
.legal-content ul li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #06b6d4); }
.legal-content a { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-content a:hover { color: #fff; }
.legal-content strong { color: #fff; }
.legal-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 26px 30px; background: linear-gradient(135deg, rgba(168, 85, 247, .18), rgba(6, 182, 212, .14)), #252c48; }
.legal-help-title { font-size: 20px; line-height: 1.3; margin: 0 0 6px; text-transform: none; }
.legal-help p { margin: 0; font-size: 15px; color: #c9cde0; }
.legal-help p a { color: #67e8f9; }
.legal-help .mybtn { flex: none; }
.legal-help .mybtn i { margin-right: 8px; }
@media (max-width: 991px) {
	.legal-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
	.legal-toc { position: static; }
}
@media (max-width: 600px) {
	.legal-title { font-size: 32px; }
	.legal-content { padding: 26px 20px; }
	.legal-help { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
}

/* Detail pages scroll like normal pages (the one-page layout locks #main to the viewport) */
.ap-detail #main { position: relative; height: auto; min-height: 100vh; overflow: visible; }
.ap-detail #main section.single-page { position: relative; height: auto; min-height: 100vh; overflow: visible; }
.ap-detail .star-background { position: fixed; }
html:has(body.ap-detail), body.ap-detail { overflow-x: clip; } /* "hidden" would break the sticky contents list */

/* Case-study text in project popups / pages */
.project-info-text p { font-size: 16px; line-height: 1.7; color: #dfe2f0; margin: 0 0 14px; }
.project-info-text strong { color: #fff; }
