/*
Theme Name: Webaxion
Theme URI: https://webaxion.com
Author: Webaxion
Description: Custom scroll-scrubbed video background theme for Webaxion — a services agency site with a cinematic, minimal aesthetic.
Version: 1.0
Requires PHP: 7.4
Text Domain: webaxion
*/

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

html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}

/* ---------- Video background ---------- */
#video-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  object-fit: cover;
  z-index: 0;
}

#video-overlay { display: none; }

/* ---------- Scroll track & sections ---------- */
#scroll-track { height: 500vh; position: relative; z-index: 2; }

.section {
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.brand {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 1px;
}
.version {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}
nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}
nav a { color: #fff; text-decoration: none; opacity: 0.9; }

.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.headline-block {
  max-width: 420px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.headline-block.visible { opacity: 1; transform: translateY(0); }

.headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}
.headline em {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.index-block {
  text-align: center;
  font-family: 'Courier New', monospace;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.index-block.visible { opacity: 1; }
.index-letter {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.index-count {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.desc-block {
  max-width: 220px;
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.desc-block.visible { opacity: 1; transform: translateY(0); }

.cta-row { display: flex; justify-content: center; }
.cta {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 14px 32px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

#progress-bar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
#progress-fill { height: 100%; width: 0%; background: #fff; transition: width 0.05s linear; }

/* ---------- Footer / contact ---------- */
footer {
  min-height: 100vh;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-family: 'Courier New', monospace;
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}
footer .footer-eyebrow { font-size: 12px; letter-spacing: 3px; opacity: 0.6; }
footer .footer-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
footer .footer-title em { font-style: italic; font-weight: 400; text-transform: none; }

.contact-form { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 11px; letter-spacing: 1px; opacity: 0.6; text-transform: uppercase; }
.form-row input, .form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  padding: 10px 2px;
  outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-bottom-color: #fff; }
.form-row textarea { resize: none; min-height: 70px; }
.form-note { font-size: 12px; text-align: center; opacity: 0.75; }

.brand-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
}
.brand-footer span:last-child { opacity: 0.5; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 24px 20px; }
  .topbar { align-items: flex-start; }
  nav { gap: 6px; font-size: 11px; }
  .brand { font-size: 12px; }
  .version { font-size: 10px; }

  .bottom-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .headline { font-size: 30px; }
  .headline-block { max-width: 100%; }

  .index-block { align-self: flex-start; text-align: left; }
  .index-letter { font-size: 13px; }

  .desc-block { max-width: 100%; text-align: left; }

  .cta-row { justify-content: flex-start; }
  .cta { padding: 12px 24px; font-size: 11px; }

  footer { padding: 60px 20px; gap: 28px; }
  .footer-title { font-size: 26px; }
  .contact-form { max-width: 100%; }
  .brand-footer { max-width: 100%; flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .headline { font-size: 24px; }
  .footer-title { font-size: 22px; }
  nav a { font-size: 11px; }
}
