:root {
    /* Accent‑style palette */
    --bg-page: #cccca0;
    --bg-header-footer: #322f33;
    --bg-card: #e3e3e3;
    --text-primary: #322f33;
    --text-secondary: #d58400;
    --text-third: #322f33;
    --accent-1: #d58400;
    --accent-2: #322f33;
    --accent-3: #d58400;
    --border: #322f33;
    --skills-background: #322f33;
  }
  
  /* --------------------------- */
  /* 1) Custom Scrollbar Styles */
  /* --------------------------- */
  html {
    scroll-behavior: smooth;
    height: 100%;
  }
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg-page); }
  ::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 4px; border: 2px solid var(--bg-page); }
  
  /* --------------------------- */
  /* 2) Global Reset & Defaults  */
  /* --------------------------- */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    display: flex; flex-direction: column; min-height: 100vh;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
  }
  
  /* --------------------------- */
  /* 3) Header                   */
  /* --------------------------- */
  header {
    background: var(--bg-header-footer);
    padding: 20px;
    display: flex;
    justify-content: center; /* centers the logo horizontally */
    align-items: center;
    position: relative;
  }

  header .logo h1 { font-size: 2rem; color: #fff; }
  .main-nav { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); }
  .main-nav a { text-decoration: none; color: #fff; font-weight: bold; }
  .main-nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }
  
  .main-nav li {
    display: inline-block;
  }
  /* --------------------------- */
  /* 4) Main Area                */
  /* --------------------------- */
  main { flex: 1; }
  
  /* --------------------------- */
  /* 5) Hero Section             */
  /* --------------------------- */
  .hero {
    background: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    text-align: center;
    padding: 20px;
  }
  .hero-text h2 { font-size: 2rem; margin-bottom: 10px; color: var(--text-primary); }
  .hero-text p { font-size: 1.1rem; color: var(--text-secondary); }
  
  .hero-gif {
    text-align: center;
  }
  
  .hero-gif__image {
    max-width: 100%;
    height: auto;
  }
  /* Portfolio Section */
  .portfolio-section { padding: 40px 20px; color: var(--text-page); }
  .portfolio-container { max-width: 1200px; margin: 0 auto; text-align: center; }
  .portfolio-container h2 { font-size: 1.8rem; color: var(--text-primary); }
  .section-subtitle { font-size: 1rem; color: var(--text-secondary); margin-top: 10px; }
  .work-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }
  .work-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    width: 480px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
  }
  .work-item h3 { margin-bottom: 10px; font-size: 1.1rem; color: var(--text-primary); }
  .work-item p { margin-bottom: 5px; font-size: 0.95rem; color: var(--text-secondary); }
  .work-item .reference { font-style: italic; color: var(--text-secondary); }
  
  /* Buttons */
  .buttons-container { position: fixed; bottom: 100px; right: 50px; width: 120px; height: 120px; }
  .button {
    position: absolute;
    font-size: 1.3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
  }
  .btn-linkedin { top: 0; left: 50%; transform: translateX(-50%); background-color: var(--accent-1); }
  .btn-email { bottom: 0; left: 0; background-color: var(--accent-2); }
  .btn-resume { bottom: 0; right: 0; background-color: var(--accent-3); }
  .button:hover { transform: scale(1.2); }
  .btn-about {
    background-color: var(--accent-1);
    color: #fff;
    text-decoration: none;
    border-radius: 9999px;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .btn-about:hover {
    background-color: var(--accent-3);
  }

  #portfolioChart {
    /* whatever size you actually want: */
    max-width: 1400px;
    max-height: 700px;
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-header-footer);
  }
  footer p { font-size: 0.9rem; color: #fff; }
  
  .demo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;      /* gap between header, zkp, and blockchain */
    padding: 40px 20px;
  }
  
  /* Header wrapper to tighten spacing */
  .demo-header {
    text-align: center;
    margin-bottom: 20px; /* space before demos */
  }
  .demo-header h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
    color: var(--text-primary);
  }
  .demo-header p {
    margin: 4px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
  }
  
  /* ZKP Styles */
  .zkp-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: background 0.5s;
  }
  .padlock i {
    font-size: 3rem;
    color: var(--border);
    transform-origin: center center;
  }
  .zkp-demo.success {
    background: var(--accent-2);
  }
  .zkp-demo.success .padlock i {
    animation: spin 0.8s ease-in-out;
    color: var(--accent-1);
  }
  @keyframes spin {
    from { transform: rotate(0deg) scale(1); }
    to   { transform: rotate(360deg) scale(1.2); }
  }
  .zkp-demo input,
  .zkp-demo button {
    width: 80%;
    margin: 10px 0;
  }
  .zkp-demo .hashing {
    font-style: italic;
    color: var(--text-secondary);
  }
  .hashing .dots {
    font-weight: bold;
  }
  .hash-display {
    font-family: monospace;
    word-break: break-all;
    margin: 10px 0;
    animation: fadeIn 1s ease-out;
  }
  .success-text {
    color: var(--accent-1);
    font-weight: bold;
  }
  .warning {
    color: #d9534f;
  }
  
  /* Blockchain Styles */
  .blockchain-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    width: 480px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  }
  .blockchain-visual .controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .blockchain-visual input {
    width: 60px;
    text-align: center;
  }
  #miningStatus {
    margin-bottom: 10px;
    font-style: italic;
  }
  #blockchain {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .block {
    background: #fff;
    border: 2px solid var(--accent-1);
    border-radius: 8px;
    padding: 12px;
    width: 360px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-20px);
    opacity: 0;
    animation: slideIn 0.5s forwards;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes slideIn {
    to { transform: translateY(0); opacity: 1; }
  }


  /* Avalanche Demo Styles */
.avalanche-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 920px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.avalanche-visual h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--text-primary);
}
.avalanche-visual input {
  width: 200px;
  padding: 6px;
  margin: 0 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.avalanche-visual button {
  padding: 6px 12px;
  background: var(--accent-1);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.hash-grid-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.hash-grid {
  display: grid;
  grid-template-columns: repeat(16, 14px);
  grid-template-rows: repeat(16, 14px);
  gap: 2px;
}
.hash-bit {
  width: 14px;
  height: 14px;
}


/* make the hash & success text white on success */
.zkp-demo.success .hash-display,
.zkp-demo.success .success-text,
.zkp-demo.success .warning {
  color: #fff !important;
}

  /* About Page Styles */
  /* Only About page background → white */
body.about-page {
    /* Option A: directly set a white background */
    background-color: #e3e3e3;
  }

  /* Nav‑bar GIF (top‑left) */
.nav-gif {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    max-height: 100px;      /* tweak as needed */
    width: auto;
    pointer-events: none;  /* so it won’t intercept clicks */
    z-index: 1000;
  }
  
  .profile-pic-container { text-align: center; margin: 20px 0; }
  .profile-pic { width: 450px; height: 450px; object-fit: cover; border-radius: 50%; }
  .about-section { display: flex; gap: 20px; padding: 40px 20px; flex-wrap: wrap; }
  .timeline-wrapper { flex: 2; }
  .skills-wrapper { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
  .skills-wrapper h2 { margin-bottom: 20px; font-size: 1.8rem; color: var(--text-third); }
  .skills-list { display: flex; flex-direction: column; gap: 20px; }
  .skill-category h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-third); }
  .icon-row { display: flex; flex-wrap: wrap; gap: 15px; }
  .skill-square {
    width: 60px;
    height: 60px;
    background: var(--skills-background);
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .skill-square:hover { transform: scale(1.1); box-shadow: 0 4px 10px rgba(248, 2, 2, 0.911); }
  
  /* Timeline unchanged */
  .timeline-section { padding: 20px 0; text-align: center; }
  .timeline-section h2 { font-size: 1.8rem; color: var(--text-primary); }
  .timeline { position: relative; margin: 40px auto; padding-bottom: 20px; max-width: 600px; }
  .timeline::before { content: ""; position: absolute; left: 15px; top: 0; width: 2px; height: 100%; background: var(--border); }
  .timeline-item { display: flex; align-items: flex-start; margin-bottom: 40px; padding-left: 50px; position: relative; }
  .timeline-icon {
    position: absolute; left: 0; top: 0;
    width: 30px; height: 30px;
    color: var(--bg-header-footer);
    background: var(--bg-card);
    border-radius: 50%;
    text-align: center; line-height: 30px;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--bg-header-footer);
    font-size: 1.2rem;
  }
  .timeline-content h3 { margin: 0 0 5px; font-size: 1.1rem; color: var(--accent-2); }
  .timeline-content .date { display: block; font-weight: bold; margin-bottom: 5px; color: var(--accent-2); }
  .timeline-content p { margin: 0; font-size: 0.95rem; color: var(--text-secondary); }
  
  /* Resize & align education GIF next to the school name */
.timeline-content h3 .timeline-gif {
    width: 1.2rem;        /* same height as your <h3> text */
    height: auto;
    margin-left: 0.5rem;  /* small gap between text and GIF */
    vertical-align: middle;
    display: inline-block;
  }


  /* Pill‑shaped “About” button */
.btn-about {
    background-color: var(--accent-1);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .btn-about:hover {
    background-color: var(--accent-3);
  }

/* --------------------------- */
/* Mentorship Section Styles   */
/* --------------------------- */
.mentorship-section {
    text-align: center;
    margin: 40px 20px;
  }
  
  .mentorship-section h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 16px;
  }
  
  .mentee-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }
  .mentee-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }
  
  .mentee-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background-color: var(--accent-2);
    color: #fff;
  }
/* About page: side‑by‑side mentorship list + GIF */
/* About page: center mentorship list + GIF */
.mentorship-section .mentorship-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;    /* center the whole block on the page */
    gap: 0.1rem;                /* space between list and GIF */
    max-width: 450px;           /* limit width so it doesn’t stretch full screen */
    margin: 0 auto;             /* auto‑center horizontally */
  }

  .mentorship-section .mentee-list {
    text-align: flex-start;           /* keep bullets left‑aligned */
  }

  .mentorship-gif {
    max-width: 120px;
    height: auto;
  }
  
  /* Contact page: fixed bottom‑left GIF */
  body.contact-page {
    position: relative;
  }
  .contact-gif {
    position: relative;
    bottom: 20px;
    left: 20px;
    max-width: 10px;
    height: auto;
    pointer-events: none; /* avoids interfering with buttons */
  }

/* --------------------------- */
/* Contact Page Styles   */
/* --------------------------- */
body.contact-page {
    /* Option A: directly set a white background */
    background-color: #e3e3e3;
  }
  .contact-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  
  body.contact-page .contact-grid {
    justify-items: center;
  }
  
  body.contact-page .location {
    justify-self: end;
  }

  .location, .contact-details {
    text-align: center;
  }
  
  .location h3, .contact-details h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
  }
  
  iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .contact-details div {
    margin-bottom: 20px;
  }

  .contact-section p {
    text-align: center;
    margin: 0 auto;        /* horizontally center if you give it a max-width */
    max-width: 600px;       /* prevents it from stretching full‑width on large screens */
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
  }
  
  /* Contact‑page only: button column next to map */
body.contact-page .contact-details {
    text-align: center;
  }

  body.contact-page .contact-grid {
    /* Fix first column to your iframe’s width, shrink second to its content */
    grid-template-columns: 400px min-content;
    column-gap: 5rem;        /* shrink space between map and buttons */
    justify-content: center;   /* center the two‑column block on the page */
  }
  
  body.contact-page .contact-buttons {
    display: flex;
    flex-direction: column;
    border-radius: 50%;
    gap: 0.5rem;
    justify-content: center;
  }

  body.contact-page .contact-buttons a {
    white-space: nowrap;    /* Prevent “Email Me” from wrapping */
    min-width: 120px;       /* Make all buttons at least this wide */
    text-align: center;     /* Center the text inside */
  }
  
  body.contact-page .contact-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.8rem;
    border-radius: 9999px;
    background-color: var(--accent-1);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
  
  body.contact-page .contact-buttons a:hover {
    background-color: var(--accent-3);
    transform: scale(1.05);
  }
  

  /* Contact‑page only: small round buttons next to map */
body.contact-page .contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

body.contact-page .contact-buttons .button {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
/* Phone‑button tooltip */
body.contact-page .phone-button {
    position: relative;
  }
  
  body.contact-page .phone-button::after {
    content: "951-805-9388"; /* your phone number */
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(50%);
    background: var(--accent-3);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  body.contact-page .phone-button:hover::after {
    opacity: 1;
  }
  
body.contact-page .contact-buttons .button:hover {
  transform: scale(1.2);
}


/* Contact‑page only: fixed bottom‑left GIF */
body.contact-page {
    position: relative;
  }


  
  .contact-gif {
    position: absolute;
    bottom: 20px;
    left: 20px;
    max-width: 150px;    /* ↑ bump this up from 10px */
    width: auto;
    height: auto;
    pointer-events: none;
  }

  .contact-gif2 {
    position: absolute;
    top: 50%;                   /* same vertical centering as nav */
    right: 280px;               /* offset from the right so it sits left of the nav */
    transform: translateY(-50%);
    max-width: 80px;            /* adjust size to taste */
    z-index: 9999;              /* ensures it’s on top of the buttons */
    pointer-events: none;       /* so clicks go through to the buttons */
  }


  footer.index-page {
    position: relative;
  }
  
  .index-gif {
    position: absolute;
    bottom: 20px;
    left: 20px;
    max-width: 150px;    /* ↑ bump this up from 10px */
    width: auto;
    height: auto;
    pointer-events: none;
  }

/* ─────────── Responsive Breakpoints ─────────── */

/* Tablet & small desktops */
@media (max-width: 768px) {
    header {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px;
    }
    .main-nav {
      position: static;
      transform: none;
      margin-top: 10px;
    }
    .hero {
      height: auto;
      padding: 40px 20px;
    }
    .hero-text h2 { font-size: 1.6rem; }
    .portfolio-container { padding: 0 20px; }
    .work-items {
      flex-direction: column;
      gap: 30px;
    }
    .work-item { width: 100%; }
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    iframe { width: 100%; height: 250px; }
   
      .logo h1 {
        font-size: 1.8rem;
      }
    header {
      flex-direction: column;
      align-items: center;
    }
    .logo h1 {
      font-size: 1.8rem;
    }

    .btn-about {
      padding: 0.4rem 1rem;
      font-size: 0.9rem;
    }
    .buttons-container {
      position: static;
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin: 20px 0;
      width: auto;
      height: auto;
    }
    .main-nav {
        width: 100%;
        text-align: center;
        position: static; /* remove absolute positioning */
        top: auto;
        right: auto;
        transform: none;
        margin-top: 10px;
      }
      .main-nav ul {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
      }
      .buttons-container {
        position: static;         /* remove the fixed bottom corner for smaller screens */
        display: flex;            /* show them as a row (or column) */
        flex-direction: row;      /* or column if you prefer */
        justify-content: center;
        align-items: center;
        gap: 1rem;                /* space between the buttons */
        margin: 20px auto;        /* center horizontally, some spacing on top/bottom */
        width: auto;
        height: auto;
      }
    
      /* Make sure each button isn't absolutely positioned anymore */
      .buttons-container .button {
        position: static;         /* remove absolute positioning so flex layout works */
        transform: none;          /* remove the custom transforms if you like */
        width: 40px;              /* slightly smaller if needed */
        height: 40px;
        font-size: 1.1rem;
      }
      .contact-gif2 {
          /* Move it up or down and shrink it slightly */
          top: 10px;               /* or 0.5rem, etc. */
          right: 20px;            /* bring closer to the edge */
          transform: none;        /* remove the translateY so it doesn’t float oddly */
          max-width: 60px;        /* shrink if needed */
        }
    }
  
  
  @media (max-width: 480px) {
    .logo h1 {
      font-size: 1.4rem;
    }
    .main-nav ul {
      flex-direction: column;
      gap: 6px;
      text-align: center;
    }
    .btn-about {
      font-size: 0.8rem;
      padding: 0.3rem 0.8rem;
    }
    .buttons-container {
      gap: 0.5rem;
    }
    .button {
      width: 36px;
      height: 36px;
      font-size: 1.1rem;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 6px;
      }
      /* Force body/header/footer to fill width: */
      body, header, footer {
      margin: 0 !important;
      padding: 0 !important;
      width: 100% !important;
    }
        /* Stack nav links vertically under logo */
        .main-nav ul {
            flex-direction: column;
            gap: 6px;
          }
          .logo h1 {
            font-size: 1.5rem;
          }
          .btn-about {
            font-size: 0.85rem;
            padding: 0.4rem 1rem;
          }
          /* Shrink floating action buttons */
          .buttons-container {
            bottom: 20px;
            right: 20px;
            width: auto;
            height: auto;
          }
          .button {
            width: 36px;
            height: 36px;
            font-size: 1.1rem;
          }

          main { padding-left: 10px; padding-right: 10px; }
          .hero-text h2 { font-size: 1.4rem; }
          .hero-text p { font-size: 1rem; }
          .btn-about { padding: 0.4rem 1rem; font-size: 0.9rem; }
          .work-item { padding: 15px; }
          footer p { font-size: 0.8rem; }
          .contact-buttons a { width: 100%; justify-content: center; }
          .contact-buttons { flex-wrap: wrap; gap: 1rem; }
          .buttons-container .button {
            width: 36px;
            height: 36px;
            font-size: 1rem;
          }
          .contact-gif2 {
              top: 5px;
              right: 10px;
              max-width: 50px;        /* shrink further on phones */
            }
  }
