/* ==========================================================================
   Parthmax.tech — Main Styles (main.css)
   AI System Wake-up Animations, Interactive Telemetry, & Responsive Layouts
   ========================================================================== */

section { padding-block: 85px; }

.section-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section-intro {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

/* ==========================================================================
   Global Section Styles
   ========================================================================== */


/* --- CHAPTERS COMPONENT --- */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chapter {
  position: relative; min-height: 250px; padding: 28px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); border-radius: 8px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.chapter:hover { z-index: 1; border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }
.chapter-number { display: block; margin-bottom: 34px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.chapter-date { display: block; margin-bottom: 10px; color: var(--blue); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.chapter h3 { margin-bottom: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.chapter p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* --- ARSENAL SKILLS GRID --- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card { padding: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); border-radius: 8px; }
.skill-card h3 { margin-bottom: 14px; color: var(--blue); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { padding: 5px 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-family: var(--mono); font-size: 11px; border-radius: 4px; }

/* --- ZENCIA STACK SECTION --- */
.stack-section { position: relative; overflow: hidden; color: var(--white); background: var(--ink); border-radius: 12px; }
.stack-section::after {
  content: "ZENCIA AI"; position: absolute; right: -30px; bottom: -80px; color: rgba(255, 255, 255, 0.035);
  font-size: clamp(90px, 16vw, 240px); font-weight: 800; line-height: 1; letter-spacing: -0.09em; white-space: nowrap;
}
.stack-section .section-intro { color: #a1a1aa; }
.stack-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stack-card { padding: 28px; border: 1px solid #27272a; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }
.stack-card .code {
  display: inline-grid; place-items: center; width: 36px; aspect-ratio: 1; margin-bottom: 18px;
  color: var(--white); background: var(--blue); font-family: var(--mono); font-size: 12px; font-weight: 700; border-radius: 4px;
}
.stack-card h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -0.03em; }
.stack-card p { margin-bottom: 0; color: #a1a1aa; font-size: 14.5px; line-height: 1.6; }

/* --- FOOTPRINT & PROJECTS GRID --- */
.footprint { padding-block: 0 50px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }
.stat { padding: 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.stat:last-child { border-right: 0; }
.stat strong { font-size: clamp(28px, 3.5vw, 44px); line-height: 1; letter-spacing: -0.05em; }
.stat span { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 8px; }

.use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.use-card { padding: 32px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; transition: transform .18s ease, box-shadow .18s ease; }
.use-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); }
.use-card .code { display: inline-grid; place-items: center; width: 36px; aspect-ratio: 1; margin-bottom: 24px; color: var(--white); background: var(--ink); font-family: var(--mono); font-size: 12px; border-radius: 4px; }
.use-card .tag { display: inline-block; margin-bottom: 12px; color: var(--blue); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.use-card h3 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 10px; }
.use-card p { margin-bottom: 18px; color: var(--muted); line-height: 1.6; }
.use-card a { font-family: var(--mono); font-size: 12px; font-weight: 600; text-decoration: none; color: var(--blue); }
.use-card a:hover { text-decoration: underline; }

/* --- ACHIEVEMENTS GRID --- */
.achieve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.achieve-card { padding: 28px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); border-radius: 8px; }
.achieve-card h3 { margin-bottom: 12px; font-size: 20px; letter-spacing: -0.03em; }
.achieve-card p, .achieve-card ul { color: var(--muted); margin-bottom: 0; line-height: 1.6; }
.achieve-card ul { padding-left: 18px; }
.achieve-card li { margin-bottom: 6px; }
.achieve-card a { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }

/* --- CTA SECTION --- */
.cta-box {
  position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: center;
  overflow: hidden; padding: clamp(36px, 6vw, 70px); border: 1px solid var(--ink); background: var(--white);
  box-shadow: 10px 10px 0 var(--blue); border-radius: 12px;
}
.cta-actions { position: relative; display: grid; gap: 12px; }

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual-stage { margin-top: 20px; }
  .section-head, .cta-box { grid-template-columns: 1fr; }
  .hero-metrics-bar { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .chapters, .skills-grid, .achieve-grid, .stack-grid, .use-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-metrics-bar { grid-template-columns: 1fr; gap: 14px; }
  .floating-capabilities-card, .handwritten-note { display: none; }
  .chapters, .skills-grid, .achieve-grid, .stack-grid, .use-grid, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
