/* =============================================================
   LARKEN — pages/home.css
   Homepage-specific styles: hero, toolkit, experience.
   ============================================================= */


/* ============================================================
   1. HERO
   ============================================================ */
.ls-hero {
  position: relative;
  min-height: calc(100vh - var(--ls-nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

/* Ambient glow orbs */
.ls-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.ls-hero-glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  top: -100px;
  left: -200px;
}
.ls-hero-glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  bottom: 0;
  right: 10%;
}

.ls-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--ls-container-max), 100% - 80px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

/* LEFT: Text */
.ls-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* "HE / HIM · PHILIPPINES" badge */
.ls-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-text-muted);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 6px 14px;
  border-radius: var(--ls-radius-pill);
}
.ls-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--ls-accent);
  border-radius: 50%;
  animation: ls-pulse 2s ease-in-out infinite;
}
.ls-badge-sep { color: var(--ls-border-medium); }

@keyframes ls-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Hero headline */
.ls-hero-title {
  font-size: clamp(52px, 7.5vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ls-text);
  margin: 0;
  text-shadow: 0 0 80px rgba(99, 102, 241, 0.2);
}

/* Hero subtext */
.ls-hero-sub {
  font-size: 1.1rem;
  color: var(--ls-text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin: 0;
}

/* CTA button group */
.ls-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* RIGHT: Photo */
.ls-hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 24px 0 24px;
  background: var(--ls-surface-2);
  border-radius: 28px 28px 20px 20px;
  border: 1px solid var(--ls-border);
  box-shadow:
    0 0 80px var(--ls-glow-sm),
    0 40px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: var(--ls-transition-slow);
}

.ls-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}
.ls-hero-photo:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 0 120px var(--ls-glow),
    0 60px 100px rgba(0, 0, 0, 0.8);
}

.ls-hero-img-placeholder {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  background: var(--ls-surface-2);
  border-radius: var(--ls-radius);
  border: 1px solid var(--ls-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ls-text-faint);
  font-family: var(--font-display);
}

.ls-hero-photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: var(--ls-radius);
  z-index: 0;
  pointer-events: none;
}

/* Scroll hint */
.ls-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ls-text-faint);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: ls-scroll-bounce 2s ease-in-out infinite;
}
.ls-scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ls-border-subtle), transparent);
}
@keyframes ls-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* Hero — Tablet & Mobile */
@media (max-width: 900px) {
  .ls-hero { min-height: auto; padding: 80px 0 60px; }
  .ls-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    width: calc(100% - 80px);
  }
  .ls-hero-content { align-items: center; }
  .ls-hero-sub { max-width: none; }
  .ls-hero-photo { order: -1; }
  .ls-hero-img { max-width: 360px; aspect-ratio: 1/1; }
  .ls-scroll-hint { display: none; }
}

@media (max-width: 600px) {
  .ls-hero-inner { width: calc(100% - 48px); gap: 40px; }
  .ls-hero-img { max-width: 280px; }
  .ls-hero-actions { flex-direction: column; width: 100%; }
  .ls-btn { width: 100%; justify-content: center; }
}


/* ============================================================
   2. TOOLKIT
   ============================================================ */
.ls-toolkit {
  background: var(--ls-surface);
  border-top: 1px solid var(--ls-border-subtle);
  border-bottom: 1px solid var(--ls-border-subtle);
}

.ls-tool-group {
  margin-bottom: 32px;
}
.ls-tool-group:last-of-type { margin-bottom: 0; }

.ls-tool-group-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-text-faint);
  margin-bottom: 12px;
}

.ls-section-header, .ls-section-label, .ls-section-title, .ls-section-desc {
  z-index: 1 !important;
}

/* Stacking context fixes for floating hover modals */
.ls-tools-group, .ls-tool-group {
  position: relative !important;
  z-index: 500 !important;
  overflow: visible !important;
}

.ls-tool-grid, .ls-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 14px !important;
  overflow: visible !important;
}

.ls-tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ls-surface-2);
  border: 1px solid var(--ls-border-subtle);
  border-radius: var(--ls-radius-sm);
  transition: var(--ls-transition);
  cursor: pointer;
  position: relative;
  overflow: visible !important;
}
.ls-tool-item:hover {
  border-color: var(--ls-border);
  background: var(--ls-surface-3);
  transform: translateY(-4px);
  z-index: 99999 !important;
}

/* Floating Tool Modal */
.ls-tool-modal {
  position: absolute !important;
  bottom: calc(100% + 10px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px) scale(0.94);
  width: 240px !important;
  padding: 12px 14px !important;
  background: #181824 !important;
  border: 1px solid rgba(120, 119, 247, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 24px rgba(120, 119, 247, 0.35) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1),
              visibility 0.2s ease;
  z-index: 999999 !important;
  text-align: left;
}

.ls-tool-modal::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #14141f transparent transparent transparent;
}

.ls-tool-item:hover .ls-tool-modal,
.ls-tool-item:focus .ls-tool-modal {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.ls-tool-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ls-tool-modal-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  flex-shrink: 0;
}

.ls-tool-modal-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.2;
}

.ls-tool-modal-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ls-accent-2, #a5b4fc);
  background: rgba(120, 119, 247, 0.2);
  border: 1px solid rgba(120, 119, 247, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.ls-tool-modal-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #b8b8cc;
  margin: 0;
}

.ls-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.ls-tool-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ls-tool-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ls-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-toolkit-footnote {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--ls-accent-2);
  text-align: center;
}

@media (max-width: 600px) {
  .ls-tool-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}


/* ============================================================
   3. EXPERIENCE / CAREER TIMELINE
   ============================================================ */
.ls-experience { background: var(--ls-bg); }

.ls-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--ls-border-subtle);
  margin-left: 100px;
  padding-left: 40px;
}

.ls-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-bottom: 36px;
}
.ls-timeline-row:last-child { padding-bottom: 0; }

.ls-timeline-years {
  position: absolute;
  left: calc(-100px - 40px);
  width: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ls-text-faint);
  padding-top: 3px;
  text-align: right;
  white-space: nowrap;
}

.ls-timeline-connector {
  position: absolute;
  left: calc(-40px - 5px);
  top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ls-timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--ls-accent);
  border-radius: 50%;
  border: 2px solid var(--ls-bg);
  box-shadow: 0 0 0 3px var(--ls-surface), 0 0 12px var(--ls-glow-sm);
  flex-shrink: 0;
}

.ls-timeline-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ls-timeline-role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ls-text);
  margin: 0;
}

.ls-timeline-org {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ls-accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
a.ls-timeline-org:hover { color: var(--ls-accent-3); }

/* Timeline — mobile */
@media (max-width: 768px) {
  .ls-timeline {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
    gap: 24px;
  }
  .ls-timeline-row {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ls-border-subtle);
  }
  .ls-timeline-row:last-child { border-bottom: none; }
  .ls-timeline-years {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: 4px;
    font-size: 0.75rem;
  }
  .ls-timeline-connector { display: none; }
}
