﻿/*
Theme Name: AppsGenii Theme
Theme URI: https://example.com/pentazone
Author: AppsGenii
Description: WWordPress theme converted from static AppsGenii HTML files.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: appsgenii-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   GLOBAL THEME STYLES (Merged from templates/assets)
   ========================================================== */

/* ==========================================================
   APPSGENII &middot; Design System v2
   Shared across all pages
   ========================================================== */

:root {
  --ink: #0A0F1C;
  --deep: #05080F;
  --bone: #F4F1EA;
  --paper: #FBF9F4;
  --gold: #F5A623;
  --goldd: #D88E13;
  --line: rgba(244, 241, 234, 0.08);
  --mute: #8A93A6;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { background: var(--ink); color: var(--bone); margin: 0; padding: 0; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-family: 'Inter Tight', system-ui, sans-serif; cursor: none; }
@media (max-width: 768px) { body { cursor: auto; } .cursor, .cursor-dot, .cursor-trail { display: none !important; } }
::selection { background: var(--gold); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ========== TYPOGRAPHY ========== */
.h-display { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.02em; line-height:1.3em; }
.h-italic { font-style: italic; color: var(--gold); }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-balance { text-wrap: balance; }
.ag-section-title { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.ag-section-title-dark { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--goldd); font-weight: 500; }
.editorial-rule { height: 1px; background: linear-gradient(90deg, var(--gold) 0 80px, rgba(244,241,234,.12) 80px); }
.editorial-rule-dark { height: 1px; background: linear-gradient(90deg, var(--goldd) 0 80px, rgba(11,18,32,.15) 80px); }
.num-display { font-family: 'Instrument Serif', serif; font-feature-settings: 'tnum' 1, 'lnum' 1; }

/* ========== PRELOADER ========== */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.preloader-num { font-family: 'Instrument Serif', serif; font-size: 120px; line-height: 1; color: var(--bone); letter-spacing: -.04em; }
.preloader-num span:last-child { color: var(--gold); }
.preloader-bar { width: 240px; height: 1px; background: rgba(244,241,234,.1); position: relative; overflow: hidden; }
.preloader-bar i { position: absolute; left: 0; top: 0; height: 100%; background: var(--gold); width: 0%; }
.preloader-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }

/* ========== CURSOR + IMAGE TRAIL ========== */
.cursor { position: fixed; top: 0; left: 0; width: 32px; height: 32px; border: 1px solid rgba(244,241,234,.5); border-radius: 50%; pointer-events: none; z-index: 9998; transition: width .25s, height .25s, background .25s, border-color .25s; mix-blend-mode: difference; transform: translate(-50%, -50%); }
.cursor-dot { position: fixed; top: 0; left: 0; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); }
.cursor.hovered { width: 64px; height: 64px; background: rgba(245,166,35,.14); border-color: var(--gold); }
.cursor.text-mode { width: 84px; height: 84px; background: var(--gold); border-color: var(--gold); }
.cursor.text-mode::before { content: attr(data-cursor); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.cursor-trail { position: fixed; pointer-events: none; z-index: 9997; width: 90px; height: 90px; border-radius: 14px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); will-change: transform, opacity; }
.cursor-trail.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-trail img { width: 100%; height: 100%; object-fit: cover; }

/* ========== PAGE TRANSITION ========== */
.page-transition { position: fixed; inset: 0; z-index: 99999; pointer-events: none; transform: translateY(100%); }
.page-transition .pt-panel { position: absolute; inset: 0; background: var(--deep); }
.page-transition .pt-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 80px; color: var(--bone); }

/* ========== NAVIGATION ========== */
.nav-link { position: relative; display: inline-block; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--gold); transition: width .35s cubic-bezier(.2,.7,.2,1); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }
.ag-mark { display: inline-grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 30px; height: 30px; }
.ag-mark span { background: var(--bone); border-radius: 2px; }
.ag-mark span:nth-child(3) { background: var(--gold); }

/* Side dot nav (anchor scroll indicator) */
.side-nav { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
@media (min-width: 1280px) { .side-nav { display: flex; flex-direction: column; gap: 14px; } }
.side-nav-item { width: 8px; height: 8px; border-radius: 50%; background: rgba(244,241,234,.2); position: relative; transition: background .3s, transform .3s; cursor: pointer; }
.side-nav-item:hover { background: var(--gold); transform: scale(1.4); }
.side-nav-item.active { background: var(--gold); transform: scale(1.4); }
.side-nav-item span { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--bone); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s; text-transform: uppercase; letter-spacing: .15em; }
.side-nav-item:hover span, .side-nav-item.active span { opacity: 1; }

/* ========== BUTTONS ========== */
.btn { position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: 18px 28px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s, color .35s; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn-gold:hover { background: #ffb838; }
.btn-outline { border: 1px solid rgba(244,241,234,.18); color: var(--bone); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { border: 1px solid rgba(11,18,32,.15); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { border-color: var(--goldd); color: var(--goldd); }
.btn .arrow-circle { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s; }
.btn-gold:hover .arrow-circle { transform: rotate(-45deg); }
.btn-outline:hover .arrow-circle, .btn-outline-dark:hover .arrow-circle { transform: rotate(-45deg); }

/* ========== PILLS ========== */
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .8rem; border: 1px solid rgba(244,241,234,.18); border-radius: 999px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #C8CDD8; font-weight: 500; }
.pill-gold { background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.45); color: var(--gold); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.pill-dark { border: 1px solid rgba(11,18,32,.15); color: var(--ink); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,.6); } 50% { box-shadow: 0 0 0 8px rgba(245,166,35,0); } }

/* ========== SCROLL PROGRESS + GRAIN ========== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--gold); width: 0%; z-index: 9997; transition: width .1s linear; }
.grain { background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 4px 4px; }
.hairline { border-top: 1px solid rgba(244,241,234,.08); }
.hairline-dark { border-top: 1px solid rgba(11,18,32,.1); }

/* ========== MARQUEE ========== */
.marquee-wrap { display: flex; overflow: hidden; }
.marquee { display: flex; gap: 48px; padding-right: 48px; flex-shrink: 0; animation: marquee 60s linear infinite; }
.marquee.fast { animation-duration: 35s; }
.marquee.slow { animation-duration: 90s; }
.marquee.reverse { animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee-wrap:hover .marquee { animation-play-state: paused; }

/* ========== TICKER ========== */
.ticker-line { position: relative; padding-left: 18px; }
.ticker-line::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); animation: pulse 1.6s ease-in-out infinite; }

/* ========== TERMINAL ========== */
.terminal { background: linear-gradient(180deg, var(--ink) 0%, var(--deep) 100%); border: 1px solid var(--line); border-radius: 18px; }
.terminal-line { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; }
.typing { border-right: 2px solid var(--gold); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }

/* ========== CARDS ========== */
.card-tilt { transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s; will-change: transform; }
.card-tilt:hover { border-color: rgba(245,166,35,.5); }

/* ========== SERVICE ROW ========== */
.service-row { position: relative; transition: background .4s; cursor: pointer; }
.service-row:hover { background: rgba(245,166,35,.04); }
.service-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.service-row:hover::before { width: 4px; }
.service-row .preview { position: absolute; pointer-events: none; width: 320px; height: 220px; opacity: 0; border-radius: 14px; overflow: hidden; transition: opacity .4s; z-index: 5; }
.service-row:hover .preview { opacity: 1; }
.service-row .preview img { width: 100%; height: 100%; object-fit: cover; }

/* ========== INDUSTRY TILES ========== */
.industry-tile { position: relative; overflow: hidden; cursor: pointer; }
.industry-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity .6s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.industry-tile:hover img { opacity: .55; transform: scale(1); }
.industry-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,15,0) 30%, rgba(5,8,15,.85) 100%); z-index: 1; opacity: 0; transition: opacity .6s; }
.industry-tile:hover::before { opacity: 1; }

/* ========== CASE CARDS ========== */
.case-card { position: relative; overflow: hidden; cursor: pointer; }
.case-card .case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); transform: scale(1.05); }
.case-card:hover .case-img { transform: scale(1.12); }
.case-card .case-overlay { background: linear-gradient(180deg, rgba(5,8,15,.05) 0%, rgba(5,8,15,.55) 50%, rgba(5,8,15,.95) 100%); }

/* ========== TEAM CARD ========== */
.team-card { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 3/4; cursor: pointer; }
.team-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); filter: grayscale(60%) contrast(1.05); }
.team-card:hover img { transform: scale(1.08); filter: grayscale(0%) contrast(1.05); }
.team-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,8,15,.9) 100%); z-index: 1; }
.team-card .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 2; transform: translateY(28px); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.team-card:hover .info { transform: translateY(0); }
.team-card .info .meta { opacity: 0; transition: opacity .4s; }
.team-card:hover .info .meta { opacity: 1; }

/* ========== TIMELINE ========== */
.tl-step { position: relative; padding: 60px 0; }
.tl-step .tl-num { font-family: 'Instrument Serif', serif; font-size: 120px; color: var(--gold); opacity: .15; line-height: 1; letter-spacing: -.04em; }

/* ========== SCRAMBLE ========== */
[data-scramble] { font-feature-settings: 'tnum' 1; }

/* ========== TESTIMONIAL ========== */
.testimonial-track { display: flex; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.testimonial-slide { flex: 0 0 100%; padding: 0 12px; }

/* ========== BLOG ========== */
.blog-card { position: relative; overflow: hidden; cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover { transform: translateY(-4px); }
.blog-card .blog-img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--mute); font-family: 'JetBrains Mono', monospace; }

/* Blog content (long-form article) */
.article-body { font-size: 18px; line-height: 1.7; color: rgba(244,241,234,.85); max-width: 720px; }
.article-body p { margin: 0 0 1.5em; }
.article-body h2 { font-family: 'Instrument Serif', serif; font-size: 40px; line-height: 1.05; color: var(--bone); margin: 2.5em 0 .8em; letter-spacing: -.02em; }
.article-body h3 { font-size: 22px; font-weight: 500; color: var(--bone); margin: 2em 0 .6em; }
.article-body strong { color: var(--bone); font-weight: 600; }
.article-body em { color: var(--gold); font-style: italic; }
.article-body a { color: var(--gold); border-bottom: 1px solid rgba(245,166,35,.4); }
.article-body a:hover { border-color: var(--gold); }
.article-body blockquote { border-left: 2px solid var(--gold); padding: 8px 0 8px 24px; margin: 2em 0; font-family: 'Instrument Serif', serif; font-size: 28px; line-height: 1.25; color: var(--bone); font-style: italic; }
.article-body ul { padding-left: 0; margin: 1.5em 0; list-style: none; }
.article-body ul li { position: relative; padding-left: 24px; margin-bottom: .8em; }
.article-body ul li::before { content: '&middot;'; position: absolute; left: 6px; top: -8px; color: var(--gold); font-size: 28px; }
.article-body ol { padding-left: 24px; margin: 1.5em 0; }
.article-body ol li { margin-bottom: .8em; padding-left: 8px; }
.article-body ol li::marker { color: var(--gold); font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.article-body code { font-family: 'JetBrains Mono', monospace; font-size: 14px; background: rgba(245,166,35,.1); color: var(--gold); padding: 2px 6px; border-radius: 4px; }
.article-body pre { background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 24px; overflow-x: auto; margin: 2em 0; font-size: 14px; line-height: 1.6; }
.article-body pre code { background: transparent; color: var(--bone); padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 15px; }
.article-body th, .article-body td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.article-body th { color: var(--gold); font-weight: 500; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.article-body figure { margin: 2.5em 0; }
.article-body figure img { border-radius: 12px; }
.article-body figcaption { font-size: 13px; color: var(--mute); margin-top: 12px; font-style: italic; text-align: center; }
.callout { background: rgba(245,166,35,.06); border: 1px solid rgba(245,166,35,.25); border-radius: 14px; padding: 24px 28px; margin: 2em 0; font-size: 16px; line-height: 1.6; color: var(--bone); }
.callout strong { color: var(--gold); }

/* ========== INSIGHTS GRID ========== */
.insight-card { position: relative; overflow: hidden; cursor: pointer; }
.insight-card .insight-img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.insight-card:hover .insight-img { transform: scale(1.08); }

/* ========== TECH STACK ========== */
.tech-tile { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--ink); border: 1px solid var(--line); border-radius: 16px; transition: all .4s cubic-bezier(.2,.7,.2,1); cursor: pointer; }
.tech-tile:hover { background: rgba(245,166,35,.08); border-color: rgba(245,166,35,.4); transform: translateY(-3px); }
.tech-tile .tech-name { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--mute); font-family: 'JetBrains Mono', monospace; opacity: 0; transition: opacity .3s; }
.tech-tile:hover .tech-name { opacity: 1; }
.tech-tile svg, .tech-tile .tech-icon { transition: transform .4s; }
.tech-tile:hover svg, .tech-tile:hover .tech-icon { transform: translateY(-6px) scale(1.1); }

/* ========== MAP PINS ========== */
.map-pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); animation: pulse 2s ease-in-out infinite; cursor: pointer; }
.map-pin::after { content: attr(data-label); position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--bone); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.map-pin:hover::after, .map-pin.active::after { opacity: 1; }

/* ========== REVEAL UTILS ========== */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: inline-block; transform: translateY(110%); }
.split-char { display: inline-block; }

/* ========== HOVER CARD MAGNETIC ========== */
.magnetic { will-change: transform; }

/* ========== FOOTER BIG MARK ========== */
.footer-mark { font-family: 'Instrument Serif', serif; font-size: 80px; line-height: 0.85; color: rgba(244,241,234,.95); }
@media (min-width: 640px) { .footer-mark { font-size: 120px; } }
@media (min-width: 1024px) { .footer-mark { font-size: 180px; } }
@media (min-width: 1280px) { .footer-mark { font-size: 180px; } }

/* ========== AWARDS BENTO ========== */
.bento-cell { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: border-color .4s, transform .4s; }
.bento-cell:hover { border-color: rgba(245,166,35,.4); transform: translateY(-3px); }

/* ========== HEADER ========== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,15,28,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }

/* ========== MOBILE MENU ========== */
.mobile-toggle { display: none; }
@media (max-width: 1023px) { .mobile-toggle { display: inline-flex; } .nav-desktop { display: none !important; } }
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--deep); padding: 80px 32px; transform: translateY(-100%); visibility: hidden; pointer-events: none; transition: transform .6s cubic-bezier(.2,.7,.2,1), visibility .6s; }
.mobile-menu.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.mobile-menu a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: 'Instrument Serif', serif; font-size: 36px; }
body.menu-open { overflow: hidden; }

/* ========== UTILITIES ========== */
.text-bone-65 { color: rgba(244,241,234,.65); }
.text-bone-75 { color: rgba(244,241,234,.75); }
.text-bone-85 { color: rgba(244,241,234,.85); }
.text-ink-60 { color: rgba(11,18,32,.60); }
.text-ink-70 { color: rgba(11,18,32,.70); }
.bg-gold-soft { background: rgba(245,166,35,.06); }

/* ========== GLOBAL TYPOGRAPHY OVERRIDE ========== */
html, body {
  font-family: 'Poppins', sans-serif !important;
}

body, button, input, textarea, select, a, p, span, li, div,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
}

h1 {
  font-size: 80px !important;
}

/* Ensure existing utility/type classes also use Poppins consistently. */
.h-display,
.h-italic,
.font-mono,
.num-display,
.terminal-line,
.footer-mark,
.mobile-menu a,
.article-body h2,
.article-body blockquote {
  font-family: 'Poppins', sans-serif !important;
}
