/* ============================================================
   ATHUL KTK — DARK PORTFOLIO CSS
   Adapted from UNBOT design spec
   ============================================================ */

/* ── ROOT TOKENS ──────────────────────────────────────────── */
:root {
  --bg:          #0A0812;
  --bg-card:     #120E24;
  --bg-card2:    #16103A;
  --purple:      #7C3AED;
  --purple-lt:   #8B5CF6;
  --purple-dim:  #5B21B6;
  --violet:      #A78BFA;
  --white:       #FFFFFF;
  --grey-1:      #BBBBBB;
  --grey-2:      #888888;
  --grey-3:      #444444;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.14);
  --glow:        rgba(124,58,237,0.45);
  --r-card:      16px;
  --r-pill:      9999px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --ease:        cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }

html { scroll-behavior:smooth; }

body.athul-portfolio-body {
  background: var(--bg);
  color: var(--grey-1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hide default WP admin bar shift */
body.athul-portfolio-body #wpadminbar { position:fixed; }

/* ── STAR CANVAS ─────────────────────────────────────────── */
#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── COMMON UTILITIES ─────────────────────────────────────── */
.ap-section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.ap-section__header {
  text-align: center;
  margin-bottom: 56px;
}
.ap-section__title {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.ap-section__sub {
  font-size: 13px;
  color: var(--grey-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.ap-btn--ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-md);
  color: var(--white);
}
.ap-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}
.ap-btn--solid {
  background: var(--purple);
  border: 1px solid transparent;
  color: var(--white);
}
.ap-btn--solid:hover {
  background: var(--purple-dim);
  box-shadow: 0 0 24px var(--glow);
}
.ap-btn:active { transform: scale(0.97); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.ap-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,8,18,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.ap-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.ap-nav__logo { text-decoration:none; }
.ap-nav__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.ap-logo-dot { color: var(--purple); }
.ap-nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}
.ap-nav__links a {
  font-size: 13px;
  color: var(--grey-2);
  text-decoration: none;
  transition: color 0.2s;
}
.ap-nav__links a:hover,
.ap-nav__links a.active { color: var(--white); }
.ap-nav__cta { margin-left: 16px; height: 36px; padding: 0 18px; font-size: 12px; }
.ap-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.ap-nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.ap-nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 40px 20px;
  gap: 14px;
  border-top: 1px solid var(--border);
  background: rgba(10,8,18,0.95);
}
.ap-nav__mobile a {
  color: var(--grey-1);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.ap-nav__mobile.open { display:flex; }

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — HERO
═══════════════════════════════════════════════════════════ */
.ap-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
}

/* Badge */
.ap-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(28,21,52,0.9);
  border: 1px solid var(--border-md);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-family: monospace;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.ap-hero__content { position:relative; z-index:2; }
.ap-hero__title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.ap-hero__sub {
  font-size: 14px;
  color: var(--grey-2);
  min-height: 22px;
  letter-spacing: 0.03em;
}
.ap-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

/* ── 3D CSS Cube ───────────────────────────────────────────── */
.ap-cube-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 40px auto;
  perspective: 400px;
  z-index: 1;
}
.ap-cube {
  width: 80px;
  height: 80px;
  margin: 10px auto;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 8s linear infinite;
}
@keyframes cube-spin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}
.ap-cube__face {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(139,92,246,0.4);
}
.ap-cube__face--front  { background: linear-gradient(135deg,#5B4EE8,#3B30B8); transform: translateZ(40px); }
.ap-cube__face--back   { background: linear-gradient(135deg,#3B30B8,#22198A); transform: rotateY(180deg) translateZ(40px); }
.ap-cube__face--right  { background: linear-gradient(135deg,#4A3FD0,#2E24A0); transform: rotateY(90deg) translateZ(40px); }
.ap-cube__face--left   { background: linear-gradient(135deg,#4A3FD0,#2E24A0); transform: rotateY(-90deg) translateZ(40px); }
.ap-cube__face--top    { background: linear-gradient(135deg,#7C6AF0,#5B4EE8); transform: rotateX(90deg) translateZ(40px); }
.ap-cube__face--bottom { background: linear-gradient(135deg,#1A148A,#0F0C60); transform: rotateX(-90deg) translateZ(40px); }

.ap-cube-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 200px; height: 200px;
  background: radial-gradient(ellipse at center, rgba(100,60,255,0.45) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ap-cube-base {
  width: 90px; height: 14px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.25),transparent);
  border-radius: 50%;
  margin: 8px auto 0;
  filter: blur(2px);
}

/* ── Orbital rings + items ─────────────────────────────────── */
.ap-orbital {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  z-index: 1;
  pointer-events: none;
}
.ap-orbital__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.ap-orbital__ring--1 { width:240px; height:240px; }
.ap-orbital__ring--2 { width:380px; height:380px; border-style:dashed; border-color:rgba(255,255,255,0.03); }

.ap-orbital__item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: orbit-fadein 0.6s var(--ease) forwards;
  animation-delay: calc(var(--delay) + 0.8s);
}
@keyframes orbit-fadein {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.ap-orbital__item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}
.ap-orbital__item::before {
  content:'';
  width:5px; height:5px;
  border-radius:50%;
  background: var(--white);
  flex-shrink:0;
}
.ap-orbital__item--top    { top:2%;   left:50%; transform:translateX(-50%); }
.ap-orbital__item--right  { top:50%;  right:2%; transform:translateY(-50%); }
.ap-orbital__item--bottom { bottom:2%;left:50%; transform:translateX(-50%); }
.ap-orbital__item--left   { top:50%;  left:2%;  transform:translateY(-50%); }

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — ABOUT
═══════════════════════════════════════════════════════════ */
.ap-about {
  background: linear-gradient(180deg, #0A0812 0%, #0D0A20 100%);
}
.ap-about::before {
  content:'';
  position:absolute;
  top:0; left:50%; transform:translateX(-50%);
  width:600px; height:300px;
  background: radial-gradient(ellipse at top, rgba(45,21,128,0.5) 0%, transparent 70%);
  pointer-events:none;
}
.ap-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ap-about__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.ap-about__label {
  font-size: 13px;
  color: var(--grey-2);
  margin-bottom: 16px;
}
.ap-about__body {
  font-size: 13px;
  color: var(--grey-1);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 28px;
}
#dot-canvas { display:block; border-radius:12px; }
.ap-about__caption {
  font-size: 11px;
  color: var(--grey-3);
  text-align: center;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — MARQUEE
═══════════════════════════════════════════════════════════ */
.ap-marquee-section {
  max-width: 100%;
  padding: 0;
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1A0050 0%, #060010 100%);
}
.ap-marquee-bg-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events:none;
}
.ap-marquee-track {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  overflow:hidden;
  pointer-events:none;
}
.ap-marquee-inner {
  display:flex;
  white-space:nowrap;
  animation: marquee-scroll 12s linear infinite;
  font-size: clamp(56px,8vw,90px);
  font-weight: 800;
  color: var(--white);
  letter-spacing:-0.02em;
  gap:0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Phone mockup */
.ap-phone-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.ap-phone-wrap.in-view {
  transform: translateY(0);
  opacity: 1;
}
.ap-phone {
  width: 180px;
  height: 360px;
  background: #0D0A20;
  border-radius: 28px;
  border: 2px solid rgba(124,58,237,0.4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 40px rgba(124,58,237,0.3);
}
.ap-phone__notch {
  position:absolute;
  top:10px; left:50%; transform:translateX(-50%);
  width:60px; height:8px;
  background:#000;
  border-radius:4px;
  z-index:2;
}
.ap-phone__screen {
  position:absolute; inset:0;
  background: linear-gradient(160deg,#1A0A5E,#0D0530);
  display:flex; align-items:center; justify-content:center;
}
.ap-phone__screen-content { padding:16px; text-align:center; }
.ap-phone__sc-label  { font-size:8px; color:var(--grey-2); text-transform:uppercase; letter-spacing:.1em; margin-bottom:6px; }
.ap-phone__sc-title  { font-size:11px; font-weight:700; color:var(--white); margin-bottom:6px; }
.ap-phone__sc-body   { font-size:8px; color:var(--grey-2); margin-bottom:10px; }
.ap-phone__sc-btn {
  display:inline-block; padding:4px 10px;
  border:1px solid var(--border-md);
  border-radius:20px; font-size:8px; color:var(--white);
  background:transparent; cursor:pointer;
}
.ap-phone__hand {
  width:180px; height:160px;
  background: radial-gradient(ellipse at 40% 30%,#3B1F7A,#1A0A3A);
  border-radius: 0 0 40% 40%;
  margin-top:-20px;
  clip-path: polygon(15% 0,85% 0,100% 100%,0 100%);
  opacity:.85;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — SKILLS GRID
═══════════════════════════════════════════════════════════ */
.ap-features { background: var(--bg); }
.ap-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ap-feat-card {
  background: rgba(18,14,36,0.85);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  transition-delay: calc(var(--i) * 80ms);
}
.ap-feat-card::before {
  content:'';
  position:absolute;
  inset:0; border-radius:var(--r-card);
  background: radial-gradient(ellipse at 50% 120%, rgba(100,50,230,0.45) 0%, transparent 60%);
  opacity:0;
  transition: opacity 0.3s;
  pointer-events:none;
}
.ap-feat-card:hover { transform:scale(1.05); border-color:rgba(124,58,237,0.55); box-shadow:0 0 40px rgba(124,58,237,0.3); }
.ap-feat-card:hover::before { opacity:1; }
.ap-feat-card__top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:12px;
}
.ap-feat-card__num  { font-size:14px; font-weight:700; color:var(--white); }
.ap-feat-card__arrow { font-size:20px; color:var(--white); line-height:1; }
.ap-feat-card__body {
  font-size:12px;
  color: var(--grey-2);
  line-height:1.6;
  margin-bottom:16px;
  flex-grow:1;
}
.ap-feat-card__name {
  font-size:13px;
  font-weight:700;
  color:var(--white);
  margin-top:auto;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — CTA / WAITLIST
═══════════════════════════════════════════════════════════ */
.ap-cta {
  max-width:100%;
  padding:100px 40px;
  position:relative;
  overflow:hidden;
  background: linear-gradient(180deg,var(--bg) 0%, #1A0A5E 60%,#4B21A8 100%);
  text-align:center;
}
.ap-cta__grid-ceiling {
  position:absolute;
  top:0; left:50%; transform:translateX(-50%);
  width:800px; height:280px;
  background:
    linear-gradient(to bottom right, rgba(180,100,255,0.1) 1px, transparent 1px),
    linear-gradient(to bottom left,  rgba(180,100,255,0.1) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  pointer-events:none;
}
.ap-cta__inner { position:relative; z-index:1; max-width:560px; margin:0 auto; }
.ap-cta__title { font-size:38px; font-weight:700; color:var(--white); margin-bottom:12px; }
.ap-cta__sub   { font-size:13px; color:var(--grey-2); margin-bottom:32px; }
.ap-cta__pill  {
  display:flex;
  align-items:center;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--r-pill);
  overflow:hidden;
  max-width:420px;
  margin:0 auto 16px;
}
.ap-cta__input {
  flex:1; background:transparent; border:none; outline:none;
  padding:0 20px; height:50px;
  font-size:13px; color:var(--white); font-family:var(--font);
}
.ap-cta__input::placeholder { color:var(--grey-2); }
.ap-cta__submit {
  background:var(--purple); color:var(--white);
  padding:0 22px; height:50px;
  font-size:13px; font-weight:600;
  text-decoration:none;
  display:flex; align-items:center;
  transition:background 0.2s;
  white-space:nowrap;
}
.ap-cta__submit:hover { background:var(--purple-dim); }
.ap-cta__note { font-size:12px; color:rgba(255,255,255,0.35); }
.ap-cta__note strong { color:var(--white); }
.ap-violet { color:var(--violet); }

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — PROCESS
═══════════════════════════════════════════════════════════ */
.ap-platform {
  background: linear-gradient(180deg, #090618 0%, var(--bg) 100%);
}
.ap-platform__inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
  margin-bottom:64px;
}
.ap-platform__title {
  font-size:clamp(22px,3vw,28px);
  font-weight:700;
  color:var(--white);
  line-height:1.2;
  margin-bottom:10px;
}
.ap-platform__label { font-size:13px; color:var(--grey-2); margin-bottom:14px; }
.ap-platform__body  { font-size:13px; color:var(--grey-1); line-height:1.7; max-width:320px; margin-bottom:24px; }
.ap-platform__badge {
  font-size:18px;
  font-weight:600;
  color:var(--white);
  margin-top:24px;
}

/* Isometric layers */
.ap-platform__visual { display:flex; align-items:center; justify-content:center; }
.ap-layers { display:flex; flex-direction:column; gap:12px; perspective:600px; }
.ap-layer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 24px;
  background:#1A1030;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  font-size:12px;
  color:var(--white);
  transform: rotateX(20deg) rotateY(-5deg);
  transition: transform 0.4s var(--ease);
  opacity:0;
  transform: rotateX(20deg) rotateY(-5deg) translateX(60px);
}
.ap-layer.visible {
  opacity:1;
  transform: rotateX(20deg) rotateY(-5deg) translateX(0);
}
.ap-layer--1 { background:linear-gradient(90deg,#2D1580,#1A0A5E); transition-delay:.1s; }
.ap-layer--2 { background:linear-gradient(90deg,#1A1040,#0D0830); transition-delay:.25s; }
.ap-layer--3 { background:#14102A; transition-delay:.4s; }
.ap-layer__right { color:var(--grey-2); font-size:11px; }

/* Tabs */
.ap-tabs { border-top:1px solid var(--border); padding-top:40px; }
.ap-tabs__nav {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border-bottom:1px solid var(--border);
  margin-bottom:28px;
}
.ap-tab-btn {
  background:none; border:none; cursor:pointer;
  padding:14px 8px;
  text-align:left;
  border-top:3px solid transparent;
  transition:border-color 0.2s, color 0.2s;
  display:flex; flex-direction:column; gap:4px;
  font-family:var(--font);
}
.ap-tab-btn.active { border-top-color:var(--white); }
.ap-tab-btn__num { font-size:11px; color:var(--grey-3); }
.ap-tab-btn.active .ap-tab-btn__num { color:var(--grey-2); }
.ap-tab-btn__label { font-size:12px; color:var(--grey-2); font-weight:500; }
.ap-tab-btn.active .ap-tab-btn__label { color:var(--white); font-weight:700; }

.ap-tab-panel { display:none; animation:tab-in 0.3s var(--ease); }
.ap-tab-panel.active { display:block; }
@keyframes tab-in { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.ap-tab-panel h4 { font-size:15px; font-weight:700; color:var(--white); margin-bottom:10px; }
.ap-tab-panel p  { font-size:13px; color:var(--grey-1); max-width:600px; line-height:1.7; }

/* ═══════════════════════════════════════════════════════════
   SECTION 7 — PROJECTS
═══════════════════════════════════════════════════════════ */
.ap-projects { background:var(--bg); }
.ap-projects__grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto auto;
  gap:18px;
}
.ap-proj-card {
  background:rgba(18,14,36,0.85);
  border:1px solid var(--border);
  border-radius:var(--r-card);
  padding:28px;
  position:relative;
  overflow:hidden;
  transition:transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  transition-delay: calc(var(--i) * 100ms);
}
.ap-proj-card:hover {
  transform:translateY(-4px);
  border-color:rgba(124,58,237,0.4);
  box-shadow:0 20px 40px rgba(0,0,0,0.4);
}
.ap-proj-card--wide { grid-column:1 / -1; }
.ap-proj-card__orb {
  position:absolute;
  top:-20px; right:-20px;
  width:80px; height:80px;
  background:radial-gradient(ellipse,rgba(124,58,237,0.4),transparent);
  border-radius:50%;
}
.ap-proj-card__title { font-size:15px; font-weight:700; color:var(--white); margin-bottom:10px; }
.ap-proj-card__body  { font-size:13px; color:var(--grey-1); line-height:1.7; margin-bottom:14px; }
.ap-proj-card__tag {
  display:inline-block;
  padding:3px 12px;
  background:rgba(124,58,237,0.2);
  border:1px solid rgba(124,58,237,0.4);
  border-radius:20px;
  font-size:11px;
  color:var(--violet);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 8 — AI / TOOLS ORBITAL
═══════════════════════════════════════════════════════════ */
.ap-ai { background:linear-gradient(180deg,var(--bg) 0%,#0D0A20 100%); }
.ap-ai__inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}

/* Widget */
.ap-ai__widget {
  position:relative;
  width:340px; height:300px;
  background:linear-gradient(135deg,#1A0A5E,#0D0530);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:20px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  margin:0 auto;
}
.ap-ai__ring {
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.1);
  top:50%; left:50%;
  transform:translate(-50%,-50%);
}
.ap-ai__ring--1 { width:140px; height:140px; }
.ap-ai__ring--2 { width:220px; height:220px; border-style:dashed; border-color:rgba(255,255,255,0.06); }
.ap-ai__center {
  width:70px; height:70px;
  background:var(--purple-dim);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:var(--white);
  text-align:center; line-height:1.2;
  position:relative; z-index:2;
  box-shadow:0 0 30px rgba(124,58,237,0.6);
}
.ap-ai__orbit {
  position:absolute;
  inset:0;
  animation:orbit-spin 12s linear infinite;
}
.ap-ai__orbit:hover { animation-play-state:paused; }
@keyframes orbit-spin {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}
.ap-ai__icon {
  position:absolute;
  top:50%; left:50%;
  width:30px; height:30px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:50%;
  /* offset to orbit radius=110px, counter-rotate so icon stays upright */
  transform:
    rotate(var(--angle))
    translateX(110px)
    rotate(calc(-1 * var(--angle)));
}

/* Right text */
.ap-ai__title { font-size:clamp(20px,2.5vw,26px); font-weight:700; color:var(--white); margin-bottom:8px; }
.ap-ai__label { font-size:13px; color:var(--grey-2); margin-bottom:14px; }
.ap-ai__body  { font-size:13px; color:var(--grey-1); line-height:1.7; max-width:340px; margin-bottom:20px; }
.ap-ai__checks { list-style:none; margin-bottom:24px; display:flex; flex-direction:column; gap:10px; }
.ap-ai__checks li { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--grey-1); }
.ap-check-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px;
  background:#3B82F6; border-radius:50%;
  font-size:10px; color:var(--white); font-weight:700;
  flex-shrink:0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.ap-footer {
  background:#0A0614;
  border-top:1px solid var(--border);
  position:relative; z-index:1;
  padding:64px 40px 32px;
}
.ap-footer__inner {
  max-width:1280px; margin:0 auto;
  display:grid;
  grid-template-columns:280px 1fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:40px;
}
.ap-footer__logo { font-size:18px; font-weight:700; color:var(--white); margin-bottom:12px; }
.ap-footer__tagline { font-size:13px; color:var(--grey-2); line-height:1.6; max-width:220px; margin-bottom:20px; }
.ap-footer__cta { height:36px; padding:0 16px; font-size:12px; margin-bottom:24px; }
.ap-footer__socials-label { font-size:12px; color:var(--grey-2); margin-bottom:10px; font-weight:500; }
.ap-footer__socials { display:flex; gap:14px; }
.ap-footer__socials a { opacity:0.7; transition:opacity 0.2s; }
.ap-footer__socials a:hover { opacity:1; }

.ap-footer__col { display:flex; flex-direction:column; gap:2px; }
.ap-footer__col-title {
  font-size:14px; font-weight:600; color:var(--white);
  margin-bottom:14px;
}
.ap-footer__col a {
  font-size:12px; color:var(--grey-2);
  text-decoration:none;
  padding:4px 0;
  transition:color 0.2s;
}
.ap-footer__col a:hover { color:var(--white); }

.ap-footer__bottom {
  max-width:1280px; margin:0 auto;
  padding-top:24px;
  border-top:1px solid var(--border);
  font-size:12px;
  color:var(--grey-3);
  text-align:center;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width:1024px) {
  .ap-features__grid { grid-template-columns:1fr 1fr; }
  .ap-footer__inner  { grid-template-columns:1fr 1fr; }
  .ap-about__inner   { grid-template-columns:1fr; }
  .ap-platform__inner{ grid-template-columns:1fr; }
  .ap-ai__inner      { grid-template-columns:1fr; }
  .ap-tabs__nav      { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:768px) {
  .ap-section { padding:60px 20px; }
  .ap-nav__links, .ap-nav__cta { display:none; }
  .ap-nav__burger { display:flex; }
  .ap-nav__inner  { padding:0 20px; }
  .ap-features__grid { grid-template-columns:1fr; }
  .ap-projects__grid { grid-template-columns:1fr; }
  .ap-proj-card--wide { grid-column:auto; }
  .ap-hero__ctas { flex-direction:column; align-items:center; }
  .ap-orbital { width:320px; height:320px; }
  .ap-marquee-inner { font-size:40px; }
  .ap-tabs__nav { grid-template-columns:1fr 1fr; }
  .ap-footer__inner { grid-template-columns:1fr; }
  .ap-cta { padding:60px 20px; }
  .ap-ai__widget { width:90%; }
}

/* ═══════════════════════════════════════════════════════════
   REDUCE MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce) {
  .ap-cube { animation:none; }
  .ap-marquee-inner { animation:none; }
  .ap-ai__orbit { animation:none; }
  .reveal { transition:none; }
}
