/* =============================================
   PROGRAMS.CSS — APEX MENTORS
   Aesthetic: Vibrant, Card-based, Colorful Energy
   ============================================= */

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

:root {
  --bg: #F4F2EF;
  --white: #FFFFFF;
  --ink: #111111;
  --mid: #555555;
  --muted: #999999;
  --border: rgba(0,0,0,0.08);
  --blue: #2D5BE3;
  --emerald: #059669;
  --amber: #D97706;
  --rose: #E11D48;
  --violet: #7C3AED;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.4rem 0; background: rgba(244,242,239,0.92); backdrop-filter: blur(20px); transition: all 0.3s; }
.nav.scrolled { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 0.15rem; }
.logo-apex { font-family: var(--font-body); font-size: 1.4rem; font-weight: 700; color: var(--ink); letter-spacing: 0.08em; }
.logo-mentors { font-family: var(--font-body); font-size: 0.6rem; font-weight: 400; color: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; }
.nav-links { display: flex; list-style: none; gap: 2rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--mid); font-size: 0.85rem; font-weight: 400; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 1rem; padding: 0.6rem 1.4rem; background: var(--ink); color: var(--white); text-decoration: none; font-size: 0.8rem; font-weight: 500; border-radius: 100px; transition: background 0.3s; white-space: nowrap; }
.nav-cta:hover { background: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
.prog-hero { padding: 9rem 2rem 5rem; background: var(--ink); position: relative; overflow: hidden; }
.ph-bg { position: absolute; inset: 0; pointer-events: none; }
.ph-circle { position: absolute; border-radius: 50%; }
.c1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(45,91,227,0.15) 0%, transparent 70%); top: -200px; right: -100px; animation: spin1 20s linear infinite; }
.c2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(217,119,6,0.1) 0%, transparent 70%); bottom: -100px; left: 100px; animation: spin2 15s linear infinite reverse; }
@keyframes spin1 { from{transform:rotate(0deg) scale(1)} 50%{transform:rotate(180deg) scale(1.1)} to{transform:rotate(360deg) scale(1)} }
@keyframes spin2 { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.ph-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.ph-tag { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; }
.prog-hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; }
.prog-hero h1 em { color: #F59E0B; font-style: italic; }
.prog-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.5); max-width: 580px; line-height: 1.75; margin-bottom: 2.5rem; }

/* FILTER */
.prog-filter { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1.25rem; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: rgba(255,255,255,0.55); font-family: var(--font-body); font-size: 0.82rem; cursor: pointer; border-radius: 100px; transition: all 0.3s; }
.filter-btn:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.filter-btn.active { background: var(--white); color: var(--ink); border-color: var(--white); }

/* PROG GRID */
.prog-grid-section { padding: 5rem 2rem; }
.pg-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.prog-block {
  background: var(--white); border-radius: 12px; padding: 2.5rem;
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.6s ease both;
}
.prog-block:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.pb-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem; position: relative; }
.pb-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(45,91,227,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--blue); flex-shrink: 0; }
.pb-blue { background: rgba(45,91,227,0.1); color: var(--blue); }
.pb-emerald { background: rgba(5,150,105,0.1); color: var(--emerald); }
.pb-amber { background: rgba(217,119,6,0.1); color: var(--amber); }
.pb-rose { background: rgba(225,29,72,0.1); color: var(--rose); }
.pb-violet { background: rgba(124,58,237,0.1); color: var(--violet); }
.pb-header > div:nth-child(2) { flex: 1; }
.pb-tag { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.pb-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pb-badge { position: absolute; top: 0; right: 0; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(45,91,227,0.1); color: var(--blue); padding: 0.3rem 0.7rem; border-radius: 100px; white-space: nowrap; }
.pb-badge.popular { background: rgba(217,119,6,0.1); color: var(--amber); }
.pb-badge-gold { background: rgba(217,119,6,0.12); color: var(--amber); }

.pb-desc { font-size: 0.88rem; line-height: 1.8; color: var(--mid); margin-bottom: 1.5rem; }

.pb-details { background: var(--bg); border-radius: 8px; padding: 1.25rem; margin-bottom: 1.5rem; }
.pd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pd-item { display: flex; flex-direction: column; gap: 0.15rem; }
.pd-item i { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.2rem; }
.pd-item strong { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.pd-item span { font-size: 0.85rem; color: var(--ink); font-weight: 500; }

.pb-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 2rem; }
.pf-item { font-size: 0.82rem; color: var(--mid); display: flex; align-items: center; gap: 0.5rem; }
.pf-item i { color: var(--emerald); font-size: 0.7rem; flex-shrink: 0; }

.pb-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--blue); color: var(--white); text-decoration: none; padding: 0.75rem 1.75rem; font-size: 0.85rem; font-weight: 500; border-radius: 6px; transition: all 0.3s; font-family: var(--font-body); }
.pb-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(45,91,227,0.3); }
.pb-cta-blue { background: var(--blue); }
.pb-cta-blue:hover { box-shadow: 0 8px 25px rgba(45,91,227,0.3); }
.pb-cta-emerald { background: var(--emerald); }
.pb-cta-emerald:hover { box-shadow: 0 8px 25px rgba(5,150,105,0.3); }
.pb-cta-amber { background: var(--amber); }
.pb-cta-amber:hover { box-shadow: 0 8px 25px rgba(217,119,6,0.3); }
.pb-cta-rose { background: var(--rose); }
.pb-cta-rose:hover { box-shadow: 0 8px 25px rgba(225,29,72,0.3); }
.pb-cta-violet { background: var(--violet); }
.pb-cta-violet:hover { box-shadow: 0 8px 25px rgba(124,58,237,0.3); }

/* PROCESS */
.process-section { padding: 7rem 2rem; background: var(--white); }
.process-inner { max-width: 1280px; margin: 0 auto; }
.section-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: 1rem; }
.process-inner h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--ink); margin-bottom: 4rem; }
.process-steps { display: flex; align-items: flex-start; gap: 0; }
.ps-step { flex: 1; padding: 2rem; position: relative; }
.ps-num { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: rgba(0,0,0,0.05); line-height: 1; margin-bottom: 1rem; }
.ps-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(45,91,227,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--blue); margin-bottom: 1.25rem; }
.ps-step h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.ps-step p { font-size: 0.86rem; line-height: 1.75; color: var(--mid); }
.ps-arrow { padding: 6rem 0.5rem 0; color: var(--muted); font-size: 1rem; flex-shrink: 0; }

/* PROG CTA */
.prog-cta { padding: 6rem 2rem; background: var(--ink); text-align: center; }
.pc-inner { max-width: 600px; margin: 0 auto; }
.pc-inner h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.pc-inner p { font-size: 1rem; color: rgba(255,255,255,0.45); margin-bottom: 2.5rem; line-height: 1.75; }
.btn-main { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--blue); color: var(--white); text-decoration: none; padding: 1rem 2.5rem; font-size: 0.95rem; font-weight: 500; border-radius: 6px; transition: all 0.3s; }
.btn-main:hover { background: #3D6CF0; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(45,91,227,0.4); }

/* FOOTER */
.footer { background: #0A0A0A; border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-apex { color: var(--white); }
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.3); line-height: 1.7; margin-top: 0.75rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; text-decoration: none; transition: all 0.3s; }
.social-links a:hover { border-color: var(--blue); color: var(--blue); }
.footer-links h4 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { text-decoration: none; font-size: 0.84rem; color: rgba(255,255,255,0.35); transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-contact h4 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.footer-contact p { font-size: 0.83rem; color: rgba(255,255,255,0.35); margin-bottom: 0.7rem; display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.5; }
.footer-contact i { color: var(--blue); width: 12px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.2); flex-wrap: wrap; gap: 1rem; }
.footer-bottom i { color: var(--blue); }

/* SLIDE IN */
.slide-in { opacity: 0; transform: translateX(-30px); animation: slideIn 0.8s var(--ease) forwards; }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pg-inner { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .ps-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .pb-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
