/* ============================================================
   PAGES.CSS — Page-specific layouts & structural components
   Kabongelo Portfolio v6.0
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   PAGE HERO — Full-viewport architectural header
   ══════════════════════════════════════════════════════════════ */

.page-hero {
  position:    relative;
  min-height:  clamp(380px, 52vh, 600px);
  display:     flex;
  align-items: flex-end;
  padding:     0;
  overflow:    hidden;
  background:  var(--obsidian);
}

/* Architectural grid background */
.page-hero::before {
  content:  '';
  position: absolute;
  inset:    0;
  background-image:
    linear-gradient(rgba(240, 240, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 240, 250, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
  pointer-events: none;
}

/* Radial ambient glow */
.page-hero::after {
  content:  '';
  position: absolute;
  top:      -20%;
  right:    10%;
  width:    500px;
  height:   500px;
  background: radial-gradient(circle, rgba(0, 245, 195, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index:  2;
  width:    min(1320px, 92vw);
  margin:   0 auto;
  padding:  clamp(80px, 10vw, 120px) 0 clamp(48px, 6vw, 72px);
}

/* Breadcrumb */
.page-breadcrumb {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.18em;
  color:          rgba(240, 240, 250, 0.35);
  margin-bottom:  24px;
  display:        flex;
  align-items:    center;
  gap:            8px;
}

.page-breadcrumb a {
  color:           inherit;
  text-decoration: none;
  transition:      color 0.25s;
}
.page-breadcrumb a:hover { color: var(--cyan); }

.page-breadcrumb .sep { opacity: 0.4; }

/* Hero section label */
.page-hero .section-label {
  margin-bottom: 16px;
}

/* Page title */
.page-title {
  font-family:     var(--font-display);
  font-weight:     800;
  font-size:       clamp(48px, 8vw, 100px);
  line-height:     0.92;
  letter-spacing:  -0.04em;
  color:           var(--white);
  margin-bottom:   clamp(20px, 3vw, 32px);
}

.page-title .accent    { color: var(--cyan); }
.page-title .accent-g  { color: var(--gold); }

.page-subtitle {
  font-family:  var(--font-body);
  font-size:    clamp(15px, 1.5vw, 18px);
  color:        var(--muted);
  line-height:  1.65;
  max-width:    520px;
  margin-bottom: 0;
}

/* Hero horizontal rule */
.page-hero-rule {
  width:           100%;
  height:          1px;
  background:      linear-gradient(90deg, rgba(0, 245, 195, 0.35), transparent 60%);
  margin-top:      clamp(32px, 4vw, 48px);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════ */

#about-intro {
  background:  var(--surface);
  padding:     var(--section-pad) 0;
}

.about-intro-grid {
  display:             grid;
  grid-template-columns: 1fr 1.2fr;
  gap:                 clamp(48px, 8vw, 120px);
  align-items:         start;
}

@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; }
}

/* Profile photo block */
.about-photo-block {
  position:   relative;
  max-width:  360px;
  align-self: start;
  top:        0;
}

@media (min-width: 900px) {
  .about-photo-block { position: sticky; top: 100px; }
}

.about-photo-frame {
  position:     relative;
  aspect-ratio: 3/4;
  overflow:     hidden;
  background:   var(--obsidian);
}

.about-photo-frame img {
  width:        100%;
  height:       100%;
  object-fit:   cover;
  object-position: top center;
  display:      block;
  filter:       grayscale(0.2) contrast(1.06) brightness(0.95);
  transition:
    filter    0.8s var(--ease-expo),
    transform 0.8s var(--ease-expo);
}

.about-photo-block:hover .about-photo-frame img {
  filter:    grayscale(0) contrast(1.08) brightness(1.02);
  transform: scale(1.03);
}

/* Corner brackets */
.photo-corner {
  position:    absolute;
  width:       28px;
  height:      28px;
  border-color: var(--cyan);
  border-style: solid;
  z-index:     3;
  transition:  width 0.4s var(--spring), height 0.4s var(--spring);
}
.photo-corner.tl { top: -2px;    left: -2px;   border-width: 2px 0 0 2px; }
.photo-corner.br { bottom: -2px; right: -2px;  border-width: 0 2px 2px 0; }

.about-photo-block:hover .photo-corner { width: 36px; height: 36px; }

/* Photo availability badge */
.about-avail-badge {
  position:    absolute;
  bottom:      -16px;
  right:       -16px;
  z-index:     4;
}

/* About text column */
.about-text-col .section-title { margin-bottom: clamp(24px, 3vw, 36px); }

.about-bio p {
  font-size:     clamp(15px, 1.4vw, 17px);
  color:         var(--muted);
  line-height:   1.85;
  margin-bottom: 22px;
}
.about-bio p strong { color: var(--white); font-weight: 500; }
.about-bio p:last-child { margin-bottom: 0; }

/* Values grid */
#about-values {
  background: var(--obsidian);
  padding:    var(--section-pad) 0;
}

.about-values-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
}

@media (max-width: 768px) {
  .about-values-grid { grid-template-columns: 1fr; }
}

/* Skills grid for about page */
#about-skills {
  background: var(--surface);
  padding:    clamp(48px, 6vw, 80px) 0;
}

.about-skills-inner {
  display:         flex;
  flex-wrap:       wrap;
  gap:             10px;
}

/* CTA section */
#about-cta {
  background: var(--obsidian);
  padding:    clamp(56px, 8vw, 96px) 0;
  text-align: center;
}

.about-cta-title {
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      clamp(32px, 5vw, 64px);
  letter-spacing: -0.03em;
  margin-bottom:  clamp(20px, 3vw, 36px);
}

.about-cta-buttons {
  display:     flex;
  gap:         16px;
  justify-content: center;
  flex-wrap:   wrap;
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO PAGE
   ══════════════════════════════════════════════════════════════ */

#portfolio-main {
  background: var(--obsidian);
  padding:    var(--section-pad) 0;
}

/* Stats row */
.portfolio-stats {
  display:             grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                 2px;
  margin-bottom:       clamp(48px, 6vw, 72px);
}

@media (max-width: 600px) {
  .portfolio-stats { grid-template-columns: 1fr; }
}

.portfolio-stat-item {
  padding:      clamp(20px, 2.5vw, 28px);
  text-align:   center;
}

.portfolio-stat-val {
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  color:          var(--white);
  margin-bottom:  4px;
}

.portfolio-stat-val .num-cyan { color: var(--cyan); }
.portfolio-stat-val .num-gold { color: var(--gold); }

.portfolio-stat-label {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   VIDEOS PAGE
   ══════════════════════════════════════════════════════════════ */

#videos-main {
  background: var(--obsidian);
  padding:    var(--section-pad) 0;
}

/* Featured video player */
.video-featured-wrap {
  margin-bottom:  clamp(48px, 6vw, 80px);
  position:       relative;
}

.video-featured-player {
  position:    relative;
  aspect-ratio: 16/9;
  overflow:    hidden;
}

.video-featured-player video {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.video-featured-player video:focus { outline: 2px solid var(--cyan); }

.video-featured-info {
  padding:     clamp(24px, 3vw, 36px);
  margin-top:  2px;
}

.video-featured-title {
  font-family:    var(--font-display);
  font-weight:    700;
  font-size:      clamp(18px, 2.5vw, 28px);
  color:          var(--white);
  letter-spacing: -0.01em;
  margin-bottom:  8px;
}

.video-featured-meta {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.12em;
  color:          var(--gold);
  text-transform: uppercase;
}

.video-featured-desc {
  margin-top:  16px;
  font-size:   14px;
  color:       var(--muted);
  line-height: 1.7;
  max-width:   600px;
}

/* Video grid */
.video-section-title {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color:          var(--cyan);
  margin-bottom:  24px;
  display:        flex;
  align-items:    center;
  gap:            12px;
}
.video-section-title::after {
  content: '';
  display: block;
  flex:    1;
  height:  1px;
  background: linear-gradient(90deg, rgba(0,245,195,0.3), transparent);
}

.video-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
}

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-thumb-card {
  position:     relative;
  aspect-ratio: 4/3;
  overflow:     hidden;
}

.video-thumb-card img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.6s var(--ease-expo), filter 0.4s;
}

.video-thumb-card:hover img {
  transform: scale(1.05);
  filter:    brightness(0.7);
}

.video-thumb-overlay {
  position:        absolute;
  inset:           0;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  padding:         20px;
  background:      linear-gradient(to top, rgba(7,7,14,0.85) 0%, rgba(7,7,14,0.20) 60%, transparent 100%);
}

.video-thumb-label {
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--cyan);
  margin-bottom:  6px;
  opacity:        0;
  transform:      translateY(6px);
  transition:     opacity 0.3s, transform 0.3s var(--ease-expo);
}

.video-thumb-card:hover .video-thumb-label {
  opacity:   1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.video-thumb-title {
  font-family:  var(--font-display);
  font-weight:  700;
  font-size:    clamp(13px, 1.5vw, 16px);
  color:        var(--white);
  line-height:  1.25;
}

/* ══════════════════════════════════════════════════════════════
   EXPERIENCE PAGE
   ══════════════════════════════════════════════════════════════ */

#experience-main {
  background: var(--obsidian);
  padding:    var(--section-pad) 0;
}

#skills-main {
  background: var(--surface);
  padding:    var(--section-pad) 0;
}

#edu-main {
  background: var(--obsidian);
  padding:    var(--section-pad) 0;
}

.edu-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   2px;
}

@media (max-width: 768px) {
  .edu-grid { grid-template-columns: 1fr; }
}

.edu-label {
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color:          var(--cyan);
  margin-bottom:  16px;
}

.edu-degree {
  font-family:    var(--font-display);
  font-weight:    700;
  font-size:      clamp(16px, 2vw, 22px);
  color:          var(--white);
  letter-spacing: -0.01em;
  margin-bottom:  6px;
  line-height:    1.2;
}

.edu-institution {
  font-family:    var(--font-mono);
  font-size:      12px;
  color:          var(--gold);
  letter-spacing: 0.08em;
  margin-bottom:  12px;
}

.edu-year {
  font-family:    var(--font-mono);
  font-size:      11px;
  color:          var(--muted);
  letter-spacing: 0.10em;
  margin-bottom:  16px;
}

.edu-desc {
  font-size:   14px;
  color:       var(--muted);
  line-height: 1.7;
}

/* Language bars */
.lang-item {
  margin-bottom: 20px;
}

.lang-header {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  margin-bottom:   8px;
}

.lang-name {
  font-size:   14px;
  color:       var(--white);
  font-weight: 500;
}

.lang-level {
  font-family:    var(--font-mono);
  font-size:      11px;
  color:          var(--gold);
  letter-spacing: 0.08em;
}

.lang-bar {
  height:     2px;
  background: rgba(240, 240, 250, 0.08);
  position:   relative;
  overflow:   hidden;
}

.lang-bar-fill {
  position:   absolute;
  top:        0;
  left:       0;
  height:     100%;
  width:      0%;
  background: linear-gradient(90deg, var(--gold), rgba(255, 184, 77, 0.4));
  transition: width 1.2s var(--ease-expo);
}

/* CV download CTA */
#exp-cta {
  background:  var(--surface);
  padding:     clamp(48px, 6vw, 80px) 0;
  text-align:  center;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */

#contact-main {
  background: var(--obsidian);
  padding:    var(--section-pad) 0;
}

.contact-glass-grid {
  display:             grid;
  grid-template-columns: 1fr 1.1fr;
  gap:                 2px;
  align-items:         start;
}

@media (max-width: 900px) {
  .contact-glass-grid { grid-template-columns: 1fr; }
}

.contact-glass-panel {
  padding: clamp(32px, 4vw, 56px);
  height:  100%;
}

.contact-panel-title {
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  color:          var(--white);
  line-height:    1.1;
  margin-bottom:  16px;
}

.contact-panel-desc {
  font-size:     clamp(14px, 1.3vw, 16px);
  color:         var(--muted);
  line-height:   1.75;
  margin-bottom: 32px;
}

.contact-info-list {
  display:        flex;
  flex-direction: column;
  gap:            4px;
  margin-bottom:  32px;
}

/* Availability strip */
.contact-avail-strip {
  padding:      12px 16px;
  margin-top:   24px;
  display:      flex;
  align-items:  center;
  justify-content: space-between;
  flex-wrap:    wrap;
  gap:          12px;
}

.contact-avail-text {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.12em;
  color:          var(--muted);
}

.contact-response-note {
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 0.10em;
  color:          rgba(240, 240, 250, 0.30);
  margin-top:     20px;
}

/* Contact form panel */
.contact-form-panel {
  padding: clamp(32px, 4vw, 56px);
}

/* ══════════════════════════════════════════════════════════════
   SINGLE PROJECT PAGE
   ══════════════════════════════════════════════════════════════ */

#single-hero {
  position:    relative;
  height:      clamp(420px, 60vh, 700px);
  overflow:    hidden;
  background:  var(--obsidian);
}

.single-hero-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  filter:     brightness(0.75) saturate(0.85);
  transition: transform 0.8s var(--ease-expo);
}

#single-hero:hover .single-hero-img { transform: scale(1.02); }

.single-hero-overlay {
  position:    absolute;
  inset:       0;
  background:  linear-gradient(
    to top,
    rgba(7, 7, 14, 0.92) 0%,
    rgba(7, 7, 14, 0.50) 45%,
    rgba(7, 7, 14, 0.18) 100%
  );
  display:        flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:        clamp(32px, 5vw, 64px) min(5vw, 64px);
}

.single-back-btn {
  position:        absolute;
  top:             clamp(90px, 10vw, 120px);
  left:            min(5vw, 64px);
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  font-family:     var(--font-mono);
  font-size:       11px;
  letter-spacing:  0.14em;
  text-transform:  uppercase;
  color:           var(--muted);
  text-decoration: none;
  padding:         10px 18px;
  border:          0.5px solid var(--glass-border);
  background:      rgba(7, 7, 14, 0.50);
  backdrop-filter: blur(8px);
  transition:      color 0.3s, border-color 0.3s, background 0.3s;
}
.single-back-btn:hover {
  color:        var(--cyan);
  border-color: rgba(0, 245, 195, 0.35);
  background:   rgba(0, 245, 195, 0.05);
}

.single-hero-tag {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--cyan);
  margin-bottom:  12px;
}

.single-hero-title {
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      clamp(32px, 5.5vw, 72px);
  letter-spacing: -0.03em;
  color:          var(--white);
  line-height:    0.95;
  margin-bottom:  12px;
}

.single-hero-meta {
  font-family:    var(--font-mono);
  font-size:      12px;
  color:          var(--gold);
  letter-spacing: 0.10em;
  display:        flex;
  gap:            16px;
  flex-wrap:      wrap;
}

/* Single content */
#single-content {
  background: var(--surface);
  padding:    var(--section-pad) 0;
}

.single-content-grid {
  display:             grid;
  grid-template-columns: 2fr 1fr;
  gap:                 clamp(40px, 6vw, 80px);
  align-items:         start;
}

@media (max-width: 900px) {
  .single-content-grid { grid-template-columns: 1fr; }
}

.single-desc {
  font-size:    clamp(15px, 1.4vw, 17px);
  color:        var(--muted);
  line-height:  1.85;
  border-left:  2px solid rgba(0, 245, 195, 0.20);
  padding-left: 24px;
  margin-bottom: 36px;
}

.single-missions-title {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color:          rgba(240, 240, 250, 0.35);
  margin-bottom:  16px;
}

.single-missions {
  display:   flex;
  flex-wrap: wrap;
  gap:       8px;
}

/* Single sidebar */
.single-sidebar-kpi {
  padding:      clamp(20px, 2.5vw, 28px);
  text-align:   center;
  margin-bottom: 2px;
}

.single-kpi-val {
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      clamp(28px, 4vw, 44px);
  color:          var(--cyan);
  margin-bottom:  8px;
  letter-spacing: -0.02em;
}

.single-kpi-label {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--muted);
}

/* Next/prev nav */
#single-nav {
  background: var(--obsidian);
  border-top: 0.5px solid var(--glass-border);
  padding:    0;
}

.single-nav-grid {
  display:             grid;
  grid-template-columns: 1fr 1fr;
}

.single-nav-btn {
  display:         block;
  padding:         clamp(24px, 3.5vw, 44px) clamp(24px, 4vw, 56px);
  text-decoration: none;
  border-right:    0.5px solid var(--glass-border);
  transition:      background 0.35s;
}
.single-nav-btn:last-child { border-right: none; text-align: right; }
.single-nav-btn:hover { background: rgba(240, 240, 250, 0.03); }

.single-nav-dir {
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color:          var(--muted);
  margin-bottom:  8px;
  display:        flex;
  align-items:    center;
  gap:            8px;
}
.single-nav-btn:last-child .single-nav-dir { justify-content: flex-end; }

.single-nav-title {
  font-family:    var(--font-display);
  font-weight:    700;
  font-size:      clamp(15px, 2vw, 22px);
  color:          var(--white);
  letter-spacing: -0.01em;
  line-height:    1.2;
  transition:     color 0.25s;
}
.single-nav-btn:hover .single-nav-title { color: var(--cyan); }

/* ══════════════════════════════════════════════════════════════
   SHARED PAGE UTILITIES
   ══════════════════════════════════════════════════════════════ */

/* Project card hidden state for filter */
.project-card[aria-hidden="true"],
.project-card.filtered-out {
  opacity:        0;
  transform:      scale(0.95) translateY(10px);
  pointer-events: none;
  transition:
    opacity   0.35s var(--ease-expo),
    transform 0.35s var(--ease-expo);
}

.project-card[aria-hidden="false"],
.project-card.filtered-in {
  opacity:        1;
  transform:      scale(1) translateY(0);
  pointer-events: all;
  transition:
    opacity   0.4s var(--ease-expo) 0.05s,
    transform 0.4s var(--ease-expo) 0.05s;
}

/* Wagenia website card */
.wagenia-card {
  grid-column: 1 / -1;
  aspect-ratio: 16/5;
  position:    relative;
  overflow:    hidden;
}

@media (max-width: 700px) {
  .wagenia-card { aspect-ratio: 4/3; }
}
