/*
Theme Name: Zero Manifold
Description: A minimal, futuristic dark portfolio theme. Terminal aesthetics, void-space composition, electric cyan on absolute black.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zero-manifold
*/

/* ============================================================
   BASE
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  background: #000000;
  color: #EBEBEB;
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
}

/* Footer margin reset */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Remove default block top margin on homepage sections */
.wp-site-blocks > .wp-block-group {
  margin-block-start: 0;
}

/* ============================================================
   EQUAL CARDS
   ============================================================ */

.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px 48px !important;
  border-bottom: 1px solid rgba(0, 217, 255, 0.07);
}

.site-header .wp-block-site-title,
.site-header .wp-block-site-title a {
  font-family: 'Space Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: rgba(0, 217, 255, 0.65) !important;
  letter-spacing: 0.1em;
  text-decoration: none !important;
}

.site-header .wp-block-navigation,
.site-header .wp-block-navigation .wp-block-navigation-item__content {
  font-family: 'Space Mono', monospace !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.38) !important;
  letter-spacing: 0.07em;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: #00D9FF !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  padding: 120px 48px 60px !important;
  background: #000000;
}

/* Dashed divider line between left content and void circle */
.hero-section::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: calc(55% - 20px);
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 217, 255, 0.1) 0px,
    rgba(0, 217, 255, 0.1) 5px,
    transparent 5px,
    transparent 13px
  );
  z-index: 5;
  pointer-events: none;
}

.hero-left-panel {
  position: relative;
  z-index: 10;
  width: 55%;
  max-width: 680px;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.hero-label {
  font-size: 11px !important;
  color: rgba(0, 217, 255, 0.5) !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 28px !important;
  margin-top: 0 !important;
}

.hero-name {
  font-size: clamp(44px, 5.5vw, 72px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  line-height: 1 !important;
  margin-bottom: 20px !important;
  margin-top: 0 !important;
}

/* Blinking block cursor after name */
.hero-name::after {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 0.82em;
  background: #00D9FF;
  margin-left: 7px;
  vertical-align: middle;
  animation: cursorBlink 0.8s step-end infinite;
}

.hero-title {
  font-size: 14px !important;
  color: #888888 !important;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 12px !important;
  color: #4a4a4a !important;
  margin-bottom: 44px !important;
  margin-top: 0 !important;
}

.hero-cta-btn .wp-block-button__link {
  font-family: 'Space Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #00D9FF !important;
  border: 1px solid rgba(0, 217, 255, 0.7) !important;
  background: transparent !important;
  padding: 13px 26px !important;
  letter-spacing: 0.14em !important;
  border-radius: 0 !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
  text-decoration: none !important;
}

.hero-cta-btn .wp-block-button__link:hover {
  background: rgba(0, 217, 255, 0.08) !important;
  border-color: #00D9FF !important;
}

/* ============================================================
   VOID CIRCLE
   ============================================================ */

.void-circle-wrap {
  position: absolute !important;
  right: -210px;
  top: 50%;
  transform: translateY(-50%);
  width: 650px !important;
  height: 650px !important;
  min-height: 0 !important;
  pointer-events: none;
  padding: 0 !important;
}

.void-circle {
  position: absolute !important;
  inset: 0;
  width: 650px !important;
  height: 650px !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  background: #050505 !important;
  border: 1px solid rgba(0, 217, 255, 0.18) !important;
  padding: 0 !important;
}

.orbital-ring {
  position: absolute !important;
  inset: 0;
  width: 650px !important;
  height: 650px !important;
  min-height: 0 !important;
  border-radius: 50%;
  padding: 0 !important;
  animation: orbitRotate 32s linear infinite;
}

.orbital-char {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: rgba(0, 217, 255, 0.4);
  white-space: nowrap;
  transform-origin: 0 0;
  line-height: 1;
  letter-spacing: 0;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-label {
  font-size: 10px !important;
  color: rgba(0, 217, 255, 0.55) !important;
  letter-spacing: 0.16em !important;
  margin-bottom: 20px !important;
  margin-top: 0 !important;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
  background: #080808 !important;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
  border-top: 1px solid rgba(0, 217, 255, 0.06);
}

.about-statement {
  font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
  font-weight: 700 !important;
  color: #EBEBEB !important;
  line-height: 1.25 !important;
  padding-right: 3rem;
  margin-top: 0 !important;
}

.about-body {
  font-size: 0.8125rem !important;
  color: #5a5a5a !important;
  line-height: 1.85 !important;
  margin-bottom: 1.25rem !important;
  margin-top: 0 !important;
}

.about-body:last-child {
  margin-bottom: 0 !important;
}

/* ============================================================
   WORK / PROJECTS SECTION
   ============================================================ */

.work-section {
  background: #000000 !important;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
  border-top: 1px solid rgba(0, 217, 255, 0.06);
}

.project-card {
  border: 1px solid #181818 !important;
  padding: 2rem !important;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: default;
  background: transparent !important;
}

.project-card:hover {
  border-color: rgba(0, 217, 255, 0.35) !important;
  background: rgba(0, 217, 255, 0.018) !important;
}

.project-number {
  font-size: 10px !important;
  color: #00D9FF !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 1.25rem !important;
  margin-top: 0 !important;
}

.project-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #EBEBEB !important;
  margin-bottom: 0.875rem !important;
  margin-top: 0 !important;
  line-height: 1.3 !important;
}

.project-desc {
  font-size: 0.8125rem !important;
  color: #5a5a5a !important;
  line-height: 1.75 !important;
  margin-bottom: 1.75rem !important;
  margin-top: 0 !important;
}

.project-link {
  font-size: 10px !important;
  color: rgba(0, 217, 255, 0.7) !important;
  letter-spacing: 0.12em !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  transition: color 0.2s ease;
}

.project-card:hover .project-link {
  color: #00D9FF !important;
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */

.timeline-section {
  background: #080808 !important;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
  border-top: 1px solid rgba(0, 217, 255, 0.06);
}

.timeline-list {
  position: relative;
  padding-left: 2.5rem !important;
  max-width: 760px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(0, 217, 255, 0.6),
    rgba(0, 217, 255, 0.08)
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 2.75rem !important;
}

.timeline-item:last-child {
  padding-bottom: 0 !important;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 7px;
  width: 6px;
  height: 6px;
  background: #00D9FF;
  border-radius: 50%;
  transform: translateX(-2.5px);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.timeline-year {
  font-size: 10px !important;
  color: #00D9FF !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
}

.timeline-role {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #EBEBEB !important;
  margin-bottom: 0.5rem !important;
  margin-top: 0 !important;
  line-height: 1.3 !important;
}

.timeline-desc {
  font-size: 0.8125rem !important;
  color: #5a5a5a !important;
  line-height: 1.75 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

/* ============================================================
   WRITING / BLOG SECTION
   ============================================================ */

.writing-section {
  background: #000000 !important;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
  border-top: 1px solid rgba(0, 217, 255, 0.06);
}

.post-card {
  border: 1px solid #181818 !important;
  padding: 2rem !important;
  background: transparent !important;
  transition: border-color 0.3s ease;
}

.post-card:hover {
  border-color: rgba(0, 217, 255, 0.28) !important;
}

.post-date {
  font-size: 9px !important;
  color: #3a3a3a !important;
  letter-spacing: 0.14em !important;
  margin-bottom: 0.875rem !important;
  margin-top: 0 !important;
}

.post-title {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #EBEBEB !important;
  margin-bottom: 0.75rem !important;
  margin-top: 0 !important;
  line-height: 1.3 !important;
}

.post-excerpt {
  font-size: 0.8125rem !important;
  color: #5a5a5a !important;
  line-height: 1.75 !important;
  margin-bottom: 1.5rem !important;
  margin-top: 0 !important;
}

.post-link {
  font-size: 10px !important;
  color: rgba(0, 217, 255, 0.65) !important;
  letter-spacing: 0.12em !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  transition: color 0.2s ease;
}

.post-card:hover .post-link {
  color: #00D9FF !important;
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */

.cta-section {
  background: #000000 !important;
  padding-top: 8rem !important;
  padding-bottom: 8rem !important;
  border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.cta-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
  font-weight: 700 !important;
  color: #EBEBEB !important;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em;
}

.cta-sub {
  font-size: 0.8125rem !important;
  color: #555555 !important;
  margin-bottom: 2.5rem !important;
  margin-top: 0 !important;
}

.cta-contact-btn .wp-block-button__link {
  font-family: 'Space Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #00D9FF !important;
  border: 1px solid rgba(0, 217, 255, 0.7) !important;
  background: transparent !important;
  padding: 15px 34px !important;
  letter-spacing: 0.14em !important;
  border-radius: 0 !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
  text-decoration: none !important;
}

.cta-contact-btn .wp-block-button__link:hover {
  background: rgba(0, 217, 255, 0.08) !important;
  border-color: #00D9FF !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #000000 !important;
  padding: 22px 48px !important;
  border-top: 1px solid rgba(0, 217, 255, 0.1) !important;
}

.footer-logo {
  font-size: 10px !important;
  color: rgba(0, 217, 255, 0.45) !important;
  letter-spacing: 0.1em !important;
  margin: 0 !important;
}

.footer-copy {
  font-size: 9px !important;
  color: #333333 !important;
  letter-spacing: 0.08em !important;
  margin: 0 !important;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */

.page-title-section {
  background: #000000 !important;
  padding-top: 9rem !important;
  padding-bottom: 3rem !important;
  border-bottom: 1px solid rgba(0, 217, 255, 0.07);
}

.page-title-section .wp-block-post-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: #EBEBEB !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.page-title-section .wp-block-post-title::before {
  content: '> ';
  color: #00D9FF;
  font-weight: 400;
}

.page-content-section {
  background: #000000 !important;
  padding-top: 4rem !important;
  padding-bottom: 7rem !important;
}

.page-content-section .wp-block-post-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 1.5rem;
}

.page-content-section .wp-block-post-content h2,
.page-content-section .wp-block-post-content h3 {
  color: #EBEBEB;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero is always visible — no scroll trigger needed */
.hero-section,
.hero-section.animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger for card columns */
.stagger-children > .wp-block-column {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.is-visible > .wp-block-column:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.05s;
}
.stagger-children.is-visible > .wp-block-column:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 0.15s;
}
.stagger-children.is-visible > .wp-block-column:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 0.25s;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   EDITOR VISIBILITY
   ============================================================ */

.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > .wp-block-column {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.editor-styles-wrapper .hero-name::after {
  animation: none;
}

.editor-styles-wrapper .orbital-ring {
  animation: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .stagger-children > .wp-block-column {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-name::after {
    animation: none;
    opacity: 1;
  }
  .orbital-ring {
    animation-play-state: paused;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .site-header {
    padding: 18px 24px !important;
  }

  .hero-section {
    padding: 110px 24px 48px !important;
    min-height: auto;
  }

  .hero-section::after {
    display: none;
  }

  .hero-left-panel {
    width: 100%;
    max-width: 100%;
  }

  .void-circle-wrap {
    display: none !important;
  }

  .about-statement {
    padding-right: 0;
  }

  .site-footer {
    padding: 20px 24px !important;
    flex-direction: column !important;
    gap: 8px;
    text-align: center;
  }
}
