:root{
  --content: 820px;         /* max readable width */
  --nudge: 0.36;            /* 0.50 = perfectly centered; <0.50 nudges left */
}
*{ box-sizing: border-box; }

/* Reset-ish */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  background: #b7a8f0;
  color: #fffaff;
}

main {
  max-width: 1200px;           /* or var(--content) */
  width: min(100%, 800px);
  margin-left: auto;          /* center horizontally */
  margin-right: auto;
  padding: 0 1rem;            /* gutter */
}



.highlight {
    display: inline;
    font-style: italic;
    font-weight: 600;
    white-space: nowrap; /* keep phrase together */
    background-size: 200% auto; /* allows animation movement */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent; /* text shows only gradient */
    animation: shine 4s linear infinite;
}

@keyframes shine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}


/* Pretentious color blends */
.ambassador {
  background-image: linear-gradient(
    90deg,
    rgb(220, 173, 20) 20%,
    firebrick 40%,
    white 50%,
    darkred 60%,
    rgb(220, 173, 20) 80%
  );
}

.researcher {
  background-image: linear-gradient(
    90deg,
    rgb(225, 0, 255) 20%,
    teal 40%,
    white 50%,
    deepskyblue 60%,
    rgb(225, 0, 255) 80%
  );
}


/* link buttons  */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: sans-serif;
  
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text, #292828);
  font-size: 2rem;
  text-shadow: 
    1px 1px 0 rgba(255, 255, 255, 0.3),
    2px 2px 0 rgba(255, 255, 255, 0.3),
    3px 3px 0 rgba(255, 255, 255, 0.3);
  transition: background-color 500ms, color 500ms, box-shadow 500ms, border 500ms, text-shadow 500ms;
  border-bottom: 2px solid #fff;
  min-width: 220px;   
  min-height: 60px;   
  box-sizing: border-box;
  /* box-shadow: 
  0px 1px 0px rgba(0, 0, 0, 0.5),
  0px 2px 0px rgba(0, 0, 0, 0.5),
  0px 3px 0px rgba(0, 0, 0, 0.5); */
  /* display: block; */
  margin: 0.5rem auto;
} 

/* Hover effect for normal buttons */
 .link-btn:hover {
  background-color: #9b2a2a;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text, #ffffff);
  text-shadow: 
  1px 1px 0 #292828,
  2px 2px 0 #292828,
  3px 3px 0 #292828;
  box-shadow: 
  0px 1px 1px rgba(0, 0, 0, 0.5),
  0px 2px 2px rgba(0, 0, 0, 0.5),
  0px 3px 3px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.link-btn:active {
  opacity: .7;
}

.project-open {
  text-align: left;
}

#project-modal {
  border: none;
  padding: 0;
  inset: 0;
  max-width: min(820px, 92vw);
  width: min(820px, 92vw);
  background: transparent;
}

/* Dim the page underneath */
#project-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

/* Modal shell + visual */
#project-modal .modal-shell {
  background: #a53e3e;            /* matches your title chip */
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  overflow: clip;
  max-height: min(82vh, 900px);
  display: block;
  grid-template-rows: none;
  position: relative;
}

#project-modal .modal-close {
  position:absolute;
  top: .5rem;
  right: .5rem;
  margin: 0;
}

#project-modal .modal-content {
  padding: .5rem .9rem 1rem;                 /* dialog is display:none by default */
}

#project-modal .modal-content header h2 {
  margin-top: 0;
}
/* Close button */
#project-modal .modal-close {
  justify-self: end;
  margin: .5rem .5rem 0 0;
  font-size: 1.6rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: .25rem .4rem;
  border-radius: 8px;
}
#project-modal .modal-close:hover,
#project-modal .modal-close:focus-visible {
  background: rgba(255,255,255,.12);
}

/* Content area scrolls if tall */
#project-modal .modal-content {
  padding: 1rem 1.25rem 1.5rem;
  overflow: auto;
}

/* Type tweaks inside modal */
#project-modal .modal-content header h2 {
  margin: 0 0 .25rem 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}
#project-modal .modal-content .subtle {
  margin: 0 0 1rem 0;
  opacity: .85;
  font-size: .96rem;
}
#project-modal .modal-content p {
  margin: 0 0 .75rem 0;
}
#project-modal .modal-content .bullets {
  margin: .75rem 0 0 1.25rem;
}
/* keep your existing rule if you still want plain links underlined … */
#project-modal .modal-content a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}



/* Entrance animation (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  #project-modal[open] .modal-shell {
    animation: projects-pop .16s ease-out;
  }
  @keyframes projects-pop {
    from { transform: translateY(4px) scale(.98); opacity: 0; }
    to   { transform: translateY(0)   scale(1);    opacity: 1; }
  }
}


/* Optional: make project sections stack nicely with a little space */
#adversarialTraining,
#CPDMod,
#FedMultiModal,
#SecureMeshNetworking,
#EvaluatingEnergyEfficiency {
  margin: .25rem 0;
}

/* Title container: center reliably + responsive sizing */
.titlename {
  display: block;                          /* was inline-block */
  width: fit-content;
  max-width: min(100%, 800px);
  margin: 2rem auto;                       /* centers the block */
  padding: clamp(10px, 2.5vw, 20px) clamp(14px, 3vw, 28px);
  text-align: center;

  background-color: #a693f5;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  line-height: 1.2;
  font-family: 'Golos Text', sans-serif;
  font-size: clamp(1.4rem, 4vw, 3rem);
}

.title-breadcrumbs {
  display: flex;
  justify-content: center;
}

/* Breadcrumb row */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  gap: .25rem .5rem;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;  /* keep each crumb on one line; wrapping happens between crumbs */
}

/* Non-clickable // separator with correct spacing */
.crumbs li + li::before {
  content: "//";
  margin: 0 .5rem;      /* was 'margin-right: 0 .5rem;' */
  color: #fff9f9;
  pointer-events: none;
}

/* ✅ Correct class selectors (with dots) */
.link-title-btn {
  color: inherit;
  text-decoration: none;         /* no underline by default */
  padding: 0.15em 0.4em;   /* small padding for click target */
  background-color: #9b83fc;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 7px;        /* rounded corners */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  transition: background-color 500ms ease, color 500ms ease, opacity 500ms ease, border 500ms ease, box-shadow 500ms ease; /* smooth hover transition */
}

.link-title-btn:visited {
  color: inherit;
  text-decoration: none;
}

.link-title-btn:hover,
.link-title-btn:focus-visible {
  background: #9b2a2a;
  /* outline: 2px solid rgb(145, 86, 86);
  outline-offset: -2px; */
  color: #ffffff;
  text-decoration: none;
}

.link-title-btn:active {
  opacity: 0.6;
}

/* Current page: plain text, no hover, no underline */
.crumbs .current {
  opacity: .9;
  text-decoration: none !important;
  pointer-events: none;
  cursor: default;
}


/* Small screens: tighten padding so it stays “pill”-like, not boxy */
@media (max-width: 520px) {
  .titlename {
    padding: 10px 14px;
    border-radius: 10px;
  }
}

/* Wide-screen nudge rules can stay as-is; .titlename being block is fine */
@media (min-width: 900px){
  main {
    max-width: var(--content);
    margin-left: calc((100vw - var(--content)) * var(--nudge));
    margin-right: calc((100vw - var(--content)) * (1 - var(--nudge)));
  }
  .titlename{
    max-width: var(--content);
    margin-left: calc((100vw - var(--content)) * var(--nudge));
    margin-right: calc((100vw - var(--content)) * (1 - var(--nudge)));
  }
}


/* .link-title-btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text, #000207);
  font-size: 3rem;
  transition: all 0.2s ease;
}

.link-title-btn:hover {
  border-color: var(--accent, #02ac9e);
  color: var(--accent, #02ac9e);
  transform: translateY(-2px);
} */

/* ABOUT SEC */
/* Remove default disclosure triangle */
/* Remove default triangle */
/* remove default triangle */
summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }

/* keep your link-btn look + avoid layout jump on hover */
summary.link-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: 3px solid transparent;
}
summary.link-btn:hover {
  background-color: #9b2a2a;
  border-color: rgb(145, 86, 86);
  border-radius: 7px;
}

/* animated wrapper */
.about-anim {
  overflow: hidden;
  max-height: 0;                 /* collapsed height */
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 350ms ease,
    opacity 250ms ease,
    transform 350ms ease;
}

/* visual of the inner panel */
.aboutpara {
  margin-top: 0.5rem;
  padding: 1rem;
  background: #a693f5;
  border: 2px solid #ffffff;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}


/* (optional) respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about-anim { transition: none; }
}



/*
GITHUB BUTTON STUFF
*/
    .GithubButton {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 15px 25px;
        border-bottom: 2px solid #FFFFFF;
        /* outline: 1px solid #FFFFFF; */
        border-radius: 0;
        font-size: 2rem;
        color: #24292e;
        cursor: pointer;
        font-family: sans-serif;
        font-weight: bold;
        text-decoration: none;
        transition: background-color 500ms, color 500ms, box-shadow 500ms, outline 500ms, border 500ms;
        margin: 0.5rem auto;   
        min-width: 220px;
        min-height: 60px;
        box-sizing: border-box;
    }
    .GithubButton:hover {
        background-color: #24292e;
        color: white;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);
        border-bottom: 2px solid #24292e;
        border-radius: 4px;
        /* outline: 1px solid #000000 */
    }
    .GithubProfileWrapper {
        position: relative;
        width: 2rem;
        height: 2rem;
    }

    .GithubProfileWrapper .pic {
        position: absolute;
        top: 0;
        left: 0;
        width: 2rem;
        height: 2rem;
        transition: opacity 500ms ease-in-out;
    }

    .GithubProfileWrapper .base {
        opacity: 1;
        z-index: 1;
    }

    .GithubProfileWrapper .hover {
        opacity: 0;
        z-index: 2;
    }

    .GithubButton:hover .GithubProfileWrapper .base {
        opacity: 0; 
    }

    .GithubButton:hover .GithubProfileWrapper .hover {
        opacity: 1;
    }

    .GithubButton:active {
        opacity: .7;
    }

    
/* …but explicitly *not* the button-styled anchors */
#project-modal .modal-content a.GithubButton,
#project-modal .modal-content a.LinkedinButton,
#project-modal .modal-content a.link-btn {
  text-decoration: none !important; /* out-specify the blanket rule */
  display: flex;
  text-align: center;
  border: 2px solid #FFFFFF;
  border-radius: 4px;
  /* justify-content: center; */
  /* align-items: center; */
  margin: .5rem auto;
  font-size: 2rem;
  line-height: 1;
}

#project-modal .modal-content a.GithubButton {
  background-color: #FFFFFF;
  color: #24292e;
}
#project-modal .modal-content a.GithubButton:hover {
  background-color: #24292e;
  color: white;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);
  border-radius: 4px;
}

#project-modal .modal-content .GithubProfileWrapper,
#project-modal .modal-content .LinkedinProfileWrapper {
  position: relative;
  width: 36px;   /* matches your icon size */
  height: 36px;
  flex-shrink: 0; /* don’t let it collapse */
  margin-right: 0.5rem; /* spacing between icon and text */
}

#project-modal .modal-content .GithubProfileWrapper .pic,
#project-modal .modal-content .LinkedinProfileWrapper .pic {
  position: absolute;
  inset: 0;                 /* fill the wrapper */
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}


/* (optional) make the icon scale nicely on narrow screens */
@media (max-width: 480px) {
  #project-modal .modal-content .GithubProfileWrapper,
  #project-modal .modal-content .LinkedinProfileWrapper,
  #project-modal .modal-content .GithubProfileWrapper .pic,
  #project-modal .modal-content .LinkedinProfileWrapper .pic {
    width: 72px;
    height: 72px;
  }
}
    /*GITHUB BUTTON STUFF*/

    /*Linkedin button stuff*/
    .LinkedinButton {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 15px 25px;
        /* background-color: white;
        border: 1px solid rgb(0, 114, 177); */
        border-radius: 4px;
        border-bottom: 2px solid #FFFFFF;
        font-size: 2rem;
        color: rgb(255, 255, 255);
        cursor: pointer;
        font-family: sans-serif;
        font-weight: bold;
        text-decoration: none;
        text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.3),
        3px 3px 0 rgba(0, 0, 0, 0.3);
        transition: background-color 500ms, color 500ms, box-shadow 500ms;
        margin: .5rem auto;
    }
    .LinkedinButton:hover {
        background-color: rgb(255, 255, 255);
        color: rgb(0, 114, 177);
        box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);
        text-shadow: none;
    }

    .LinkedinProfileWrapper {
        position: relative;
        width: 2rem;
        height: 2rem;
    }

    .LinkedinProfileWrapper .pic {
        position: absolute;
        top: 0;
        left: 0;
        width: 2rem;
        height: 2rem;
        transition: opacity 500ms ease-in-out;
    }

    .LinkedinProfileWrapper .base {
        opacity: 1;
        z-index: 1;
    }

    .LinkedinProfileWrapper .hover {
        opacity: 0;
        z-index: 2;
    }

    .LinkedinButton:hover .LinkedinProfileWrapper .base {
        opacity: 0
    }

    .LinkedinButton:hover .LinkedinProfileWrapper .hover {
        opacity: 1;
    }

    .LinkedinButton:active {
        opacity: .7;
    }



    /*Linkedin button stuff*/


@media (min-width: 900px){
    main {
                max-width: var(--content);
        margin-left: calc((100vw - var(--content)) * var(--nudge));
        margin-right: calc((100vw - var(--content)) * (1 - var(--nudge)));
    }
    .titlename{
        max-width: var(--content);
        margin-left: calc((100vw - var(--content)) * var(--nudge));
        margin-right: calc((100vw - var(--content)) * (1 - var(--nudge)));
    }
}