/* Figma Styles */
:root {
    --green: #b9ff66;
    --grey: #f3f3f3;
    --dark: #191a23;
    --black: #000000;
  
    --p-font-family: 'Space Grotesk', sans-serif;
    --p-font-size: 18px;
    --p-line-height: normal;
    --p-font-weight: 400;
    --p-font-style: normal;
  
    --h1-font-family: 'Space Grotesk', sans-serif;
    --h1-font-size: 60px;
    --h1-line-height: normal;
    --h1-font-weight: 500;
    --h1-font-style: normal;
  
    --h2-font-family: 'Space Grotesk', sans-serif;
    --h2-font-size: 40px;
    --h2-line-height: normal;
    --h2-font-weight: 500;
    --h2-font-style: normal;
  
    --h3-font-family: 'Space Grotesk', sans-serif;
    --h3-font-size: 30px;
    --h3-line-height: normal;
    --h3-font-weight: 500;
    --h3-font-style: normal;
  
    --h4-font-family: 'Space Grotesk', sans-serif;
    --h4-font-size: 20px;
    --h4-line-height: normal;
    --h4-font-weight: 500;
    --h4-font-style: normal;
  }
  
  body {
    font-family: var(--p-font-family);
    font-size: var(--p-font-size);
    font-weight: var(--p-font-weight);
    font-style: var(--p-font-style);
    line-height: var(--p-line-height);
    background-color: white;
    color: var(--dark);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
  }
  
  h1 {
    font-family: var(--h1-font-family);
    font-size: var(--h1-font-size);
    font-weight: var(--h1-font-weight);
    font-style: var(--h1-font-style);
    line-height: var(--h1-line-height);
  }
  
  h2 {
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    font-weight: var(--h2-font-weight);
    font-style: var(--h2-font-style);
    line-height: var(--h2-line-height);
  }
  
  h3 {
    font-family: var(--h3-font-family);
    font-size: var(--h3-font-size);
    font-weight: var(--h3-font-weight);
    font-style: var(--h3-font-style);
    line-height: var(--h3-line-height);
  }
  
  h4 {
    font-family: var(--h4-font-family);
    font-size: var(--h4-font-size);
    font-weight: var(--h4-font-weight);
    font-style: var(--h4-font-style);
    line-height: var(--h4-line-height);
  }
  
  .button-primary {
    background-color: var(--dark);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--dark);
  }
  
  .button-primary:hover {
    background-color: var(--green);
    color: var(--black);
  }
  
  .button-secondary {
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
  }
  
  .button-secondary:hover {
    border: 2px solid var(--dark);
    background-color: var(--green);
  }

  .property-1-simple-white, property-1-simple-white * {
    box-sizing: border-box;
  }

  .property-1-simple-white {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        transition: background-color 0.3s ease, color 0.3s ease;
        border-radius: 0.375rem;
        text-decoration: none;
  }
    
  .property-1-simple-white:hover .label {
    color: var(--green);
  }
      

  .property-1-simple-green, .property-1-simple-green * {
    box-sizing: border-box;
  }

  .property-1-simple-green {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
  }

  .label {
    color: #ffffff;
    text-align: left;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    position: relative;
  }

  .property-1-green,.property-1-green * {
    box-sizing: border-box;
  }
  
  .property-1-green {
    gap: 0px;
    position: relative;
  }
        
  .label-green {
    background: var(--green, #b9ff66);
    border-radius: 7px;
    padding: 0px 7px 0px 7px;
    gap: 10px;
  }
  
  .label2-green {
    color: #000000;
    text-align: left;
    font-family: var(--h2-font-family, "SpaceGrotesk-Medium", sans-serif);
    font-size: var(--h2-font-size, 40px);
    font-weight: var(--h2-font-weight, 500);
  }


  .ascii-bg {
    position: fixed;        /* stick to viewport, not document flow */
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;       /* no scrollbars inside */
    pointer-events: none;   /* clicks pass through */
    z-index: -1;            /* behind all content */

    font-family: monospace;
    color: rgba(0, 0, 0, 0.445);
    white-space: pre;
    line-height: 1.2;
    font-size: 20px;
    padding: 20px;
  }

  .card, .card * {
    box-sizing: border-box;
  }

  .card {
    background: var(--grey, #f3f3f3);
    border-radius: 45px;
    border-style: solid;
    border-color: var(--dark, #191a23);
    border-width: 1px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0px 5px 0px 0px rgba(25, 26, 35, 1);
    overflow: hidden;
  }

  .cards-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
    position: relative;
  }

  .accordion-item {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 45px;
    border-style: solid;
    border-color: var(--dark, #191a23);
    border-width: 1px;
    overflow: hidden;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0px 5px 0px 0px rgba(25, 26, 35, 1);
  }

  .accordion-button {
    background: transparent;
    border: none;
    padding: 20px 40px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--dark);
  }

  .accordion-item .accordion-collapse.collapse.show {
    background-color: var(--grey);
    transition: all 0.2s ease-in-out;
  }

  .accordion {
    width: 100%;
    box-sizing: border-box;
  }

  .accordion-item .accordion-button:not(.collapsed) {
    color: var(--dark);
    transition: all 0.2s ease-in-out;
    background-color: var(--grey) !important;
    box-shadow: none;
  }

  .accordion-item .accordion-button:focus {
    box-shadow: none;
  }

  .accordion-item .accordion-collapse .accordion-body {
    padding: 20px 40px;
  }

  .accordion-item .accordian-numbers {
    font-size: 44px;
    padding-right: 20px;
    color: var(--dark);
  }

  .accordion-button::after {
    background-image: none;
    font-family: "Font Awesome 6 Free";
    content: "\f068";
    height: 35px;
    width: 35px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--dark);
    background-color: white;
    color: var(--dark);
  }

  .accordion-button:not(.collapsed)::after {
    background-image: none;
    content: "\f067";
  }

  .accordion-item .collapsing {
    transition: all 0.3s ease-in-out;
  }

  .skill-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background-color: var(--grey);
    border-radius: 9999px;
    border: 1px solid var(--dark);
    font-weight: 500;
    color: var(--dark);
  }

  /* Metrics strip */
  .metrics-strip {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .metric-item {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
  }

  .metric-number {
    font-size: 48px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.1;
  }

  .metric-label {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    line-height: 1.3;
  }

  .metric-context {
    font-size: 12px;
    color: #777;
    margin-top: 8px;
    line-height: 1.4;
    max-width: 200px;
  }

  .metric-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--dark);
    transition: color 0.2s, border-color 0.2s;
  }

  .metric-link:hover {
    color: var(--green);
    border-color: var(--green);
  }

  .metric-divider {
    width: 1px;
    align-self: stretch;
    background-color: var(--dark);
    opacity: 0.15;
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .metrics-strip {
      flex-wrap: wrap;
    }
    .metric-item {
      flex: 0 0 50%;
      padding: 16px 8px;
    }
    .metric-divider {
      display: none;
    }
    .metric-number {
      font-size: 36px;
    }
  }

  /* What I Do grid */
  .what-i-do-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .what-i-do-card {
    border: 1px solid var(--dark);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .what-i-do-card i {
    font-size: 28px;
    color: var(--dark);
  }

  .what-i-do-title {
    font-weight: 500;
    font-size: 15px;
  }

  .what-i-do-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
  }

  @media (max-width: 768px) {
    .what-i-do-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Green accents on accordion hover */
  .accordion-item:hover {
    border-color: var(--green);
    box-shadow: 0px 5px 0px 0px var(--green);
  }

  .accordion-button:not(.collapsed) {
    border-left: 4px solid var(--green);
  }

  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .cards-section {
      gap: 20px;
    }

    .card {
      padding: 20px;
      border-radius: 20px;
    }

    .accordion-item {
      border-radius: 20px;
      padding: 10px;
    }

    .accordion-button {
      padding: 10px 14px;
    }

    .accordion-item .accordion-collapse .accordion-body {
      padding: 10px 14px;
    }

    .accordion-item .accordian-numbers {
      font-size: 22px;
      padding-right: 8px;
    }

    /* Hide date range in accordion header — saves horizontal space */
    .accordion-button .font-semibold {
      display: none;
    }

    /* Override inline font-size on section headings */
    h1 {
      font-size: 28px !important;
      padding-bottom: 16px !important;
    }

    h2 {
      font-size: 22px;
    }

    h3 {
      font-size: 18px;
    }

    /* Nav */
    .label {
      font-size: 14px;
    }

    /* Skill pills */
    .skill-pill {
      font-size: 13px;
      padding: 0.3rem 0.7rem;
    }

    /* Home page hero */
    .label2-green {
      font-size: 24px;
    }
  }

  /* ── Smooth theme transitions ───────────────────── */
  body, .card, .accordion-item, .accordion-button,
  .skill-pill, .button-primary, .button-secondary {
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
  }

  /* ── Dark mode ──────────────────────────────────── */
  [data-theme="dark"] body {
    background-color: #12131a;
    color: #e0e0e0;
  }

  [data-theme="dark"] .ascii-bg {
    color: rgba(255, 255, 255, 0.6);
  }

  [data-theme="dark"] .card {
    background: #1e1f2b;
    border-color: #3a3b4a;
    box-shadow: 0px 5px 0px 0px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
  }

  [data-theme="dark"] .accordion-item {
    background-color: #1e1f2b;
    border-color: #3a3b4a;
    box-shadow: 0px 5px 0px 0px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
  }

  [data-theme="dark"] .accordion-item:hover {
    border-color: var(--green);
    box-shadow: 0px 5px 0px 0px var(--green);
  }

  [data-theme="dark"] .accordion-button {
    color: #e0e0e0;
    border-bottom-color: #3a3b4a;
  }

  [data-theme="dark"] .accordion-button:not(.collapsed) {
    color: #e0e0e0;
    background-color: #252636 !important;
  }

  [data-theme="dark"] .accordion-item .accordion-collapse.collapse.show {
    background-color: #252636;
  }

  [data-theme="dark"] .accordion-button::after {
    border-color: #3a3b4a;
    background-color: #252636;
    color: #e0e0e0;
  }

  [data-theme="dark"] .accordion-item .accordian-numbers {
    color: #e0e0e0;
  }

  [data-theme="dark"] .skill-pill {
    background-color: #252636;
    border-color: #5a5b6a;
    color: #e0e0e0;
  }

  [data-theme="dark"] .button-primary {
    background-color: var(--green);
    color: #191a23;
    border-color: var(--green);
  }

  [data-theme="dark"] .button-primary:hover {
    background-color: white;
    color: #191a23;
  }

  [data-theme="dark"] .button-secondary {
    border-color: #3a3b4a;
    color: #e0e0e0;
  }

  [data-theme="dark"] .button-secondary:hover {
    background-color: var(--green);
    border-color: var(--green);
    color: #191a23;
  }

  /* Contact page anchor links */
  [data-theme="dark"] a.accordion-item {
    color: #e0e0e0 !important;
  }

  [data-theme="dark"] a.accordion-item .text-sm {
    color: #888 !important;
  }

  [data-theme="dark"] .metric-number {
    color: var(--green);
  }

  [data-theme="dark"] .metric-label {
    color: #999;
  }

  [data-theme="dark"] .metric-context {
    color: #666;
  }

  [data-theme="dark"] .metric-link {
    color: var(--green);
    border-color: var(--green);
  }

  [data-theme="dark"] .metric-divider {
    background-color: #e0e0e0;
  }

  [data-theme="dark"] .what-i-do-card {
    border-color: #3a3b4a;
  }

  [data-theme="dark"] .what-i-do-card i {
    color: var(--green);
  }

  [data-theme="dark"] .what-i-do-desc {
    color: #999;
  }

  /* Theme toggle button in nav */
  #theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    font-size: 18px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
  }

  #theme-toggle:hover {
    color: var(--green);
  }