/* ==========================================================================
   ABOUT PAGE — styles/about.css
   Hero · Video · Bio · Skills · Timeline · Work With Me
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE HERO
   -------------------------------------------------------------------------- */
.about-hero {
  background: linear-gradient(to bottom, var(--background-primary), var(--background-secondary));
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.about-hero-orb {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(95, 45, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   VIDEO SECTION
   -------------------------------------------------------------------------- */
.video-section {
  background: var(--background-secondary);
}

.video-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.video-label h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.video-label p {
  font-size: 1rem;
  line-height: 1.7;
}

.video-frame-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Square 1:1 aspect ratio */
.video-frame {
  position: relative;
  width: 340px;
  padding-bottom: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(95, 45, 241, 0.2);
}

.video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Video facade — CSS plate, swapped for iframe on click */
.video-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(95, 45, 241, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(95, 45, 241, 0.12) 0%, transparent 50%),
    var(--background-secondary);
  transition: background 0.3s ease;
}

.video-facade::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(95, 45, 241, 0.04) 28px,
      rgba(95, 45, 241, 0.04) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 28px,
      rgba(95, 45, 241, 0.04) 28px,
      rgba(95, 45, 241, 0.04) 29px
    );
  pointer-events: none;
}

.video-facade-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.video-facade-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.video-facade-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}

.video-facade-role {
  font-size: 0.78rem;
  color: var(--color-light-grey);
  line-height: 1.5;
}

.video-play-btn {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-purple);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 24px rgba(95, 45, 241, 0.45), 0 0 0 8px rgba(95, 45, 241, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-facade:hover .video-play-btn {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(95, 45, 241, 0.6), 0 0 0 14px rgba(95, 45, 241, 0.15);
}

.video-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.video-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(95, 45, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   BIO
   -------------------------------------------------------------------------- */
.bio-section {
  background: var(--background-primary);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.bio-photo-wrapper {
  position: relative;
}

.bio-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(95, 45, 241, 0.2);
  aspect-ratio: 4 / 5;
  background: var(--background-secondary);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(171, 178, 191, 0.3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.bio-photo-placeholder svg {
  width: 60px; height: 60px;
  stroke: rgba(171, 178, 191, 0.2);
}

.bio-photo-decoration {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 80px; height: 80px;
  border-right: 2px solid var(--color-purple);
  border-bottom: 2px solid var(--color-purple);
  border-radius: 0 0 var(--radius-sm) 0;
  opacity: 0.4;
}

.bio-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.bio-text p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   SKILLS
   -------------------------------------------------------------------------- */
.skills-section {
  background: linear-gradient(to bottom, var(--background-primary), var(--background-secondary));
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-category {
  background: rgba(40, 44, 51, 0.6);
  border: 1px solid rgba(95, 45, 241, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.skill-category:hover {
  border-color: rgba(95, 45, 241, 0.3);
  box-shadow: var(--shadow-strong);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(99, 108, 113, 0.15);
}

.skill-category-icon {
  width: 40px; height: 40px;
  background: rgba(95, 45, 241, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.skill-category-icon svg { width: 20px; height: 20px; }

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.skill-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-light-grey);
  display: block;
}

.skill-bar {
  height: 4px;
  background: rgba(99, 108, 113, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   TIMELINE
   -------------------------------------------------------------------------- */
.timeline-section {
  background: var(--background-secondary);
}

.timeline {
  position: relative;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(95, 45, 241, 0.4) 10%, rgba(95, 45, 241, 0.4) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2.5rem);
  padding-bottom: 3rem;
  position: relative;
}

.timeline-item--right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2.5rem);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-purple);
  border: 2px solid var(--background-secondary);
  box-shadow: 0 0 0 3px rgba(95, 45, 241, 0.3);
  z-index: 1;
}

.timeline-content {
  background: rgba(40, 44, 51, 0.7);
  border: 1px solid rgba(95, 45, 241, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-width: 380px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.timeline-content:hover {
  border-color: rgba(95, 45, 241, 0.3);
  box-shadow: var(--shadow-strong);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--color-white);
}

.timeline-content p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.timeline-cta {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   WORK WITH ME
   -------------------------------------------------------------------------- */
.work-with-me {
  background: var(--background-primary);
}

.hire-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.hire-card {
  background: rgba(40, 44, 51, 0.6);
  border: 1px solid rgba(95, 45, 241, 0.12);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.hire-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 45, 241, 0.3);
  box-shadow: var(--shadow-strong);
}

.hire-card--featured {
  border-color: rgba(37, 211, 102, 0.2);
  background: rgba(37, 211, 102, 0.03);
}

.hire-card--featured:hover {
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.1);
}

.hire-card-icon {
  width: 48px; height: 48px;
  background: rgba(95, 45, 241, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.hire-card--featured .hire-card-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.hire-card-icon svg { width: 24px; height: 24px; }

.hire-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hire-card-label--green { color: #25D366; }

.hire-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
}

.hire-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.hire-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(99, 108, 113, 0.15);
  border-bottom: 1px solid rgba(99, 108, 113, 0.15);
}

.hire-highlights li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-light-grey);
  padding-left: 1rem;
  position: relative;
}

.hire-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   DATA-REVEAL fallback
   -------------------------------------------------------------------------- */
[data-reveal]        { opacity: 0; transform: translateY(30px); }
[data-reveal="left"] { opacity: 0; transform: translateX(-40px); }
[data-reveal="right"]{ opacity: 0; transform: translateX(40px); }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .video-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .video-frame {
    width: 240px;
    padding-bottom: calc(240px * 16 / 9);
    margin: 0 auto;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bio-photo { max-width: 300px; margin: 0 auto; }
  .bio-text { text-align: center; }
  .bio-tags { justify-content: center; }

  .skills-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 1rem; }

  .timeline-item,
  .timeline-item--right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 3.5rem;
  }

  .timeline-marker { left: 1rem; transform: translateX(-50%); }
  .timeline-content { max-width: 100%; }

  .hire-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-hero h1 { font-size: 1.8rem; }
  .video-frame { width: 200px; padding-bottom: 200px; }
  .hire-card { padding: 1.5rem; }
}
