/* ============================================================
   JEFF PROFILE — jeff-style.css
   Styles specific to jeff-profile.html
   Design reference: jeff-about.html
   ============================================================ */


/* ── CANVAS BACKGROUND ── */
#code-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

body > *:not(#code-bg):not(nav):not(.ticker-wrap) {
  position: relative;
}


/* ── SECTIONS ── */
section {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 100px 50px !important;
}

/* ── SECTION HEADING ── */
.section-heading {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  margin-bottom: 50px !important;
  white-space: nowrap !important;
}

.section-heading h2 {
  font-size: 1.7rem !important;
  color: var(--lightest-slate) !important;
  font-weight: 600 !important;
}

.section-heading .num {
  font-family: var(--font-mono) !important;
  color: var(--green) !important;
  font-size: 1.1rem !important;
}

.section-heading::after {
  content: '' !important;
  display: block !important;
  height: 1px !important;
  width: 100% !important;
  background: rgba(56,189,248,0.15) !important;
  max-width: 400px !important;
}

/* ── HERO ── */
#hero {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: 1fr 260px !important;
  gap: 60px !important;
  align-items: center !important;
  padding-top: 0 !important;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

/* "Hi, my name is" green monospace line */
.hero-intro {
  font-family: var(--font-mono) !important;
  color: var(--green) !important;
  font-size: 1rem !important;
  margin-bottom: 20px !important;
}

#hero h1 {
  font-size: clamp(1.8rem, 6vw, 4.5rem) !important;
  color: var(--lightest-slate) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

#hero h2 {
  font-size: clamp(1.2rem, 3vw, 2rem) !important;
  color: var(--slate) !important;
  font-weight: 600 !important;
  margin-top: 10px !important;
  line-height: 1.2 !important;
}

#hero p {
  margin-top: 24px !important;
  max-width: 540px !important;
  color: var(--slate) !important;
  font-size: 1.05rem !important;
}

/* Primary hero CTA button */
.hero-cta {
  display: inline-block;
  padding: 16px 28px;
  border: 1px solid var(--green);
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: var(--green-tint);
}

/* Ghost CTA — secondary hero button */
.hero-cta-ghost {
  display: inline-block;
  padding: 16px 28px;
  border: 1px solid rgba(56,189,248,0.3);
  color: var(--light-slate);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-cta-ghost:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green);
}

/* ── ABOUT JEFF ── */
.about-jeff-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-jeff-text p {
  margin-bottom: 16px;
  color: var(--slate);
}

.about-jeff-text a {
  color: var(--green);
  text-decoration: none;
}

.about-jeff-text a:hover { text-decoration: underline; }

.jeff-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.jeff-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(100,255,218,0.5), 0 0 40px rgba(100,255,218,0.2);
}

.about-jeff-card {
  background: var(--navy-light);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.about-jeff-card:last-child { margin-bottom: 0; }

.about-jeff-card:hover { border-color: rgba(56,189,248,0.25); }

.about-jeff-card h3 {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-jeff-card ul { list-style: none; }

.about-jeff-card ul li {
  color: var(--light-slate);
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.about-jeff-card ul li::before {
  content: '▸ ';
  color: var(--green);
}

/* ── EXPERIENCE ── */
.exp-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  margin-bottom: 0;
  padding: 36px 0;
  border-bottom: 1px solid rgba(56,189,248,0.08);
}

.exp-item:first-of-type { padding-top: 0; }
.exp-item:last-of-type  { border-bottom: none; padding-bottom: 0; }

.exp-dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  padding-top: 6px;
  line-height: 1.7;
}

.exp-content h3 {
  font-size: 1.1rem;
  color: var(--lightest-slate);
  font-weight: 600;
  margin-bottom: 4px;
}

.exp-content h3 a {
  color: var(--lightest-slate);
  text-decoration: none;
}

.exp-content h3 a:hover { color: var(--green); }

.exp-content .company {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.82rem;
  margin-bottom: 14px;
  opacity: 0.85;
}

.exp-content ul {
  list-style: none;
  padding: 0;
}

.exp-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.65;
}

.exp-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ── TAGS ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  background: var(--green-tint);
  border: 1px solid rgba(56,189,248,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  transition: border-color 0.2s, background 0.2s;
}

/* ── FEATURED PROJECTS ── */
.projectj-featured {
  margin-bottom: 24px;
  position: relative;
}

.projectj-info {
  padding: 30px;
  background: var(--navy-light);
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.projectj-info:hover {
  border-color: rgba(56,189,248,0.28);
  box-shadow: 0 8px 30px -8px rgba(0,0,0,0.55);
}

.projectj-label {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.projectj-info h3 {
  color: var(--lightest-slate);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.projectj-info p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
}

.projectj-info .proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: gap 0.2s;
}

.projectj-info .proj-link:hover { gap: 10px; }

/* ── OTHER PROJECTS GRID ── */
.projectsj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.projectj-card {
  background: var(--navy-light);
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 6px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.projectj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
  border-color: rgba(56,189,248,0.22);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.projectj-card h3 {
  color: var(--lightest-slate);
  font-size: 1rem;
  margin-bottom: 10px;
}

.projectj-card p {
  font-size: 0.85rem;
  color: var(--slate);
  flex: 1;
  line-height: 1.65;
}

.projectj-card .tags {
  margin-top: auto;
  padding-top: 16px;
}

.projectj-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: gap 0.2s;
}

.projectj-card-link:hover { gap: 10px; }

/* ── FAQ ACCORDION ── */
.faqj-item {
  border-bottom: 1px solid rgba(56,189,248,0.1);
  padding: 24px 0;
}

.faqj-item:first-child {
  border-top: 1px solid rgba(56,189,248,0.1);
}

.faqj-question {
  font-size: 1rem;
  color: var(--lightest-slate);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  transition: color 0.15s;
}

.faqj-question:hover { color: var(--white); }

.faqj-question::after {
  content: '+';
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.2s;
}

.faqj-item.open .faqj-question::after { content: '−'; }

.faqj-answer {
  display: none;
  padding-top: 16px;
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 700px;
  line-height: 1.75;
}

.faqj-item.open .faqj-answer { display: block; }

.faqj-answer a {
  color: var(--green);
  text-decoration: none;
}

.faqj-answer a:hover { text-decoration: underline; }

/* ── CONTACT ── */
#contact {
  text-align: center;
  background: transparent !important;
}

#contact .section-heading { justify-content: center; }
#contact .section-heading::after { display: none !important; }

#contact h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--lightest-slate);
  margin: 20px 0 12px;
  font-weight: 700;
}

/* Description paragraph */
#contact p.reveal {
  max-width: 500px;
  margin: 0 auto 44px;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.75;
}

/* Link grid — 3 columns, wraps to 2 on last row */
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--navy-light);
  border: 1px solid rgba(56,189,248,0.12);
  color: var(--light-slate);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.contact-link:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.contact-link.primary {
  background: var(--green-tint);
  border-color: rgba(56,189,248,0.3);
  color: var(--green);
  font-weight: 600;
  grid-column: 1 / -1;  /* spans full width on its own row */
}

.contact-link.primary:hover {
  background: rgba(56,189,248,0.12);
  border-color: var(--green);
}

/* Location line */
#contact p:not(.reveal) {
  margin-top: 36px !important;
  font-size: 0.78rem !important;
  color: var(--slate) !important;
  font-family: var(--font-mono) !important;
  opacity: 0.6 !important;
  letter-spacing: 0.05em !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section { padding: 60px 20px !important; }

  /* ── Hero — stack to single column ── */
  #hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding-top: 40px !important;
    text-align: center !important;
  }

  .jeff-photo-wrap { order: -1; margin-bottom: 24px; }

  .jeff-photo { width: 160px !important; height: 160px !important; }

  #hero p { margin-left: auto !important; margin-right: auto !important; }

  /* CTA button row */
  #hero div { justify-content: center !important; }

  /* ── Section headings — center, drop the line ── */
  .section-heading {
    justify-content: center !important;
    white-space: normal !important;
  }
  .section-heading::after { display: none !important; }

  /* ── About ── */
  .about-jeff-grid { grid-template-columns: 1fr; gap: 40px; }

  /* ── Experience ── */
  .exp-item  { grid-template-columns: 1fr; gap: 4px; }
  .exp-dates { text-align: center !important; font-size: 0.75rem !important; }

  /* ── Tags ── */
  .tags { justify-content: center !important; }

  /* ── Projects ── */
  .projectj-featured { margin-bottom: 16px; }
  .projectj-label    { text-align: center !important; }

  /* ── FAQ mobile ── */
  /* Flex text nodes default to min-width:max-content and won't shrink.
     Switch button to block layout and pin the toggle absolutely.     */
  .faqj-item { padding: 16px 0 !important; }

  .faqj-question {
    display: block !important;
    position: relative !important;
    padding-right: 32px !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .faqj-question::after {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    margin-left: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }

  .faqj-answer {
    font-size: 0.84rem !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    padding-top: 12px !important;
  }

  /* ── Contact mobile ── */
  .contact-links {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .contact-link {
    white-space: normal !important;
    text-align: center !important;
    padding: 14px 16px !important;
  }

  .contact-link.primary { grid-column: 1 !important; }

  #contact p:not(.reveal) { text-align: center !important; }
}

/* ── LIGHT MODE — component overrides ── */
/* Variables, body & ticker-wrap handled by jeff-shared.css */
@media (prefers-color-scheme: light) {
  .about-jeff-card {
    background: #E8EEF8 !important;
    border-color: rgba(0,96,204,0.18) !important;
  }

  .about-jeff-card:hover {
    border-color: rgba(0,96,204,0.35) !important;
  }

  .projectj-image-box {
    background: linear-gradient(135deg, #E8EEF8, rgba(0,96,204,0.04)) !important;
    border-color: #C8D3E6 !important;
  }

  .projectj-info,
  .projectj-card {
    background: #FFFFFF !important;
    border-color: #C8D3E6 !important;
  }

  .projectj-info:hover,
  .projectj-card:hover {
    border-color: rgba(0,96,204,0.35) !important;
    box-shadow: 0 8px 28px -8px rgba(0,0,0,0.14) !important;
  }

  .tag {
    background: rgba(0,96,204,0.07) !important;
    border-color: rgba(0,96,204,0.2) !important;
    color: #0060CC !important;
  }

  .faqj-item {
    border-color: rgba(0,96,204,0.15) !important;
  }

  .faqj-question { color: var(--lightest-slate) !important; }

  .exp-item {
    border-bottom-color: rgba(0,96,204,0.1) !important;
  }

  .hero-cta {
    border-color: #0060CC !important;
    color: #0060CC !important;
  }

  .hero-cta-ghost {
    border-color: rgba(0,96,204,0.3) !important;
    color: var(--light-slate) !important;
  }

  .hero-cta-ghost:hover {
    background: rgba(0,96,204,0.07) !important;
    border-color: #0060CC !important;
    color: #0060CC !important;
  }

  .section-heading::after {
    background: rgba(0,96,204,0.15) !important;
  }

  .contact-link {
    background: #FFFFFF !important;
    border-color: #C8D3E6 !important;
    color: #243F6A !important;
  }

  .contact-link:hover {
    background: rgba(0,96,204,0.07) !important;
    border-color: #0060CC !important;
    color: #0060CC !important;
  }

  .contact-link.primary {
    background: rgba(0,96,204,0.07) !important;
    border-color: rgba(0,96,204,0.3) !important;
    color: #0060CC !important;
  }
}
